From 9aa1fc8d3ed49c9d1497727b2a02fd79bc549a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cdsoper2=E2=80=9D?= <“dsoper@cisco.com”> Date: Mon, 4 Jun 2018 13:24:35 -0500 Subject: [PATCH] Update to API version: 1.0.5-612 supporting HX deployment and other recent features. Still uses pycrypto, but update to pycryptodome planned in upcoming release. --- README.md | 539 +- intersight/__init__.py | 464 +- intersight/api_client.py | 6 +- intersight/apis/__init__.py | 30 +- intersight/apis/aaa_audit_record_api.py | 6 +- .../apis/adapter_ext_eth_interface_api.py | 6 +- .../apis/adapter_host_eth_interface_api.py | 6 +- .../apis/adapter_host_fc_interface_api.py | 6 +- .../apis/adapter_host_iscsi_interface_api.py | 6 +- intersight/apis/adapter_unit_api.py | 6 +- intersight/apis/asset_device_claim_api.py | 6 +- .../apis/asset_device_registration_api.py | 6 +- intersight/apis/bios_policy_api.py | 6 +- intersight/apis/bios_unit_api.py | 6 +- intersight/apis/boot_precision_policy_api.py | 6 +- intersight/apis/compute_blade_api.py | 6 +- intersight/apis/compute_board_api.py | 6 +- .../apis/compute_physical_summary_api.py | 6 +- intersight/apis/compute_rack_unit_api.py | 6 +- intersight/apis/compute_server_setting_api.py | 6 +- intersight/apis/cond_alarm_api.py | 6 +- intersight/apis/cond_hcl_status_api.py | 6 +- intersight/apis/cond_hcl_status_detail_api.py | 6 +- intersight/apis/cond_hcl_status_job_api.py | 6 +- intersight/apis/crypt_encryption_token_api.py | 6 +- .../apis/deviceinfo_serial_number_info_api.py | 6 +- intersight/apis/equipment_chassis_api.py | 6 +- .../apis/equipment_device_summary_api.py | 6 +- intersight/apis/equipment_fan_api.py | 6 +- intersight/apis/equipment_fan_module_api.py | 6 +- intersight/apis/equipment_fex_api.py | 6 +- intersight/apis/equipment_io_card_api.py | 6 +- intersight/apis/equipment_locator_led_api.py | 6 +- intersight/apis/equipment_psu_api.py | 6 +- intersight/apis/equipment_switch_card_api.py | 6 +- .../equipment_system_io_controller_api.py | 6 +- intersight/apis/ether_physical_port_api.py | 6 +- .../apis/externalsite_authorization_api.py | 604 ++ intersight/apis/fault_instance_api.py | 6 +- intersight/apis/fc_physical_port_api.py | 6 +- intersight/apis/feedback_feedback_post_api.py | 145 + intersight/apis/firmware_distributable_api.py | 6 +- intersight/apis/firmware_eula_api.py | 6 +- .../apis/firmware_running_firmware_api.py | 6 +- intersight/apis/firmware_upgrade_api.py | 6 +- .../apis/firmware_upgrade_status_api.py | 6 +- intersight/apis/graphics_card_api.py | 6 +- intersight/apis/graphics_controller_api.py | 6 +- intersight/apis/hcl_compatibility_info_api.py | 6 +- intersight/apis/hcl_data_import_log_api.py | 6 +- intersight/apis/hcl_note_api.py | 6 +- intersight/apis/hyperflex_alarm_api.py | 6 +- .../apis/hyperflex_auto_support_policy_api.py | 6 +- intersight/apis/hyperflex_cluster_api.py | 6 +- .../hyperflex_cluster_network_policy_api.py | 6 +- .../apis/hyperflex_cluster_profile_api.py | 6 +- .../hyperflex_cluster_storage_policy_api.py | 6 +- .../apis/hyperflex_config_result_api.py | 6 +- .../apis/hyperflex_config_result_entry_api.py | 278 + .../hyperflex_ext_fc_storage_policy_api.py | 6 +- .../hyperflex_ext_iscsi_storage_policy_api.py | 6 +- .../hyperflex_local_credential_policy_api.py | 6 +- .../apis/hyperflex_node_config_policy_api.py | 6 +- intersight/apis/hyperflex_node_profile_api.py | 6 +- .../hyperflex_proxy_setting_policy_api.py | 708 ++ .../apis/hyperflex_sys_config_policy_api.py | 6 +- .../apis/hyperflex_ucsm_config_policy_api.py | 6 +- .../hyperflex_vcenter_config_policy_api.py | 6 +- intersight/apis/iaas_connector_pack_api.py | 278 + intersight/apis/iaas_device_status_api.py | 278 + intersight/apis/iaas_license_info_api.py | 278 + intersight/apis/iaas_ucsd_info_api.py | 278 + intersight/apis/iam_account_api.py | 6 +- intersight/apis/iam_api_key_api.py | 6 +- .../apis/iam_end_point_privilege_api.py | 6 +- intersight/apis/iam_end_point_role_api.py | 6 +- intersight/apis/iam_end_point_user_api.py | 6 +- .../apis/iam_end_point_user_policy_api.py | 6 +- .../apis/iam_end_point_user_role_api.py | 6 +- intersight/apis/iam_idp_api.py | 6 +- intersight/apis/iam_idp_reference_api.py | 6 +- intersight/apis/iam_ldap_group_api.py | 6 +- intersight/apis/iam_ldap_policy_api.py | 6 +- intersight/apis/iam_ldap_provider_api.py | 6 +- intersight/apis/iam_permission_api.py | 6 +- intersight/apis/iam_privilege_api.py | 6 +- intersight/apis/iam_privilege_set_api.py | 6 +- intersight/apis/iam_qualifier_api.py | 6 +- intersight/apis/iam_resource_limits_api.py | 6 +- intersight/apis/iam_role_api.py | 6 +- intersight/apis/iam_session_api.py | 6 +- intersight/apis/iam_session_limits_api.py | 6 +- intersight/apis/iam_system_api.py | 6 +- intersight/apis/iam_user_api.py | 6 +- intersight/apis/iam_user_group_api.py | 6 +- intersight/apis/iam_user_preference_api.py | 6 +- intersight/apis/inventory_device_info_api.py | 6 +- .../apis/inventory_dn_mo_binding_api.py | 6 +- .../apis/inventory_generic_inventory_api.py | 6 +- .../inventory_generic_inventory_holder_api.py | 6 +- intersight/apis/inventory_request_api.py | 145 + intersight/apis/ipmioverlan_policy_api.py | 6 +- intersight/apis/kvm_policy_api.py | 6 +- .../apis/license_account_license_data_api.py | 6 +- intersight/apis/license_customer_op_api.py | 6 +- intersight/apis/license_license_info_api.py | 6 +- .../apis/license_smartlicense_token_api.py | 6 +- intersight/apis/ls_service_profile_api.py | 6 +- intersight/apis/management_controller_api.py | 6 +- intersight/apis/management_entity_api.py | 6 +- intersight/apis/management_interface_api.py | 6 +- intersight/apis/memory_array_api.py | 6 +- intersight/apis/memory_unit_api.py | 6 +- intersight/apis/meta_definition_api.py | 6 +- intersight/apis/network_element_api.py | 6 +- .../apis/network_element_summary_api.py | 6 +- intersight/apis/networkconfig_policy_api.py | 6 +- intersight/apis/ntp_policy_api.py | 6 +- intersight/apis/oauth_oauth_user_api.py | 708 ++ intersight/apis/port_group_api.py | 6 +- intersight/apis/port_sub_group_api.py | 6 +- intersight/apis/processor_unit_api.py | 6 +- intersight/apis/search_search_item_api.py | 6 +- intersight/apis/search_suggest_item_api.py | 6 +- intersight/apis/search_tag_item_api.py | 6 +- intersight/apis/security_unit_api.py | 6 +- intersight/apis/server_config_result_api.py | 6 +- .../apis/server_config_result_entry_api.py | 278 + intersight/apis/server_profile_api.py | 6 +- intersight/apis/smtp_policy_api.py | 6 +- intersight/apis/snmp_policy_api.py | 6 +- intersight/apis/sol_policy_api.py | 6 +- intersight/apis/ssh_policy_api.py | 6 +- intersight/apis/storage_controller_api.py | 6 +- .../apis/storage_disk_group_policy_api.py | 6 +- intersight/apis/storage_enclosure_api.py | 500 ++ .../apis/storage_flex_flash_controller_api.py | 6 +- ...storage_flex_flash_controller_props_api.py | 500 ++ .../storage_flex_flash_physical_drive_api.py | 6 +- .../storage_flex_flash_virtual_drive_api.py | 500 ++ .../apis/storage_flex_util_controller_api.py | 6 +- .../storage_flex_util_physical_drive_api.py | 500 ++ .../storage_flex_util_virtual_drive_api.py | 500 ++ intersight/apis/storage_physical_disk_api.py | 6 +- .../storage_physical_disk_extension_api.py | 500 ++ .../apis/storage_physical_disk_usage_api.py | 6 +- intersight/apis/storage_sas_expander_api.py | 6 +- intersight/apis/storage_storage_policy_api.py | 6 +- intersight/apis/storage_vd_member_ep_api.py | 6 +- intersight/apis/storage_virtual_drive_api.py | 6 +- intersight/apis/task_workflow_action_api.py | 6 +- intersight/apis/terminal_audit_log_api.py | 6 +- intersight/apis/top_system_api.py | 6 +- intersight/apis/vmedia_policy_api.py | 6 +- .../apis/workflow_build_task_meta_api.py | 6 +- intersight/apis/workflow_task_info_api.py | 6 +- intersight/apis/workflow_task_meta_api.py | 6 +- intersight/apis/workflow_workflow_info_api.py | 6 +- intersight/apis/workflow_workflow_meta_api.py | 6 +- intersight/apis/workflow_workflow_task_api.py | 6 +- intersight/configuration.py | 10 +- intersight/intersight_api_client.py | 6 +- intersight/models/__init__.py | 434 +- .../models/aaa_abstract_audit_record.py | 18 +- .../models/aaa_abstract_audit_record_ref.py | 149 + intersight/models/aaa_audit_record.py | 36 +- intersight/models/aaa_audit_record_list.py | 6 +- .../models/aaa_audit_record_local_ref.py | 149 + intersight/models/aaa_audit_record_ref.py | 149 + .../models/adapter_ext_eth_interface.py | 58 +- .../models/adapter_ext_eth_interface_list.py | 6 +- .../models/adapter_ext_eth_interface_ref.py | 149 + .../models/adapter_host_eth_interface.py | 30 +- .../models/adapter_host_eth_interface_list.py | 6 +- .../models/adapter_host_eth_interface_ref.py | 149 + .../models/adapter_host_fc_interface.py | 30 +- .../models/adapter_host_fc_interface_list.py | 6 +- .../models/adapter_host_fc_interface_ref.py | 149 + .../models/adapter_host_iscsi_interface.py | 30 +- .../adapter_host_iscsi_interface_list.py | 6 +- .../adapter_host_iscsi_interface_ref.py | 149 + intersight/models/adapter_unit.py | 66 +- intersight/models/adapter_unit_list.py | 6 +- intersight/models/adapter_unit_ref.py | 149 + intersight/models/asset_device_claim.py | 30 +- intersight/models/asset_device_claim_ref.py | 149 + .../models/asset_device_registration.py | 116 +- .../models/asset_device_registration_list.py | 6 +- .../models/asset_device_registration_ref.py | 149 + intersight/models/asset_security_token_ref.py | 149 + intersight/models/bios_deploy_task_ref.py | 149 + intersight/models/bios_policy.py | 7110 ++++++++++++++++- intersight/models/bios_policy_list.py | 6 +- intersight/models/bios_policy_ref.py | 149 + intersight/models/bios_unit.py | 64 +- intersight/models/bios_unit_list.py | 6 +- intersight/models/bios_unit_ref.py | 149 + intersight/models/bios_validation_task_ref.py | 149 + intersight/models/boot_device_base.py | 10 +- intersight/models/boot_device_base_ref.py | 149 + intersight/models/boot_iscsi_ref.py | 149 + intersight/models/boot_local_disk_ref.py | 149 + intersight/models/boot_nvme_ref.py | 149 + intersight/models/boot_pch_storage_ref.py | 149 + .../models/boot_precision_deploy_task_ref.py | 149 + intersight/models/boot_precision_policy.py | 30 +- .../models/boot_precision_policy_list.py | 6 +- .../models/boot_precision_policy_ref.py | 149 + .../boot_precision_validation_task_ref.py | 149 + intersight/models/boot_pxe_ref.py | 149 + intersight/models/boot_san_ref.py | 149 + intersight/models/boot_sd_card_ref.py | 149 + intersight/models/boot_uefi_shell_ref.py | 149 + intersight/models/boot_usb_ref.py | 149 + intersight/models/boot_virtual_media_ref.py | 149 + intersight/models/compute_blade.py | 172 +- intersight/models/compute_blade_list.py | 6 +- intersight/models/compute_blade_ref.py | 149 + intersight/models/compute_board.py | 78 +- intersight/models/compute_board_list.py | 6 +- intersight/models/compute_board_ref.py | 149 + intersight/models/compute_ip_address.py | 6 +- intersight/models/compute_ip_address_ref.py | 149 + .../compute_locator_led_operation_task_ref.py | 149 + .../compute_operation_result_handler_ref.py | 149 + intersight/models/compute_physical.py | 72 +- intersight/models/compute_physical_ref.py | 149 + intersight/models/compute_physical_summary.py | 106 +- .../models/compute_physical_summary_list.py | 6 +- .../models/compute_physical_summary_ref.py | 149 + intersight/models/compute_rack_unit.py | 164 +- intersight/models/compute_rack_unit_list.py | 6 +- intersight/models/compute_rack_unit_ref.py | 149 + intersight/models/compute_server_config.py | 6 +- .../models/compute_server_config_ref.py | 149 + .../compute_server_operation_task_ref.py | 149 + intersight/models/compute_server_setting.py | 38 +- .../models/compute_server_setting_list.py | 6 +- .../models/compute_server_setting_ref.py | 149 + intersight/models/cond_alarm.py | 24 +- intersight/models/cond_alarm_list.py | 6 +- intersight/models/cond_alarm_ref.py | 149 + intersight/models/cond_hcl_status.py | 106 +- intersight/models/cond_hcl_status_detail.py | 164 +- .../models/cond_hcl_status_detail_list.py | 6 +- .../models/cond_hcl_status_detail_ref.py | 149 + intersight/models/cond_hcl_status_job.py | 30 +- intersight/models/cond_hcl_status_job_list.py | 6 +- intersight/models/cond_hcl_status_job_ref.py | 149 + intersight/models/cond_hcl_status_list.py | 6 +- intersight/models/cond_hcl_status_ref.py | 149 + intersight/models/connector_auth_message.py | 209 + .../models/connector_auth_message_ref.py | 149 + .../models/connector_command_message_ref.py | 149 + .../connector_event_channel_control_ref.py | 149 + intersight/models/connector_event_ref.py | 149 + .../connector_job_async_response_ref.py | 149 + .../models/connector_job_message_ref.py | 149 + .../models/connector_xml_api_message_ref.py | 149 + intersight/models/crypt_account_key_ref.py | 149 + intersight/models/crypt_decrypt_ref.py | 149 + intersight/models/crypt_encrypt_ref.py | 149 + intersight/models/crypt_encryption_key_ref.py | 149 + intersight/models/crypt_encryption_token.py | 54 +- .../models/crypt_encryption_token_list.py | 6 +- .../models/crypt_encryption_token_ref.py | 149 + .../models/deviceinfo_serial_number_info.py | 24 +- .../deviceinfo_serial_number_info_list.py | 6 +- .../deviceinfo_serial_number_info_ref.py | 149 + intersight/models/equipment_base.py | 18 +- intersight/models/equipment_base_ref.py | 149 + intersight/models/equipment_chassis.py | 90 +- intersight/models/equipment_chassis_list.py | 6 +- intersight/models/equipment_chassis_ref.py | 149 + intersight/models/equipment_device_summary.py | 24 +- .../models/equipment_device_summary_list.py | 6 +- .../models/equipment_device_summary_ref.py | 149 + intersight/models/equipment_fan.py | 30 +- intersight/models/equipment_fan_list.py | 6 +- intersight/models/equipment_fan_module.py | 48 +- .../models/equipment_fan_module_list.py | 6 +- intersight/models/equipment_fan_module_ref.py | 149 + intersight/models/equipment_fan_ref.py | 149 + intersight/models/equipment_fex.py | 24 +- intersight/models/equipment_fex_list.py | 6 +- intersight/models/equipment_fex_ref.py | 149 + intersight/models/equipment_io_card.py | 30 +- intersight/models/equipment_io_card_list.py | 6 +- intersight/models/equipment_io_card_ref.py | 149 + intersight/models/equipment_locator_led.py | 42 +- .../models/equipment_locator_led_list.py | 6 +- .../models/equipment_locator_led_ref.py | 149 + intersight/models/equipment_psu.py | 70 +- intersight/models/equipment_psu_list.py | 6 +- intersight/models/equipment_psu_ref.py | 149 + intersight/models/equipment_switch_card.py | 36 +- .../models/equipment_switch_card_list.py | 6 +- .../models/equipment_switch_card_ref.py | 149 + .../models/equipment_system_io_controller.py | 30 +- .../equipment_system_io_controller_list.py | 6 +- .../equipment_system_io_controller_ref.py | 149 + intersight/models/error.py | 6 +- intersight/models/ether_physical_port.py | 36 +- intersight/models/ether_physical_port_list.py | 6 +- intersight/models/ether_physical_port_ref.py | 149 + .../models/externalsite_authorization.py | 519 ++ .../models/externalsite_authorization_list.py | 153 + .../models/externalsite_authorization_ref.py | 149 + intersight/models/extsearch_app_config_ref.py | 149 + intersight/models/extsearch_import_ref.py | 149 + intersight/models/fault_instance.py | 24 +- intersight/models/fault_instance_list.py | 6 +- intersight/models/fault_instance_ref.py | 149 + intersight/models/fc_physical_port.py | 30 +- intersight/models/fc_physical_port_list.py | 6 +- intersight/models/fc_physical_port_ref.py | 149 + intersight/models/feedback_feedback_data.py | 277 + .../models/feedback_feedback_data_ref.py | 149 + intersight/models/feedback_feedback_post.py | 401 + .../models/feedback_feedback_post_ref.py | 149 + intersight/models/feedback_feedback_ref.py | 149 + .../models/feedback_feedback_settings_ref.py | 149 + .../models/feedback_history_item_ref.py | 149 + intersight/models/firmware_cifs_server.py | 22 +- intersight/models/firmware_cifs_server_ref.py | 149 + intersight/models/firmware_direct_download.py | 162 +- .../models/firmware_direct_download_ref.py | 149 + intersight/models/firmware_distributable.py | 48 +- .../models/firmware_distributable_list.py | 6 +- .../models/firmware_distributable_ref.py | 149 + .../models/firmware_download_spec_ref.py | 149 + intersight/models/firmware_eula.py | 24 +- intersight/models/firmware_eula_list.py | 6 +- intersight/models/firmware_eula_ref.py | 149 + intersight/models/firmware_http_server.py | 14 +- intersight/models/firmware_http_server_ref.py | 149 + intersight/models/firmware_network_share.py | 64 +- .../models/firmware_network_share_ref.py | 149 + intersight/models/firmware_nfs_server.py | 22 +- intersight/models/firmware_nfs_server_ref.py | 149 + .../models/firmware_running_firmware.py | 76 +- .../models/firmware_running_firmware_list.py | 6 +- .../models/firmware_running_firmware_ref.py | 149 + intersight/models/firmware_upgrade.py | 54 +- intersight/models/firmware_upgrade_list.py | 6 +- intersight/models/firmware_upgrade_ref.py | 149 + intersight/models/firmware_upgrade_status.py | 128 +- .../models/firmware_upgrade_status_list.py | 6 +- .../models/firmware_upgrade_status_ref.py | 149 + ...imc_cancel_pending_firmware_upgrade_ref.py | 149 + ...mwareimc_check_for_existing_upgrade_ref.py | 149 + ...imc_firmware_upgrade_result_handler_ref.py | 149 + .../firmwareimc_huu_firmware_upgrade_ref.py | 149 + .../firmwareimc_initiate_download_ref.py | 149 + .../firmwareimc_wait_for_download_ref.py | 149 + ...rmwareimc_wait_for_firmware_upgrade_ref.py | 149 + intersight/models/graphics_card.py | 36 +- intersight/models/graphics_card_list.py | 6 +- intersight/models/graphics_card_ref.py | 149 + intersight/models/graphics_controller.py | 30 +- intersight/models/graphics_controller_list.py | 6 +- intersight/models/graphics_controller_ref.py | 149 + .../models/hcl_active_collection_node_ref.py | 149 + intersight/models/hcl_compatibility_info.py | 24 +- .../models/hcl_compatibility_info_list.py | 6 +- .../models/hcl_compatibility_info_ref.py | 149 + intersight/models/hcl_data_import_log.py | 18 +- intersight/models/hcl_data_import_log_list.py | 6 +- intersight/models/hcl_data_import_log_ref.py | 149 + intersight/models/hcl_firmware.py | 6 +- intersight/models/hcl_firmware_ref.py | 149 + .../hcl_hardware_compatibility_profile_ref.py | 149 + intersight/models/hcl_note.py | 18 +- intersight/models/hcl_note_list.py | 6 +- intersight/models/hcl_note_ref.py | 149 + intersight/models/hcl_product.py | 6 +- intersight/models/hcl_product_ref.py | 149 + intersight/models/hcl_service_status_ref.py | 149 + .../hxdpconnector_hx_inventory_msg_ref.py | 149 + intersight/models/hyperflex_alarm.py | 24 +- intersight/models/hyperflex_alarm_list.py | 6 +- intersight/models/hyperflex_alarm_ref.py | 149 + .../models/hyperflex_auto_support_policy.py | 90 +- .../hyperflex_auto_support_policy_list.py | 6 +- .../hyperflex_auto_support_policy_ref.py | 149 + intersight/models/hyperflex_cluster.py | 30 +- intersight/models/hyperflex_cluster_list.py | 6 +- .../hyperflex_cluster_network_policy.py | 98 +- .../hyperflex_cluster_network_policy_list.py | 6 +- .../hyperflex_cluster_network_policy_ref.py | 149 + .../models/hyperflex_cluster_profile.py | 238 +- .../models/hyperflex_cluster_profile_list.py | 6 +- .../models/hyperflex_cluster_profile_ref.py | 149 + intersight/models/hyperflex_cluster_ref.py | 149 + .../hyperflex_cluster_storage_policy.py | 90 +- .../hyperflex_cluster_storage_policy_list.py | 6 +- .../hyperflex_cluster_storage_policy_ref.py | 149 + intersight/models/hyperflex_config_result.py | 168 +- .../models/hyperflex_config_result_entry.py | 539 ++ .../hyperflex_config_result_entry_list.py | 153 + .../hyperflex_config_result_entry_ref.py | 149 + .../models/hyperflex_config_result_list.py | 6 +- .../models/hyperflex_config_result_ref.py | 149 + .../models/hyperflex_credentials_ref.py | 149 + .../models/hyperflex_ext_fc_storage_policy.py | 128 +- .../hyperflex_ext_fc_storage_policy_list.py | 6 +- .../hyperflex_ext_fc_storage_policy_ref.py | 149 + .../hyperflex_ext_iscsi_storage_policy.py | 98 +- ...hyperflex_ext_iscsi_storage_policy_list.py | 6 +- .../hyperflex_ext_iscsi_storage_policy_ref.py | 149 + intersight/models/hyperflex_ip_addr_range.py | 14 +- .../models/hyperflex_ip_addr_range_ref.py | 149 + .../models/hyperflex_iterator_string.py | 6 +- .../models/hyperflex_iterator_string_ref.py | 149 + .../hyperflex_local_credential_policy.py | 150 +- .../hyperflex_local_credential_policy_list.py | 6 +- .../hyperflex_local_credential_policy_ref.py | 149 + .../models/hyperflex_mac_addr_prefix_range.py | 10 +- .../hyperflex_mac_addr_prefix_range_ref.py | 149 + .../hyperflex_managed_object_reference.py | 6 +- .../hyperflex_managed_object_reference_ref.py | 149 + intersight/models/hyperflex_named_vlan.py | 10 +- intersight/models/hyperflex_named_vlan_ref.py | 149 + intersight/models/hyperflex_named_vsan.py | 10 +- intersight/models/hyperflex_named_vsan_ref.py | 149 + .../models/hyperflex_node_config_policy.py | 94 +- .../hyperflex_node_config_policy_list.py | 6 +- .../hyperflex_node_config_policy_ref.py | 149 + intersight/models/hyperflex_node_profile.py | 152 +- .../models/hyperflex_node_profile_list.py | 6 +- .../models/hyperflex_node_profile_ref.py | 149 + .../models/hyperflex_proxy_setting_policy.py | 599 ++ .../hyperflex_proxy_setting_policy_list.py | 153 + .../hyperflex_proxy_setting_policy_ref.py | 149 + ...erflex_st_platform_cluster_healing_info.py | 6 +- ...ex_st_platform_cluster_healing_info_ref.py | 149 + ...lex_st_platform_cluster_resiliency_info.py | 6 +- ...st_platform_cluster_resiliency_info_ref.py | 149 + intersight/models/hyperflex_summary.py | 6 +- intersight/models/hyperflex_summary_ref.py | 149 + .../models/hyperflex_sys_config_policy.py | 88 +- .../hyperflex_sys_config_policy_list.py | 6 +- .../models/hyperflex_sys_config_policy_ref.py | 149 + .../models/hyperflex_ucsm_config_policy.py | 116 +- .../hyperflex_ucsm_config_policy_list.py | 6 +- .../hyperflex_ucsm_config_policy_ref.py | 149 + .../models/hyperflex_vcenter_config_policy.py | 182 +- .../hyperflex_vcenter_config_policy_list.py | 6 +- .../hyperflex_vcenter_config_policy_ref.py | 149 + .../models/hyperflex_wwxn_prefix_range.py | 153 + .../models/hyperflex_wwxn_prefix_range_ref.py | 149 + intersight/models/i18n_message.py | 181 + intersight/models/i18n_message_param.py | 153 + intersight/models/i18n_message_param_ref.py | 149 + intersight/models/i18n_message_ref.py | 149 + intersight/models/iaas_connector_pack.py | 515 ++ intersight/models/iaas_connector_pack_list.py | 153 + intersight/models/iaas_connector_pack_ref.py | 149 + intersight/models/iaas_device_status.py | 599 ++ intersight/models/iaas_device_status_list.py | 153 + intersight/models/iaas_device_status_ref.py | 149 + intersight/models/iaas_license_info.py | 487 ++ intersight/models/iaas_license_info_list.py | 153 + intersight/models/iaas_license_info_ref.py | 149 + intersight/models/iaas_license_keys_info.py | 209 + .../models/iaas_license_keys_info_ref.py | 149 + .../models/iaas_license_utilization_info.py | 209 + .../iaas_license_utilization_info_ref.py | 149 + intersight/models/iaas_ucsd_info.py | 677 ++ intersight/models/iaas_ucsd_info_list.py | 153 + intersight/models/iaas_ucsd_info_ref.py | 149 + intersight/models/iam_account.py | 72 +- intersight/models/iam_account_list.py | 6 +- intersight/models/iam_account_ref.py | 149 + intersight/models/iam_api_key.py | 24 +- intersight/models/iam_api_key_list.py | 6 +- intersight/models/iam_api_key_ref.py | 149 + .../iam_end_point_password_properties.py | 18 +- .../iam_end_point_password_properties_ref.py | 149 + intersight/models/iam_end_point_privilege.py | 32 +- .../models/iam_end_point_privilege_list.py | 6 +- .../models/iam_end_point_privilege_ref.py | 149 + intersight/models/iam_end_point_role.py | 44 +- intersight/models/iam_end_point_role_list.py | 6 +- intersight/models/iam_end_point_role_ref.py | 149 + intersight/models/iam_end_point_user.py | 34 +- .../iam_end_point_user_deploy_task_ref.py | 149 + intersight/models/iam_end_point_user_list.py | 6 +- .../models/iam_end_point_user_policy.py | 36 +- .../models/iam_end_point_user_policy_list.py | 6 +- .../models/iam_end_point_user_policy_ref.py | 149 + intersight/models/iam_end_point_user_ref.py | 149 + intersight/models/iam_end_point_user_role.py | 76 +- .../models/iam_end_point_user_role_list.py | 6 +- .../models/iam_end_point_user_role_ref.py | 149 + .../iam_end_point_user_validation_task_ref.py | 149 + intersight/models/iam_idp.py | 30 +- intersight/models/iam_idp_list.py | 6 +- intersight/models/iam_idp_ref.py | 149 + intersight/models/iam_idp_reference.py | 54 +- intersight/models/iam_idp_reference_list.py | 6 +- intersight/models/iam_idp_reference_ref.py | 149 + intersight/models/iam_ldap_base_properties.py | 78 +- .../models/iam_ldap_base_properties_ref.py | 149 + intersight/models/iam_ldap_deploy_task_ref.py | 149 + intersight/models/iam_ldap_dns_parameters.py | 10 +- .../models/iam_ldap_dns_parameters_ref.py | 149 + intersight/models/iam_ldap_group.py | 34 +- intersight/models/iam_ldap_group_list.py | 6 +- intersight/models/iam_ldap_group_ref.py | 149 + intersight/models/iam_ldap_policy.py | 56 +- intersight/models/iam_ldap_policy_list.py | 6 +- intersight/models/iam_ldap_policy_ref.py | 149 + intersight/models/iam_ldap_provider.py | 24 +- intersight/models/iam_ldap_provider_list.py | 6 +- intersight/models/iam_ldap_provider_ref.py | 149 + .../models/iam_ldap_validation_task_ref.py | 149 + intersight/models/iam_permission.py | 36 +- intersight/models/iam_permission_list.py | 6 +- intersight/models/iam_permission_ref.py | 149 + intersight/models/iam_privilege.py | 30 +- intersight/models/iam_privilege_list.py | 6 +- intersight/models/iam_privilege_ref.py | 149 + intersight/models/iam_privilege_set.py | 36 +- intersight/models/iam_privilege_set_list.py | 6 +- intersight/models/iam_privilege_set_ref.py | 149 + intersight/models/iam_qualifier.py | 24 +- intersight/models/iam_qualifier_list.py | 6 +- intersight/models/iam_qualifier_ref.py | 149 + intersight/models/iam_resource_limits.py | 24 +- intersight/models/iam_resource_limits_list.py | 6 +- intersight/models/iam_resource_limits_ref.py | 149 + intersight/models/iam_role.py | 36 +- intersight/models/iam_role_list.py | 6 +- intersight/models/iam_role_ref.py | 149 + intersight/models/iam_session.py | 24 +- intersight/models/iam_session_limits.py | 24 +- intersight/models/iam_session_limits_list.py | 6 +- intersight/models/iam_session_limits_ref.py | 149 + intersight/models/iam_session_list.py | 6 +- intersight/models/iam_session_ref.py | 149 + intersight/models/iam_sp_console_ref.py | 149 + intersight/models/iam_sp_engine_ref.py | 149 + intersight/models/iam_system.py | 54 +- intersight/models/iam_system_list.py | 6 +- intersight/models/iam_system_ref.py | 149 + intersight/models/iam_user.py | 36 +- intersight/models/iam_user_group.py | 36 +- intersight/models/iam_user_group_list.py | 6 +- intersight/models/iam_user_group_ref.py | 149 + intersight/models/iam_user_list.py | 6 +- intersight/models/iam_user_login_time_ref.py | 149 + intersight/models/iam_user_preference.py | 24 +- intersight/models/iam_user_preference_list.py | 6 +- intersight/models/iam_user_preference_ref.py | 149 + intersight/models/iam_user_ref.py | 149 + ...ctor_sd_card_image_download_message_ref.py | 149 + intersight/models/inventory_base.py | 18 +- intersight/models/inventory_base_ref.py | 149 + intersight/models/inventory_device_info.py | 52 +- .../models/inventory_device_info_list.py | 6 +- .../models/inventory_device_info_ref.py | 149 + intersight/models/inventory_dn_mo_binding.py | 24 +- .../models/inventory_dn_mo_binding_list.py | 6 +- .../models/inventory_dn_mo_binding_ref.py | 149 + .../models/inventory_generic_inventory.py | 30 +- .../inventory_generic_inventory_holder.py | 42 +- ...inventory_generic_inventory_holder_list.py | 6 +- .../inventory_generic_inventory_holder_ref.py | 149 + .../inventory_generic_inventory_list.py | 6 +- .../models/inventory_generic_inventory_ref.py | 149 + intersight/models/inventory_inventory_mo.py | 181 + .../models/inventory_inventory_mo_ref.py | 149 + intersight/models/inventory_job_info.py | 259 + intersight/models/inventory_job_info_ref.py | 149 + intersight/models/inventory_request.py | 403 + intersight/models/inventory_request_ref.py | 149 + .../inventory_scoped_inventory_task_ref.py | 149 + .../models/ipmioverlan_deploy_task_ref.py | 149 + intersight/models/ipmioverlan_policy.py | 62 +- intersight/models/ipmioverlan_policy_list.py | 6 +- intersight/models/ipmioverlan_policy_ref.py | 149 + .../models/ipmioverlan_validation_task_ref.py | 149 + intersight/models/kvm_deploy_task_ref.py | 149 + intersight/models/kvm_policy.py | 34 +- intersight/models/kvm_policy_list.py | 6 +- intersight/models/kvm_policy_ref.py | 149 + intersight/models/kvm_validation_task_ref.py | 149 + .../models/license_account_license_data.py | 54 +- .../license_account_license_data_list.py | 6 +- .../license_account_license_data_ref.py | 149 + intersight/models/license_customer_op.py | 40 +- intersight/models/license_customer_op_list.py | 6 +- intersight/models/license_customer_op_ref.py | 149 + intersight/models/license_license_info.py | 196 +- .../models/license_license_info_list.py | 6 +- intersight/models/license_license_info_ref.py | 149 + .../models/license_smartlicense_token.py | 28 +- .../models/license_smartlicense_token_list.py | 6 +- .../models/license_smartlicense_token_ref.py | 149 + .../models/license_sync_response_ref.py | 149 + intersight/models/ls_service_profile.py | 130 +- intersight/models/ls_service_profile_list.py | 6 +- intersight/models/ls_service_profile_ref.py | 149 + intersight/models/management_controller.py | 72 +- .../models/management_controller_list.py | 6 +- .../models/management_controller_ref.py | 149 + intersight/models/management_entity.py | 30 +- intersight/models/management_entity_list.py | 6 +- intersight/models/management_entity_ref.py | 149 + intersight/models/management_interface.py | 30 +- .../models/management_interface_list.py | 6 +- intersight/models/management_interface_ref.py | 149 + intersight/models/memory_array.py | 36 +- intersight/models/memory_array_list.py | 6 +- intersight/models/memory_array_ref.py | 149 + intersight/models/memory_unit.py | 30 +- intersight/models/memory_unit_list.py | 6 +- intersight/models/memory_unit_ref.py | 149 + intersight/models/meta_definition.py | 18 +- intersight/models/meta_definition_list.py | 6 +- intersight/models/meta_definition_ref.py | 149 + intersight/models/meta_prop_definition.py | 6 +- intersight/models/meta_prop_definition_ref.py | 149 + .../models/meta_relationship_definition.py | 6 +- .../meta_relationship_definition_ref.py | 149 + intersight/models/mo_base_complex_type.py | 6 +- intersight/models/mo_base_complex_type_ref.py | 149 + intersight/models/mo_base_mo.py | 18 +- intersight/models/mo_base_mo_ref.py | 149 + .../models/mo_interest_registration_ref.py | 149 + intersight/models/mo_mo_ref.py | 6 +- intersight/models/mo_mo_ref_ref.py | 149 + intersight/models/mo_tag.py | 6 +- intersight/models/mo_tag_ref.py | 149 + intersight/models/network_element.py | 66 +- intersight/models/network_element_list.py | 6 +- intersight/models/network_element_ref.py | 149 + intersight/models/network_element_summary.py | 82 +- .../models/network_element_summary_list.py | 6 +- .../models/network_element_summary_ref.py | 149 + .../models/networkconfig_deploy_task_ref.py | 149 + intersight/models/networkconfig_policy.py | 154 +- .../models/networkconfig_policy_list.py | 6 +- intersight/models/networkconfig_policy_ref.py | 149 + .../networkconfig_validation_task_ref.py | 149 + .../models/notifs_mo_subscription_ref.py | 149 + intersight/models/notifs_subscribed_ref.py | 149 + intersight/models/ntp_deploy_task_ref.py | 149 + intersight/models/ntp_policy.py | 30 +- intersight/models/ntp_policy_list.py | 6 +- intersight/models/ntp_policy_ref.py | 149 + intersight/models/ntp_validation_task_ref.py | 149 + intersight/models/oauth2_auth_token_ref.py | 149 + intersight/models/oauth_access_token.py | 221 + intersight/models/oauth_access_token_ref.py | 149 + intersight/models/oauth_oauth_user.py | 431 + intersight/models/oauth_oauth_user_list.py | 153 + intersight/models/oauth_oauth_user_ref.py | 149 + .../models/policy_abstract_config_profile.py | 28 +- .../policy_abstract_config_profile_ref.py | 149 + .../models/policy_abstract_config_result.py | 48 +- .../policy_abstract_config_result_entry.py | 513 ++ ...policy_abstract_config_result_entry_ref.py | 149 + .../policy_abstract_config_result_ref.py | 149 + intersight/models/policy_abstract_policy.py | 18 +- .../models/policy_abstract_policy_ref.py | 149 + intersight/models/policy_abstract_profile.py | 24 +- .../models/policy_abstract_profile_ref.py | 149 + intersight/models/policy_config_context.py | 22 +- .../models/policy_config_context_ref.py | 149 + .../models/policy_config_result_context.py | 6 +- .../policy_config_result_context_ref.py | 149 + intersight/models/port_group.py | 48 +- intersight/models/port_group_list.py | 6 +- intersight/models/port_group_ref.py | 149 + intersight/models/port_physical.py | 18 +- intersight/models/port_physical_ref.py | 149 + intersight/models/port_sub_group.py | 36 +- intersight/models/port_sub_group_list.py | 6 +- intersight/models/port_sub_group_ref.py | 149 + intersight/models/processor_unit.py | 30 +- intersight/models/processor_unit_list.py | 6 +- intersight/models/processor_unit_ref.py | 149 + .../qatask_execution_status_task_ref.py | 149 + .../models/qatask_expobackoff_retry_ref.py | 149 + .../models/qatask_fail_async_task_ref.py | 149 + .../models/qatask_failed_no_retry_ref.py | 149 + .../models/qatask_huu_firmware_upgrade_ref.py | 149 + .../models/qatask_initiate_download_ref.py | 149 + .../models/qatask_retry30timeout60task_ref.py | 149 + intersight/models/qatask_retry_fixed_ref.py | 149 + .../models/qatask_success_async_task_ref.py | 149 + .../models/qatask_taskin_scheuled_ref.py | 149 + .../models/qatask_timeoutwf_fixed_ref.py | 149 + intersight/models/qatask_ucs_task1_ref.py | 149 + intersight/models/qatask_ucs_task2_ref.py | 149 + intersight/models/qatask_ucs_task3_ref.py | 149 + intersight/models/qatask_ucs_task4_ref.py | 149 + intersight/models/qatask_ucs_task5_ref.py | 149 + intersight/models/qatask_ucs_task6_ref.py | 149 + intersight/models/qatask_ucs_task7_ref.py | 149 + intersight/models/qatask_ucs_task8_ref.py | 149 + intersight/models/qatask_ucs_task9_ref.py | 149 + .../models/qatask_wait_for_download_ref.py | 149 + .../qatask_wait_for_firmware_upgrade_ref.py | 149 + intersight/models/rest_api_ref.py | 149 + intersight/models/search_search_item.py | 18 +- intersight/models/search_search_item_list.py | 6 +- intersight/models/search_search_item_ref.py | 149 + intersight/models/search_suggest_item.py | 18 +- intersight/models/search_suggest_item_ref.py | 149 + intersight/models/search_tag_item.py | 18 +- intersight/models/search_tag_item_list.py | 6 +- intersight/models/search_tag_item_ref.py | 149 + intersight/models/security_unit.py | 30 +- intersight/models/security_unit_list.py | 6 +- intersight/models/security_unit_ref.py | 149 + intersight/models/server_config_change.py | 6 +- .../models/server_config_change_detail.py | 6 +- .../models/server_config_change_detail_ref.py | 149 + .../server_config_change_details_ref.py | 149 + intersight/models/server_config_change_ref.py | 149 + intersight/models/server_config_result.py | 84 +- .../models/server_config_result_entry.py | 539 ++ .../models/server_config_result_entry_list.py | 153 + .../models/server_config_result_entry_ref.py | 149 + .../models/server_config_result_list.py | 6 +- intersight/models/server_config_result_ref.py | 149 + intersight/models/server_profile.py | 112 +- .../models/server_profile_apply_task_ref.py | 149 + intersight/models/server_profile_list.py | 6 +- intersight/models/server_profile_ref.py | 149 + .../models/server_result_handler_task_ref.py | 149 + intersight/models/smtp_deploy_task_ref.py | 149 + intersight/models/smtp_policy.py | 34 +- intersight/models/smtp_policy_list.py | 6 +- intersight/models/smtp_policy_ref.py | 149 + intersight/models/smtp_validation_task_ref.py | 149 + intersight/models/snmp_deploy_task_ref.py | 149 + intersight/models/snmp_policy.py | 62 +- intersight/models/snmp_policy_list.py | 6 +- intersight/models/snmp_policy_ref.py | 149 + intersight/models/snmp_trap.py | 208 +- intersight/models/snmp_trap_ref.py | 149 + intersight/models/snmp_user.py | 140 +- intersight/models/snmp_user_ref.py | 149 + intersight/models/snmp_validation_task_ref.py | 149 + intersight/models/sol_deploy_task_ref.py | 149 + intersight/models/sol_policy.py | 42 +- intersight/models/sol_policy_list.py | 6 +- intersight/models/sol_policy_ref.py | 149 + intersight/models/sol_validation_task_ref.py | 149 + intersight/models/ssh_deploy_task_ref.py | 149 + intersight/models/ssh_policy.py | 42 +- intersight/models/ssh_policy_list.py | 6 +- intersight/models/ssh_policy_ref.py | 149 + intersight/models/ssh_validation_task_ref.py | 149 + intersight/models/storage_controller.py | 76 +- intersight/models/storage_controller_list.py | 6 +- intersight/models/storage_controller_ref.py | 149 + intersight/models/storage_deploy_task_ref.py | 149 + .../models/storage_disk_group_policy.py | 98 +- .../models/storage_disk_group_policy_list.py | 6 +- .../models/storage_disk_group_policy_ref.py | 149 + intersight/models/storage_enclosure.py | 843 ++ intersight/models/storage_enclosure_list.py | 153 + intersight/models/storage_enclosure_ref.py | 149 + .../models/storage_flex_flash_controller.py | 90 +- .../storage_flex_flash_controller_list.py | 6 +- .../storage_flex_flash_controller_props.py | 869 ++ ...torage_flex_flash_controller_props_list.py | 153 + ...storage_flex_flash_controller_props_ref.py | 149 + .../storage_flex_flash_controller_ref.py | 149 + .../storage_flex_flash_physical_drive.py | 30 +- .../storage_flex_flash_physical_drive_list.py | 6 +- .../storage_flex_flash_physical_drive_ref.py | 149 + .../storage_flex_flash_virtual_drive.py | 739 ++ .../storage_flex_flash_virtual_drive_list.py | 153 + .../storage_flex_flash_virtual_drive_ref.py | 149 + .../models/storage_flex_util_controller.py | 84 +- .../storage_flex_util_controller_list.py | 6 +- .../storage_flex_util_controller_ref.py | 149 + .../storage_flex_util_physical_drive.py | 1051 +++ .../storage_flex_util_physical_drive_list.py | 153 + .../storage_flex_util_physical_drive_ref.py | 149 + .../models/storage_flex_util_virtual_drive.py | 661 ++ .../storage_flex_util_virtual_drive_list.py | 153 + .../storage_flex_util_virtual_drive_ref.py | 149 + intersight/models/storage_local_disk.py | 6 +- intersight/models/storage_local_disk_ref.py | 149 + intersight/models/storage_physical_disk.py | 142 +- .../models/storage_physical_disk_extension.py | 713 ++ .../storage_physical_disk_extension_list.py | 153 + .../storage_physical_disk_extension_ref.py | 149 + .../models/storage_physical_disk_list.py | 6 +- .../models/storage_physical_disk_ref.py | 149 + .../models/storage_physical_disk_usage.py | 24 +- .../storage_physical_disk_usage_list.py | 6 +- .../models/storage_physical_disk_usage_ref.py | 149 + .../models/storage_remote_key_setting.py | 42 +- .../models/storage_remote_key_setting_ref.py | 149 + intersight/models/storage_sas_expander.py | 64 +- .../models/storage_sas_expander_list.py | 6 +- intersight/models/storage_sas_expander_ref.py | 149 + intersight/models/storage_span_group.py | 10 +- intersight/models/storage_span_group_ref.py | 149 + intersight/models/storage_storage_policy.py | 132 +- .../models/storage_storage_policy_list.py | 6 +- .../models/storage_storage_policy_ref.py | 149 + .../models/storage_validation_task_ref.py | 149 + intersight/models/storage_vd_member_ep.py | 30 +- .../models/storage_vd_member_ep_list.py | 6 +- intersight/models/storage_vd_member_ep_ref.py | 149 + intersight/models/storage_virtual_drive.py | 42 +- .../models/storage_virtual_drive_config.py | 72 +- .../storage_virtual_drive_config_ref.py | 149 + .../models/storage_virtual_drive_list.py | 6 +- .../models/storage_virtual_drive_ref.py | 149 + intersight/models/task_file_download_info.py | 6 +- .../models/task_file_download_info_ref.py | 149 + intersight/models/task_ucs_task1_ref.py | 149 + intersight/models/task_ucs_task2_ref.py | 149 + intersight/models/task_ucs_task3_ref.py | 149 + intersight/models/task_ucs_task4_ref.py | 149 + intersight/models/task_ucs_task5_ref.py | 149 + intersight/models/task_ucs_task6_ref.py | 149 + intersight/models/task_ucs_task7_ref.py | 149 + intersight/models/task_ucs_task8_ref.py | 149 + intersight/models/task_ucs_task9_ref.py | 149 + intersight/models/task_workflow_action.py | 24 +- .../models/task_workflow_action_list.py | 6 +- intersight/models/task_workflow_action_ref.py | 149 + intersight/models/terminal_audit_log.py | 30 +- intersight/models/terminal_audit_log_list.py | 6 +- intersight/models/terminal_audit_log_ref.py | 149 + intersight/models/top_system.py | 48 +- intersight/models/top_system_list.py | 6 +- intersight/models/top_system_ref.py | 149 + .../ucsdconnector_inventory_message_ref.py | 149 + intersight/models/views_view.py | 18 +- intersight/models/views_view_ref.py | 149 + intersight/models/vmedia_deploy_task_ref.py | 149 + intersight/models/vmedia_mapping.py | 62 +- intersight/models/vmedia_mapping_ref.py | 149 + intersight/models/vmedia_policy.py | 46 +- intersight/models/vmedia_policy_list.py | 6 +- intersight/models/vmedia_policy_ref.py | 149 + .../models/vmedia_validation_task_ref.py | 149 + intersight/models/workflow_build_task_meta.py | 24 +- .../models/workflow_build_task_meta_list.py | 6 +- .../models/workflow_build_task_meta_ref.py | 149 + intersight/models/workflow_task_info.py | 24 +- intersight/models/workflow_task_info_list.py | 6 +- intersight/models/workflow_task_info_ref.py | 149 + intersight/models/workflow_task_meta.py | 24 +- intersight/models/workflow_task_meta_list.py | 6 +- intersight/models/workflow_task_meta_ref.py | 149 + intersight/models/workflow_task_retry_info.py | 6 +- .../models/workflow_task_retry_info_ref.py | 149 + intersight/models/workflow_workflow_info.py | 30 +- .../models/workflow_workflow_info_list.py | 6 +- .../models/workflow_workflow_info_ref.py | 149 + intersight/models/workflow_workflow_meta.py | 30 +- .../models/workflow_workflow_meta_list.py | 6 +- .../models/workflow_workflow_meta_ref.py | 149 + intersight/models/workflow_workflow_task.py | 24 +- .../models/workflow_workflow_task_list.py | 6 +- .../models/workflow_workflow_task_ref.py | 149 + intersight/rest.py | 6 +- requirements.txt | 4 +- setup.py | 12 +- 872 files changed, 86814 insertions(+), 5221 deletions(-) create mode 100644 intersight/apis/externalsite_authorization_api.py create mode 100644 intersight/apis/feedback_feedback_post_api.py create mode 100644 intersight/apis/hyperflex_config_result_entry_api.py create mode 100644 intersight/apis/hyperflex_proxy_setting_policy_api.py create mode 100644 intersight/apis/iaas_connector_pack_api.py create mode 100644 intersight/apis/iaas_device_status_api.py create mode 100644 intersight/apis/iaas_license_info_api.py create mode 100644 intersight/apis/iaas_ucsd_info_api.py create mode 100644 intersight/apis/inventory_request_api.py create mode 100644 intersight/apis/oauth_oauth_user_api.py create mode 100644 intersight/apis/server_config_result_entry_api.py create mode 100644 intersight/apis/storage_enclosure_api.py create mode 100644 intersight/apis/storage_flex_flash_controller_props_api.py create mode 100644 intersight/apis/storage_flex_flash_virtual_drive_api.py create mode 100644 intersight/apis/storage_flex_util_physical_drive_api.py create mode 100644 intersight/apis/storage_flex_util_virtual_drive_api.py create mode 100644 intersight/apis/storage_physical_disk_extension_api.py create mode 100644 intersight/models/aaa_abstract_audit_record_ref.py create mode 100644 intersight/models/aaa_audit_record_local_ref.py create mode 100644 intersight/models/aaa_audit_record_ref.py create mode 100644 intersight/models/adapter_ext_eth_interface_ref.py create mode 100644 intersight/models/adapter_host_eth_interface_ref.py create mode 100644 intersight/models/adapter_host_fc_interface_ref.py create mode 100644 intersight/models/adapter_host_iscsi_interface_ref.py create mode 100644 intersight/models/adapter_unit_ref.py create mode 100644 intersight/models/asset_device_claim_ref.py create mode 100644 intersight/models/asset_device_registration_ref.py create mode 100644 intersight/models/asset_security_token_ref.py create mode 100644 intersight/models/bios_deploy_task_ref.py create mode 100644 intersight/models/bios_policy_ref.py create mode 100644 intersight/models/bios_unit_ref.py create mode 100644 intersight/models/bios_validation_task_ref.py create mode 100644 intersight/models/boot_device_base_ref.py create mode 100644 intersight/models/boot_iscsi_ref.py create mode 100644 intersight/models/boot_local_disk_ref.py create mode 100644 intersight/models/boot_nvme_ref.py create mode 100644 intersight/models/boot_pch_storage_ref.py create mode 100644 intersight/models/boot_precision_deploy_task_ref.py create mode 100644 intersight/models/boot_precision_policy_ref.py create mode 100644 intersight/models/boot_precision_validation_task_ref.py create mode 100644 intersight/models/boot_pxe_ref.py create mode 100644 intersight/models/boot_san_ref.py create mode 100644 intersight/models/boot_sd_card_ref.py create mode 100644 intersight/models/boot_uefi_shell_ref.py create mode 100644 intersight/models/boot_usb_ref.py create mode 100644 intersight/models/boot_virtual_media_ref.py create mode 100644 intersight/models/compute_blade_ref.py create mode 100644 intersight/models/compute_board_ref.py create mode 100644 intersight/models/compute_ip_address_ref.py create mode 100644 intersight/models/compute_locator_led_operation_task_ref.py create mode 100644 intersight/models/compute_operation_result_handler_ref.py create mode 100644 intersight/models/compute_physical_ref.py create mode 100644 intersight/models/compute_physical_summary_ref.py create mode 100644 intersight/models/compute_rack_unit_ref.py create mode 100644 intersight/models/compute_server_config_ref.py create mode 100644 intersight/models/compute_server_operation_task_ref.py create mode 100644 intersight/models/compute_server_setting_ref.py create mode 100644 intersight/models/cond_alarm_ref.py create mode 100644 intersight/models/cond_hcl_status_detail_ref.py create mode 100644 intersight/models/cond_hcl_status_job_ref.py create mode 100644 intersight/models/cond_hcl_status_ref.py create mode 100644 intersight/models/connector_auth_message.py create mode 100644 intersight/models/connector_auth_message_ref.py create mode 100644 intersight/models/connector_command_message_ref.py create mode 100644 intersight/models/connector_event_channel_control_ref.py create mode 100644 intersight/models/connector_event_ref.py create mode 100644 intersight/models/connector_job_async_response_ref.py create mode 100644 intersight/models/connector_job_message_ref.py create mode 100644 intersight/models/connector_xml_api_message_ref.py create mode 100644 intersight/models/crypt_account_key_ref.py create mode 100644 intersight/models/crypt_decrypt_ref.py create mode 100644 intersight/models/crypt_encrypt_ref.py create mode 100644 intersight/models/crypt_encryption_key_ref.py create mode 100644 intersight/models/crypt_encryption_token_ref.py create mode 100644 intersight/models/deviceinfo_serial_number_info_ref.py create mode 100644 intersight/models/equipment_base_ref.py create mode 100644 intersight/models/equipment_chassis_ref.py create mode 100644 intersight/models/equipment_device_summary_ref.py create mode 100644 intersight/models/equipment_fan_module_ref.py create mode 100644 intersight/models/equipment_fan_ref.py create mode 100644 intersight/models/equipment_fex_ref.py create mode 100644 intersight/models/equipment_io_card_ref.py create mode 100644 intersight/models/equipment_locator_led_ref.py create mode 100644 intersight/models/equipment_psu_ref.py create mode 100644 intersight/models/equipment_switch_card_ref.py create mode 100644 intersight/models/equipment_system_io_controller_ref.py create mode 100644 intersight/models/ether_physical_port_ref.py create mode 100644 intersight/models/externalsite_authorization.py create mode 100644 intersight/models/externalsite_authorization_list.py create mode 100644 intersight/models/externalsite_authorization_ref.py create mode 100644 intersight/models/extsearch_app_config_ref.py create mode 100644 intersight/models/extsearch_import_ref.py create mode 100644 intersight/models/fault_instance_ref.py create mode 100644 intersight/models/fc_physical_port_ref.py create mode 100644 intersight/models/feedback_feedback_data.py create mode 100644 intersight/models/feedback_feedback_data_ref.py create mode 100644 intersight/models/feedback_feedback_post.py create mode 100644 intersight/models/feedback_feedback_post_ref.py create mode 100644 intersight/models/feedback_feedback_ref.py create mode 100644 intersight/models/feedback_feedback_settings_ref.py create mode 100644 intersight/models/feedback_history_item_ref.py create mode 100644 intersight/models/firmware_cifs_server_ref.py create mode 100644 intersight/models/firmware_direct_download_ref.py create mode 100644 intersight/models/firmware_distributable_ref.py create mode 100644 intersight/models/firmware_download_spec_ref.py create mode 100644 intersight/models/firmware_eula_ref.py create mode 100644 intersight/models/firmware_http_server_ref.py create mode 100644 intersight/models/firmware_network_share_ref.py create mode 100644 intersight/models/firmware_nfs_server_ref.py create mode 100644 intersight/models/firmware_running_firmware_ref.py create mode 100644 intersight/models/firmware_upgrade_ref.py create mode 100644 intersight/models/firmware_upgrade_status_ref.py create mode 100644 intersight/models/firmwareimc_cancel_pending_firmware_upgrade_ref.py create mode 100644 intersight/models/firmwareimc_check_for_existing_upgrade_ref.py create mode 100644 intersight/models/firmwareimc_firmware_upgrade_result_handler_ref.py create mode 100644 intersight/models/firmwareimc_huu_firmware_upgrade_ref.py create mode 100644 intersight/models/firmwareimc_initiate_download_ref.py create mode 100644 intersight/models/firmwareimc_wait_for_download_ref.py create mode 100644 intersight/models/firmwareimc_wait_for_firmware_upgrade_ref.py create mode 100644 intersight/models/graphics_card_ref.py create mode 100644 intersight/models/graphics_controller_ref.py create mode 100644 intersight/models/hcl_active_collection_node_ref.py create mode 100644 intersight/models/hcl_compatibility_info_ref.py create mode 100644 intersight/models/hcl_data_import_log_ref.py create mode 100644 intersight/models/hcl_firmware_ref.py create mode 100644 intersight/models/hcl_hardware_compatibility_profile_ref.py create mode 100644 intersight/models/hcl_note_ref.py create mode 100644 intersight/models/hcl_product_ref.py create mode 100644 intersight/models/hcl_service_status_ref.py create mode 100644 intersight/models/hxdpconnector_hx_inventory_msg_ref.py create mode 100644 intersight/models/hyperflex_alarm_ref.py create mode 100644 intersight/models/hyperflex_auto_support_policy_ref.py create mode 100644 intersight/models/hyperflex_cluster_network_policy_ref.py create mode 100644 intersight/models/hyperflex_cluster_profile_ref.py create mode 100644 intersight/models/hyperflex_cluster_ref.py create mode 100644 intersight/models/hyperflex_cluster_storage_policy_ref.py create mode 100644 intersight/models/hyperflex_config_result_entry.py create mode 100644 intersight/models/hyperflex_config_result_entry_list.py create mode 100644 intersight/models/hyperflex_config_result_entry_ref.py create mode 100644 intersight/models/hyperflex_config_result_ref.py create mode 100644 intersight/models/hyperflex_credentials_ref.py create mode 100644 intersight/models/hyperflex_ext_fc_storage_policy_ref.py create mode 100644 intersight/models/hyperflex_ext_iscsi_storage_policy_ref.py create mode 100644 intersight/models/hyperflex_ip_addr_range_ref.py create mode 100644 intersight/models/hyperflex_iterator_string_ref.py create mode 100644 intersight/models/hyperflex_local_credential_policy_ref.py create mode 100644 intersight/models/hyperflex_mac_addr_prefix_range_ref.py create mode 100644 intersight/models/hyperflex_managed_object_reference_ref.py create mode 100644 intersight/models/hyperflex_named_vlan_ref.py create mode 100644 intersight/models/hyperflex_named_vsan_ref.py create mode 100644 intersight/models/hyperflex_node_config_policy_ref.py create mode 100644 intersight/models/hyperflex_node_profile_ref.py create mode 100644 intersight/models/hyperflex_proxy_setting_policy.py create mode 100644 intersight/models/hyperflex_proxy_setting_policy_list.py create mode 100644 intersight/models/hyperflex_proxy_setting_policy_ref.py create mode 100644 intersight/models/hyperflex_st_platform_cluster_healing_info_ref.py create mode 100644 intersight/models/hyperflex_st_platform_cluster_resiliency_info_ref.py create mode 100644 intersight/models/hyperflex_summary_ref.py create mode 100644 intersight/models/hyperflex_sys_config_policy_ref.py create mode 100644 intersight/models/hyperflex_ucsm_config_policy_ref.py create mode 100644 intersight/models/hyperflex_vcenter_config_policy_ref.py create mode 100644 intersight/models/hyperflex_wwxn_prefix_range.py create mode 100644 intersight/models/hyperflex_wwxn_prefix_range_ref.py create mode 100644 intersight/models/i18n_message.py create mode 100644 intersight/models/i18n_message_param.py create mode 100644 intersight/models/i18n_message_param_ref.py create mode 100644 intersight/models/i18n_message_ref.py create mode 100644 intersight/models/iaas_connector_pack.py create mode 100644 intersight/models/iaas_connector_pack_list.py create mode 100644 intersight/models/iaas_connector_pack_ref.py create mode 100644 intersight/models/iaas_device_status.py create mode 100644 intersight/models/iaas_device_status_list.py create mode 100644 intersight/models/iaas_device_status_ref.py create mode 100644 intersight/models/iaas_license_info.py create mode 100644 intersight/models/iaas_license_info_list.py create mode 100644 intersight/models/iaas_license_info_ref.py create mode 100644 intersight/models/iaas_license_keys_info.py create mode 100644 intersight/models/iaas_license_keys_info_ref.py create mode 100644 intersight/models/iaas_license_utilization_info.py create mode 100644 intersight/models/iaas_license_utilization_info_ref.py create mode 100644 intersight/models/iaas_ucsd_info.py create mode 100644 intersight/models/iaas_ucsd_info_list.py create mode 100644 intersight/models/iaas_ucsd_info_ref.py create mode 100644 intersight/models/iam_account_ref.py create mode 100644 intersight/models/iam_api_key_ref.py create mode 100644 intersight/models/iam_end_point_password_properties_ref.py create mode 100644 intersight/models/iam_end_point_privilege_ref.py create mode 100644 intersight/models/iam_end_point_role_ref.py create mode 100644 intersight/models/iam_end_point_user_deploy_task_ref.py create mode 100644 intersight/models/iam_end_point_user_policy_ref.py create mode 100644 intersight/models/iam_end_point_user_ref.py create mode 100644 intersight/models/iam_end_point_user_role_ref.py create mode 100644 intersight/models/iam_end_point_user_validation_task_ref.py create mode 100644 intersight/models/iam_idp_ref.py create mode 100644 intersight/models/iam_idp_reference_ref.py create mode 100644 intersight/models/iam_ldap_base_properties_ref.py create mode 100644 intersight/models/iam_ldap_deploy_task_ref.py create mode 100644 intersight/models/iam_ldap_dns_parameters_ref.py create mode 100644 intersight/models/iam_ldap_group_ref.py create mode 100644 intersight/models/iam_ldap_policy_ref.py create mode 100644 intersight/models/iam_ldap_provider_ref.py create mode 100644 intersight/models/iam_ldap_validation_task_ref.py create mode 100644 intersight/models/iam_permission_ref.py create mode 100644 intersight/models/iam_privilege_ref.py create mode 100644 intersight/models/iam_privilege_set_ref.py create mode 100644 intersight/models/iam_qualifier_ref.py create mode 100644 intersight/models/iam_resource_limits_ref.py create mode 100644 intersight/models/iam_role_ref.py create mode 100644 intersight/models/iam_session_limits_ref.py create mode 100644 intersight/models/iam_session_ref.py create mode 100644 intersight/models/iam_sp_console_ref.py create mode 100644 intersight/models/iam_sp_engine_ref.py create mode 100644 intersight/models/iam_system_ref.py create mode 100644 intersight/models/iam_user_group_ref.py create mode 100644 intersight/models/iam_user_login_time_ref.py create mode 100644 intersight/models/iam_user_preference_ref.py create mode 100644 intersight/models/iam_user_ref.py create mode 100644 intersight/models/imcconnector_sd_card_image_download_message_ref.py create mode 100644 intersight/models/inventory_base_ref.py create mode 100644 intersight/models/inventory_device_info_ref.py create mode 100644 intersight/models/inventory_dn_mo_binding_ref.py create mode 100644 intersight/models/inventory_generic_inventory_holder_ref.py create mode 100644 intersight/models/inventory_generic_inventory_ref.py create mode 100644 intersight/models/inventory_inventory_mo.py create mode 100644 intersight/models/inventory_inventory_mo_ref.py create mode 100644 intersight/models/inventory_job_info.py create mode 100644 intersight/models/inventory_job_info_ref.py create mode 100644 intersight/models/inventory_request.py create mode 100644 intersight/models/inventory_request_ref.py create mode 100644 intersight/models/inventory_scoped_inventory_task_ref.py create mode 100644 intersight/models/ipmioverlan_deploy_task_ref.py create mode 100644 intersight/models/ipmioverlan_policy_ref.py create mode 100644 intersight/models/ipmioverlan_validation_task_ref.py create mode 100644 intersight/models/kvm_deploy_task_ref.py create mode 100644 intersight/models/kvm_policy_ref.py create mode 100644 intersight/models/kvm_validation_task_ref.py create mode 100644 intersight/models/license_account_license_data_ref.py create mode 100644 intersight/models/license_customer_op_ref.py create mode 100644 intersight/models/license_license_info_ref.py create mode 100644 intersight/models/license_smartlicense_token_ref.py create mode 100644 intersight/models/license_sync_response_ref.py create mode 100644 intersight/models/ls_service_profile_ref.py create mode 100644 intersight/models/management_controller_ref.py create mode 100644 intersight/models/management_entity_ref.py create mode 100644 intersight/models/management_interface_ref.py create mode 100644 intersight/models/memory_array_ref.py create mode 100644 intersight/models/memory_unit_ref.py create mode 100644 intersight/models/meta_definition_ref.py create mode 100644 intersight/models/meta_prop_definition_ref.py create mode 100644 intersight/models/meta_relationship_definition_ref.py create mode 100644 intersight/models/mo_base_complex_type_ref.py create mode 100644 intersight/models/mo_base_mo_ref.py create mode 100644 intersight/models/mo_interest_registration_ref.py create mode 100644 intersight/models/mo_mo_ref_ref.py create mode 100644 intersight/models/mo_tag_ref.py create mode 100644 intersight/models/network_element_ref.py create mode 100644 intersight/models/network_element_summary_ref.py create mode 100644 intersight/models/networkconfig_deploy_task_ref.py create mode 100644 intersight/models/networkconfig_policy_ref.py create mode 100644 intersight/models/networkconfig_validation_task_ref.py create mode 100644 intersight/models/notifs_mo_subscription_ref.py create mode 100644 intersight/models/notifs_subscribed_ref.py create mode 100644 intersight/models/ntp_deploy_task_ref.py create mode 100644 intersight/models/ntp_policy_ref.py create mode 100644 intersight/models/ntp_validation_task_ref.py create mode 100644 intersight/models/oauth2_auth_token_ref.py create mode 100644 intersight/models/oauth_access_token.py create mode 100644 intersight/models/oauth_access_token_ref.py create mode 100644 intersight/models/oauth_oauth_user.py create mode 100644 intersight/models/oauth_oauth_user_list.py create mode 100644 intersight/models/oauth_oauth_user_ref.py create mode 100644 intersight/models/policy_abstract_config_profile_ref.py create mode 100644 intersight/models/policy_abstract_config_result_entry.py create mode 100644 intersight/models/policy_abstract_config_result_entry_ref.py create mode 100644 intersight/models/policy_abstract_config_result_ref.py create mode 100644 intersight/models/policy_abstract_policy_ref.py create mode 100644 intersight/models/policy_abstract_profile_ref.py create mode 100644 intersight/models/policy_config_context_ref.py create mode 100644 intersight/models/policy_config_result_context_ref.py create mode 100644 intersight/models/port_group_ref.py create mode 100644 intersight/models/port_physical_ref.py create mode 100644 intersight/models/port_sub_group_ref.py create mode 100644 intersight/models/processor_unit_ref.py create mode 100644 intersight/models/qatask_execution_status_task_ref.py create mode 100644 intersight/models/qatask_expobackoff_retry_ref.py create mode 100644 intersight/models/qatask_fail_async_task_ref.py create mode 100644 intersight/models/qatask_failed_no_retry_ref.py create mode 100644 intersight/models/qatask_huu_firmware_upgrade_ref.py create mode 100644 intersight/models/qatask_initiate_download_ref.py create mode 100644 intersight/models/qatask_retry30timeout60task_ref.py create mode 100644 intersight/models/qatask_retry_fixed_ref.py create mode 100644 intersight/models/qatask_success_async_task_ref.py create mode 100644 intersight/models/qatask_taskin_scheuled_ref.py create mode 100644 intersight/models/qatask_timeoutwf_fixed_ref.py create mode 100644 intersight/models/qatask_ucs_task1_ref.py create mode 100644 intersight/models/qatask_ucs_task2_ref.py create mode 100644 intersight/models/qatask_ucs_task3_ref.py create mode 100644 intersight/models/qatask_ucs_task4_ref.py create mode 100644 intersight/models/qatask_ucs_task5_ref.py create mode 100644 intersight/models/qatask_ucs_task6_ref.py create mode 100644 intersight/models/qatask_ucs_task7_ref.py create mode 100644 intersight/models/qatask_ucs_task8_ref.py create mode 100644 intersight/models/qatask_ucs_task9_ref.py create mode 100644 intersight/models/qatask_wait_for_download_ref.py create mode 100644 intersight/models/qatask_wait_for_firmware_upgrade_ref.py create mode 100644 intersight/models/rest_api_ref.py create mode 100644 intersight/models/search_search_item_ref.py create mode 100644 intersight/models/search_suggest_item_ref.py create mode 100644 intersight/models/search_tag_item_ref.py create mode 100644 intersight/models/security_unit_ref.py create mode 100644 intersight/models/server_config_change_detail_ref.py create mode 100644 intersight/models/server_config_change_details_ref.py create mode 100644 intersight/models/server_config_change_ref.py create mode 100644 intersight/models/server_config_result_entry.py create mode 100644 intersight/models/server_config_result_entry_list.py create mode 100644 intersight/models/server_config_result_entry_ref.py create mode 100644 intersight/models/server_config_result_ref.py create mode 100644 intersight/models/server_profile_apply_task_ref.py create mode 100644 intersight/models/server_profile_ref.py create mode 100644 intersight/models/server_result_handler_task_ref.py create mode 100644 intersight/models/smtp_deploy_task_ref.py create mode 100644 intersight/models/smtp_policy_ref.py create mode 100644 intersight/models/smtp_validation_task_ref.py create mode 100644 intersight/models/snmp_deploy_task_ref.py create mode 100644 intersight/models/snmp_policy_ref.py create mode 100644 intersight/models/snmp_trap_ref.py create mode 100644 intersight/models/snmp_user_ref.py create mode 100644 intersight/models/snmp_validation_task_ref.py create mode 100644 intersight/models/sol_deploy_task_ref.py create mode 100644 intersight/models/sol_policy_ref.py create mode 100644 intersight/models/sol_validation_task_ref.py create mode 100644 intersight/models/ssh_deploy_task_ref.py create mode 100644 intersight/models/ssh_policy_ref.py create mode 100644 intersight/models/ssh_validation_task_ref.py create mode 100644 intersight/models/storage_controller_ref.py create mode 100644 intersight/models/storage_deploy_task_ref.py create mode 100644 intersight/models/storage_disk_group_policy_ref.py create mode 100644 intersight/models/storage_enclosure.py create mode 100644 intersight/models/storage_enclosure_list.py create mode 100644 intersight/models/storage_enclosure_ref.py create mode 100644 intersight/models/storage_flex_flash_controller_props.py create mode 100644 intersight/models/storage_flex_flash_controller_props_list.py create mode 100644 intersight/models/storage_flex_flash_controller_props_ref.py create mode 100644 intersight/models/storage_flex_flash_controller_ref.py create mode 100644 intersight/models/storage_flex_flash_physical_drive_ref.py create mode 100644 intersight/models/storage_flex_flash_virtual_drive.py create mode 100644 intersight/models/storage_flex_flash_virtual_drive_list.py create mode 100644 intersight/models/storage_flex_flash_virtual_drive_ref.py create mode 100644 intersight/models/storage_flex_util_controller_ref.py create mode 100644 intersight/models/storage_flex_util_physical_drive.py create mode 100644 intersight/models/storage_flex_util_physical_drive_list.py create mode 100644 intersight/models/storage_flex_util_physical_drive_ref.py create mode 100644 intersight/models/storage_flex_util_virtual_drive.py create mode 100644 intersight/models/storage_flex_util_virtual_drive_list.py create mode 100644 intersight/models/storage_flex_util_virtual_drive_ref.py create mode 100644 intersight/models/storage_local_disk_ref.py create mode 100644 intersight/models/storage_physical_disk_extension.py create mode 100644 intersight/models/storage_physical_disk_extension_list.py create mode 100644 intersight/models/storage_physical_disk_extension_ref.py create mode 100644 intersight/models/storage_physical_disk_ref.py create mode 100644 intersight/models/storage_physical_disk_usage_ref.py create mode 100644 intersight/models/storage_remote_key_setting_ref.py create mode 100644 intersight/models/storage_sas_expander_ref.py create mode 100644 intersight/models/storage_span_group_ref.py create mode 100644 intersight/models/storage_storage_policy_ref.py create mode 100644 intersight/models/storage_validation_task_ref.py create mode 100644 intersight/models/storage_vd_member_ep_ref.py create mode 100644 intersight/models/storage_virtual_drive_config_ref.py create mode 100644 intersight/models/storage_virtual_drive_ref.py create mode 100644 intersight/models/task_file_download_info_ref.py create mode 100644 intersight/models/task_ucs_task1_ref.py create mode 100644 intersight/models/task_ucs_task2_ref.py create mode 100644 intersight/models/task_ucs_task3_ref.py create mode 100644 intersight/models/task_ucs_task4_ref.py create mode 100644 intersight/models/task_ucs_task5_ref.py create mode 100644 intersight/models/task_ucs_task6_ref.py create mode 100644 intersight/models/task_ucs_task7_ref.py create mode 100644 intersight/models/task_ucs_task8_ref.py create mode 100644 intersight/models/task_ucs_task9_ref.py create mode 100644 intersight/models/task_workflow_action_ref.py create mode 100644 intersight/models/terminal_audit_log_ref.py create mode 100644 intersight/models/top_system_ref.py create mode 100644 intersight/models/ucsdconnector_inventory_message_ref.py create mode 100644 intersight/models/views_view_ref.py create mode 100644 intersight/models/vmedia_deploy_task_ref.py create mode 100644 intersight/models/vmedia_mapping_ref.py create mode 100644 intersight/models/vmedia_policy_ref.py create mode 100644 intersight/models/vmedia_validation_task_ref.py create mode 100644 intersight/models/workflow_build_task_meta_ref.py create mode 100644 intersight/models/workflow_task_info_ref.py create mode 100644 intersight/models/workflow_task_meta_ref.py create mode 100644 intersight/models/workflow_task_retry_info_ref.py create mode 100644 intersight/models/workflow_workflow_info_ref.py create mode 100644 intersight/models/workflow_workflow_meta_ref.py create mode 100644 intersight/models/workflow_workflow_task_ref.py diff --git a/README.md b/README.md index 4d2fa1f0..edc27621 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # intersight -This is the UCS Starship REST API +This is Intersight REST API This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: 1.0.0 +- API version: 1.0.5-612 - Package version: 1.0.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen @@ -53,9 +53,9 @@ from intersight.rest import ApiException from pprint import pprint # create an instance of the API class api_instance = intersight.AaaAuditRecordApi() -count = True # bool | The $count query option allows clients to request a count of the matching resources. (optional) -inlinecount = True # bool | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) -tags = True # bool | The 'tags' query option allows clients to request a document with tag usage summary. (optional) +count = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount = true # bool | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +tags = true # bool | The 'tags' query option allows clients to request a document with tag usage summary. (optional) top = 56 # int | The max number of records to return (optional) skip = 56 # int | The number of records to skip (optional) filter = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) @@ -74,7 +74,7 @@ except ApiException as e: ## Documentation for API Endpoints -All URIs are relative to *https://ucs.cisco.com/api/v1* +All URIs are relative to *https://intersight.com/api/v1* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- @@ -135,8 +135,6 @@ Class | Method | HTTP request | Description *CondAlarmApi* | [**cond_alarms_moid_get**](docs/CondAlarmApi.md#cond_alarms_moid_get) | **GET** /cond/Alarms/{moid} | A instance of condAlarm *CondHclStatusApi* | [**cond_hcl_statuses_get**](docs/CondHclStatusApi.md#cond_hcl_statuses_get) | **GET** /cond/HclStatuses | List of condHclStatuses *CondHclStatusApi* | [**cond_hcl_statuses_moid_get**](docs/CondHclStatusApi.md#cond_hcl_statuses_moid_get) | **GET** /cond/HclStatuses/{moid} | A instance of condHclStatus -*CondHclStatusActionApi* | [**cond_hcl_status_actions_get**](docs/CondHclStatusActionApi.md#cond_hcl_status_actions_get) | **GET** /cond/HclStatusActions | List of condHclStatusActions -*CondHclStatusActionApi* | [**cond_hcl_status_actions_moid_get**](docs/CondHclStatusActionApi.md#cond_hcl_status_actions_moid_get) | **GET** /cond/HclStatusActions/{moid} | A instance of condHclStatusAction *CondHclStatusDetailApi* | [**cond_hcl_status_details_get**](docs/CondHclStatusDetailApi.md#cond_hcl_status_details_get) | **GET** /cond/HclStatusDetails | List of condHclStatusDetails *CondHclStatusDetailApi* | [**cond_hcl_status_details_moid_get**](docs/CondHclStatusDetailApi.md#cond_hcl_status_details_moid_get) | **GET** /cond/HclStatusDetails/{moid} | A instance of condHclStatusDetail *CondHclStatusJobApi* | [**cond_hcl_status_jobs_get**](docs/CondHclStatusJobApi.md#cond_hcl_status_jobs_get) | **GET** /cond/HclStatusJobs | List of condHclStatusJobs @@ -147,12 +145,6 @@ Class | Method | HTTP request | Description *CryptEncryptionTokenApi* | [**crypt_encryption_tokens_moid_post**](docs/CryptEncryptionTokenApi.md#crypt_encryption_tokens_moid_post) | **POST** /crypt/EncryptionTokens/{moid} | Update an instance of cryptEncryptionToken *DeviceinfoSerialNumberInfoApi* | [**deviceinfo_serial_number_infos_get**](docs/DeviceinfoSerialNumberInfoApi.md#deviceinfo_serial_number_infos_get) | **GET** /deviceinfo/SerialNumberInfos | List of deviceinfoSerialNumberInfos *DeviceinfoSerialNumberInfoApi* | [**deviceinfo_serial_number_infos_moid_get**](docs/DeviceinfoSerialNumberInfoApi.md#deviceinfo_serial_number_infos_moid_get) | **GET** /deviceinfo/SerialNumberInfos/{moid} | A instance of deviceinfoSerialNumberInfo -*EpansibleRunnerApi* | [**epansible_runners_get**](docs/EpansibleRunnerApi.md#epansible_runners_get) | **GET** /epansible/Runners | List of epansibleRunners -*EpansibleRunnerApi* | [**epansible_runners_moid_delete**](docs/EpansibleRunnerApi.md#epansible_runners_moid_delete) | **DELETE** /epansible/Runners/{moid} | Delete an instance of epansibleRunner -*EpansibleRunnerApi* | [**epansible_runners_moid_get**](docs/EpansibleRunnerApi.md#epansible_runners_moid_get) | **GET** /epansible/Runners/{moid} | A instance of epansibleRunner -*EpansibleRunnerApi* | [**epansible_runners_moid_patch**](docs/EpansibleRunnerApi.md#epansible_runners_moid_patch) | **PATCH** /epansible/Runners/{moid} | Update an instance of epansibleRunner -*EpansibleRunnerApi* | [**epansible_runners_moid_post**](docs/EpansibleRunnerApi.md#epansible_runners_moid_post) | **POST** /epansible/Runners/{moid} | Update an instance of epansibleRunner -*EpansibleRunnerApi* | [**epansible_runners_post**](docs/EpansibleRunnerApi.md#epansible_runners_post) | **POST** /epansible/Runners | Create a epansibleRunner *EquipmentChassisApi* | [**equipment_chasses_get**](docs/EquipmentChassisApi.md#equipment_chasses_get) | **GET** /equipment/Chasses | List of equipmentChasses *EquipmentChassisApi* | [**equipment_chasses_moid_get**](docs/EquipmentChassisApi.md#equipment_chasses_moid_get) | **GET** /equipment/Chasses/{moid} | A instance of equipmentChassis *EquipmentChassisApi* | [**equipment_chasses_moid_patch**](docs/EquipmentChassisApi.md#equipment_chasses_moid_patch) | **PATCH** /equipment/Chasses/{moid} | Update an instance of equipmentChassis @@ -195,14 +187,11 @@ Class | Method | HTTP request | Description *EtherPhysicalPortApi* | [**ether_physical_ports_moid_get**](docs/EtherPhysicalPortApi.md#ether_physical_ports_moid_get) | **GET** /ether/PhysicalPorts/{moid} | A instance of etherPhysicalPort *EtherPhysicalPortApi* | [**ether_physical_ports_moid_patch**](docs/EtherPhysicalPortApi.md#ether_physical_ports_moid_patch) | **PATCH** /ether/PhysicalPorts/{moid} | Update an instance of etherPhysicalPort *EtherPhysicalPortApi* | [**ether_physical_ports_moid_post**](docs/EtherPhysicalPortApi.md#ether_physical_ports_moid_post) | **POST** /ether/PhysicalPorts/{moid} | Update an instance of etherPhysicalPort -*ExternalsiteAuthProfileApi* | [**externalsite_auth_profiles_get**](docs/ExternalsiteAuthProfileApi.md#externalsite_auth_profiles_get) | **GET** /externalsite/AuthProfiles | List of externalsiteAuthProfiles -*ExternalsiteAuthProfileApi* | [**externalsite_auth_profiles_moid_get**](docs/ExternalsiteAuthProfileApi.md#externalsite_auth_profiles_moid_get) | **GET** /externalsite/AuthProfiles/{moid} | A instance of externalsiteAuthProfile -*ExternalsiteAuthProfileApi* | [**externalsite_auth_profiles_moid_patch**](docs/ExternalsiteAuthProfileApi.md#externalsite_auth_profiles_moid_patch) | **PATCH** /externalsite/AuthProfiles/{moid} | Update an instance of externalsiteAuthProfile -*ExternalsiteAuthProfileApi* | [**externalsite_auth_profiles_moid_post**](docs/ExternalsiteAuthProfileApi.md#externalsite_auth_profiles_moid_post) | **POST** /externalsite/AuthProfiles/{moid} | Update an instance of externalsiteAuthProfile -*ExternalsiteAuthProfileApi* | [**externalsite_auth_profiles_post**](docs/ExternalsiteAuthProfileApi.md#externalsite_auth_profiles_post) | **POST** /externalsite/AuthProfiles | Create a externalsiteAuthProfile -*ExtsearchImportApi* | [**extsearch_imports_get**](docs/ExtsearchImportApi.md#extsearch_imports_get) | **GET** /extsearch/Imports | List of extsearchImports -*ExtsearchImportApi* | [**extsearch_imports_moid_get**](docs/ExtsearchImportApi.md#extsearch_imports_moid_get) | **GET** /extsearch/Imports/{moid} | A instance of extsearchImport -*ExtsearchImportApi* | [**extsearch_imports_post**](docs/ExtsearchImportApi.md#extsearch_imports_post) | **POST** /extsearch/Imports | Create a extsearchImport +*ExternalsiteAuthorizationApi* | [**externalsite_authorizations_get**](docs/ExternalsiteAuthorizationApi.md#externalsite_authorizations_get) | **GET** /externalsite/Authorizations | List of externalsiteAuthorizations +*ExternalsiteAuthorizationApi* | [**externalsite_authorizations_moid_get**](docs/ExternalsiteAuthorizationApi.md#externalsite_authorizations_moid_get) | **GET** /externalsite/Authorizations/{moid} | A instance of externalsiteAuthorization +*ExternalsiteAuthorizationApi* | [**externalsite_authorizations_moid_patch**](docs/ExternalsiteAuthorizationApi.md#externalsite_authorizations_moid_patch) | **PATCH** /externalsite/Authorizations/{moid} | Update an instance of externalsiteAuthorization +*ExternalsiteAuthorizationApi* | [**externalsite_authorizations_moid_post**](docs/ExternalsiteAuthorizationApi.md#externalsite_authorizations_moid_post) | **POST** /externalsite/Authorizations/{moid} | Update an instance of externalsiteAuthorization +*ExternalsiteAuthorizationApi* | [**externalsite_authorizations_post**](docs/ExternalsiteAuthorizationApi.md#externalsite_authorizations_post) | **POST** /externalsite/Authorizations | Create a externalsiteAuthorization *FaultInstanceApi* | [**fault_instances_get**](docs/FaultInstanceApi.md#fault_instances_get) | **GET** /fault/Instances | List of faultInstances *FaultInstanceApi* | [**fault_instances_moid_get**](docs/FaultInstanceApi.md#fault_instances_moid_get) | **GET** /fault/Instances/{moid} | A instance of faultInstance *FaultInstanceApi* | [**fault_instances_moid_patch**](docs/FaultInstanceApi.md#fault_instances_moid_patch) | **PATCH** /fault/Instances/{moid} | Update an instance of faultInstance @@ -211,6 +200,7 @@ Class | Method | HTTP request | Description *FcPhysicalPortApi* | [**fc_physical_ports_moid_get**](docs/FcPhysicalPortApi.md#fc_physical_ports_moid_get) | **GET** /fc/PhysicalPorts/{moid} | A instance of fcPhysicalPort *FcPhysicalPortApi* | [**fc_physical_ports_moid_patch**](docs/FcPhysicalPortApi.md#fc_physical_ports_moid_patch) | **PATCH** /fc/PhysicalPorts/{moid} | Update an instance of fcPhysicalPort *FcPhysicalPortApi* | [**fc_physical_ports_moid_post**](docs/FcPhysicalPortApi.md#fc_physical_ports_moid_post) | **POST** /fc/PhysicalPorts/{moid} | Update an instance of fcPhysicalPort +*FeedbackFeedbackPostApi* | [**feedback_feedback_posts_post**](docs/FeedbackFeedbackPostApi.md#feedback_feedback_posts_post) | **POST** /feedback/FeedbackPosts | Create a feedbackFeedbackPost *FirmwareDistributableApi* | [**firmware_distributables_get**](docs/FirmwareDistributableApi.md#firmware_distributables_get) | **GET** /firmware/Distributables | List of firmwareDistributables *FirmwareDistributableApi* | [**firmware_distributables_moid_get**](docs/FirmwareDistributableApi.md#firmware_distributables_moid_get) | **GET** /firmware/Distributables/{moid} | A instance of firmwareDistributable *FirmwareEulaApi* | [**firmware_eulas_get**](docs/FirmwareEulaApi.md#firmware_eulas_get) | **GET** /firmware/Eulas | List of firmwareEulas @@ -236,12 +226,10 @@ Class | Method | HTTP request | Description *GraphicsControllerApi* | [**graphics_controllers_moid_post**](docs/GraphicsControllerApi.md#graphics_controllers_moid_post) | **POST** /graphics/Controllers/{moid} | Update an instance of graphicsController *HclCompatibilityInfoApi* | [**hcl_compatibility_infos_get**](docs/HclCompatibilityInfoApi.md#hcl_compatibility_infos_get) | **GET** /hcl/CompatibilityInfos | List of hclCompatibilityInfos *HclCompatibilityInfoApi* | [**hcl_compatibility_infos_moid_get**](docs/HclCompatibilityInfoApi.md#hcl_compatibility_infos_moid_get) | **GET** /hcl/CompatibilityInfos/{moid} | A instance of hclCompatibilityInfo -*HclCompatibilityStatusApi* | [**hcl_compatibility_statuses_post**](docs/HclCompatibilityStatusApi.md#hcl_compatibility_statuses_post) | **POST** /hcl/CompatibilityStatuses | Create a hclCompatibilityStatus *HclDataImportLogApi* | [**hcl_data_import_logs_get**](docs/HclDataImportLogApi.md#hcl_data_import_logs_get) | **GET** /hcl/DataImportLogs | List of hclDataImportLogs *HclDataImportLogApi* | [**hcl_data_import_logs_moid_get**](docs/HclDataImportLogApi.md#hcl_data_import_logs_moid_get) | **GET** /hcl/DataImportLogs/{moid} | A instance of hclDataImportLog *HclNoteApi* | [**hcl_notes_get**](docs/HclNoteApi.md#hcl_notes_get) | **GET** /hcl/Notes | List of hclNotes *HclNoteApi* | [**hcl_notes_moid_get**](docs/HclNoteApi.md#hcl_notes_moid_get) | **GET** /hcl/Notes/{moid} | A instance of hclNote -*HclSupportedDriverNameApi* | [**hcl_supported_driver_names_post**](docs/HclSupportedDriverNameApi.md#hcl_supported_driver_names_post) | **POST** /hcl/SupportedDriverNames | Create a hclSupportedDriverName *HyperflexAlarmApi* | [**hyperflex_alarms_get**](docs/HyperflexAlarmApi.md#hyperflex_alarms_get) | **GET** /hyperflex/Alarms | List of hyperflexAlarms *HyperflexAlarmApi* | [**hyperflex_alarms_moid_delete**](docs/HyperflexAlarmApi.md#hyperflex_alarms_moid_delete) | **DELETE** /hyperflex/Alarms/{moid} | Delete an instance of hyperflexAlarm *HyperflexAlarmApi* | [**hyperflex_alarms_moid_get**](docs/HyperflexAlarmApi.md#hyperflex_alarms_moid_get) | **GET** /hyperflex/Alarms/{moid} | A instance of hyperflexAlarm @@ -277,6 +265,8 @@ Class | Method | HTTP request | Description *HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_post**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_post) | **POST** /hyperflex/ClusterStoragePolicies | Create a hyperflexClusterStoragePolicy *HyperflexConfigResultApi* | [**hyperflex_config_results_get**](docs/HyperflexConfigResultApi.md#hyperflex_config_results_get) | **GET** /hyperflex/ConfigResults | List of hyperflexConfigResults *HyperflexConfigResultApi* | [**hyperflex_config_results_moid_get**](docs/HyperflexConfigResultApi.md#hyperflex_config_results_moid_get) | **GET** /hyperflex/ConfigResults/{moid} | A instance of hyperflexConfigResult +*HyperflexConfigResultEntryApi* | [**hyperflex_config_result_entries_get**](docs/HyperflexConfigResultEntryApi.md#hyperflex_config_result_entries_get) | **GET** /hyperflex/ConfigResultEntries | List of hyperflexConfigResultEntries +*HyperflexConfigResultEntryApi* | [**hyperflex_config_result_entries_moid_get**](docs/HyperflexConfigResultEntryApi.md#hyperflex_config_result_entries_moid_get) | **GET** /hyperflex/ConfigResultEntries/{moid} | A instance of hyperflexConfigResultEntry *HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_get**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_get) | **GET** /hyperflex/ExtFcStoragePolicies | List of hyperflexExtFcStoragePolicies *HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_moid_delete**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_moid_delete) | **DELETE** /hyperflex/ExtFcStoragePolicies/{moid} | Delete an instance of hyperflexExtFcStoragePolicy *HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_moid_get**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_moid_get) | **GET** /hyperflex/ExtFcStoragePolicies/{moid} | A instance of hyperflexExtFcStoragePolicy @@ -307,6 +297,12 @@ Class | Method | HTTP request | Description *HyperflexNodeProfileApi* | [**hyperflex_node_profiles_moid_patch**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_moid_patch) | **PATCH** /hyperflex/NodeProfiles/{moid} | Update an instance of hyperflexNodeProfile *HyperflexNodeProfileApi* | [**hyperflex_node_profiles_moid_post**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_moid_post) | **POST** /hyperflex/NodeProfiles/{moid} | Update an instance of hyperflexNodeProfile *HyperflexNodeProfileApi* | [**hyperflex_node_profiles_post**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_post) | **POST** /hyperflex/NodeProfiles | Create a hyperflexNodeProfile +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_get**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_get) | **GET** /hyperflex/ProxySettingPolicies | List of hyperflexProxySettingPolicies +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_moid_delete**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_moid_delete) | **DELETE** /hyperflex/ProxySettingPolicies/{moid} | Delete an instance of hyperflexProxySettingPolicy +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_moid_get**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_moid_get) | **GET** /hyperflex/ProxySettingPolicies/{moid} | A instance of hyperflexProxySettingPolicy +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_moid_patch**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_moid_patch) | **PATCH** /hyperflex/ProxySettingPolicies/{moid} | Update an instance of hyperflexProxySettingPolicy +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_moid_post**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_moid_post) | **POST** /hyperflex/ProxySettingPolicies/{moid} | Update an instance of hyperflexProxySettingPolicy +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_post**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_post) | **POST** /hyperflex/ProxySettingPolicies | Create a hyperflexProxySettingPolicy *HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_get**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_get) | **GET** /hyperflex/SysConfigPolicies | List of hyperflexSysConfigPolicies *HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_moid_delete**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_moid_delete) | **DELETE** /hyperflex/SysConfigPolicies/{moid} | Delete an instance of hyperflexSysConfigPolicy *HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_moid_get**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_moid_get) | **GET** /hyperflex/SysConfigPolicies/{moid} | A instance of hyperflexSysConfigPolicy @@ -325,6 +321,14 @@ Class | Method | HTTP request | Description *HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_moid_patch**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_moid_patch) | **PATCH** /hyperflex/VcenterConfigPolicies/{moid} | Update an instance of hyperflexVcenterConfigPolicy *HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_moid_post**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_moid_post) | **POST** /hyperflex/VcenterConfigPolicies/{moid} | Update an instance of hyperflexVcenterConfigPolicy *HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_post**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_post) | **POST** /hyperflex/VcenterConfigPolicies | Create a hyperflexVcenterConfigPolicy +*IaasConnectorPackApi* | [**iaas_connector_packs_get**](docs/IaasConnectorPackApi.md#iaas_connector_packs_get) | **GET** /iaas/ConnectorPacks | List of iaasConnectorPacks +*IaasConnectorPackApi* | [**iaas_connector_packs_moid_get**](docs/IaasConnectorPackApi.md#iaas_connector_packs_moid_get) | **GET** /iaas/ConnectorPacks/{moid} | A instance of iaasConnectorPack +*IaasDeviceStatusApi* | [**iaas_device_statuses_get**](docs/IaasDeviceStatusApi.md#iaas_device_statuses_get) | **GET** /iaas/DeviceStatuses | List of iaasDeviceStatuses +*IaasDeviceStatusApi* | [**iaas_device_statuses_moid_get**](docs/IaasDeviceStatusApi.md#iaas_device_statuses_moid_get) | **GET** /iaas/DeviceStatuses/{moid} | A instance of iaasDeviceStatus +*IaasLicenseInfoApi* | [**iaas_license_infos_get**](docs/IaasLicenseInfoApi.md#iaas_license_infos_get) | **GET** /iaas/LicenseInfos | List of iaasLicenseInfos +*IaasLicenseInfoApi* | [**iaas_license_infos_moid_get**](docs/IaasLicenseInfoApi.md#iaas_license_infos_moid_get) | **GET** /iaas/LicenseInfos/{moid} | A instance of iaasLicenseInfo +*IaasUcsdInfoApi* | [**iaas_ucsd_infos_get**](docs/IaasUcsdInfoApi.md#iaas_ucsd_infos_get) | **GET** /iaas/UcsdInfos | List of iaasUcsdInfos +*IaasUcsdInfoApi* | [**iaas_ucsd_infos_moid_get**](docs/IaasUcsdInfoApi.md#iaas_ucsd_infos_moid_get) | **GET** /iaas/UcsdInfos/{moid} | A instance of iaasUcsdInfo *IamAccountApi* | [**iam_accounts_get**](docs/IamAccountApi.md#iam_accounts_get) | **GET** /iam/Accounts | List of iamAccounts *IamAccountApi* | [**iam_accounts_moid_delete**](docs/IamAccountApi.md#iam_accounts_moid_delete) | **DELETE** /iam/Accounts/{moid} | Delete an instance of iamAccount *IamAccountApi* | [**iam_accounts_moid_get**](docs/IamAccountApi.md#iam_accounts_moid_get) | **GET** /iam/Accounts/{moid} | A instance of iamAccount @@ -424,6 +428,7 @@ Class | Method | HTTP request | Description *InventoryGenericInventoryHolderApi* | [**inventory_generic_inventory_holders_moid_get**](docs/InventoryGenericInventoryHolderApi.md#inventory_generic_inventory_holders_moid_get) | **GET** /inventory/GenericInventoryHolders/{moid} | A instance of inventoryGenericInventoryHolder *InventoryGenericInventoryHolderApi* | [**inventory_generic_inventory_holders_moid_patch**](docs/InventoryGenericInventoryHolderApi.md#inventory_generic_inventory_holders_moid_patch) | **PATCH** /inventory/GenericInventoryHolders/{moid} | Update an instance of inventoryGenericInventoryHolder *InventoryGenericInventoryHolderApi* | [**inventory_generic_inventory_holders_moid_post**](docs/InventoryGenericInventoryHolderApi.md#inventory_generic_inventory_holders_moid_post) | **POST** /inventory/GenericInventoryHolders/{moid} | Update an instance of inventoryGenericInventoryHolder +*InventoryRequestApi* | [**inventory_requests_post**](docs/InventoryRequestApi.md#inventory_requests_post) | **POST** /inventory/Requests | Create a inventoryRequest *IpmioverlanPolicyApi* | [**ipmioverlan_policies_get**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_get) | **GET** /ipmioverlan/Policies | List of ipmioverlanPolicies *IpmioverlanPolicyApi* | [**ipmioverlan_policies_moid_delete**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_moid_delete) | **DELETE** /ipmioverlan/Policies/{moid} | Delete an instance of ipmioverlanPolicy *IpmioverlanPolicyApi* | [**ipmioverlan_policies_moid_get**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_moid_get) | **GET** /ipmioverlan/Policies/{moid} | A instance of ipmioverlanPolicy @@ -495,24 +500,12 @@ Class | Method | HTTP request | Description *NtpPolicyApi* | [**ntp_policies_moid_patch**](docs/NtpPolicyApi.md#ntp_policies_moid_patch) | **PATCH** /ntp/Policies/{moid} | Update an instance of ntpPolicy *NtpPolicyApi* | [**ntp_policies_moid_post**](docs/NtpPolicyApi.md#ntp_policies_moid_post) | **POST** /ntp/Policies/{moid} | Update an instance of ntpPolicy *NtpPolicyApi* | [**ntp_policies_post**](docs/NtpPolicyApi.md#ntp_policies_post) | **POST** /ntp/Policies | Create a ntpPolicy -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_get**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_get) | **GET** /packagemanagement/ConnectorDeployPolicies | List of packagemanagementConnectorDeployPolicies -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_moid_delete**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_moid_delete) | **DELETE** /packagemanagement/ConnectorDeployPolicies/{moid} | Delete an instance of packagemanagementConnectorDeployPolicy -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_moid_get**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_moid_get) | **GET** /packagemanagement/ConnectorDeployPolicies/{moid} | A instance of packagemanagementConnectorDeployPolicy -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_moid_patch**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_moid_patch) | **PATCH** /packagemanagement/ConnectorDeployPolicies/{moid} | Update an instance of packagemanagementConnectorDeployPolicy -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_moid_post**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_moid_post) | **POST** /packagemanagement/ConnectorDeployPolicies/{moid} | Update an instance of packagemanagementConnectorDeployPolicy -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_post**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_post) | **POST** /packagemanagement/ConnectorDeployPolicies | Create a packagemanagementConnectorDeployPolicy -*PackagemanagementConnectorImageApi* | [**packagemanagement_connector_images_get**](docs/PackagemanagementConnectorImageApi.md#packagemanagement_connector_images_get) | **GET** /packagemanagement/ConnectorImages | List of packagemanagementConnectorImages -*PackagemanagementConnectorImageApi* | [**packagemanagement_connector_images_moid_delete**](docs/PackagemanagementConnectorImageApi.md#packagemanagement_connector_images_moid_delete) | **DELETE** /packagemanagement/ConnectorImages/{moid} | Delete an instance of packagemanagementConnectorImage -*PackagemanagementConnectorImageApi* | [**packagemanagement_connector_images_moid_get**](docs/PackagemanagementConnectorImageApi.md#packagemanagement_connector_images_moid_get) | **GET** /packagemanagement/ConnectorImages/{moid} | A instance of packagemanagementConnectorImage -*PackagemanagementConnectorImageApi* | [**packagemanagement_connector_images_post**](docs/PackagemanagementConnectorImageApi.md#packagemanagement_connector_images_post) | **POST** /packagemanagement/ConnectorImages | Create a packagemanagementConnectorImage -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_get**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_get) | **GET** /packagemanagement/ConnectorInstalls | List of packagemanagementConnectorInstalls -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_moid_delete**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_moid_delete) | **DELETE** /packagemanagement/ConnectorInstalls/{moid} | Delete an instance of packagemanagementConnectorInstall -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_moid_get**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_moid_get) | **GET** /packagemanagement/ConnectorInstalls/{moid} | A instance of packagemanagementConnectorInstall -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_moid_patch**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_moid_patch) | **PATCH** /packagemanagement/ConnectorInstalls/{moid} | Update an instance of packagemanagementConnectorInstall -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_moid_post**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_moid_post) | **POST** /packagemanagement/ConnectorInstalls/{moid} | Update an instance of packagemanagementConnectorInstall -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_post**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_post) | **POST** /packagemanagement/ConnectorInstalls | Create a packagemanagementConnectorInstall -*PolicyPolicyMetaApi* | [**policy_policy_meta_get**](docs/PolicyPolicyMetaApi.md#policy_policy_meta_get) | **GET** /policy/PolicyMeta | List of policyPolicyMeta -*PolicyPolicyMetaApi* | [**policy_policy_meta_moid_get**](docs/PolicyPolicyMetaApi.md#policy_policy_meta_moid_get) | **GET** /policy/PolicyMeta/{moid} | A instance of policyPolicyMeta +*OauthOauthUserApi* | [**oauth_oauth_users_get**](docs/OauthOauthUserApi.md#oauth_oauth_users_get) | **GET** /oauth/OauthUsers | List of oauthOauthUsers +*OauthOauthUserApi* | [**oauth_oauth_users_moid_delete**](docs/OauthOauthUserApi.md#oauth_oauth_users_moid_delete) | **DELETE** /oauth/OauthUsers/{moid} | Delete an instance of oauthOauthUser +*OauthOauthUserApi* | [**oauth_oauth_users_moid_get**](docs/OauthOauthUserApi.md#oauth_oauth_users_moid_get) | **GET** /oauth/OauthUsers/{moid} | A instance of oauthOauthUser +*OauthOauthUserApi* | [**oauth_oauth_users_moid_patch**](docs/OauthOauthUserApi.md#oauth_oauth_users_moid_patch) | **PATCH** /oauth/OauthUsers/{moid} | Update an instance of oauthOauthUser +*OauthOauthUserApi* | [**oauth_oauth_users_moid_post**](docs/OauthOauthUserApi.md#oauth_oauth_users_moid_post) | **POST** /oauth/OauthUsers/{moid} | Update an instance of oauthOauthUser +*OauthOauthUserApi* | [**oauth_oauth_users_post**](docs/OauthOauthUserApi.md#oauth_oauth_users_post) | **POST** /oauth/OauthUsers | Create a oauthOauthUser *PortGroupApi* | [**port_groups_get**](docs/PortGroupApi.md#port_groups_get) | **GET** /port/Groups | List of portGroups *PortGroupApi* | [**port_groups_moid_get**](docs/PortGroupApi.md#port_groups_moid_get) | **GET** /port/Groups/{moid} | A instance of portGroup *PortGroupApi* | [**port_groups_moid_patch**](docs/PortGroupApi.md#port_groups_moid_patch) | **PATCH** /port/Groups/{moid} | Update an instance of portGroup @@ -536,6 +529,8 @@ Class | Method | HTTP request | Description *SecurityUnitApi* | [**security_units_moid_post**](docs/SecurityUnitApi.md#security_units_moid_post) | **POST** /security/Units/{moid} | Update an instance of securityUnit *ServerConfigResultApi* | [**server_config_results_get**](docs/ServerConfigResultApi.md#server_config_results_get) | **GET** /server/ConfigResults | List of serverConfigResults *ServerConfigResultApi* | [**server_config_results_moid_get**](docs/ServerConfigResultApi.md#server_config_results_moid_get) | **GET** /server/ConfigResults/{moid} | A instance of serverConfigResult +*ServerConfigResultEntryApi* | [**server_config_result_entries_get**](docs/ServerConfigResultEntryApi.md#server_config_result_entries_get) | **GET** /server/ConfigResultEntries | List of serverConfigResultEntries +*ServerConfigResultEntryApi* | [**server_config_result_entries_moid_get**](docs/ServerConfigResultEntryApi.md#server_config_result_entries_moid_get) | **GET** /server/ConfigResultEntries/{moid} | A instance of serverConfigResultEntry *ServerProfileApi* | [**server_profiles_get**](docs/ServerProfileApi.md#server_profiles_get) | **GET** /server/Profiles | List of serverProfiles *ServerProfileApi* | [**server_profiles_moid_delete**](docs/ServerProfileApi.md#server_profiles_moid_delete) | **DELETE** /server/Profiles/{moid} | Delete an instance of serverProfile *ServerProfileApi* | [**server_profiles_moid_get**](docs/ServerProfileApi.md#server_profiles_moid_get) | **GET** /server/Profiles/{moid} | A instance of serverProfile @@ -576,22 +571,46 @@ Class | Method | HTTP request | Description *StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_moid_patch**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_moid_patch) | **PATCH** /storage/DiskGroupPolicies/{moid} | Update an instance of storageDiskGroupPolicy *StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_moid_post**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_moid_post) | **POST** /storage/DiskGroupPolicies/{moid} | Update an instance of storageDiskGroupPolicy *StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_post**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_post) | **POST** /storage/DiskGroupPolicies | Create a storageDiskGroupPolicy +*StorageEnclosureApi* | [**storage_enclosures_get**](docs/StorageEnclosureApi.md#storage_enclosures_get) | **GET** /storage/Enclosures | List of storageEnclosures +*StorageEnclosureApi* | [**storage_enclosures_moid_get**](docs/StorageEnclosureApi.md#storage_enclosures_moid_get) | **GET** /storage/Enclosures/{moid} | A instance of storageEnclosure +*StorageEnclosureApi* | [**storage_enclosures_moid_patch**](docs/StorageEnclosureApi.md#storage_enclosures_moid_patch) | **PATCH** /storage/Enclosures/{moid} | Update an instance of storageEnclosure +*StorageEnclosureApi* | [**storage_enclosures_moid_post**](docs/StorageEnclosureApi.md#storage_enclosures_moid_post) | **POST** /storage/Enclosures/{moid} | Update an instance of storageEnclosure *StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_get**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_get) | **GET** /storage/FlexFlashControllers | List of storageFlexFlashControllers *StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_moid_get**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_moid_get) | **GET** /storage/FlexFlashControllers/{moid} | A instance of storageFlexFlashController *StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_moid_patch**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_moid_patch) | **PATCH** /storage/FlexFlashControllers/{moid} | Update an instance of storageFlexFlashController *StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_moid_post**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_moid_post) | **POST** /storage/FlexFlashControllers/{moid} | Update an instance of storageFlexFlashController +*StorageFlexFlashControllerPropsApi* | [**storage_flex_flash_controller_props_get**](docs/StorageFlexFlashControllerPropsApi.md#storage_flex_flash_controller_props_get) | **GET** /storage/FlexFlashControllerProps | List of storageFlexFlashControllerProps +*StorageFlexFlashControllerPropsApi* | [**storage_flex_flash_controller_props_moid_get**](docs/StorageFlexFlashControllerPropsApi.md#storage_flex_flash_controller_props_moid_get) | **GET** /storage/FlexFlashControllerProps/{moid} | A instance of storageFlexFlashControllerProps +*StorageFlexFlashControllerPropsApi* | [**storage_flex_flash_controller_props_moid_patch**](docs/StorageFlexFlashControllerPropsApi.md#storage_flex_flash_controller_props_moid_patch) | **PATCH** /storage/FlexFlashControllerProps/{moid} | Update an instance of storageFlexFlashControllerProps +*StorageFlexFlashControllerPropsApi* | [**storage_flex_flash_controller_props_moid_post**](docs/StorageFlexFlashControllerPropsApi.md#storage_flex_flash_controller_props_moid_post) | **POST** /storage/FlexFlashControllerProps/{moid} | Update an instance of storageFlexFlashControllerProps *StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_get**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_get) | **GET** /storage/FlexFlashPhysicalDrives | List of storageFlexFlashPhysicalDrives *StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_moid_get**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_moid_get) | **GET** /storage/FlexFlashPhysicalDrives/{moid} | A instance of storageFlexFlashPhysicalDrive *StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_moid_patch**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_moid_patch) | **PATCH** /storage/FlexFlashPhysicalDrives/{moid} | Update an instance of storageFlexFlashPhysicalDrive *StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_moid_post**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_moid_post) | **POST** /storage/FlexFlashPhysicalDrives/{moid} | Update an instance of storageFlexFlashPhysicalDrive +*StorageFlexFlashVirtualDriveApi* | [**storage_flex_flash_virtual_drives_get**](docs/StorageFlexFlashVirtualDriveApi.md#storage_flex_flash_virtual_drives_get) | **GET** /storage/FlexFlashVirtualDrives | List of storageFlexFlashVirtualDrives +*StorageFlexFlashVirtualDriveApi* | [**storage_flex_flash_virtual_drives_moid_get**](docs/StorageFlexFlashVirtualDriveApi.md#storage_flex_flash_virtual_drives_moid_get) | **GET** /storage/FlexFlashVirtualDrives/{moid} | A instance of storageFlexFlashVirtualDrive +*StorageFlexFlashVirtualDriveApi* | [**storage_flex_flash_virtual_drives_moid_patch**](docs/StorageFlexFlashVirtualDriveApi.md#storage_flex_flash_virtual_drives_moid_patch) | **PATCH** /storage/FlexFlashVirtualDrives/{moid} | Update an instance of storageFlexFlashVirtualDrive +*StorageFlexFlashVirtualDriveApi* | [**storage_flex_flash_virtual_drives_moid_post**](docs/StorageFlexFlashVirtualDriveApi.md#storage_flex_flash_virtual_drives_moid_post) | **POST** /storage/FlexFlashVirtualDrives/{moid} | Update an instance of storageFlexFlashVirtualDrive *StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_get**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_get) | **GET** /storage/FlexUtilControllers | List of storageFlexUtilControllers *StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_moid_get**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_moid_get) | **GET** /storage/FlexUtilControllers/{moid} | A instance of storageFlexUtilController *StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_moid_patch**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_moid_patch) | **PATCH** /storage/FlexUtilControllers/{moid} | Update an instance of storageFlexUtilController *StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_moid_post**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_moid_post) | **POST** /storage/FlexUtilControllers/{moid} | Update an instance of storageFlexUtilController +*StorageFlexUtilPhysicalDriveApi* | [**storage_flex_util_physical_drives_get**](docs/StorageFlexUtilPhysicalDriveApi.md#storage_flex_util_physical_drives_get) | **GET** /storage/FlexUtilPhysicalDrives | List of storageFlexUtilPhysicalDrives +*StorageFlexUtilPhysicalDriveApi* | [**storage_flex_util_physical_drives_moid_get**](docs/StorageFlexUtilPhysicalDriveApi.md#storage_flex_util_physical_drives_moid_get) | **GET** /storage/FlexUtilPhysicalDrives/{moid} | A instance of storageFlexUtilPhysicalDrive +*StorageFlexUtilPhysicalDriveApi* | [**storage_flex_util_physical_drives_moid_patch**](docs/StorageFlexUtilPhysicalDriveApi.md#storage_flex_util_physical_drives_moid_patch) | **PATCH** /storage/FlexUtilPhysicalDrives/{moid} | Update an instance of storageFlexUtilPhysicalDrive +*StorageFlexUtilPhysicalDriveApi* | [**storage_flex_util_physical_drives_moid_post**](docs/StorageFlexUtilPhysicalDriveApi.md#storage_flex_util_physical_drives_moid_post) | **POST** /storage/FlexUtilPhysicalDrives/{moid} | Update an instance of storageFlexUtilPhysicalDrive +*StorageFlexUtilVirtualDriveApi* | [**storage_flex_util_virtual_drives_get**](docs/StorageFlexUtilVirtualDriveApi.md#storage_flex_util_virtual_drives_get) | **GET** /storage/FlexUtilVirtualDrives | List of storageFlexUtilVirtualDrives +*StorageFlexUtilVirtualDriveApi* | [**storage_flex_util_virtual_drives_moid_get**](docs/StorageFlexUtilVirtualDriveApi.md#storage_flex_util_virtual_drives_moid_get) | **GET** /storage/FlexUtilVirtualDrives/{moid} | A instance of storageFlexUtilVirtualDrive +*StorageFlexUtilVirtualDriveApi* | [**storage_flex_util_virtual_drives_moid_patch**](docs/StorageFlexUtilVirtualDriveApi.md#storage_flex_util_virtual_drives_moid_patch) | **PATCH** /storage/FlexUtilVirtualDrives/{moid} | Update an instance of storageFlexUtilVirtualDrive +*StorageFlexUtilVirtualDriveApi* | [**storage_flex_util_virtual_drives_moid_post**](docs/StorageFlexUtilVirtualDriveApi.md#storage_flex_util_virtual_drives_moid_post) | **POST** /storage/FlexUtilVirtualDrives/{moid} | Update an instance of storageFlexUtilVirtualDrive *StoragePhysicalDiskApi* | [**storage_physical_disks_get**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_get) | **GET** /storage/PhysicalDisks | List of storagePhysicalDisks *StoragePhysicalDiskApi* | [**storage_physical_disks_moid_get**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_moid_get) | **GET** /storage/PhysicalDisks/{moid} | A instance of storagePhysicalDisk *StoragePhysicalDiskApi* | [**storage_physical_disks_moid_patch**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_moid_patch) | **PATCH** /storage/PhysicalDisks/{moid} | Update an instance of storagePhysicalDisk *StoragePhysicalDiskApi* | [**storage_physical_disks_moid_post**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_moid_post) | **POST** /storage/PhysicalDisks/{moid} | Update an instance of storagePhysicalDisk +*StoragePhysicalDiskExtensionApi* | [**storage_physical_disk_extensions_get**](docs/StoragePhysicalDiskExtensionApi.md#storage_physical_disk_extensions_get) | **GET** /storage/PhysicalDiskExtensions | List of storagePhysicalDiskExtensions +*StoragePhysicalDiskExtensionApi* | [**storage_physical_disk_extensions_moid_get**](docs/StoragePhysicalDiskExtensionApi.md#storage_physical_disk_extensions_moid_get) | **GET** /storage/PhysicalDiskExtensions/{moid} | A instance of storagePhysicalDiskExtension +*StoragePhysicalDiskExtensionApi* | [**storage_physical_disk_extensions_moid_patch**](docs/StoragePhysicalDiskExtensionApi.md#storage_physical_disk_extensions_moid_patch) | **PATCH** /storage/PhysicalDiskExtensions/{moid} | Update an instance of storagePhysicalDiskExtension +*StoragePhysicalDiskExtensionApi* | [**storage_physical_disk_extensions_moid_post**](docs/StoragePhysicalDiskExtensionApi.md#storage_physical_disk_extensions_moid_post) | **POST** /storage/PhysicalDiskExtensions/{moid} | Update an instance of storagePhysicalDiskExtension *StoragePhysicalDiskUsageApi* | [**storage_physical_disk_usages_get**](docs/StoragePhysicalDiskUsageApi.md#storage_physical_disk_usages_get) | **GET** /storage/PhysicalDiskUsages | List of storagePhysicalDiskUsages *StoragePhysicalDiskUsageApi* | [**storage_physical_disk_usages_moid_get**](docs/StoragePhysicalDiskUsageApi.md#storage_physical_disk_usages_moid_get) | **GET** /storage/PhysicalDiskUsages/{moid} | A instance of storagePhysicalDiskUsage *StoragePhysicalDiskUsageApi* | [**storage_physical_disk_usages_moid_patch**](docs/StoragePhysicalDiskUsageApi.md#storage_physical_disk_usages_moid_patch) | **PATCH** /storage/PhysicalDiskUsages/{moid} | Update an instance of storagePhysicalDiskUsage @@ -619,14 +638,6 @@ Class | Method | HTTP request | Description *TaskWorkflowActionApi* | [**task_workflow_actions_moid_patch**](docs/TaskWorkflowActionApi.md#task_workflow_actions_moid_patch) | **PATCH** /task/WorkflowActions/{moid} | Update an instance of taskWorkflowAction *TaskWorkflowActionApi* | [**task_workflow_actions_moid_post**](docs/TaskWorkflowActionApi.md#task_workflow_actions_moid_post) | **POST** /task/WorkflowActions/{moid} | Update an instance of taskWorkflowAction *TaskWorkflowActionApi* | [**task_workflow_actions_post**](docs/TaskWorkflowActionApi.md#task_workflow_actions_post) | **POST** /task/WorkflowActions | Create a taskWorkflowAction -*TechsupportmanagementDownloadApi* | [**techsupportmanagement_downloads_get**](docs/TechsupportmanagementDownloadApi.md#techsupportmanagement_downloads_get) | **GET** /techsupportmanagement/Downloads | List of techsupportmanagementDownloads -*TechsupportmanagementDownloadApi* | [**techsupportmanagement_downloads_moid_get**](docs/TechsupportmanagementDownloadApi.md#techsupportmanagement_downloads_moid_get) | **GET** /techsupportmanagement/Downloads/{moid} | A instance of techsupportmanagementDownload -*TechsupportmanagementTechSupportBundleApi* | [**techsupportmanagement_tech_support_bundles_get**](docs/TechsupportmanagementTechSupportBundleApi.md#techsupportmanagement_tech_support_bundles_get) | **GET** /techsupportmanagement/TechSupportBundles | List of techsupportmanagementTechSupportBundles -*TechsupportmanagementTechSupportBundleApi* | [**techsupportmanagement_tech_support_bundles_moid_delete**](docs/TechsupportmanagementTechSupportBundleApi.md#techsupportmanagement_tech_support_bundles_moid_delete) | **DELETE** /techsupportmanagement/TechSupportBundles/{moid} | Delete an instance of techsupportmanagementTechSupportBundle -*TechsupportmanagementTechSupportBundleApi* | [**techsupportmanagement_tech_support_bundles_moid_get**](docs/TechsupportmanagementTechSupportBundleApi.md#techsupportmanagement_tech_support_bundles_moid_get) | **GET** /techsupportmanagement/TechSupportBundles/{moid} | A instance of techsupportmanagementTechSupportBundle -*TechsupportmanagementTechSupportBundleApi* | [**techsupportmanagement_tech_support_bundles_post**](docs/TechsupportmanagementTechSupportBundleApi.md#techsupportmanagement_tech_support_bundles_post) | **POST** /techsupportmanagement/TechSupportBundles | Create a techsupportmanagementTechSupportBundle -*TechsupportmanagementTechSupportStatusApi* | [**techsupportmanagement_tech_support_statuses_get**](docs/TechsupportmanagementTechSupportStatusApi.md#techsupportmanagement_tech_support_statuses_get) | **GET** /techsupportmanagement/TechSupportStatuses | List of techsupportmanagementTechSupportStatuses -*TechsupportmanagementTechSupportStatusApi* | [**techsupportmanagement_tech_support_statuses_moid_get**](docs/TechsupportmanagementTechSupportStatusApi.md#techsupportmanagement_tech_support_statuses_moid_get) | **GET** /techsupportmanagement/TechSupportStatuses/{moid} | A instance of techsupportmanagementTechSupportStatus *TerminalAuditLogApi* | [**terminal_audit_logs_get**](docs/TerminalAuditLogApi.md#terminal_audit_logs_get) | **GET** /terminal/AuditLogs | List of terminalAuditLogs *TerminalAuditLogApi* | [**terminal_audit_logs_moid_get**](docs/TerminalAuditLogApi.md#terminal_audit_logs_moid_get) | **GET** /terminal/AuditLogs/{moid} | A instance of terminalAuditLog *TopSystemApi* | [**top_systems_get**](docs/TopSystemApi.md#top_systems_get) | **GET** /top/Systems | List of topSystems @@ -662,15 +673,7 @@ Class | Method | HTTP request | Description - [AdapterHostIscsiInterfaceList](docs/AdapterHostIscsiInterfaceList.md) - [AdapterUnitList](docs/AdapterUnitList.md) - [AssetDeviceRegistrationList](docs/AssetDeviceRegistrationList.md) - - [BiosInputOutput](docs/BiosInputOutput.md) - - [BiosLomAndPcieSlotsConfiguration](docs/BiosLomAndPcieSlotsConfiguration.md) - - [BiosMemory](docs/BiosMemory.md) - [BiosPolicyList](docs/BiosPolicyList.md) - - [BiosPowerOrPerformance](docs/BiosPowerOrPerformance.md) - - [BiosProcessor](docs/BiosProcessor.md) - - [BiosSecurity](docs/BiosSecurity.md) - - [BiosSerialConfiguration](docs/BiosSerialConfiguration.md) - - [BiosServerManagement](docs/BiosServerManagement.md) - [BiosUnitList](docs/BiosUnitList.md) - [BootDeviceBase](docs/BootDeviceBase.md) - [BootPrecisionPolicyList](docs/BootPrecisionPolicyList.md) @@ -682,13 +685,12 @@ Class | Method | HTTP request | Description - [ComputeServerConfig](docs/ComputeServerConfig.md) - [ComputeServerSettingList](docs/ComputeServerSettingList.md) - [CondAlarmList](docs/CondAlarmList.md) - - [CondHclStatusActionList](docs/CondHclStatusActionList.md) - [CondHclStatusDetailList](docs/CondHclStatusDetailList.md) - [CondHclStatusJobList](docs/CondHclStatusJobList.md) - [CondHclStatusList](docs/CondHclStatusList.md) + - [ConnectorAuthMessage](docs/ConnectorAuthMessage.md) - [CryptEncryptionTokenList](docs/CryptEncryptionTokenList.md) - [DeviceinfoSerialNumberInfoList](docs/DeviceinfoSerialNumberInfoList.md) - - [EpansibleRunnerList](docs/EpansibleRunnerList.md) - [EquipmentChassisList](docs/EquipmentChassisList.md) - [EquipmentDeviceSummaryList](docs/EquipmentDeviceSummaryList.md) - [EquipmentFanList](docs/EquipmentFanList.md) @@ -701,10 +703,10 @@ Class | Method | HTTP request | Description - [EquipmentSystemIoControllerList](docs/EquipmentSystemIoControllerList.md) - [Error](docs/Error.md) - [EtherPhysicalPortList](docs/EtherPhysicalPortList.md) - - [ExternalsiteAuthProfileList](docs/ExternalsiteAuthProfileList.md) - - [ExtsearchImportList](docs/ExtsearchImportList.md) + - [ExternalsiteAuthorizationList](docs/ExternalsiteAuthorizationList.md) - [FaultInstanceList](docs/FaultInstanceList.md) - [FcPhysicalPortList](docs/FcPhysicalPortList.md) + - [FeedbackFeedbackData](docs/FeedbackFeedbackData.md) - [FirmwareCifsServer](docs/FirmwareCifsServer.md) - [FirmwareDirectDownload](docs/FirmwareDirectDownload.md) - [FirmwareDistributableList](docs/FirmwareDistributableList.md) @@ -720,7 +722,6 @@ Class | Method | HTTP request | Description - [HclCompatibilityInfoList](docs/HclCompatibilityInfoList.md) - [HclDataImportLogList](docs/HclDataImportLogList.md) - [HclFirmware](docs/HclFirmware.md) - - [HclHardwareCompatibilityProfile](docs/HclHardwareCompatibilityProfile.md) - [HclNoteList](docs/HclNoteList.md) - [HclProduct](docs/HclProduct.md) - [HyperflexAlarmList](docs/HyperflexAlarmList.md) @@ -729,6 +730,7 @@ Class | Method | HTTP request | Description - [HyperflexClusterNetworkPolicyList](docs/HyperflexClusterNetworkPolicyList.md) - [HyperflexClusterProfileList](docs/HyperflexClusterProfileList.md) - [HyperflexClusterStoragePolicyList](docs/HyperflexClusterStoragePolicyList.md) + - [HyperflexConfigResultEntryList](docs/HyperflexConfigResultEntryList.md) - [HyperflexConfigResultList](docs/HyperflexConfigResultList.md) - [HyperflexExtFcStoragePolicyList](docs/HyperflexExtFcStoragePolicyList.md) - [HyperflexExtIscsiStoragePolicyList](docs/HyperflexExtIscsiStoragePolicyList.md) @@ -741,13 +743,22 @@ Class | Method | HTTP request | Description - [HyperflexNamedVsan](docs/HyperflexNamedVsan.md) - [HyperflexNodeConfigPolicyList](docs/HyperflexNodeConfigPolicyList.md) - [HyperflexNodeProfileList](docs/HyperflexNodeProfileList.md) + - [HyperflexProxySettingPolicyList](docs/HyperflexProxySettingPolicyList.md) - [HyperflexStPlatformClusterHealingInfo](docs/HyperflexStPlatformClusterHealingInfo.md) - [HyperflexStPlatformClusterResiliencyInfo](docs/HyperflexStPlatformClusterResiliencyInfo.md) - [HyperflexSummary](docs/HyperflexSummary.md) - [HyperflexSysConfigPolicyList](docs/HyperflexSysConfigPolicyList.md) - [HyperflexUcsmConfigPolicyList](docs/HyperflexUcsmConfigPolicyList.md) - [HyperflexVcenterConfigPolicyList](docs/HyperflexVcenterConfigPolicyList.md) - - [HyperflexWwxnRange](docs/HyperflexWwxnRange.md) + - [HyperflexWwxnPrefixRange](docs/HyperflexWwxnPrefixRange.md) + - [I18nMessage](docs/I18nMessage.md) + - [I18nMessageParam](docs/I18nMessageParam.md) + - [IaasConnectorPackList](docs/IaasConnectorPackList.md) + - [IaasDeviceStatusList](docs/IaasDeviceStatusList.md) + - [IaasLicenseInfoList](docs/IaasLicenseInfoList.md) + - [IaasLicenseKeysInfo](docs/IaasLicenseKeysInfo.md) + - [IaasLicenseUtilizationInfo](docs/IaasLicenseUtilizationInfo.md) + - [IaasUcsdInfoList](docs/IaasUcsdInfoList.md) - [IamAccountList](docs/IamAccountList.md) - [IamApiKeyList](docs/IamApiKeyList.md) - [IamEndPointPasswordProperties](docs/IamEndPointPasswordProperties.md) @@ -779,6 +790,8 @@ Class | Method | HTTP request | Description - [InventoryDnMoBindingList](docs/InventoryDnMoBindingList.md) - [InventoryGenericInventoryHolderList](docs/InventoryGenericInventoryHolderList.md) - [InventoryGenericInventoryList](docs/InventoryGenericInventoryList.md) + - [InventoryInventoryMo](docs/InventoryInventoryMo.md) + - [InventoryJobInfo](docs/InventoryJobInfo.md) - [IpmioverlanPolicyList](docs/IpmioverlanPolicyList.md) - [KvmPolicyList](docs/KvmPolicyList.md) - [LicenseAccountLicenseDataList](docs/LicenseAccountLicenseDataList.md) @@ -802,17 +815,10 @@ Class | Method | HTTP request | Description - [NetworkElementSummaryList](docs/NetworkElementSummaryList.md) - [NetworkconfigPolicyList](docs/NetworkconfigPolicyList.md) - [NtpPolicyList](docs/NtpPolicyList.md) - - [PackagemanagementConnectorDeployPolicyList](docs/PackagemanagementConnectorDeployPolicyList.md) - - [PackagemanagementConnectorImageList](docs/PackagemanagementConnectorImageList.md) - - [PackagemanagementConnectorInstallList](docs/PackagemanagementConnectorInstallList.md) - - [PolicyAttachableServiceObject](docs/PolicyAttachableServiceObject.md) - - [PolicyCategory](docs/PolicyCategory.md) + - [OauthAccessToken](docs/OauthAccessToken.md) + - [OauthOauthUserList](docs/OauthOauthUserList.md) - [PolicyConfigContext](docs/PolicyConfigContext.md) - [PolicyConfigResultContext](docs/PolicyConfigResultContext.md) - - [PolicyConfigResultEntry](docs/PolicyConfigResultEntry.md) - - [PolicyHardwarePlatform](docs/PolicyHardwarePlatform.md) - - [PolicyManagementPlatform](docs/PolicyManagementPlatform.md) - - [PolicyPolicyMetaList](docs/PolicyPolicyMetaList.md) - [PortGroupList](docs/PortGroupList.md) - [PortSubGroupList](docs/PortSubGroupList.md) - [ProcessorUnitList](docs/ProcessorUnitList.md) @@ -821,6 +827,7 @@ Class | Method | HTTP request | Description - [SecurityUnitList](docs/SecurityUnitList.md) - [ServerConfigChange](docs/ServerConfigChange.md) - [ServerConfigChangeDetail](docs/ServerConfigChangeDetail.md) + - [ServerConfigResultEntryList](docs/ServerConfigResultEntryList.md) - [ServerConfigResultList](docs/ServerConfigResultList.md) - [ServerProfileList](docs/ServerProfileList.md) - [SmtpPolicyList](docs/SmtpPolicyList.md) @@ -831,10 +838,16 @@ Class | Method | HTTP request | Description - [SshPolicyList](docs/SshPolicyList.md) - [StorageControllerList](docs/StorageControllerList.md) - [StorageDiskGroupPolicyList](docs/StorageDiskGroupPolicyList.md) + - [StorageEnclosureList](docs/StorageEnclosureList.md) - [StorageFlexFlashControllerList](docs/StorageFlexFlashControllerList.md) + - [StorageFlexFlashControllerPropsList](docs/StorageFlexFlashControllerPropsList.md) - [StorageFlexFlashPhysicalDriveList](docs/StorageFlexFlashPhysicalDriveList.md) + - [StorageFlexFlashVirtualDriveList](docs/StorageFlexFlashVirtualDriveList.md) - [StorageFlexUtilControllerList](docs/StorageFlexUtilControllerList.md) + - [StorageFlexUtilPhysicalDriveList](docs/StorageFlexUtilPhysicalDriveList.md) + - [StorageFlexUtilVirtualDriveList](docs/StorageFlexUtilVirtualDriveList.md) - [StorageLocalDisk](docs/StorageLocalDisk.md) + - [StoragePhysicalDiskExtensionList](docs/StoragePhysicalDiskExtensionList.md) - [StoragePhysicalDiskList](docs/StoragePhysicalDiskList.md) - [StoragePhysicalDiskUsageList](docs/StoragePhysicalDiskUsageList.md) - [StorageRemoteKeySetting](docs/StorageRemoteKeySetting.md) @@ -846,9 +859,6 @@ Class | Method | HTTP request | Description - [StorageVirtualDriveList](docs/StorageVirtualDriveList.md) - [TaskFileDownloadInfo](docs/TaskFileDownloadInfo.md) - [TaskWorkflowActionList](docs/TaskWorkflowActionList.md) - - [TechsupportmanagementDownloadList](docs/TechsupportmanagementDownloadList.md) - - [TechsupportmanagementTechSupportBundleList](docs/TechsupportmanagementTechSupportBundleList.md) - - [TechsupportmanagementTechSupportStatusList](docs/TechsupportmanagementTechSupportStatusList.md) - [TerminalAuditLogList](docs/TerminalAuditLogList.md) - [TopSystemList](docs/TopSystemList.md) - [VmediaMapping](docs/VmediaMapping.md) @@ -861,92 +871,412 @@ Class | Method | HTTP request | Description - [WorkflowWorkflowMetaList](docs/WorkflowWorkflowMetaList.md) - [WorkflowWorkflowTaskList](docs/WorkflowWorkflowTaskList.md) - [AaaAbstractAuditRecord](docs/AaaAbstractAuditRecord.md) + - [AaaAbstractAuditRecordRef](docs/AaaAbstractAuditRecordRef.md) + - [AaaAuditRecordLocalRef](docs/AaaAuditRecordLocalRef.md) + - [AaaAuditRecordRef](docs/AaaAuditRecordRef.md) + - [AdapterExtEthInterfaceRef](docs/AdapterExtEthInterfaceRef.md) + - [AdapterHostEthInterfaceRef](docs/AdapterHostEthInterfaceRef.md) + - [AdapterHostFcInterfaceRef](docs/AdapterHostFcInterfaceRef.md) + - [AdapterHostIscsiInterfaceRef](docs/AdapterHostIscsiInterfaceRef.md) + - [AdapterUnitRef](docs/AdapterUnitRef.md) - [AssetDeviceClaim](docs/AssetDeviceClaim.md) + - [AssetDeviceClaimRef](docs/AssetDeviceClaimRef.md) - [AssetDeviceRegistration](docs/AssetDeviceRegistration.md) - - [BootIscsi](docs/BootIscsi.md) - - [BootLocalCdd](docs/BootLocalCdd.md) - - [BootLocalDisk](docs/BootLocalDisk.md) - - [BootNvme](docs/BootNvme.md) - - [BootPchStorage](docs/BootPchStorage.md) - - [BootPxe](docs/BootPxe.md) - - [BootSan](docs/BootSan.md) - - [BootSdCard](docs/BootSdCard.md) - - [BootUefiShell](docs/BootUefiShell.md) - - [BootUsb](docs/BootUsb.md) - - [BootVirtualMedia](docs/BootVirtualMedia.md) + - [AssetDeviceRegistrationRef](docs/AssetDeviceRegistrationRef.md) + - [AssetSecurityTokenRef](docs/AssetSecurityTokenRef.md) + - [BiosDeployTaskRef](docs/BiosDeployTaskRef.md) + - [BiosPolicyRef](docs/BiosPolicyRef.md) + - [BiosUnitRef](docs/BiosUnitRef.md) + - [BiosValidationTaskRef](docs/BiosValidationTaskRef.md) + - [BootDeviceBaseRef](docs/BootDeviceBaseRef.md) + - [BootIscsiRef](docs/BootIscsiRef.md) + - [BootLocalDiskRef](docs/BootLocalDiskRef.md) + - [BootNvmeRef](docs/BootNvmeRef.md) + - [BootPchStorageRef](docs/BootPchStorageRef.md) + - [BootPrecisionDeployTaskRef](docs/BootPrecisionDeployTaskRef.md) + - [BootPrecisionPolicyRef](docs/BootPrecisionPolicyRef.md) + - [BootPrecisionValidationTaskRef](docs/BootPrecisionValidationTaskRef.md) + - [BootPxeRef](docs/BootPxeRef.md) + - [BootSanRef](docs/BootSanRef.md) + - [BootSdCardRef](docs/BootSdCardRef.md) + - [BootUefiShellRef](docs/BootUefiShellRef.md) + - [BootUsbRef](docs/BootUsbRef.md) + - [BootVirtualMediaRef](docs/BootVirtualMediaRef.md) + - [ComputeBladeRef](docs/ComputeBladeRef.md) + - [ComputeBoardRef](docs/ComputeBoardRef.md) + - [ComputeIpAddressRef](docs/ComputeIpAddressRef.md) + - [ComputeLocatorLedOperationTaskRef](docs/ComputeLocatorLedOperationTaskRef.md) + - [ComputeOperationResultHandlerRef](docs/ComputeOperationResultHandlerRef.md) + - [ComputePhysicalRef](docs/ComputePhysicalRef.md) + - [ComputePhysicalSummaryRef](docs/ComputePhysicalSummaryRef.md) + - [ComputeRackUnitRef](docs/ComputeRackUnitRef.md) + - [ComputeServerConfigRef](docs/ComputeServerConfigRef.md) + - [ComputeServerOperationTaskRef](docs/ComputeServerOperationTaskRef.md) + - [ComputeServerSettingRef](docs/ComputeServerSettingRef.md) - [CondAlarm](docs/CondAlarm.md) + - [CondAlarmRef](docs/CondAlarmRef.md) - [CondHclStatus](docs/CondHclStatus.md) - - [CondHclStatusAction](docs/CondHclStatusAction.md) - [CondHclStatusDetail](docs/CondHclStatusDetail.md) + - [CondHclStatusDetailRef](docs/CondHclStatusDetailRef.md) - [CondHclStatusJob](docs/CondHclStatusJob.md) + - [CondHclStatusJobRef](docs/CondHclStatusJobRef.md) + - [CondHclStatusRef](docs/CondHclStatusRef.md) + - [ConnectorAuthMessageRef](docs/ConnectorAuthMessageRef.md) + - [ConnectorCommandMessageRef](docs/ConnectorCommandMessageRef.md) + - [ConnectorEventChannelControlRef](docs/ConnectorEventChannelControlRef.md) + - [ConnectorEventRef](docs/ConnectorEventRef.md) + - [ConnectorJobAsyncResponseRef](docs/ConnectorJobAsyncResponseRef.md) + - [ConnectorJobMessageRef](docs/ConnectorJobMessageRef.md) + - [ConnectorXmlApiMessageRef](docs/ConnectorXmlApiMessageRef.md) + - [CryptAccountKeyRef](docs/CryptAccountKeyRef.md) + - [CryptDecryptRef](docs/CryptDecryptRef.md) + - [CryptEncryptRef](docs/CryptEncryptRef.md) + - [CryptEncryptionKeyRef](docs/CryptEncryptionKeyRef.md) - [CryptEncryptionToken](docs/CryptEncryptionToken.md) + - [CryptEncryptionTokenRef](docs/CryptEncryptionTokenRef.md) - [DeviceinfoSerialNumberInfo](docs/DeviceinfoSerialNumberInfo.md) - - [EpansibleRunner](docs/EpansibleRunner.md) - - [ExternalsiteAuthProfile](docs/ExternalsiteAuthProfile.md) - - [ExtsearchImport](docs/ExtsearchImport.md) + - [DeviceinfoSerialNumberInfoRef](docs/DeviceinfoSerialNumberInfoRef.md) + - [EquipmentBaseRef](docs/EquipmentBaseRef.md) + - [EquipmentChassisRef](docs/EquipmentChassisRef.md) + - [EquipmentDeviceSummaryRef](docs/EquipmentDeviceSummaryRef.md) + - [EquipmentFanModuleRef](docs/EquipmentFanModuleRef.md) + - [EquipmentFanRef](docs/EquipmentFanRef.md) + - [EquipmentFexRef](docs/EquipmentFexRef.md) + - [EquipmentIoCardRef](docs/EquipmentIoCardRef.md) + - [EquipmentLocatorLedRef](docs/EquipmentLocatorLedRef.md) + - [EquipmentPsuRef](docs/EquipmentPsuRef.md) + - [EquipmentSwitchCardRef](docs/EquipmentSwitchCardRef.md) + - [EquipmentSystemIoControllerRef](docs/EquipmentSystemIoControllerRef.md) + - [EtherPhysicalPortRef](docs/EtherPhysicalPortRef.md) + - [ExternalsiteAuthorization](docs/ExternalsiteAuthorization.md) + - [ExternalsiteAuthorizationRef](docs/ExternalsiteAuthorizationRef.md) + - [ExtsearchAppConfigRef](docs/ExtsearchAppConfigRef.md) + - [ExtsearchImportRef](docs/ExtsearchImportRef.md) + - [FaultInstanceRef](docs/FaultInstanceRef.md) + - [FcPhysicalPortRef](docs/FcPhysicalPortRef.md) + - [FeedbackFeedbackDataRef](docs/FeedbackFeedbackDataRef.md) + - [FeedbackFeedbackPost](docs/FeedbackFeedbackPost.md) + - [FeedbackFeedbackPostRef](docs/FeedbackFeedbackPostRef.md) + - [FeedbackFeedbackRef](docs/FeedbackFeedbackRef.md) + - [FeedbackFeedbackSettingsRef](docs/FeedbackFeedbackSettingsRef.md) + - [FeedbackHistoryItemRef](docs/FeedbackHistoryItemRef.md) + - [FirmwareCifsServerRef](docs/FirmwareCifsServerRef.md) + - [FirmwareDirectDownloadRef](docs/FirmwareDirectDownloadRef.md) - [FirmwareDistributable](docs/FirmwareDistributable.md) + - [FirmwareDistributableRef](docs/FirmwareDistributableRef.md) + - [FirmwareDownloadSpecRef](docs/FirmwareDownloadSpecRef.md) - [FirmwareEula](docs/FirmwareEula.md) + - [FirmwareEulaRef](docs/FirmwareEulaRef.md) + - [FirmwareHttpServerRef](docs/FirmwareHttpServerRef.md) + - [FirmwareNetworkShareRef](docs/FirmwareNetworkShareRef.md) + - [FirmwareNfsServerRef](docs/FirmwareNfsServerRef.md) + - [FirmwareRunningFirmwareRef](docs/FirmwareRunningFirmwareRef.md) - [FirmwareUpgrade](docs/FirmwareUpgrade.md) + - [FirmwareUpgradeRef](docs/FirmwareUpgradeRef.md) - [FirmwareUpgradeStatus](docs/FirmwareUpgradeStatus.md) + - [FirmwareUpgradeStatusRef](docs/FirmwareUpgradeStatusRef.md) + - [FirmwareimcCancelPendingFirmwareUpgradeRef](docs/FirmwareimcCancelPendingFirmwareUpgradeRef.md) + - [FirmwareimcCheckForExistingUpgradeRef](docs/FirmwareimcCheckForExistingUpgradeRef.md) + - [FirmwareimcFirmwareUpgradeResultHandlerRef](docs/FirmwareimcFirmwareUpgradeResultHandlerRef.md) + - [FirmwareimcHuuFirmwareUpgradeRef](docs/FirmwareimcHuuFirmwareUpgradeRef.md) + - [FirmwareimcInitiateDownloadRef](docs/FirmwareimcInitiateDownloadRef.md) + - [FirmwareimcWaitForDownloadRef](docs/FirmwareimcWaitForDownloadRef.md) + - [FirmwareimcWaitForFirmwareUpgradeRef](docs/FirmwareimcWaitForFirmwareUpgradeRef.md) + - [GraphicsCardRef](docs/GraphicsCardRef.md) + - [GraphicsControllerRef](docs/GraphicsControllerRef.md) + - [HclActiveCollectionNodeRef](docs/HclActiveCollectionNodeRef.md) - [HclCompatibilityInfo](docs/HclCompatibilityInfo.md) - - [HclCompatibilityStatus](docs/HclCompatibilityStatus.md) + - [HclCompatibilityInfoRef](docs/HclCompatibilityInfoRef.md) - [HclDataImportLog](docs/HclDataImportLog.md) + - [HclDataImportLogRef](docs/HclDataImportLogRef.md) + - [HclFirmwareRef](docs/HclFirmwareRef.md) + - [HclHardwareCompatibilityProfileRef](docs/HclHardwareCompatibilityProfileRef.md) - [HclNote](docs/HclNote.md) - - [HclSupportedDriverName](docs/HclSupportedDriverName.md) + - [HclNoteRef](docs/HclNoteRef.md) + - [HclProductRef](docs/HclProductRef.md) + - [HclServiceStatusRef](docs/HclServiceStatusRef.md) + - [HxdpconnectorHxInventoryMsgRef](docs/HxdpconnectorHxInventoryMsgRef.md) - [HyperflexAlarm](docs/HyperflexAlarm.md) + - [HyperflexAlarmRef](docs/HyperflexAlarmRef.md) + - [HyperflexAutoSupportPolicyRef](docs/HyperflexAutoSupportPolicyRef.md) - [HyperflexCluster](docs/HyperflexCluster.md) + - [HyperflexClusterNetworkPolicyRef](docs/HyperflexClusterNetworkPolicyRef.md) + - [HyperflexClusterProfileRef](docs/HyperflexClusterProfileRef.md) + - [HyperflexClusterRef](docs/HyperflexClusterRef.md) + - [HyperflexClusterStoragePolicyRef](docs/HyperflexClusterStoragePolicyRef.md) + - [HyperflexConfigResultEntryRef](docs/HyperflexConfigResultEntryRef.md) + - [HyperflexConfigResultRef](docs/HyperflexConfigResultRef.md) + - [HyperflexCredentialsRef](docs/HyperflexCredentialsRef.md) + - [HyperflexExtFcStoragePolicyRef](docs/HyperflexExtFcStoragePolicyRef.md) + - [HyperflexExtIscsiStoragePolicyRef](docs/HyperflexExtIscsiStoragePolicyRef.md) + - [HyperflexIpAddrRangeRef](docs/HyperflexIpAddrRangeRef.md) + - [HyperflexIteratorStringRef](docs/HyperflexIteratorStringRef.md) + - [HyperflexLocalCredentialPolicyRef](docs/HyperflexLocalCredentialPolicyRef.md) + - [HyperflexMacAddrPrefixRangeRef](docs/HyperflexMacAddrPrefixRangeRef.md) + - [HyperflexManagedObjectReferenceRef](docs/HyperflexManagedObjectReferenceRef.md) + - [HyperflexNamedVlanRef](docs/HyperflexNamedVlanRef.md) + - [HyperflexNamedVsanRef](docs/HyperflexNamedVsanRef.md) + - [HyperflexNodeConfigPolicyRef](docs/HyperflexNodeConfigPolicyRef.md) + - [HyperflexNodeProfileRef](docs/HyperflexNodeProfileRef.md) + - [HyperflexProxySettingPolicyRef](docs/HyperflexProxySettingPolicyRef.md) + - [HyperflexStPlatformClusterHealingInfoRef](docs/HyperflexStPlatformClusterHealingInfoRef.md) + - [HyperflexStPlatformClusterResiliencyInfoRef](docs/HyperflexStPlatformClusterResiliencyInfoRef.md) + - [HyperflexSummaryRef](docs/HyperflexSummaryRef.md) + - [HyperflexSysConfigPolicyRef](docs/HyperflexSysConfigPolicyRef.md) + - [HyperflexUcsmConfigPolicyRef](docs/HyperflexUcsmConfigPolicyRef.md) + - [HyperflexVcenterConfigPolicyRef](docs/HyperflexVcenterConfigPolicyRef.md) + - [HyperflexWwxnPrefixRangeRef](docs/HyperflexWwxnPrefixRangeRef.md) + - [I18nMessageParamRef](docs/I18nMessageParamRef.md) + - [I18nMessageRef](docs/I18nMessageRef.md) + - [IaasConnectorPack](docs/IaasConnectorPack.md) + - [IaasConnectorPackRef](docs/IaasConnectorPackRef.md) + - [IaasDeviceStatus](docs/IaasDeviceStatus.md) + - [IaasDeviceStatusRef](docs/IaasDeviceStatusRef.md) + - [IaasLicenseInfo](docs/IaasLicenseInfo.md) + - [IaasLicenseInfoRef](docs/IaasLicenseInfoRef.md) + - [IaasLicenseKeysInfoRef](docs/IaasLicenseKeysInfoRef.md) + - [IaasLicenseUtilizationInfoRef](docs/IaasLicenseUtilizationInfoRef.md) + - [IaasUcsdInfo](docs/IaasUcsdInfo.md) + - [IaasUcsdInfoRef](docs/IaasUcsdInfoRef.md) - [IamAccount](docs/IamAccount.md) + - [IamAccountRef](docs/IamAccountRef.md) - [IamApiKey](docs/IamApiKey.md) + - [IamApiKeyRef](docs/IamApiKeyRef.md) + - [IamEndPointPasswordPropertiesRef](docs/IamEndPointPasswordPropertiesRef.md) - [IamEndPointPrivilege](docs/IamEndPointPrivilege.md) + - [IamEndPointPrivilegeRef](docs/IamEndPointPrivilegeRef.md) - [IamEndPointRole](docs/IamEndPointRole.md) + - [IamEndPointRoleRef](docs/IamEndPointRoleRef.md) - [IamEndPointUser](docs/IamEndPointUser.md) + - [IamEndPointUserDeployTaskRef](docs/IamEndPointUserDeployTaskRef.md) + - [IamEndPointUserPolicyRef](docs/IamEndPointUserPolicyRef.md) + - [IamEndPointUserRef](docs/IamEndPointUserRef.md) - [IamEndPointUserRole](docs/IamEndPointUserRole.md) + - [IamEndPointUserRoleRef](docs/IamEndPointUserRoleRef.md) + - [IamEndPointUserValidationTaskRef](docs/IamEndPointUserValidationTaskRef.md) - [IamIdp](docs/IamIdp.md) + - [IamIdpRef](docs/IamIdpRef.md) - [IamIdpReference](docs/IamIdpReference.md) + - [IamIdpReferenceRef](docs/IamIdpReferenceRef.md) + - [IamLdapBasePropertiesRef](docs/IamLdapBasePropertiesRef.md) + - [IamLdapDeployTaskRef](docs/IamLdapDeployTaskRef.md) + - [IamLdapDnsParametersRef](docs/IamLdapDnsParametersRef.md) - [IamLdapGroup](docs/IamLdapGroup.md) + - [IamLdapGroupRef](docs/IamLdapGroupRef.md) + - [IamLdapPolicyRef](docs/IamLdapPolicyRef.md) - [IamLdapProvider](docs/IamLdapProvider.md) + - [IamLdapProviderRef](docs/IamLdapProviderRef.md) + - [IamLdapValidationTaskRef](docs/IamLdapValidationTaskRef.md) - [IamPermission](docs/IamPermission.md) + - [IamPermissionRef](docs/IamPermissionRef.md) - [IamPrivilege](docs/IamPrivilege.md) + - [IamPrivilegeRef](docs/IamPrivilegeRef.md) - [IamPrivilegeSet](docs/IamPrivilegeSet.md) + - [IamPrivilegeSetRef](docs/IamPrivilegeSetRef.md) - [IamQualifier](docs/IamQualifier.md) + - [IamQualifierRef](docs/IamQualifierRef.md) - [IamResourceLimits](docs/IamResourceLimits.md) + - [IamResourceLimitsRef](docs/IamResourceLimitsRef.md) - [IamRole](docs/IamRole.md) + - [IamRoleRef](docs/IamRoleRef.md) - [IamSession](docs/IamSession.md) - [IamSessionLimits](docs/IamSessionLimits.md) + - [IamSessionLimitsRef](docs/IamSessionLimitsRef.md) + - [IamSessionRef](docs/IamSessionRef.md) + - [IamSpConsoleRef](docs/IamSpConsoleRef.md) + - [IamSpEngineRef](docs/IamSpEngineRef.md) - [IamSystem](docs/IamSystem.md) + - [IamSystemRef](docs/IamSystemRef.md) - [IamUser](docs/IamUser.md) - [IamUserGroup](docs/IamUserGroup.md) + - [IamUserGroupRef](docs/IamUserGroupRef.md) + - [IamUserLoginTimeRef](docs/IamUserLoginTimeRef.md) - [IamUserPreference](docs/IamUserPreference.md) + - [IamUserPreferenceRef](docs/IamUserPreferenceRef.md) + - [IamUserRef](docs/IamUserRef.md) + - [ImcconnectorSdCardImageDownloadMessageRef](docs/ImcconnectorSdCardImageDownloadMessageRef.md) - [InventoryBase](docs/InventoryBase.md) + - [InventoryBaseRef](docs/InventoryBaseRef.md) - [InventoryDeviceInfo](docs/InventoryDeviceInfo.md) + - [InventoryDeviceInfoRef](docs/InventoryDeviceInfoRef.md) - [InventoryDnMoBinding](docs/InventoryDnMoBinding.md) + - [InventoryDnMoBindingRef](docs/InventoryDnMoBindingRef.md) + - [InventoryGenericInventoryHolderRef](docs/InventoryGenericInventoryHolderRef.md) + - [InventoryGenericInventoryRef](docs/InventoryGenericInventoryRef.md) + - [InventoryInventoryMoRef](docs/InventoryInventoryMoRef.md) + - [InventoryJobInfoRef](docs/InventoryJobInfoRef.md) + - [InventoryRequest](docs/InventoryRequest.md) + - [InventoryRequestRef](docs/InventoryRequestRef.md) + - [InventoryScopedInventoryTaskRef](docs/InventoryScopedInventoryTaskRef.md) + - [IpmioverlanDeployTaskRef](docs/IpmioverlanDeployTaskRef.md) + - [IpmioverlanPolicyRef](docs/IpmioverlanPolicyRef.md) + - [IpmioverlanValidationTaskRef](docs/IpmioverlanValidationTaskRef.md) + - [KvmDeployTaskRef](docs/KvmDeployTaskRef.md) + - [KvmPolicyRef](docs/KvmPolicyRef.md) + - [KvmValidationTaskRef](docs/KvmValidationTaskRef.md) - [LicenseAccountLicenseData](docs/LicenseAccountLicenseData.md) + - [LicenseAccountLicenseDataRef](docs/LicenseAccountLicenseDataRef.md) - [LicenseCustomerOp](docs/LicenseCustomerOp.md) + - [LicenseCustomerOpRef](docs/LicenseCustomerOpRef.md) - [LicenseLicenseInfo](docs/LicenseLicenseInfo.md) + - [LicenseLicenseInfoRef](docs/LicenseLicenseInfoRef.md) - [LicenseSmartlicenseToken](docs/LicenseSmartlicenseToken.md) + - [LicenseSmartlicenseTokenRef](docs/LicenseSmartlicenseTokenRef.md) + - [LicenseSyncResponseRef](docs/LicenseSyncResponseRef.md) + - [LsServiceProfileRef](docs/LsServiceProfileRef.md) + - [ManagementControllerRef](docs/ManagementControllerRef.md) + - [ManagementEntityRef](docs/ManagementEntityRef.md) + - [ManagementInterfaceRef](docs/ManagementInterfaceRef.md) + - [MemoryArrayRef](docs/MemoryArrayRef.md) + - [MemoryUnitRef](docs/MemoryUnitRef.md) - [MetaDefinition](docs/MetaDefinition.md) - - [PackagemanagementConnectorDeployPolicy](docs/PackagemanagementConnectorDeployPolicy.md) - - [PackagemanagementConnectorImage](docs/PackagemanagementConnectorImage.md) - - [PackagemanagementConnectorInstall](docs/PackagemanagementConnectorInstall.md) + - [MetaDefinitionRef](docs/MetaDefinitionRef.md) + - [MetaPropDefinitionRef](docs/MetaPropDefinitionRef.md) + - [MetaRelationshipDefinitionRef](docs/MetaRelationshipDefinitionRef.md) + - [MoBaseComplexTypeRef](docs/MoBaseComplexTypeRef.md) + - [MoBaseMoRef](docs/MoBaseMoRef.md) + - [MoInterestRegistrationRef](docs/MoInterestRegistrationRef.md) + - [MoMoRefRef](docs/MoMoRefRef.md) + - [MoTagRef](docs/MoTagRef.md) + - [NetworkElementRef](docs/NetworkElementRef.md) + - [NetworkElementSummaryRef](docs/NetworkElementSummaryRef.md) + - [NetworkconfigDeployTaskRef](docs/NetworkconfigDeployTaskRef.md) + - [NetworkconfigPolicyRef](docs/NetworkconfigPolicyRef.md) + - [NetworkconfigValidationTaskRef](docs/NetworkconfigValidationTaskRef.md) + - [NotifsMoSubscriptionRef](docs/NotifsMoSubscriptionRef.md) + - [NotifsSubscribedRef](docs/NotifsSubscribedRef.md) + - [NtpDeployTaskRef](docs/NtpDeployTaskRef.md) + - [NtpPolicyRef](docs/NtpPolicyRef.md) + - [NtpValidationTaskRef](docs/NtpValidationTaskRef.md) + - [Oauth2AuthTokenRef](docs/Oauth2AuthTokenRef.md) + - [OauthAccessTokenRef](docs/OauthAccessTokenRef.md) + - [OauthOauthUser](docs/OauthOauthUser.md) + - [OauthOauthUserRef](docs/OauthOauthUserRef.md) + - [PolicyAbstractConfigProfileRef](docs/PolicyAbstractConfigProfileRef.md) - [PolicyAbstractConfigResult](docs/PolicyAbstractConfigResult.md) + - [PolicyAbstractConfigResultEntry](docs/PolicyAbstractConfigResultEntry.md) + - [PolicyAbstractConfigResultEntryRef](docs/PolicyAbstractConfigResultEntryRef.md) + - [PolicyAbstractConfigResultRef](docs/PolicyAbstractConfigResultRef.md) - [PolicyAbstractPolicy](docs/PolicyAbstractPolicy.md) + - [PolicyAbstractPolicyRef](docs/PolicyAbstractPolicyRef.md) - [PolicyAbstractProfile](docs/PolicyAbstractProfile.md) - - [PolicyPolicyMeta](docs/PolicyPolicyMeta.md) + - [PolicyAbstractProfileRef](docs/PolicyAbstractProfileRef.md) + - [PolicyConfigContextRef](docs/PolicyConfigContextRef.md) + - [PolicyConfigResultContextRef](docs/PolicyConfigResultContextRef.md) + - [PortGroupRef](docs/PortGroupRef.md) + - [PortPhysicalRef](docs/PortPhysicalRef.md) + - [PortSubGroupRef](docs/PortSubGroupRef.md) + - [ProcessorUnitRef](docs/ProcessorUnitRef.md) + - [QataskExecutionStatusTaskRef](docs/QataskExecutionStatusTaskRef.md) + - [QataskExpobackoffRetryRef](docs/QataskExpobackoffRetryRef.md) + - [QataskFailAsyncTaskRef](docs/QataskFailAsyncTaskRef.md) + - [QataskFailedNoRetryRef](docs/QataskFailedNoRetryRef.md) + - [QataskHuuFirmwareUpgradeRef](docs/QataskHuuFirmwareUpgradeRef.md) + - [QataskInitiateDownloadRef](docs/QataskInitiateDownloadRef.md) + - [QataskRetry30timeout60taskRef](docs/QataskRetry30timeout60taskRef.md) + - [QataskRetryFixedRef](docs/QataskRetryFixedRef.md) + - [QataskSuccessAsyncTaskRef](docs/QataskSuccessAsyncTaskRef.md) + - [QataskTaskinScheuledRef](docs/QataskTaskinScheuledRef.md) + - [QataskTimeoutwfFixedRef](docs/QataskTimeoutwfFixedRef.md) + - [QataskUcsTask1Ref](docs/QataskUcsTask1Ref.md) + - [QataskUcsTask2Ref](docs/QataskUcsTask2Ref.md) + - [QataskUcsTask3Ref](docs/QataskUcsTask3Ref.md) + - [QataskUcsTask4Ref](docs/QataskUcsTask4Ref.md) + - [QataskUcsTask5Ref](docs/QataskUcsTask5Ref.md) + - [QataskUcsTask6Ref](docs/QataskUcsTask6Ref.md) + - [QataskUcsTask7Ref](docs/QataskUcsTask7Ref.md) + - [QataskUcsTask8Ref](docs/QataskUcsTask8Ref.md) + - [QataskUcsTask9Ref](docs/QataskUcsTask9Ref.md) + - [QataskWaitForDownloadRef](docs/QataskWaitForDownloadRef.md) + - [QataskWaitForFirmwareUpgradeRef](docs/QataskWaitForFirmwareUpgradeRef.md) + - [RestApiRef](docs/RestApiRef.md) - [SearchSearchItem](docs/SearchSearchItem.md) + - [SearchSearchItemRef](docs/SearchSearchItemRef.md) - [SearchSuggestItem](docs/SearchSuggestItem.md) + - [SearchSuggestItemRef](docs/SearchSuggestItemRef.md) - [SearchTagItem](docs/SearchTagItem.md) + - [SearchTagItemRef](docs/SearchTagItemRef.md) + - [SecurityUnitRef](docs/SecurityUnitRef.md) + - [ServerConfigChangeDetailRef](docs/ServerConfigChangeDetailRef.md) + - [ServerConfigChangeDetailsRef](docs/ServerConfigChangeDetailsRef.md) + - [ServerConfigChangeRef](docs/ServerConfigChangeRef.md) + - [ServerConfigResultEntryRef](docs/ServerConfigResultEntryRef.md) + - [ServerConfigResultRef](docs/ServerConfigResultRef.md) + - [ServerProfileApplyTaskRef](docs/ServerProfileApplyTaskRef.md) + - [ServerProfileRef](docs/ServerProfileRef.md) + - [ServerResultHandlerTaskRef](docs/ServerResultHandlerTaskRef.md) + - [SmtpDeployTaskRef](docs/SmtpDeployTaskRef.md) + - [SmtpPolicyRef](docs/SmtpPolicyRef.md) + - [SmtpValidationTaskRef](docs/SmtpValidationTaskRef.md) + - [SnmpDeployTaskRef](docs/SnmpDeployTaskRef.md) + - [SnmpPolicyRef](docs/SnmpPolicyRef.md) + - [SnmpTrapRef](docs/SnmpTrapRef.md) + - [SnmpUserRef](docs/SnmpUserRef.md) + - [SnmpValidationTaskRef](docs/SnmpValidationTaskRef.md) + - [SolDeployTaskRef](docs/SolDeployTaskRef.md) + - [SolPolicyRef](docs/SolPolicyRef.md) + - [SolValidationTaskRef](docs/SolValidationTaskRef.md) + - [SshDeployTaskRef](docs/SshDeployTaskRef.md) + - [SshPolicyRef](docs/SshPolicyRef.md) + - [SshValidationTaskRef](docs/SshValidationTaskRef.md) + - [StorageControllerRef](docs/StorageControllerRef.md) + - [StorageDeployTaskRef](docs/StorageDeployTaskRef.md) + - [StorageDiskGroupPolicyRef](docs/StorageDiskGroupPolicyRef.md) + - [StorageEnclosureRef](docs/StorageEnclosureRef.md) + - [StorageFlexFlashControllerPropsRef](docs/StorageFlexFlashControllerPropsRef.md) + - [StorageFlexFlashControllerRef](docs/StorageFlexFlashControllerRef.md) + - [StorageFlexFlashPhysicalDriveRef](docs/StorageFlexFlashPhysicalDriveRef.md) + - [StorageFlexFlashVirtualDriveRef](docs/StorageFlexFlashVirtualDriveRef.md) + - [StorageFlexUtilControllerRef](docs/StorageFlexUtilControllerRef.md) + - [StorageFlexUtilPhysicalDriveRef](docs/StorageFlexUtilPhysicalDriveRef.md) + - [StorageFlexUtilVirtualDriveRef](docs/StorageFlexUtilVirtualDriveRef.md) + - [StorageLocalDiskRef](docs/StorageLocalDiskRef.md) + - [StoragePhysicalDiskExtensionRef](docs/StoragePhysicalDiskExtensionRef.md) + - [StoragePhysicalDiskRef](docs/StoragePhysicalDiskRef.md) + - [StoragePhysicalDiskUsageRef](docs/StoragePhysicalDiskUsageRef.md) + - [StorageRemoteKeySettingRef](docs/StorageRemoteKeySettingRef.md) + - [StorageSasExpanderRef](docs/StorageSasExpanderRef.md) + - [StorageSpanGroupRef](docs/StorageSpanGroupRef.md) + - [StorageStoragePolicyRef](docs/StorageStoragePolicyRef.md) + - [StorageValidationTaskRef](docs/StorageValidationTaskRef.md) + - [StorageVdMemberEpRef](docs/StorageVdMemberEpRef.md) + - [StorageVirtualDriveConfigRef](docs/StorageVirtualDriveConfigRef.md) + - [StorageVirtualDriveRef](docs/StorageVirtualDriveRef.md) + - [TaskFileDownloadInfoRef](docs/TaskFileDownloadInfoRef.md) + - [TaskUcsTask1Ref](docs/TaskUcsTask1Ref.md) + - [TaskUcsTask2Ref](docs/TaskUcsTask2Ref.md) + - [TaskUcsTask3Ref](docs/TaskUcsTask3Ref.md) + - [TaskUcsTask4Ref](docs/TaskUcsTask4Ref.md) + - [TaskUcsTask5Ref](docs/TaskUcsTask5Ref.md) + - [TaskUcsTask6Ref](docs/TaskUcsTask6Ref.md) + - [TaskUcsTask7Ref](docs/TaskUcsTask7Ref.md) + - [TaskUcsTask8Ref](docs/TaskUcsTask8Ref.md) + - [TaskUcsTask9Ref](docs/TaskUcsTask9Ref.md) - [TaskWorkflowAction](docs/TaskWorkflowAction.md) - - [TechsupportmanagementDownload](docs/TechsupportmanagementDownload.md) - - [TechsupportmanagementTechSupportBundle](docs/TechsupportmanagementTechSupportBundle.md) - - [TechsupportmanagementTechSupportStatus](docs/TechsupportmanagementTechSupportStatus.md) + - [TaskWorkflowActionRef](docs/TaskWorkflowActionRef.md) - [TerminalAuditLog](docs/TerminalAuditLog.md) + - [TerminalAuditLogRef](docs/TerminalAuditLogRef.md) + - [TopSystemRef](docs/TopSystemRef.md) + - [UcsdconnectorInventoryMessageRef](docs/UcsdconnectorInventoryMessageRef.md) - [ViewsView](docs/ViewsView.md) + - [ViewsViewRef](docs/ViewsViewRef.md) + - [VmediaDeployTaskRef](docs/VmediaDeployTaskRef.md) + - [VmediaMappingRef](docs/VmediaMappingRef.md) + - [VmediaPolicyRef](docs/VmediaPolicyRef.md) + - [VmediaValidationTaskRef](docs/VmediaValidationTaskRef.md) - [WorkflowBuildTaskMeta](docs/WorkflowBuildTaskMeta.md) + - [WorkflowBuildTaskMetaRef](docs/WorkflowBuildTaskMetaRef.md) - [WorkflowTaskInfo](docs/WorkflowTaskInfo.md) + - [WorkflowTaskInfoRef](docs/WorkflowTaskInfoRef.md) - [WorkflowTaskMeta](docs/WorkflowTaskMeta.md) + - [WorkflowTaskMetaRef](docs/WorkflowTaskMetaRef.md) + - [WorkflowTaskRetryInfoRef](docs/WorkflowTaskRetryInfoRef.md) - [WorkflowWorkflowInfo](docs/WorkflowWorkflowInfo.md) + - [WorkflowWorkflowInfoRef](docs/WorkflowWorkflowInfoRef.md) - [WorkflowWorkflowMeta](docs/WorkflowWorkflowMeta.md) + - [WorkflowWorkflowMetaRef](docs/WorkflowWorkflowMetaRef.md) - [WorkflowWorkflowTask](docs/WorkflowWorkflowTask.md) + - [WorkflowWorkflowTaskRef](docs/WorkflowWorkflowTaskRef.md) - [AaaAuditRecord](docs/AaaAuditRecord.md) - [BiosPolicy](docs/BiosPolicy.md) - [BootPrecisionPolicy](docs/BootPrecisionPolicy.md) @@ -961,11 +1291,13 @@ Class | Method | HTTP request | Description - [HyperflexClusterNetworkPolicy](docs/HyperflexClusterNetworkPolicy.md) - [HyperflexClusterStoragePolicy](docs/HyperflexClusterStoragePolicy.md) - [HyperflexConfigResult](docs/HyperflexConfigResult.md) + - [HyperflexConfigResultEntry](docs/HyperflexConfigResultEntry.md) - [HyperflexExtFcStoragePolicy](docs/HyperflexExtFcStoragePolicy.md) - [HyperflexExtIscsiStoragePolicy](docs/HyperflexExtIscsiStoragePolicy.md) - [HyperflexLocalCredentialPolicy](docs/HyperflexLocalCredentialPolicy.md) - [HyperflexNodeConfigPolicy](docs/HyperflexNodeConfigPolicy.md) - [HyperflexNodeProfile](docs/HyperflexNodeProfile.md) + - [HyperflexProxySettingPolicy](docs/HyperflexProxySettingPolicy.md) - [HyperflexSysConfigPolicy](docs/HyperflexSysConfigPolicy.md) - [HyperflexUcsmConfigPolicy](docs/HyperflexUcsmConfigPolicy.md) - [HyperflexVcenterConfigPolicy](docs/HyperflexVcenterConfigPolicy.md) @@ -987,12 +1319,14 @@ Class | Method | HTTP request | Description - [PortPhysical](docs/PortPhysical.md) - [PortSubGroup](docs/PortSubGroup.md) - [ServerConfigResult](docs/ServerConfigResult.md) + - [ServerConfigResultEntry](docs/ServerConfigResultEntry.md) - [SmtpPolicy](docs/SmtpPolicy.md) - [SnmpPolicy](docs/SnmpPolicy.md) - [SolPolicy](docs/SolPolicy.md) - [SshPolicy](docs/SshPolicy.md) - [StorageDiskGroupPolicy](docs/StorageDiskGroupPolicy.md) - [StorageFlexUtilController](docs/StorageFlexUtilController.md) + - [StorageFlexUtilVirtualDrive](docs/StorageFlexUtilVirtualDrive.md) - [StoragePhysicalDiskUsage](docs/StoragePhysicalDiskUsage.md) - [StorageStoragePolicy](docs/StorageStoragePolicy.md) - [StorageVdMemberEp](docs/StorageVdMemberEp.md) @@ -1026,9 +1360,14 @@ Class | Method | HTTP request | Description - [SecurityUnit](docs/SecurityUnit.md) - [ServerProfile](docs/ServerProfile.md) - [StorageController](docs/StorageController.md) + - [StorageEnclosure](docs/StorageEnclosure.md) - [StorageFlexFlashController](docs/StorageFlexFlashController.md) + - [StorageFlexFlashControllerProps](docs/StorageFlexFlashControllerProps.md) - [StorageFlexFlashPhysicalDrive](docs/StorageFlexFlashPhysicalDrive.md) + - [StorageFlexFlashVirtualDrive](docs/StorageFlexFlashVirtualDrive.md) + - [StorageFlexUtilPhysicalDrive](docs/StorageFlexUtilPhysicalDrive.md) - [StoragePhysicalDisk](docs/StoragePhysicalDisk.md) + - [StoragePhysicalDiskExtension](docs/StoragePhysicalDiskExtension.md) - [StorageSasExpander](docs/StorageSasExpander.md) - [StorageVirtualDrive](docs/StorageVirtualDrive.md) - [ComputeBlade](docs/ComputeBlade.md) diff --git a/intersight/__init__.py b/intersight/__init__.py index 1553898e..3c8d1619 100644 --- a/intersight/__init__.py +++ b/intersight/__init__.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,15 +21,7 @@ from .models.adapter_host_iscsi_interface_list import AdapterHostIscsiInterfaceList from .models.adapter_unit_list import AdapterUnitList from .models.asset_device_registration_list import AssetDeviceRegistrationList -from .models.bios_input_output import BiosInputOutput -from .models.bios_lom_and_pcie_slots_configuration import BiosLomAndPcieSlotsConfiguration -from .models.bios_memory import BiosMemory from .models.bios_policy_list import BiosPolicyList -from .models.bios_power_or_performance import BiosPowerOrPerformance -from .models.bios_processor import BiosProcessor -from .models.bios_security import BiosSecurity -from .models.bios_serial_configuration import BiosSerialConfiguration -from .models.bios_server_management import BiosServerManagement from .models.bios_unit_list import BiosUnitList from .models.boot_device_base import BootDeviceBase from .models.boot_precision_policy_list import BootPrecisionPolicyList @@ -41,13 +33,12 @@ from .models.compute_server_config import ComputeServerConfig from .models.compute_server_setting_list import ComputeServerSettingList from .models.cond_alarm_list import CondAlarmList -from .models.cond_hcl_status_action_list import CondHclStatusActionList from .models.cond_hcl_status_detail_list import CondHclStatusDetailList from .models.cond_hcl_status_job_list import CondHclStatusJobList from .models.cond_hcl_status_list import CondHclStatusList +from .models.connector_auth_message import ConnectorAuthMessage from .models.crypt_encryption_token_list import CryptEncryptionTokenList from .models.deviceinfo_serial_number_info_list import DeviceinfoSerialNumberInfoList -from .models.epansible_runner_list import EpansibleRunnerList from .models.equipment_chassis_list import EquipmentChassisList from .models.equipment_device_summary_list import EquipmentDeviceSummaryList from .models.equipment_fan_list import EquipmentFanList @@ -60,10 +51,10 @@ from .models.equipment_system_io_controller_list import EquipmentSystemIoControllerList from .models.error import Error from .models.ether_physical_port_list import EtherPhysicalPortList -from .models.externalsite_auth_profile_list import ExternalsiteAuthProfileList -from .models.extsearch_import_list import ExtsearchImportList +from .models.externalsite_authorization_list import ExternalsiteAuthorizationList from .models.fault_instance_list import FaultInstanceList from .models.fc_physical_port_list import FcPhysicalPortList +from .models.feedback_feedback_data import FeedbackFeedbackData from .models.firmware_cifs_server import FirmwareCifsServer from .models.firmware_direct_download import FirmwareDirectDownload from .models.firmware_distributable_list import FirmwareDistributableList @@ -79,7 +70,6 @@ from .models.hcl_compatibility_info_list import HclCompatibilityInfoList from .models.hcl_data_import_log_list import HclDataImportLogList from .models.hcl_firmware import HclFirmware -from .models.hcl_hardware_compatibility_profile import HclHardwareCompatibilityProfile from .models.hcl_note_list import HclNoteList from .models.hcl_product import HclProduct from .models.hyperflex_alarm_list import HyperflexAlarmList @@ -88,6 +78,7 @@ from .models.hyperflex_cluster_network_policy_list import HyperflexClusterNetworkPolicyList from .models.hyperflex_cluster_profile_list import HyperflexClusterProfileList from .models.hyperflex_cluster_storage_policy_list import HyperflexClusterStoragePolicyList +from .models.hyperflex_config_result_entry_list import HyperflexConfigResultEntryList from .models.hyperflex_config_result_list import HyperflexConfigResultList from .models.hyperflex_ext_fc_storage_policy_list import HyperflexExtFcStoragePolicyList from .models.hyperflex_ext_iscsi_storage_policy_list import HyperflexExtIscsiStoragePolicyList @@ -100,13 +91,22 @@ from .models.hyperflex_named_vsan import HyperflexNamedVsan from .models.hyperflex_node_config_policy_list import HyperflexNodeConfigPolicyList from .models.hyperflex_node_profile_list import HyperflexNodeProfileList +from .models.hyperflex_proxy_setting_policy_list import HyperflexProxySettingPolicyList from .models.hyperflex_st_platform_cluster_healing_info import HyperflexStPlatformClusterHealingInfo from .models.hyperflex_st_platform_cluster_resiliency_info import HyperflexStPlatformClusterResiliencyInfo from .models.hyperflex_summary import HyperflexSummary from .models.hyperflex_sys_config_policy_list import HyperflexSysConfigPolicyList from .models.hyperflex_ucsm_config_policy_list import HyperflexUcsmConfigPolicyList from .models.hyperflex_vcenter_config_policy_list import HyperflexVcenterConfigPolicyList -from .models.hyperflex_wwxn_range import HyperflexWwxnRange +from .models.hyperflex_wwxn_prefix_range import HyperflexWwxnPrefixRange +from .models.i18n_message import I18nMessage +from .models.i18n_message_param import I18nMessageParam +from .models.iaas_connector_pack_list import IaasConnectorPackList +from .models.iaas_device_status_list import IaasDeviceStatusList +from .models.iaas_license_info_list import IaasLicenseInfoList +from .models.iaas_license_keys_info import IaasLicenseKeysInfo +from .models.iaas_license_utilization_info import IaasLicenseUtilizationInfo +from .models.iaas_ucsd_info_list import IaasUcsdInfoList from .models.iam_account_list import IamAccountList from .models.iam_api_key_list import IamApiKeyList from .models.iam_end_point_password_properties import IamEndPointPasswordProperties @@ -138,6 +138,8 @@ from .models.inventory_dn_mo_binding_list import InventoryDnMoBindingList from .models.inventory_generic_inventory_holder_list import InventoryGenericInventoryHolderList from .models.inventory_generic_inventory_list import InventoryGenericInventoryList +from .models.inventory_inventory_mo import InventoryInventoryMo +from .models.inventory_job_info import InventoryJobInfo from .models.ipmioverlan_policy_list import IpmioverlanPolicyList from .models.kvm_policy_list import KvmPolicyList from .models.license_account_license_data_list import LicenseAccountLicenseDataList @@ -161,17 +163,10 @@ from .models.network_element_summary_list import NetworkElementSummaryList from .models.networkconfig_policy_list import NetworkconfigPolicyList from .models.ntp_policy_list import NtpPolicyList -from .models.packagemanagement_connector_deploy_policy_list import PackagemanagementConnectorDeployPolicyList -from .models.packagemanagement_connector_image_list import PackagemanagementConnectorImageList -from .models.packagemanagement_connector_install_list import PackagemanagementConnectorInstallList -from .models.policy_attachable_service_object import PolicyAttachableServiceObject -from .models.policy_category import PolicyCategory +from .models.oauth_access_token import OauthAccessToken +from .models.oauth_oauth_user_list import OauthOauthUserList from .models.policy_config_context import PolicyConfigContext from .models.policy_config_result_context import PolicyConfigResultContext -from .models.policy_config_result_entry import PolicyConfigResultEntry -from .models.policy_hardware_platform import PolicyHardwarePlatform -from .models.policy_management_platform import PolicyManagementPlatform -from .models.policy_policy_meta_list import PolicyPolicyMetaList from .models.port_group_list import PortGroupList from .models.port_sub_group_list import PortSubGroupList from .models.processor_unit_list import ProcessorUnitList @@ -180,6 +175,7 @@ from .models.security_unit_list import SecurityUnitList from .models.server_config_change import ServerConfigChange from .models.server_config_change_detail import ServerConfigChangeDetail +from .models.server_config_result_entry_list import ServerConfigResultEntryList from .models.server_config_result_list import ServerConfigResultList from .models.server_profile_list import ServerProfileList from .models.smtp_policy_list import SmtpPolicyList @@ -190,10 +186,16 @@ from .models.ssh_policy_list import SshPolicyList from .models.storage_controller_list import StorageControllerList from .models.storage_disk_group_policy_list import StorageDiskGroupPolicyList +from .models.storage_enclosure_list import StorageEnclosureList from .models.storage_flex_flash_controller_list import StorageFlexFlashControllerList +from .models.storage_flex_flash_controller_props_list import StorageFlexFlashControllerPropsList from .models.storage_flex_flash_physical_drive_list import StorageFlexFlashPhysicalDriveList +from .models.storage_flex_flash_virtual_drive_list import StorageFlexFlashVirtualDriveList from .models.storage_flex_util_controller_list import StorageFlexUtilControllerList +from .models.storage_flex_util_physical_drive_list import StorageFlexUtilPhysicalDriveList +from .models.storage_flex_util_virtual_drive_list import StorageFlexUtilVirtualDriveList from .models.storage_local_disk import StorageLocalDisk +from .models.storage_physical_disk_extension_list import StoragePhysicalDiskExtensionList from .models.storage_physical_disk_list import StoragePhysicalDiskList from .models.storage_physical_disk_usage_list import StoragePhysicalDiskUsageList from .models.storage_remote_key_setting import StorageRemoteKeySetting @@ -205,9 +207,6 @@ from .models.storage_virtual_drive_list import StorageVirtualDriveList from .models.task_file_download_info import TaskFileDownloadInfo from .models.task_workflow_action_list import TaskWorkflowActionList -from .models.techsupportmanagement_download_list import TechsupportmanagementDownloadList -from .models.techsupportmanagement_tech_support_bundle_list import TechsupportmanagementTechSupportBundleList -from .models.techsupportmanagement_tech_support_status_list import TechsupportmanagementTechSupportStatusList from .models.terminal_audit_log_list import TerminalAuditLogList from .models.top_system_list import TopSystemList from .models.vmedia_mapping import VmediaMapping @@ -220,92 +219,412 @@ from .models.workflow_workflow_meta_list import WorkflowWorkflowMetaList from .models.workflow_workflow_task_list import WorkflowWorkflowTaskList from .models.aaa_abstract_audit_record import AaaAbstractAuditRecord +from .models.aaa_abstract_audit_record_ref import AaaAbstractAuditRecordRef +from .models.aaa_audit_record_local_ref import AaaAuditRecordLocalRef +from .models.aaa_audit_record_ref import AaaAuditRecordRef +from .models.adapter_ext_eth_interface_ref import AdapterExtEthInterfaceRef +from .models.adapter_host_eth_interface_ref import AdapterHostEthInterfaceRef +from .models.adapter_host_fc_interface_ref import AdapterHostFcInterfaceRef +from .models.adapter_host_iscsi_interface_ref import AdapterHostIscsiInterfaceRef +from .models.adapter_unit_ref import AdapterUnitRef from .models.asset_device_claim import AssetDeviceClaim +from .models.asset_device_claim_ref import AssetDeviceClaimRef from .models.asset_device_registration import AssetDeviceRegistration -from .models.boot_iscsi import BootIscsi -from .models.boot_local_cdd import BootLocalCdd -from .models.boot_local_disk import BootLocalDisk -from .models.boot_nvme import BootNvme -from .models.boot_pch_storage import BootPchStorage -from .models.boot_pxe import BootPxe -from .models.boot_san import BootSan -from .models.boot_sd_card import BootSdCard -from .models.boot_uefi_shell import BootUefiShell -from .models.boot_usb import BootUsb -from .models.boot_virtual_media import BootVirtualMedia +from .models.asset_device_registration_ref import AssetDeviceRegistrationRef +from .models.asset_security_token_ref import AssetSecurityTokenRef +from .models.bios_deploy_task_ref import BiosDeployTaskRef +from .models.bios_policy_ref import BiosPolicyRef +from .models.bios_unit_ref import BiosUnitRef +from .models.bios_validation_task_ref import BiosValidationTaskRef +from .models.boot_device_base_ref import BootDeviceBaseRef +from .models.boot_iscsi_ref import BootIscsiRef +from .models.boot_local_disk_ref import BootLocalDiskRef +from .models.boot_nvme_ref import BootNvmeRef +from .models.boot_pch_storage_ref import BootPchStorageRef +from .models.boot_precision_deploy_task_ref import BootPrecisionDeployTaskRef +from .models.boot_precision_policy_ref import BootPrecisionPolicyRef +from .models.boot_precision_validation_task_ref import BootPrecisionValidationTaskRef +from .models.boot_pxe_ref import BootPxeRef +from .models.boot_san_ref import BootSanRef +from .models.boot_sd_card_ref import BootSdCardRef +from .models.boot_uefi_shell_ref import BootUefiShellRef +from .models.boot_usb_ref import BootUsbRef +from .models.boot_virtual_media_ref import BootVirtualMediaRef +from .models.compute_blade_ref import ComputeBladeRef +from .models.compute_board_ref import ComputeBoardRef +from .models.compute_ip_address_ref import ComputeIpAddressRef +from .models.compute_locator_led_operation_task_ref import ComputeLocatorLedOperationTaskRef +from .models.compute_operation_result_handler_ref import ComputeOperationResultHandlerRef +from .models.compute_physical_ref import ComputePhysicalRef +from .models.compute_physical_summary_ref import ComputePhysicalSummaryRef +from .models.compute_rack_unit_ref import ComputeRackUnitRef +from .models.compute_server_config_ref import ComputeServerConfigRef +from .models.compute_server_operation_task_ref import ComputeServerOperationTaskRef +from .models.compute_server_setting_ref import ComputeServerSettingRef from .models.cond_alarm import CondAlarm +from .models.cond_alarm_ref import CondAlarmRef from .models.cond_hcl_status import CondHclStatus -from .models.cond_hcl_status_action import CondHclStatusAction from .models.cond_hcl_status_detail import CondHclStatusDetail +from .models.cond_hcl_status_detail_ref import CondHclStatusDetailRef from .models.cond_hcl_status_job import CondHclStatusJob +from .models.cond_hcl_status_job_ref import CondHclStatusJobRef +from .models.cond_hcl_status_ref import CondHclStatusRef +from .models.connector_auth_message_ref import ConnectorAuthMessageRef +from .models.connector_command_message_ref import ConnectorCommandMessageRef +from .models.connector_event_channel_control_ref import ConnectorEventChannelControlRef +from .models.connector_event_ref import ConnectorEventRef +from .models.connector_job_async_response_ref import ConnectorJobAsyncResponseRef +from .models.connector_job_message_ref import ConnectorJobMessageRef +from .models.connector_xml_api_message_ref import ConnectorXmlApiMessageRef +from .models.crypt_account_key_ref import CryptAccountKeyRef +from .models.crypt_decrypt_ref import CryptDecryptRef +from .models.crypt_encrypt_ref import CryptEncryptRef +from .models.crypt_encryption_key_ref import CryptEncryptionKeyRef from .models.crypt_encryption_token import CryptEncryptionToken +from .models.crypt_encryption_token_ref import CryptEncryptionTokenRef from .models.deviceinfo_serial_number_info import DeviceinfoSerialNumberInfo -from .models.epansible_runner import EpansibleRunner -from .models.externalsite_auth_profile import ExternalsiteAuthProfile -from .models.extsearch_import import ExtsearchImport +from .models.deviceinfo_serial_number_info_ref import DeviceinfoSerialNumberInfoRef +from .models.equipment_base_ref import EquipmentBaseRef +from .models.equipment_chassis_ref import EquipmentChassisRef +from .models.equipment_device_summary_ref import EquipmentDeviceSummaryRef +from .models.equipment_fan_module_ref import EquipmentFanModuleRef +from .models.equipment_fan_ref import EquipmentFanRef +from .models.equipment_fex_ref import EquipmentFexRef +from .models.equipment_io_card_ref import EquipmentIoCardRef +from .models.equipment_locator_led_ref import EquipmentLocatorLedRef +from .models.equipment_psu_ref import EquipmentPsuRef +from .models.equipment_switch_card_ref import EquipmentSwitchCardRef +from .models.equipment_system_io_controller_ref import EquipmentSystemIoControllerRef +from .models.ether_physical_port_ref import EtherPhysicalPortRef +from .models.externalsite_authorization import ExternalsiteAuthorization +from .models.externalsite_authorization_ref import ExternalsiteAuthorizationRef +from .models.extsearch_app_config_ref import ExtsearchAppConfigRef +from .models.extsearch_import_ref import ExtsearchImportRef +from .models.fault_instance_ref import FaultInstanceRef +from .models.fc_physical_port_ref import FcPhysicalPortRef +from .models.feedback_feedback_data_ref import FeedbackFeedbackDataRef +from .models.feedback_feedback_post import FeedbackFeedbackPost +from .models.feedback_feedback_post_ref import FeedbackFeedbackPostRef +from .models.feedback_feedback_ref import FeedbackFeedbackRef +from .models.feedback_feedback_settings_ref import FeedbackFeedbackSettingsRef +from .models.feedback_history_item_ref import FeedbackHistoryItemRef +from .models.firmware_cifs_server_ref import FirmwareCifsServerRef +from .models.firmware_direct_download_ref import FirmwareDirectDownloadRef from .models.firmware_distributable import FirmwareDistributable +from .models.firmware_distributable_ref import FirmwareDistributableRef +from .models.firmware_download_spec_ref import FirmwareDownloadSpecRef from .models.firmware_eula import FirmwareEula +from .models.firmware_eula_ref import FirmwareEulaRef +from .models.firmware_http_server_ref import FirmwareHttpServerRef +from .models.firmware_network_share_ref import FirmwareNetworkShareRef +from .models.firmware_nfs_server_ref import FirmwareNfsServerRef +from .models.firmware_running_firmware_ref import FirmwareRunningFirmwareRef from .models.firmware_upgrade import FirmwareUpgrade +from .models.firmware_upgrade_ref import FirmwareUpgradeRef from .models.firmware_upgrade_status import FirmwareUpgradeStatus +from .models.firmware_upgrade_status_ref import FirmwareUpgradeStatusRef +from .models.firmwareimc_cancel_pending_firmware_upgrade_ref import FirmwareimcCancelPendingFirmwareUpgradeRef +from .models.firmwareimc_check_for_existing_upgrade_ref import FirmwareimcCheckForExistingUpgradeRef +from .models.firmwareimc_firmware_upgrade_result_handler_ref import FirmwareimcFirmwareUpgradeResultHandlerRef +from .models.firmwareimc_huu_firmware_upgrade_ref import FirmwareimcHuuFirmwareUpgradeRef +from .models.firmwareimc_initiate_download_ref import FirmwareimcInitiateDownloadRef +from .models.firmwareimc_wait_for_download_ref import FirmwareimcWaitForDownloadRef +from .models.firmwareimc_wait_for_firmware_upgrade_ref import FirmwareimcWaitForFirmwareUpgradeRef +from .models.graphics_card_ref import GraphicsCardRef +from .models.graphics_controller_ref import GraphicsControllerRef +from .models.hcl_active_collection_node_ref import HclActiveCollectionNodeRef from .models.hcl_compatibility_info import HclCompatibilityInfo -from .models.hcl_compatibility_status import HclCompatibilityStatus +from .models.hcl_compatibility_info_ref import HclCompatibilityInfoRef from .models.hcl_data_import_log import HclDataImportLog +from .models.hcl_data_import_log_ref import HclDataImportLogRef +from .models.hcl_firmware_ref import HclFirmwareRef +from .models.hcl_hardware_compatibility_profile_ref import HclHardwareCompatibilityProfileRef from .models.hcl_note import HclNote -from .models.hcl_supported_driver_name import HclSupportedDriverName +from .models.hcl_note_ref import HclNoteRef +from .models.hcl_product_ref import HclProductRef +from .models.hcl_service_status_ref import HclServiceStatusRef +from .models.hxdpconnector_hx_inventory_msg_ref import HxdpconnectorHxInventoryMsgRef from .models.hyperflex_alarm import HyperflexAlarm +from .models.hyperflex_alarm_ref import HyperflexAlarmRef +from .models.hyperflex_auto_support_policy_ref import HyperflexAutoSupportPolicyRef from .models.hyperflex_cluster import HyperflexCluster +from .models.hyperflex_cluster_network_policy_ref import HyperflexClusterNetworkPolicyRef +from .models.hyperflex_cluster_profile_ref import HyperflexClusterProfileRef +from .models.hyperflex_cluster_ref import HyperflexClusterRef +from .models.hyperflex_cluster_storage_policy_ref import HyperflexClusterStoragePolicyRef +from .models.hyperflex_config_result_entry_ref import HyperflexConfigResultEntryRef +from .models.hyperflex_config_result_ref import HyperflexConfigResultRef +from .models.hyperflex_credentials_ref import HyperflexCredentialsRef +from .models.hyperflex_ext_fc_storage_policy_ref import HyperflexExtFcStoragePolicyRef +from .models.hyperflex_ext_iscsi_storage_policy_ref import HyperflexExtIscsiStoragePolicyRef +from .models.hyperflex_ip_addr_range_ref import HyperflexIpAddrRangeRef +from .models.hyperflex_iterator_string_ref import HyperflexIteratorStringRef +from .models.hyperflex_local_credential_policy_ref import HyperflexLocalCredentialPolicyRef +from .models.hyperflex_mac_addr_prefix_range_ref import HyperflexMacAddrPrefixRangeRef +from .models.hyperflex_managed_object_reference_ref import HyperflexManagedObjectReferenceRef +from .models.hyperflex_named_vlan_ref import HyperflexNamedVlanRef +from .models.hyperflex_named_vsan_ref import HyperflexNamedVsanRef +from .models.hyperflex_node_config_policy_ref import HyperflexNodeConfigPolicyRef +from .models.hyperflex_node_profile_ref import HyperflexNodeProfileRef +from .models.hyperflex_proxy_setting_policy_ref import HyperflexProxySettingPolicyRef +from .models.hyperflex_st_platform_cluster_healing_info_ref import HyperflexStPlatformClusterHealingInfoRef +from .models.hyperflex_st_platform_cluster_resiliency_info_ref import HyperflexStPlatformClusterResiliencyInfoRef +from .models.hyperflex_summary_ref import HyperflexSummaryRef +from .models.hyperflex_sys_config_policy_ref import HyperflexSysConfigPolicyRef +from .models.hyperflex_ucsm_config_policy_ref import HyperflexUcsmConfigPolicyRef +from .models.hyperflex_vcenter_config_policy_ref import HyperflexVcenterConfigPolicyRef +from .models.hyperflex_wwxn_prefix_range_ref import HyperflexWwxnPrefixRangeRef +from .models.i18n_message_param_ref import I18nMessageParamRef +from .models.i18n_message_ref import I18nMessageRef +from .models.iaas_connector_pack import IaasConnectorPack +from .models.iaas_connector_pack_ref import IaasConnectorPackRef +from .models.iaas_device_status import IaasDeviceStatus +from .models.iaas_device_status_ref import IaasDeviceStatusRef +from .models.iaas_license_info import IaasLicenseInfo +from .models.iaas_license_info_ref import IaasLicenseInfoRef +from .models.iaas_license_keys_info_ref import IaasLicenseKeysInfoRef +from .models.iaas_license_utilization_info_ref import IaasLicenseUtilizationInfoRef +from .models.iaas_ucsd_info import IaasUcsdInfo +from .models.iaas_ucsd_info_ref import IaasUcsdInfoRef from .models.iam_account import IamAccount +from .models.iam_account_ref import IamAccountRef from .models.iam_api_key import IamApiKey +from .models.iam_api_key_ref import IamApiKeyRef +from .models.iam_end_point_password_properties_ref import IamEndPointPasswordPropertiesRef from .models.iam_end_point_privilege import IamEndPointPrivilege +from .models.iam_end_point_privilege_ref import IamEndPointPrivilegeRef from .models.iam_end_point_role import IamEndPointRole +from .models.iam_end_point_role_ref import IamEndPointRoleRef from .models.iam_end_point_user import IamEndPointUser +from .models.iam_end_point_user_deploy_task_ref import IamEndPointUserDeployTaskRef +from .models.iam_end_point_user_policy_ref import IamEndPointUserPolicyRef +from .models.iam_end_point_user_ref import IamEndPointUserRef from .models.iam_end_point_user_role import IamEndPointUserRole +from .models.iam_end_point_user_role_ref import IamEndPointUserRoleRef +from .models.iam_end_point_user_validation_task_ref import IamEndPointUserValidationTaskRef from .models.iam_idp import IamIdp +from .models.iam_idp_ref import IamIdpRef from .models.iam_idp_reference import IamIdpReference +from .models.iam_idp_reference_ref import IamIdpReferenceRef +from .models.iam_ldap_base_properties_ref import IamLdapBasePropertiesRef +from .models.iam_ldap_deploy_task_ref import IamLdapDeployTaskRef +from .models.iam_ldap_dns_parameters_ref import IamLdapDnsParametersRef from .models.iam_ldap_group import IamLdapGroup +from .models.iam_ldap_group_ref import IamLdapGroupRef +from .models.iam_ldap_policy_ref import IamLdapPolicyRef from .models.iam_ldap_provider import IamLdapProvider +from .models.iam_ldap_provider_ref import IamLdapProviderRef +from .models.iam_ldap_validation_task_ref import IamLdapValidationTaskRef from .models.iam_permission import IamPermission +from .models.iam_permission_ref import IamPermissionRef from .models.iam_privilege import IamPrivilege +from .models.iam_privilege_ref import IamPrivilegeRef from .models.iam_privilege_set import IamPrivilegeSet +from .models.iam_privilege_set_ref import IamPrivilegeSetRef from .models.iam_qualifier import IamQualifier +from .models.iam_qualifier_ref import IamQualifierRef from .models.iam_resource_limits import IamResourceLimits +from .models.iam_resource_limits_ref import IamResourceLimitsRef from .models.iam_role import IamRole +from .models.iam_role_ref import IamRoleRef from .models.iam_session import IamSession from .models.iam_session_limits import IamSessionLimits +from .models.iam_session_limits_ref import IamSessionLimitsRef +from .models.iam_session_ref import IamSessionRef +from .models.iam_sp_console_ref import IamSpConsoleRef +from .models.iam_sp_engine_ref import IamSpEngineRef from .models.iam_system import IamSystem +from .models.iam_system_ref import IamSystemRef from .models.iam_user import IamUser from .models.iam_user_group import IamUserGroup +from .models.iam_user_group_ref import IamUserGroupRef +from .models.iam_user_login_time_ref import IamUserLoginTimeRef from .models.iam_user_preference import IamUserPreference +from .models.iam_user_preference_ref import IamUserPreferenceRef +from .models.iam_user_ref import IamUserRef +from .models.imcconnector_sd_card_image_download_message_ref import ImcconnectorSdCardImageDownloadMessageRef from .models.inventory_base import InventoryBase +from .models.inventory_base_ref import InventoryBaseRef from .models.inventory_device_info import InventoryDeviceInfo +from .models.inventory_device_info_ref import InventoryDeviceInfoRef from .models.inventory_dn_mo_binding import InventoryDnMoBinding +from .models.inventory_dn_mo_binding_ref import InventoryDnMoBindingRef +from .models.inventory_generic_inventory_holder_ref import InventoryGenericInventoryHolderRef +from .models.inventory_generic_inventory_ref import InventoryGenericInventoryRef +from .models.inventory_inventory_mo_ref import InventoryInventoryMoRef +from .models.inventory_job_info_ref import InventoryJobInfoRef +from .models.inventory_request import InventoryRequest +from .models.inventory_request_ref import InventoryRequestRef +from .models.inventory_scoped_inventory_task_ref import InventoryScopedInventoryTaskRef +from .models.ipmioverlan_deploy_task_ref import IpmioverlanDeployTaskRef +from .models.ipmioverlan_policy_ref import IpmioverlanPolicyRef +from .models.ipmioverlan_validation_task_ref import IpmioverlanValidationTaskRef +from .models.kvm_deploy_task_ref import KvmDeployTaskRef +from .models.kvm_policy_ref import KvmPolicyRef +from .models.kvm_validation_task_ref import KvmValidationTaskRef from .models.license_account_license_data import LicenseAccountLicenseData +from .models.license_account_license_data_ref import LicenseAccountLicenseDataRef from .models.license_customer_op import LicenseCustomerOp +from .models.license_customer_op_ref import LicenseCustomerOpRef from .models.license_license_info import LicenseLicenseInfo +from .models.license_license_info_ref import LicenseLicenseInfoRef from .models.license_smartlicense_token import LicenseSmartlicenseToken +from .models.license_smartlicense_token_ref import LicenseSmartlicenseTokenRef +from .models.license_sync_response_ref import LicenseSyncResponseRef +from .models.ls_service_profile_ref import LsServiceProfileRef +from .models.management_controller_ref import ManagementControllerRef +from .models.management_entity_ref import ManagementEntityRef +from .models.management_interface_ref import ManagementInterfaceRef +from .models.memory_array_ref import MemoryArrayRef +from .models.memory_unit_ref import MemoryUnitRef from .models.meta_definition import MetaDefinition -from .models.packagemanagement_connector_deploy_policy import PackagemanagementConnectorDeployPolicy -from .models.packagemanagement_connector_image import PackagemanagementConnectorImage -from .models.packagemanagement_connector_install import PackagemanagementConnectorInstall +from .models.meta_definition_ref import MetaDefinitionRef +from .models.meta_prop_definition_ref import MetaPropDefinitionRef +from .models.meta_relationship_definition_ref import MetaRelationshipDefinitionRef +from .models.mo_base_complex_type_ref import MoBaseComplexTypeRef +from .models.mo_base_mo_ref import MoBaseMoRef +from .models.mo_interest_registration_ref import MoInterestRegistrationRef +from .models.mo_mo_ref_ref import MoMoRefRef +from .models.mo_tag_ref import MoTagRef +from .models.network_element_ref import NetworkElementRef +from .models.network_element_summary_ref import NetworkElementSummaryRef +from .models.networkconfig_deploy_task_ref import NetworkconfigDeployTaskRef +from .models.networkconfig_policy_ref import NetworkconfigPolicyRef +from .models.networkconfig_validation_task_ref import NetworkconfigValidationTaskRef +from .models.notifs_mo_subscription_ref import NotifsMoSubscriptionRef +from .models.notifs_subscribed_ref import NotifsSubscribedRef +from .models.ntp_deploy_task_ref import NtpDeployTaskRef +from .models.ntp_policy_ref import NtpPolicyRef +from .models.ntp_validation_task_ref import NtpValidationTaskRef +from .models.oauth2_auth_token_ref import Oauth2AuthTokenRef +from .models.oauth_access_token_ref import OauthAccessTokenRef +from .models.oauth_oauth_user import OauthOauthUser +from .models.oauth_oauth_user_ref import OauthOauthUserRef +from .models.policy_abstract_config_profile_ref import PolicyAbstractConfigProfileRef from .models.policy_abstract_config_result import PolicyAbstractConfigResult +from .models.policy_abstract_config_result_entry import PolicyAbstractConfigResultEntry +from .models.policy_abstract_config_result_entry_ref import PolicyAbstractConfigResultEntryRef +from .models.policy_abstract_config_result_ref import PolicyAbstractConfigResultRef from .models.policy_abstract_policy import PolicyAbstractPolicy +from .models.policy_abstract_policy_ref import PolicyAbstractPolicyRef from .models.policy_abstract_profile import PolicyAbstractProfile -from .models.policy_policy_meta import PolicyPolicyMeta +from .models.policy_abstract_profile_ref import PolicyAbstractProfileRef +from .models.policy_config_context_ref import PolicyConfigContextRef +from .models.policy_config_result_context_ref import PolicyConfigResultContextRef +from .models.port_group_ref import PortGroupRef +from .models.port_physical_ref import PortPhysicalRef +from .models.port_sub_group_ref import PortSubGroupRef +from .models.processor_unit_ref import ProcessorUnitRef +from .models.qatask_execution_status_task_ref import QataskExecutionStatusTaskRef +from .models.qatask_expobackoff_retry_ref import QataskExpobackoffRetryRef +from .models.qatask_fail_async_task_ref import QataskFailAsyncTaskRef +from .models.qatask_failed_no_retry_ref import QataskFailedNoRetryRef +from .models.qatask_huu_firmware_upgrade_ref import QataskHuuFirmwareUpgradeRef +from .models.qatask_initiate_download_ref import QataskInitiateDownloadRef +from .models.qatask_retry30timeout60task_ref import QataskRetry30timeout60taskRef +from .models.qatask_retry_fixed_ref import QataskRetryFixedRef +from .models.qatask_success_async_task_ref import QataskSuccessAsyncTaskRef +from .models.qatask_taskin_scheuled_ref import QataskTaskinScheuledRef +from .models.qatask_timeoutwf_fixed_ref import QataskTimeoutwfFixedRef +from .models.qatask_ucs_task1_ref import QataskUcsTask1Ref +from .models.qatask_ucs_task2_ref import QataskUcsTask2Ref +from .models.qatask_ucs_task3_ref import QataskUcsTask3Ref +from .models.qatask_ucs_task4_ref import QataskUcsTask4Ref +from .models.qatask_ucs_task5_ref import QataskUcsTask5Ref +from .models.qatask_ucs_task6_ref import QataskUcsTask6Ref +from .models.qatask_ucs_task7_ref import QataskUcsTask7Ref +from .models.qatask_ucs_task8_ref import QataskUcsTask8Ref +from .models.qatask_ucs_task9_ref import QataskUcsTask9Ref +from .models.qatask_wait_for_download_ref import QataskWaitForDownloadRef +from .models.qatask_wait_for_firmware_upgrade_ref import QataskWaitForFirmwareUpgradeRef +from .models.rest_api_ref import RestApiRef from .models.search_search_item import SearchSearchItem +from .models.search_search_item_ref import SearchSearchItemRef from .models.search_suggest_item import SearchSuggestItem +from .models.search_suggest_item_ref import SearchSuggestItemRef from .models.search_tag_item import SearchTagItem +from .models.search_tag_item_ref import SearchTagItemRef +from .models.security_unit_ref import SecurityUnitRef +from .models.server_config_change_detail_ref import ServerConfigChangeDetailRef +from .models.server_config_change_details_ref import ServerConfigChangeDetailsRef +from .models.server_config_change_ref import ServerConfigChangeRef +from .models.server_config_result_entry_ref import ServerConfigResultEntryRef +from .models.server_config_result_ref import ServerConfigResultRef +from .models.server_profile_apply_task_ref import ServerProfileApplyTaskRef +from .models.server_profile_ref import ServerProfileRef +from .models.server_result_handler_task_ref import ServerResultHandlerTaskRef +from .models.smtp_deploy_task_ref import SmtpDeployTaskRef +from .models.smtp_policy_ref import SmtpPolicyRef +from .models.smtp_validation_task_ref import SmtpValidationTaskRef +from .models.snmp_deploy_task_ref import SnmpDeployTaskRef +from .models.snmp_policy_ref import SnmpPolicyRef +from .models.snmp_trap_ref import SnmpTrapRef +from .models.snmp_user_ref import SnmpUserRef +from .models.snmp_validation_task_ref import SnmpValidationTaskRef +from .models.sol_deploy_task_ref import SolDeployTaskRef +from .models.sol_policy_ref import SolPolicyRef +from .models.sol_validation_task_ref import SolValidationTaskRef +from .models.ssh_deploy_task_ref import SshDeployTaskRef +from .models.ssh_policy_ref import SshPolicyRef +from .models.ssh_validation_task_ref import SshValidationTaskRef +from .models.storage_controller_ref import StorageControllerRef +from .models.storage_deploy_task_ref import StorageDeployTaskRef +from .models.storage_disk_group_policy_ref import StorageDiskGroupPolicyRef +from .models.storage_enclosure_ref import StorageEnclosureRef +from .models.storage_flex_flash_controller_props_ref import StorageFlexFlashControllerPropsRef +from .models.storage_flex_flash_controller_ref import StorageFlexFlashControllerRef +from .models.storage_flex_flash_physical_drive_ref import StorageFlexFlashPhysicalDriveRef +from .models.storage_flex_flash_virtual_drive_ref import StorageFlexFlashVirtualDriveRef +from .models.storage_flex_util_controller_ref import StorageFlexUtilControllerRef +from .models.storage_flex_util_physical_drive_ref import StorageFlexUtilPhysicalDriveRef +from .models.storage_flex_util_virtual_drive_ref import StorageFlexUtilVirtualDriveRef +from .models.storage_local_disk_ref import StorageLocalDiskRef +from .models.storage_physical_disk_extension_ref import StoragePhysicalDiskExtensionRef +from .models.storage_physical_disk_ref import StoragePhysicalDiskRef +from .models.storage_physical_disk_usage_ref import StoragePhysicalDiskUsageRef +from .models.storage_remote_key_setting_ref import StorageRemoteKeySettingRef +from .models.storage_sas_expander_ref import StorageSasExpanderRef +from .models.storage_span_group_ref import StorageSpanGroupRef +from .models.storage_storage_policy_ref import StorageStoragePolicyRef +from .models.storage_validation_task_ref import StorageValidationTaskRef +from .models.storage_vd_member_ep_ref import StorageVdMemberEpRef +from .models.storage_virtual_drive_config_ref import StorageVirtualDriveConfigRef +from .models.storage_virtual_drive_ref import StorageVirtualDriveRef +from .models.task_file_download_info_ref import TaskFileDownloadInfoRef +from .models.task_ucs_task1_ref import TaskUcsTask1Ref +from .models.task_ucs_task2_ref import TaskUcsTask2Ref +from .models.task_ucs_task3_ref import TaskUcsTask3Ref +from .models.task_ucs_task4_ref import TaskUcsTask4Ref +from .models.task_ucs_task5_ref import TaskUcsTask5Ref +from .models.task_ucs_task6_ref import TaskUcsTask6Ref +from .models.task_ucs_task7_ref import TaskUcsTask7Ref +from .models.task_ucs_task8_ref import TaskUcsTask8Ref +from .models.task_ucs_task9_ref import TaskUcsTask9Ref from .models.task_workflow_action import TaskWorkflowAction -from .models.techsupportmanagement_download import TechsupportmanagementDownload -from .models.techsupportmanagement_tech_support_bundle import TechsupportmanagementTechSupportBundle -from .models.techsupportmanagement_tech_support_status import TechsupportmanagementTechSupportStatus +from .models.task_workflow_action_ref import TaskWorkflowActionRef from .models.terminal_audit_log import TerminalAuditLog +from .models.terminal_audit_log_ref import TerminalAuditLogRef +from .models.top_system_ref import TopSystemRef +from .models.ucsdconnector_inventory_message_ref import UcsdconnectorInventoryMessageRef from .models.views_view import ViewsView +from .models.views_view_ref import ViewsViewRef +from .models.vmedia_deploy_task_ref import VmediaDeployTaskRef +from .models.vmedia_mapping_ref import VmediaMappingRef +from .models.vmedia_policy_ref import VmediaPolicyRef +from .models.vmedia_validation_task_ref import VmediaValidationTaskRef from .models.workflow_build_task_meta import WorkflowBuildTaskMeta +from .models.workflow_build_task_meta_ref import WorkflowBuildTaskMetaRef from .models.workflow_task_info import WorkflowTaskInfo +from .models.workflow_task_info_ref import WorkflowTaskInfoRef from .models.workflow_task_meta import WorkflowTaskMeta +from .models.workflow_task_meta_ref import WorkflowTaskMetaRef +from .models.workflow_task_retry_info_ref import WorkflowTaskRetryInfoRef from .models.workflow_workflow_info import WorkflowWorkflowInfo +from .models.workflow_workflow_info_ref import WorkflowWorkflowInfoRef from .models.workflow_workflow_meta import WorkflowWorkflowMeta +from .models.workflow_workflow_meta_ref import WorkflowWorkflowMetaRef from .models.workflow_workflow_task import WorkflowWorkflowTask +from .models.workflow_workflow_task_ref import WorkflowWorkflowTaskRef from .models.aaa_audit_record import AaaAuditRecord from .models.bios_policy import BiosPolicy from .models.boot_precision_policy import BootPrecisionPolicy @@ -320,11 +639,13 @@ from .models.hyperflex_cluster_network_policy import HyperflexClusterNetworkPolicy from .models.hyperflex_cluster_storage_policy import HyperflexClusterStoragePolicy from .models.hyperflex_config_result import HyperflexConfigResult +from .models.hyperflex_config_result_entry import HyperflexConfigResultEntry from .models.hyperflex_ext_fc_storage_policy import HyperflexExtFcStoragePolicy from .models.hyperflex_ext_iscsi_storage_policy import HyperflexExtIscsiStoragePolicy from .models.hyperflex_local_credential_policy import HyperflexLocalCredentialPolicy from .models.hyperflex_node_config_policy import HyperflexNodeConfigPolicy from .models.hyperflex_node_profile import HyperflexNodeProfile +from .models.hyperflex_proxy_setting_policy import HyperflexProxySettingPolicy from .models.hyperflex_sys_config_policy import HyperflexSysConfigPolicy from .models.hyperflex_ucsm_config_policy import HyperflexUcsmConfigPolicy from .models.hyperflex_vcenter_config_policy import HyperflexVcenterConfigPolicy @@ -346,12 +667,14 @@ from .models.port_physical import PortPhysical from .models.port_sub_group import PortSubGroup from .models.server_config_result import ServerConfigResult +from .models.server_config_result_entry import ServerConfigResultEntry from .models.smtp_policy import SmtpPolicy from .models.snmp_policy import SnmpPolicy from .models.sol_policy import SolPolicy from .models.ssh_policy import SshPolicy from .models.storage_disk_group_policy import StorageDiskGroupPolicy from .models.storage_flex_util_controller import StorageFlexUtilController +from .models.storage_flex_util_virtual_drive import StorageFlexUtilVirtualDrive from .models.storage_physical_disk_usage import StoragePhysicalDiskUsage from .models.storage_storage_policy import StorageStoragePolicy from .models.storage_vd_member_ep import StorageVdMemberEp @@ -385,9 +708,14 @@ from .models.security_unit import SecurityUnit from .models.server_profile import ServerProfile from .models.storage_controller import StorageController +from .models.storage_enclosure import StorageEnclosure from .models.storage_flex_flash_controller import StorageFlexFlashController +from .models.storage_flex_flash_controller_props import StorageFlexFlashControllerProps from .models.storage_flex_flash_physical_drive import StorageFlexFlashPhysicalDrive +from .models.storage_flex_flash_virtual_drive import StorageFlexFlashVirtualDrive +from .models.storage_flex_util_physical_drive import StorageFlexUtilPhysicalDrive from .models.storage_physical_disk import StoragePhysicalDisk +from .models.storage_physical_disk_extension import StoragePhysicalDiskExtension from .models.storage_sas_expander import StorageSasExpander from .models.storage_virtual_drive import StorageVirtualDrive from .models.compute_blade import ComputeBlade @@ -412,12 +740,10 @@ from .apis.compute_server_setting_api import ComputeServerSettingApi from .apis.cond_alarm_api import CondAlarmApi from .apis.cond_hcl_status_api import CondHclStatusApi -from .apis.cond_hcl_status_action_api import CondHclStatusActionApi from .apis.cond_hcl_status_detail_api import CondHclStatusDetailApi from .apis.cond_hcl_status_job_api import CondHclStatusJobApi from .apis.crypt_encryption_token_api import CryptEncryptionTokenApi from .apis.deviceinfo_serial_number_info_api import DeviceinfoSerialNumberInfoApi -from .apis.epansible_runner_api import EpansibleRunnerApi from .apis.equipment_chassis_api import EquipmentChassisApi from .apis.equipment_device_summary_api import EquipmentDeviceSummaryApi from .apis.equipment_fan_api import EquipmentFanApi @@ -429,10 +755,10 @@ from .apis.equipment_switch_card_api import EquipmentSwitchCardApi from .apis.equipment_system_io_controller_api import EquipmentSystemIoControllerApi from .apis.ether_physical_port_api import EtherPhysicalPortApi -from .apis.externalsite_auth_profile_api import ExternalsiteAuthProfileApi -from .apis.extsearch_import_api import ExtsearchImportApi +from .apis.externalsite_authorization_api import ExternalsiteAuthorizationApi from .apis.fault_instance_api import FaultInstanceApi from .apis.fc_physical_port_api import FcPhysicalPortApi +from .apis.feedback_feedback_post_api import FeedbackFeedbackPostApi from .apis.firmware_distributable_api import FirmwareDistributableApi from .apis.firmware_eula_api import FirmwareEulaApi from .apis.firmware_running_firmware_api import FirmwareRunningFirmwareApi @@ -441,10 +767,8 @@ from .apis.graphics_card_api import GraphicsCardApi from .apis.graphics_controller_api import GraphicsControllerApi from .apis.hcl_compatibility_info_api import HclCompatibilityInfoApi -from .apis.hcl_compatibility_status_api import HclCompatibilityStatusApi from .apis.hcl_data_import_log_api import HclDataImportLogApi from .apis.hcl_note_api import HclNoteApi -from .apis.hcl_supported_driver_name_api import HclSupportedDriverNameApi from .apis.hyperflex_alarm_api import HyperflexAlarmApi from .apis.hyperflex_auto_support_policy_api import HyperflexAutoSupportPolicyApi from .apis.hyperflex_cluster_api import HyperflexClusterApi @@ -452,14 +776,20 @@ from .apis.hyperflex_cluster_profile_api import HyperflexClusterProfileApi from .apis.hyperflex_cluster_storage_policy_api import HyperflexClusterStoragePolicyApi from .apis.hyperflex_config_result_api import HyperflexConfigResultApi +from .apis.hyperflex_config_result_entry_api import HyperflexConfigResultEntryApi from .apis.hyperflex_ext_fc_storage_policy_api import HyperflexExtFcStoragePolicyApi from .apis.hyperflex_ext_iscsi_storage_policy_api import HyperflexExtIscsiStoragePolicyApi from .apis.hyperflex_local_credential_policy_api import HyperflexLocalCredentialPolicyApi from .apis.hyperflex_node_config_policy_api import HyperflexNodeConfigPolicyApi from .apis.hyperflex_node_profile_api import HyperflexNodeProfileApi +from .apis.hyperflex_proxy_setting_policy_api import HyperflexProxySettingPolicyApi from .apis.hyperflex_sys_config_policy_api import HyperflexSysConfigPolicyApi from .apis.hyperflex_ucsm_config_policy_api import HyperflexUcsmConfigPolicyApi from .apis.hyperflex_vcenter_config_policy_api import HyperflexVcenterConfigPolicyApi +from .apis.iaas_connector_pack_api import IaasConnectorPackApi +from .apis.iaas_device_status_api import IaasDeviceStatusApi +from .apis.iaas_license_info_api import IaasLicenseInfoApi +from .apis.iaas_ucsd_info_api import IaasUcsdInfoApi from .apis.iam_account_api import IamAccountApi from .apis.iam_api_key_api import IamApiKeyApi from .apis.iam_end_point_privilege_api import IamEndPointPrivilegeApi @@ -488,6 +818,7 @@ from .apis.inventory_dn_mo_binding_api import InventoryDnMoBindingApi from .apis.inventory_generic_inventory_api import InventoryGenericInventoryApi from .apis.inventory_generic_inventory_holder_api import InventoryGenericInventoryHolderApi +from .apis.inventory_request_api import InventoryRequestApi from .apis.ipmioverlan_policy_api import IpmioverlanPolicyApi from .apis.kvm_policy_api import KvmPolicyApi from .apis.license_account_license_data_api import LicenseAccountLicenseDataApi @@ -505,10 +836,7 @@ from .apis.network_element_summary_api import NetworkElementSummaryApi from .apis.networkconfig_policy_api import NetworkconfigPolicyApi from .apis.ntp_policy_api import NtpPolicyApi -from .apis.packagemanagement_connector_deploy_policy_api import PackagemanagementConnectorDeployPolicyApi -from .apis.packagemanagement_connector_image_api import PackagemanagementConnectorImageApi -from .apis.packagemanagement_connector_install_api import PackagemanagementConnectorInstallApi -from .apis.policy_policy_meta_api import PolicyPolicyMetaApi +from .apis.oauth_oauth_user_api import OauthOauthUserApi from .apis.port_group_api import PortGroupApi from .apis.port_sub_group_api import PortSubGroupApi from .apis.processor_unit_api import ProcessorUnitApi @@ -517,6 +845,7 @@ from .apis.search_tag_item_api import SearchTagItemApi from .apis.security_unit_api import SecurityUnitApi from .apis.server_config_result_api import ServerConfigResultApi +from .apis.server_config_result_entry_api import ServerConfigResultEntryApi from .apis.server_profile_api import ServerProfileApi from .apis.smtp_policy_api import SmtpPolicyApi from .apis.snmp_policy_api import SnmpPolicyApi @@ -524,19 +853,22 @@ from .apis.ssh_policy_api import SshPolicyApi from .apis.storage_controller_api import StorageControllerApi from .apis.storage_disk_group_policy_api import StorageDiskGroupPolicyApi +from .apis.storage_enclosure_api import StorageEnclosureApi from .apis.storage_flex_flash_controller_api import StorageFlexFlashControllerApi +from .apis.storage_flex_flash_controller_props_api import StorageFlexFlashControllerPropsApi from .apis.storage_flex_flash_physical_drive_api import StorageFlexFlashPhysicalDriveApi +from .apis.storage_flex_flash_virtual_drive_api import StorageFlexFlashVirtualDriveApi from .apis.storage_flex_util_controller_api import StorageFlexUtilControllerApi +from .apis.storage_flex_util_physical_drive_api import StorageFlexUtilPhysicalDriveApi +from .apis.storage_flex_util_virtual_drive_api import StorageFlexUtilVirtualDriveApi from .apis.storage_physical_disk_api import StoragePhysicalDiskApi +from .apis.storage_physical_disk_extension_api import StoragePhysicalDiskExtensionApi from .apis.storage_physical_disk_usage_api import StoragePhysicalDiskUsageApi from .apis.storage_sas_expander_api import StorageSasExpanderApi from .apis.storage_storage_policy_api import StorageStoragePolicyApi from .apis.storage_vd_member_ep_api import StorageVdMemberEpApi from .apis.storage_virtual_drive_api import StorageVirtualDriveApi from .apis.task_workflow_action_api import TaskWorkflowActionApi -from .apis.techsupportmanagement_download_api import TechsupportmanagementDownloadApi -from .apis.techsupportmanagement_tech_support_bundle_api import TechsupportmanagementTechSupportBundleApi -from .apis.techsupportmanagement_tech_support_status_api import TechsupportmanagementTechSupportStatusApi from .apis.terminal_audit_log_api import TerminalAuditLogApi from .apis.top_system_api import TopSystemApi from .apis.vmedia_policy_api import VmediaPolicyApi diff --git a/intersight/api_client.py b/intersight/api_client.py index 00185d81..3e95ffeb 100644 --- a/intersight/api_client.py +++ b/intersight/api_client.py @@ -1,10 +1,10 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/__init__.py b/intersight/apis/__init__.py index 0d7b208c..63de9f67 100644 --- a/intersight/apis/__init__.py +++ b/intersight/apis/__init__.py @@ -19,12 +19,10 @@ from .compute_server_setting_api import ComputeServerSettingApi from .cond_alarm_api import CondAlarmApi from .cond_hcl_status_api import CondHclStatusApi -from .cond_hcl_status_action_api import CondHclStatusActionApi from .cond_hcl_status_detail_api import CondHclStatusDetailApi from .cond_hcl_status_job_api import CondHclStatusJobApi from .crypt_encryption_token_api import CryptEncryptionTokenApi from .deviceinfo_serial_number_info_api import DeviceinfoSerialNumberInfoApi -from .epansible_runner_api import EpansibleRunnerApi from .equipment_chassis_api import EquipmentChassisApi from .equipment_device_summary_api import EquipmentDeviceSummaryApi from .equipment_fan_api import EquipmentFanApi @@ -36,10 +34,10 @@ from .equipment_switch_card_api import EquipmentSwitchCardApi from .equipment_system_io_controller_api import EquipmentSystemIoControllerApi from .ether_physical_port_api import EtherPhysicalPortApi -from .externalsite_auth_profile_api import ExternalsiteAuthProfileApi -from .extsearch_import_api import ExtsearchImportApi +from .externalsite_authorization_api import ExternalsiteAuthorizationApi from .fault_instance_api import FaultInstanceApi from .fc_physical_port_api import FcPhysicalPortApi +from .feedback_feedback_post_api import FeedbackFeedbackPostApi from .firmware_distributable_api import FirmwareDistributableApi from .firmware_eula_api import FirmwareEulaApi from .firmware_running_firmware_api import FirmwareRunningFirmwareApi @@ -48,10 +46,8 @@ from .graphics_card_api import GraphicsCardApi from .graphics_controller_api import GraphicsControllerApi from .hcl_compatibility_info_api import HclCompatibilityInfoApi -from .hcl_compatibility_status_api import HclCompatibilityStatusApi from .hcl_data_import_log_api import HclDataImportLogApi from .hcl_note_api import HclNoteApi -from .hcl_supported_driver_name_api import HclSupportedDriverNameApi from .hyperflex_alarm_api import HyperflexAlarmApi from .hyperflex_auto_support_policy_api import HyperflexAutoSupportPolicyApi from .hyperflex_cluster_api import HyperflexClusterApi @@ -59,14 +55,20 @@ from .hyperflex_cluster_profile_api import HyperflexClusterProfileApi from .hyperflex_cluster_storage_policy_api import HyperflexClusterStoragePolicyApi from .hyperflex_config_result_api import HyperflexConfigResultApi +from .hyperflex_config_result_entry_api import HyperflexConfigResultEntryApi from .hyperflex_ext_fc_storage_policy_api import HyperflexExtFcStoragePolicyApi from .hyperflex_ext_iscsi_storage_policy_api import HyperflexExtIscsiStoragePolicyApi from .hyperflex_local_credential_policy_api import HyperflexLocalCredentialPolicyApi from .hyperflex_node_config_policy_api import HyperflexNodeConfigPolicyApi from .hyperflex_node_profile_api import HyperflexNodeProfileApi +from .hyperflex_proxy_setting_policy_api import HyperflexProxySettingPolicyApi from .hyperflex_sys_config_policy_api import HyperflexSysConfigPolicyApi from .hyperflex_ucsm_config_policy_api import HyperflexUcsmConfigPolicyApi from .hyperflex_vcenter_config_policy_api import HyperflexVcenterConfigPolicyApi +from .iaas_connector_pack_api import IaasConnectorPackApi +from .iaas_device_status_api import IaasDeviceStatusApi +from .iaas_license_info_api import IaasLicenseInfoApi +from .iaas_ucsd_info_api import IaasUcsdInfoApi from .iam_account_api import IamAccountApi from .iam_api_key_api import IamApiKeyApi from .iam_end_point_privilege_api import IamEndPointPrivilegeApi @@ -95,6 +97,7 @@ from .inventory_dn_mo_binding_api import InventoryDnMoBindingApi from .inventory_generic_inventory_api import InventoryGenericInventoryApi from .inventory_generic_inventory_holder_api import InventoryGenericInventoryHolderApi +from .inventory_request_api import InventoryRequestApi from .ipmioverlan_policy_api import IpmioverlanPolicyApi from .kvm_policy_api import KvmPolicyApi from .license_account_license_data_api import LicenseAccountLicenseDataApi @@ -112,10 +115,7 @@ from .network_element_summary_api import NetworkElementSummaryApi from .networkconfig_policy_api import NetworkconfigPolicyApi from .ntp_policy_api import NtpPolicyApi -from .packagemanagement_connector_deploy_policy_api import PackagemanagementConnectorDeployPolicyApi -from .packagemanagement_connector_image_api import PackagemanagementConnectorImageApi -from .packagemanagement_connector_install_api import PackagemanagementConnectorInstallApi -from .policy_policy_meta_api import PolicyPolicyMetaApi +from .oauth_oauth_user_api import OauthOauthUserApi from .port_group_api import PortGroupApi from .port_sub_group_api import PortSubGroupApi from .processor_unit_api import ProcessorUnitApi @@ -124,6 +124,7 @@ from .search_tag_item_api import SearchTagItemApi from .security_unit_api import SecurityUnitApi from .server_config_result_api import ServerConfigResultApi +from .server_config_result_entry_api import ServerConfigResultEntryApi from .server_profile_api import ServerProfileApi from .smtp_policy_api import SmtpPolicyApi from .snmp_policy_api import SnmpPolicyApi @@ -131,19 +132,22 @@ from .ssh_policy_api import SshPolicyApi from .storage_controller_api import StorageControllerApi from .storage_disk_group_policy_api import StorageDiskGroupPolicyApi +from .storage_enclosure_api import StorageEnclosureApi from .storage_flex_flash_controller_api import StorageFlexFlashControllerApi +from .storage_flex_flash_controller_props_api import StorageFlexFlashControllerPropsApi from .storage_flex_flash_physical_drive_api import StorageFlexFlashPhysicalDriveApi +from .storage_flex_flash_virtual_drive_api import StorageFlexFlashVirtualDriveApi from .storage_flex_util_controller_api import StorageFlexUtilControllerApi +from .storage_flex_util_physical_drive_api import StorageFlexUtilPhysicalDriveApi +from .storage_flex_util_virtual_drive_api import StorageFlexUtilVirtualDriveApi from .storage_physical_disk_api import StoragePhysicalDiskApi +from .storage_physical_disk_extension_api import StoragePhysicalDiskExtensionApi from .storage_physical_disk_usage_api import StoragePhysicalDiskUsageApi from .storage_sas_expander_api import StorageSasExpanderApi from .storage_storage_policy_api import StorageStoragePolicyApi from .storage_vd_member_ep_api import StorageVdMemberEpApi from .storage_virtual_drive_api import StorageVirtualDriveApi from .task_workflow_action_api import TaskWorkflowActionApi -from .techsupportmanagement_download_api import TechsupportmanagementDownloadApi -from .techsupportmanagement_tech_support_bundle_api import TechsupportmanagementTechSupportBundleApi -from .techsupportmanagement_tech_support_status_api import TechsupportmanagementTechSupportStatusApi from .terminal_audit_log_api import TerminalAuditLogApi from .top_system_api import TopSystemApi from .vmedia_policy_api import VmediaPolicyApi diff --git a/intersight/apis/aaa_audit_record_api.py b/intersight/apis/aaa_audit_record_api.py index 418938a7..f56e02b5 100644 --- a/intersight/apis/aaa_audit_record_api.py +++ b/intersight/apis/aaa_audit_record_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/adapter_ext_eth_interface_api.py b/intersight/apis/adapter_ext_eth_interface_api.py index be71449e..fade0010 100644 --- a/intersight/apis/adapter_ext_eth_interface_api.py +++ b/intersight/apis/adapter_ext_eth_interface_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/adapter_host_eth_interface_api.py b/intersight/apis/adapter_host_eth_interface_api.py index 4540a8f5..22e231e8 100644 --- a/intersight/apis/adapter_host_eth_interface_api.py +++ b/intersight/apis/adapter_host_eth_interface_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/adapter_host_fc_interface_api.py b/intersight/apis/adapter_host_fc_interface_api.py index 2ea08eb2..a1b01e96 100644 --- a/intersight/apis/adapter_host_fc_interface_api.py +++ b/intersight/apis/adapter_host_fc_interface_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/adapter_host_iscsi_interface_api.py b/intersight/apis/adapter_host_iscsi_interface_api.py index 955b7675..5ae71b16 100644 --- a/intersight/apis/adapter_host_iscsi_interface_api.py +++ b/intersight/apis/adapter_host_iscsi_interface_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/adapter_unit_api.py b/intersight/apis/adapter_unit_api.py index c8f92cd7..21205a74 100644 --- a/intersight/apis/adapter_unit_api.py +++ b/intersight/apis/adapter_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/asset_device_claim_api.py b/intersight/apis/asset_device_claim_api.py index 452756ae..0290bf7e 100644 --- a/intersight/apis/asset_device_claim_api.py +++ b/intersight/apis/asset_device_claim_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/asset_device_registration_api.py b/intersight/apis/asset_device_registration_api.py index a4c16d5c..4045879e 100644 --- a/intersight/apis/asset_device_registration_api.py +++ b/intersight/apis/asset_device_registration_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/bios_policy_api.py b/intersight/apis/bios_policy_api.py index 3b0b5456..b7b54165 100644 --- a/intersight/apis/bios_policy_api.py +++ b/intersight/apis/bios_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/bios_unit_api.py b/intersight/apis/bios_unit_api.py index 9c1fefca..35771053 100644 --- a/intersight/apis/bios_unit_api.py +++ b/intersight/apis/bios_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/boot_precision_policy_api.py b/intersight/apis/boot_precision_policy_api.py index ca0a28cc..eb2f51e9 100644 --- a/intersight/apis/boot_precision_policy_api.py +++ b/intersight/apis/boot_precision_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/compute_blade_api.py b/intersight/apis/compute_blade_api.py index 85a9454e..b8235513 100644 --- a/intersight/apis/compute_blade_api.py +++ b/intersight/apis/compute_blade_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/compute_board_api.py b/intersight/apis/compute_board_api.py index 5c9d5e52..b1d3d0bd 100644 --- a/intersight/apis/compute_board_api.py +++ b/intersight/apis/compute_board_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/compute_physical_summary_api.py b/intersight/apis/compute_physical_summary_api.py index 44af206c..8b9d46f2 100644 --- a/intersight/apis/compute_physical_summary_api.py +++ b/intersight/apis/compute_physical_summary_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/compute_rack_unit_api.py b/intersight/apis/compute_rack_unit_api.py index 6f337a86..cf5ab53a 100644 --- a/intersight/apis/compute_rack_unit_api.py +++ b/intersight/apis/compute_rack_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/compute_server_setting_api.py b/intersight/apis/compute_server_setting_api.py index 4ad0e134..c3f129cf 100644 --- a/intersight/apis/compute_server_setting_api.py +++ b/intersight/apis/compute_server_setting_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/cond_alarm_api.py b/intersight/apis/cond_alarm_api.py index 920ef67a..ea7b826d 100644 --- a/intersight/apis/cond_alarm_api.py +++ b/intersight/apis/cond_alarm_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/cond_hcl_status_api.py b/intersight/apis/cond_hcl_status_api.py index dc4b9341..ec36703f 100644 --- a/intersight/apis/cond_hcl_status_api.py +++ b/intersight/apis/cond_hcl_status_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/cond_hcl_status_detail_api.py b/intersight/apis/cond_hcl_status_detail_api.py index 28e1c501..3d308f53 100644 --- a/intersight/apis/cond_hcl_status_detail_api.py +++ b/intersight/apis/cond_hcl_status_detail_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/cond_hcl_status_job_api.py b/intersight/apis/cond_hcl_status_job_api.py index 8665333b..c3675842 100644 --- a/intersight/apis/cond_hcl_status_job_api.py +++ b/intersight/apis/cond_hcl_status_job_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/crypt_encryption_token_api.py b/intersight/apis/crypt_encryption_token_api.py index 282393c7..62c4ebb2 100644 --- a/intersight/apis/crypt_encryption_token_api.py +++ b/intersight/apis/crypt_encryption_token_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/deviceinfo_serial_number_info_api.py b/intersight/apis/deviceinfo_serial_number_info_api.py index 09e0aadb..a7e0c74a 100644 --- a/intersight/apis/deviceinfo_serial_number_info_api.py +++ b/intersight/apis/deviceinfo_serial_number_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/equipment_chassis_api.py b/intersight/apis/equipment_chassis_api.py index c58537da..780999bc 100644 --- a/intersight/apis/equipment_chassis_api.py +++ b/intersight/apis/equipment_chassis_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/equipment_device_summary_api.py b/intersight/apis/equipment_device_summary_api.py index 04b5306f..817cf233 100644 --- a/intersight/apis/equipment_device_summary_api.py +++ b/intersight/apis/equipment_device_summary_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/equipment_fan_api.py b/intersight/apis/equipment_fan_api.py index c17bccb4..79e0b933 100644 --- a/intersight/apis/equipment_fan_api.py +++ b/intersight/apis/equipment_fan_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/equipment_fan_module_api.py b/intersight/apis/equipment_fan_module_api.py index 40baa68f..34f1bcab 100644 --- a/intersight/apis/equipment_fan_module_api.py +++ b/intersight/apis/equipment_fan_module_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/equipment_fex_api.py b/intersight/apis/equipment_fex_api.py index 108f3447..dd197a10 100644 --- a/intersight/apis/equipment_fex_api.py +++ b/intersight/apis/equipment_fex_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/equipment_io_card_api.py b/intersight/apis/equipment_io_card_api.py index 898e7361..a740319c 100644 --- a/intersight/apis/equipment_io_card_api.py +++ b/intersight/apis/equipment_io_card_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/equipment_locator_led_api.py b/intersight/apis/equipment_locator_led_api.py index dda6cf28..24bc73f2 100644 --- a/intersight/apis/equipment_locator_led_api.py +++ b/intersight/apis/equipment_locator_led_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/equipment_psu_api.py b/intersight/apis/equipment_psu_api.py index 55018524..76b5c338 100644 --- a/intersight/apis/equipment_psu_api.py +++ b/intersight/apis/equipment_psu_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/equipment_switch_card_api.py b/intersight/apis/equipment_switch_card_api.py index a263ef17..364c6e89 100644 --- a/intersight/apis/equipment_switch_card_api.py +++ b/intersight/apis/equipment_switch_card_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/equipment_system_io_controller_api.py b/intersight/apis/equipment_system_io_controller_api.py index d5d150fd..6908df63 100644 --- a/intersight/apis/equipment_system_io_controller_api.py +++ b/intersight/apis/equipment_system_io_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/ether_physical_port_api.py b/intersight/apis/ether_physical_port_api.py index a74d541e..1e8340ef 100644 --- a/intersight/apis/ether_physical_port_api.py +++ b/intersight/apis/ether_physical_port_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/externalsite_authorization_api.py b/intersight/apis/externalsite_authorization_api.py new file mode 100644 index 00000000..445114a4 --- /dev/null +++ b/intersight/apis/externalsite_authorization_api.py @@ -0,0 +1,604 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ExternalsiteAuthorizationApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def externalsite_authorizations_get(self, **kwargs): + """ + List of externalsiteAuthorizations + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.externalsite_authorizations_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: ExternalsiteAuthorizationList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.externalsite_authorizations_get_with_http_info(**kwargs) + else: + (data) = self.externalsite_authorizations_get_with_http_info(**kwargs) + return data + + def externalsite_authorizations_get_with_http_info(self, **kwargs): + """ + List of externalsiteAuthorizations + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.externalsite_authorizations_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: ExternalsiteAuthorizationList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method externalsite_authorizations_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/externalsite/Authorizations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExternalsiteAuthorizationList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def externalsite_authorizations_moid_get(self, moid, **kwargs): + """ + A instance of externalsiteAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.externalsite_authorizations_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the externalsiteAuthorization instance. (required) + :return: ExternalsiteAuthorization + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.externalsite_authorizations_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.externalsite_authorizations_moid_get_with_http_info(moid, **kwargs) + return data + + def externalsite_authorizations_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of externalsiteAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.externalsite_authorizations_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the externalsiteAuthorization instance. (required) + :return: ExternalsiteAuthorization + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method externalsite_authorizations_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `externalsite_authorizations_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/externalsite/Authorizations/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExternalsiteAuthorization', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def externalsite_authorizations_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of externalsiteAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.externalsite_authorizations_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the externalsiteAuthorization instance. (required) + :param ExternalsiteAuthorization body: externalsiteAuthorization to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.externalsite_authorizations_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.externalsite_authorizations_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def externalsite_authorizations_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of externalsiteAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.externalsite_authorizations_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the externalsiteAuthorization instance. (required) + :param ExternalsiteAuthorization body: externalsiteAuthorization to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method externalsite_authorizations_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `externalsite_authorizations_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `externalsite_authorizations_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/externalsite/Authorizations/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def externalsite_authorizations_moid_post(self, moid, body, **kwargs): + """ + Update an instance of externalsiteAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.externalsite_authorizations_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the externalsiteAuthorization instance. (required) + :param ExternalsiteAuthorization body: externalsiteAuthorization to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.externalsite_authorizations_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.externalsite_authorizations_moid_post_with_http_info(moid, body, **kwargs) + return data + + def externalsite_authorizations_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of externalsiteAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.externalsite_authorizations_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the externalsiteAuthorization instance. (required) + :param ExternalsiteAuthorization body: externalsiteAuthorization to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method externalsite_authorizations_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `externalsite_authorizations_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `externalsite_authorizations_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/externalsite/Authorizations/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def externalsite_authorizations_post(self, body, **kwargs): + """ + Create a externalsiteAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.externalsite_authorizations_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ExternalsiteAuthorization body: externalsiteAuthorization to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.externalsite_authorizations_post_with_http_info(body, **kwargs) + else: + (data) = self.externalsite_authorizations_post_with_http_info(body, **kwargs) + return data + + def externalsite_authorizations_post_with_http_info(self, body, **kwargs): + """ + Create a externalsiteAuthorization + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.externalsite_authorizations_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param ExternalsiteAuthorization body: externalsiteAuthorization to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method externalsite_authorizations_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `externalsite_authorizations_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/externalsite/Authorizations', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/fault_instance_api.py b/intersight/apis/fault_instance_api.py index 99267ae8..f6f82507 100644 --- a/intersight/apis/fault_instance_api.py +++ b/intersight/apis/fault_instance_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/fc_physical_port_api.py b/intersight/apis/fc_physical_port_api.py index 46edc05f..19a32646 100644 --- a/intersight/apis/fc_physical_port_api.py +++ b/intersight/apis/fc_physical_port_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/feedback_feedback_post_api.py b/intersight/apis/feedback_feedback_post_api.py new file mode 100644 index 00000000..a99cc5ca --- /dev/null +++ b/intersight/apis/feedback_feedback_post_api.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class FeedbackFeedbackPostApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def feedback_feedback_posts_post(self, body, **kwargs): + """ + Create a feedbackFeedbackPost + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.feedback_feedback_posts_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param FeedbackFeedbackPost body: feedbackFeedbackPost to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.feedback_feedback_posts_post_with_http_info(body, **kwargs) + else: + (data) = self.feedback_feedback_posts_post_with_http_info(body, **kwargs) + return data + + def feedback_feedback_posts_post_with_http_info(self, body, **kwargs): + """ + Create a feedbackFeedbackPost + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.feedback_feedback_posts_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param FeedbackFeedbackPost body: feedbackFeedbackPost to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method feedback_feedback_posts_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `feedback_feedback_posts_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/feedback/FeedbackPosts', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/firmware_distributable_api.py b/intersight/apis/firmware_distributable_api.py index 05741d9e..2d1a2eed 100644 --- a/intersight/apis/firmware_distributable_api.py +++ b/intersight/apis/firmware_distributable_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/firmware_eula_api.py b/intersight/apis/firmware_eula_api.py index f57d363f..5d92fd1b 100644 --- a/intersight/apis/firmware_eula_api.py +++ b/intersight/apis/firmware_eula_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/firmware_running_firmware_api.py b/intersight/apis/firmware_running_firmware_api.py index 160da74c..b3a2194f 100644 --- a/intersight/apis/firmware_running_firmware_api.py +++ b/intersight/apis/firmware_running_firmware_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/firmware_upgrade_api.py b/intersight/apis/firmware_upgrade_api.py index 8acded3d..c79343c8 100644 --- a/intersight/apis/firmware_upgrade_api.py +++ b/intersight/apis/firmware_upgrade_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/firmware_upgrade_status_api.py b/intersight/apis/firmware_upgrade_status_api.py index 9e241400..c75eed52 100644 --- a/intersight/apis/firmware_upgrade_status_api.py +++ b/intersight/apis/firmware_upgrade_status_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/graphics_card_api.py b/intersight/apis/graphics_card_api.py index 99be9fd2..b0f28bcb 100644 --- a/intersight/apis/graphics_card_api.py +++ b/intersight/apis/graphics_card_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/graphics_controller_api.py b/intersight/apis/graphics_controller_api.py index add4d558..a7ff6ce5 100644 --- a/intersight/apis/graphics_controller_api.py +++ b/intersight/apis/graphics_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hcl_compatibility_info_api.py b/intersight/apis/hcl_compatibility_info_api.py index 0ca730d5..c2f30b34 100644 --- a/intersight/apis/hcl_compatibility_info_api.py +++ b/intersight/apis/hcl_compatibility_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hcl_data_import_log_api.py b/intersight/apis/hcl_data_import_log_api.py index 85f56dbd..f7f5a223 100644 --- a/intersight/apis/hcl_data_import_log_api.py +++ b/intersight/apis/hcl_data_import_log_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hcl_note_api.py b/intersight/apis/hcl_note_api.py index 99aa1ef0..5f468eca 100644 --- a/intersight/apis/hcl_note_api.py +++ b/intersight/apis/hcl_note_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_alarm_api.py b/intersight/apis/hyperflex_alarm_api.py index 3cfa2704..c7794bba 100644 --- a/intersight/apis/hyperflex_alarm_api.py +++ b/intersight/apis/hyperflex_alarm_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_auto_support_policy_api.py b/intersight/apis/hyperflex_auto_support_policy_api.py index 428169ed..a68540a9 100644 --- a/intersight/apis/hyperflex_auto_support_policy_api.py +++ b/intersight/apis/hyperflex_auto_support_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_cluster_api.py b/intersight/apis/hyperflex_cluster_api.py index 9e0c2884..94f1a9a9 100644 --- a/intersight/apis/hyperflex_cluster_api.py +++ b/intersight/apis/hyperflex_cluster_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_cluster_network_policy_api.py b/intersight/apis/hyperflex_cluster_network_policy_api.py index a4fd77b1..10df18dd 100644 --- a/intersight/apis/hyperflex_cluster_network_policy_api.py +++ b/intersight/apis/hyperflex_cluster_network_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_cluster_profile_api.py b/intersight/apis/hyperflex_cluster_profile_api.py index e08bbb83..1b396d1b 100644 --- a/intersight/apis/hyperflex_cluster_profile_api.py +++ b/intersight/apis/hyperflex_cluster_profile_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_cluster_storage_policy_api.py b/intersight/apis/hyperflex_cluster_storage_policy_api.py index 6589605e..621f3323 100644 --- a/intersight/apis/hyperflex_cluster_storage_policy_api.py +++ b/intersight/apis/hyperflex_cluster_storage_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_config_result_api.py b/intersight/apis/hyperflex_config_result_api.py index b6f52dee..3c63c29d 100644 --- a/intersight/apis/hyperflex_config_result_api.py +++ b/intersight/apis/hyperflex_config_result_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_config_result_entry_api.py b/intersight/apis/hyperflex_config_result_entry_api.py new file mode 100644 index 00000000..71f05cbe --- /dev/null +++ b/intersight/apis/hyperflex_config_result_entry_api.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HyperflexConfigResultEntryApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hyperflex_config_result_entries_get(self, **kwargs): + """ + List of hyperflexConfigResultEntries + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_config_result_entries_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: HyperflexConfigResultEntryList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_config_result_entries_get_with_http_info(**kwargs) + else: + (data) = self.hyperflex_config_result_entries_get_with_http_info(**kwargs) + return data + + def hyperflex_config_result_entries_get_with_http_info(self, **kwargs): + """ + List of hyperflexConfigResultEntries + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_config_result_entries_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: HyperflexConfigResultEntryList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_config_result_entries_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ConfigResultEntries', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexConfigResultEntryList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_config_result_entries_moid_get(self, moid, **kwargs): + """ + A instance of hyperflexConfigResultEntry + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_config_result_entries_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexConfigResultEntry instance. (required) + :return: HyperflexConfigResultEntry + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_config_result_entries_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_config_result_entries_moid_get_with_http_info(moid, **kwargs) + return data + + def hyperflex_config_result_entries_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of hyperflexConfigResultEntry + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_config_result_entries_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexConfigResultEntry instance. (required) + :return: HyperflexConfigResultEntry + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_config_result_entries_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_config_result_entries_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ConfigResultEntries/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexConfigResultEntry', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_ext_fc_storage_policy_api.py b/intersight/apis/hyperflex_ext_fc_storage_policy_api.py index ef6d6657..a2ab1f4e 100644 --- a/intersight/apis/hyperflex_ext_fc_storage_policy_api.py +++ b/intersight/apis/hyperflex_ext_fc_storage_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_ext_iscsi_storage_policy_api.py b/intersight/apis/hyperflex_ext_iscsi_storage_policy_api.py index b5c4f012..276f24ad 100644 --- a/intersight/apis/hyperflex_ext_iscsi_storage_policy_api.py +++ b/intersight/apis/hyperflex_ext_iscsi_storage_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_local_credential_policy_api.py b/intersight/apis/hyperflex_local_credential_policy_api.py index b453bce7..fe9e5a1e 100644 --- a/intersight/apis/hyperflex_local_credential_policy_api.py +++ b/intersight/apis/hyperflex_local_credential_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_node_config_policy_api.py b/intersight/apis/hyperflex_node_config_policy_api.py index 8f71cf73..b8b71039 100644 --- a/intersight/apis/hyperflex_node_config_policy_api.py +++ b/intersight/apis/hyperflex_node_config_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_node_profile_api.py b/intersight/apis/hyperflex_node_profile_api.py index 40a3b5e0..ce374145 100644 --- a/intersight/apis/hyperflex_node_profile_api.py +++ b/intersight/apis/hyperflex_node_profile_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_proxy_setting_policy_api.py b/intersight/apis/hyperflex_proxy_setting_policy_api.py new file mode 100644 index 00000000..90b413d3 --- /dev/null +++ b/intersight/apis/hyperflex_proxy_setting_policy_api.py @@ -0,0 +1,708 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HyperflexProxySettingPolicyApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hyperflex_proxy_setting_policies_get(self, **kwargs): + """ + List of hyperflexProxySettingPolicies + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: HyperflexProxySettingPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_get_with_http_info(**kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_get_with_http_info(**kwargs) + return data + + def hyperflex_proxy_setting_policies_get_with_http_info(self, **kwargs): + """ + List of hyperflexProxySettingPolicies + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: HyperflexProxySettingPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexProxySettingPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_proxy_setting_policies_moid_delete(self, moid, **kwargs): + """ + Delete an instance of hyperflexProxySettingPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_moid_delete_with_http_info(moid, **kwargs) + return data + + def hyperflex_proxy_setting_policies_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of hyperflexProxySettingPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_proxy_setting_policies_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_proxy_setting_policies_moid_get(self, moid, **kwargs): + """ + A instance of hyperflexProxySettingPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :return: HyperflexProxySettingPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_moid_get_with_http_info(moid, **kwargs) + return data + + def hyperflex_proxy_setting_policies_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of hyperflexProxySettingPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :return: HyperflexProxySettingPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_proxy_setting_policies_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexProxySettingPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_proxy_setting_policies_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of hyperflexProxySettingPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_proxy_setting_policies_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of hyperflexProxySettingPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_proxy_setting_policies_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_proxy_setting_policies_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_proxy_setting_policies_moid_post(self, moid, body, **kwargs): + """ + Update an instance of hyperflexProxySettingPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_moid_post_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_proxy_setting_policies_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of hyperflexProxySettingPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_proxy_setting_policies_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_proxy_setting_policies_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_proxy_setting_policies_post(self, body, **kwargs): + """ + Create a hyperflexProxySettingPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_post_with_http_info(body, **kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_post_with_http_info(body, **kwargs) + return data + + def hyperflex_proxy_setting_policies_post_with_http_info(self, body, **kwargs): + """ + Create a hyperflexProxySettingPolicy + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_proxy_setting_policies_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_sys_config_policy_api.py b/intersight/apis/hyperflex_sys_config_policy_api.py index 80f2f896..69125f5f 100644 --- a/intersight/apis/hyperflex_sys_config_policy_api.py +++ b/intersight/apis/hyperflex_sys_config_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_ucsm_config_policy_api.py b/intersight/apis/hyperflex_ucsm_config_policy_api.py index 0ee99144..97c6d67a 100644 --- a/intersight/apis/hyperflex_ucsm_config_policy_api.py +++ b/intersight/apis/hyperflex_ucsm_config_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/hyperflex_vcenter_config_policy_api.py b/intersight/apis/hyperflex_vcenter_config_policy_api.py index bc816c68..a66dcd17 100644 --- a/intersight/apis/hyperflex_vcenter_config_policy_api.py +++ b/intersight/apis/hyperflex_vcenter_config_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iaas_connector_pack_api.py b/intersight/apis/iaas_connector_pack_api.py new file mode 100644 index 00000000..ea0a08dd --- /dev/null +++ b/intersight/apis/iaas_connector_pack_api.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class IaasConnectorPackApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def iaas_connector_packs_get(self, **kwargs): + """ + List of iaasConnectorPacks + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_connector_packs_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: IaasConnectorPackList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_connector_packs_get_with_http_info(**kwargs) + else: + (data) = self.iaas_connector_packs_get_with_http_info(**kwargs) + return data + + def iaas_connector_packs_get_with_http_info(self, **kwargs): + """ + List of iaasConnectorPacks + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_connector_packs_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: IaasConnectorPackList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_connector_packs_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/ConnectorPacks', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasConnectorPackList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iaas_connector_packs_moid_get(self, moid, **kwargs): + """ + A instance of iaasConnectorPack + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_connector_packs_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasConnectorPack instance. (required) + :return: IaasConnectorPack + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_connector_packs_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.iaas_connector_packs_moid_get_with_http_info(moid, **kwargs) + return data + + def iaas_connector_packs_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of iaasConnectorPack + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_connector_packs_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasConnectorPack instance. (required) + :return: IaasConnectorPack + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_connector_packs_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iaas_connector_packs_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/ConnectorPacks/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasConnectorPack', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/iaas_device_status_api.py b/intersight/apis/iaas_device_status_api.py new file mode 100644 index 00000000..c2de2720 --- /dev/null +++ b/intersight/apis/iaas_device_status_api.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class IaasDeviceStatusApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def iaas_device_statuses_get(self, **kwargs): + """ + List of iaasDeviceStatuses + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_device_statuses_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: IaasDeviceStatusList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_device_statuses_get_with_http_info(**kwargs) + else: + (data) = self.iaas_device_statuses_get_with_http_info(**kwargs) + return data + + def iaas_device_statuses_get_with_http_info(self, **kwargs): + """ + List of iaasDeviceStatuses + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_device_statuses_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: IaasDeviceStatusList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_device_statuses_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/DeviceStatuses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasDeviceStatusList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iaas_device_statuses_moid_get(self, moid, **kwargs): + """ + A instance of iaasDeviceStatus + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_device_statuses_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasDeviceStatus instance. (required) + :return: IaasDeviceStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_device_statuses_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.iaas_device_statuses_moid_get_with_http_info(moid, **kwargs) + return data + + def iaas_device_statuses_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of iaasDeviceStatus + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_device_statuses_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasDeviceStatus instance. (required) + :return: IaasDeviceStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_device_statuses_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iaas_device_statuses_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/DeviceStatuses/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasDeviceStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/iaas_license_info_api.py b/intersight/apis/iaas_license_info_api.py new file mode 100644 index 00000000..8f61ea91 --- /dev/null +++ b/intersight/apis/iaas_license_info_api.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class IaasLicenseInfoApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def iaas_license_infos_get(self, **kwargs): + """ + List of iaasLicenseInfos + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_license_infos_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: IaasLicenseInfoList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_license_infos_get_with_http_info(**kwargs) + else: + (data) = self.iaas_license_infos_get_with_http_info(**kwargs) + return data + + def iaas_license_infos_get_with_http_info(self, **kwargs): + """ + List of iaasLicenseInfos + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_license_infos_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: IaasLicenseInfoList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_license_infos_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/LicenseInfos', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasLicenseInfoList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iaas_license_infos_moid_get(self, moid, **kwargs): + """ + A instance of iaasLicenseInfo + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_license_infos_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasLicenseInfo instance. (required) + :return: IaasLicenseInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_license_infos_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.iaas_license_infos_moid_get_with_http_info(moid, **kwargs) + return data + + def iaas_license_infos_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of iaasLicenseInfo + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_license_infos_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasLicenseInfo instance. (required) + :return: IaasLicenseInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_license_infos_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iaas_license_infos_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/LicenseInfos/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasLicenseInfo', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/iaas_ucsd_info_api.py b/intersight/apis/iaas_ucsd_info_api.py new file mode 100644 index 00000000..4880d34d --- /dev/null +++ b/intersight/apis/iaas_ucsd_info_api.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class IaasUcsdInfoApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def iaas_ucsd_infos_get(self, **kwargs): + """ + List of iaasUcsdInfos + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_ucsd_infos_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: IaasUcsdInfoList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_ucsd_infos_get_with_http_info(**kwargs) + else: + (data) = self.iaas_ucsd_infos_get_with_http_info(**kwargs) + return data + + def iaas_ucsd_infos_get_with_http_info(self, **kwargs): + """ + List of iaasUcsdInfos + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_ucsd_infos_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: IaasUcsdInfoList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_ucsd_infos_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/UcsdInfos', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasUcsdInfoList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iaas_ucsd_infos_moid_get(self, moid, **kwargs): + """ + A instance of iaasUcsdInfo + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_ucsd_infos_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasUcsdInfo instance. (required) + :return: IaasUcsdInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_ucsd_infos_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.iaas_ucsd_infos_moid_get_with_http_info(moid, **kwargs) + return data + + def iaas_ucsd_infos_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of iaasUcsdInfo + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_ucsd_infos_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasUcsdInfo instance. (required) + :return: IaasUcsdInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_ucsd_infos_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iaas_ucsd_infos_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/UcsdInfos/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasUcsdInfo', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/iam_account_api.py b/intersight/apis/iam_account_api.py index 5d411155..eae616de 100644 --- a/intersight/apis/iam_account_api.py +++ b/intersight/apis/iam_account_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_api_key_api.py b/intersight/apis/iam_api_key_api.py index 998e136b..2695958f 100644 --- a/intersight/apis/iam_api_key_api.py +++ b/intersight/apis/iam_api_key_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_end_point_privilege_api.py b/intersight/apis/iam_end_point_privilege_api.py index 167437a7..2b74ae72 100644 --- a/intersight/apis/iam_end_point_privilege_api.py +++ b/intersight/apis/iam_end_point_privilege_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_end_point_role_api.py b/intersight/apis/iam_end_point_role_api.py index dd181262..01c01320 100644 --- a/intersight/apis/iam_end_point_role_api.py +++ b/intersight/apis/iam_end_point_role_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_end_point_user_api.py b/intersight/apis/iam_end_point_user_api.py index bf1bb3e4..eb278cf8 100644 --- a/intersight/apis/iam_end_point_user_api.py +++ b/intersight/apis/iam_end_point_user_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_end_point_user_policy_api.py b/intersight/apis/iam_end_point_user_policy_api.py index 1321cf58..6b7796d5 100644 --- a/intersight/apis/iam_end_point_user_policy_api.py +++ b/intersight/apis/iam_end_point_user_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_end_point_user_role_api.py b/intersight/apis/iam_end_point_user_role_api.py index 01ad141a..5bc7951d 100644 --- a/intersight/apis/iam_end_point_user_role_api.py +++ b/intersight/apis/iam_end_point_user_role_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_idp_api.py b/intersight/apis/iam_idp_api.py index eb07a6d5..c7105760 100644 --- a/intersight/apis/iam_idp_api.py +++ b/intersight/apis/iam_idp_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_idp_reference_api.py b/intersight/apis/iam_idp_reference_api.py index 1741470a..77d8e77b 100644 --- a/intersight/apis/iam_idp_reference_api.py +++ b/intersight/apis/iam_idp_reference_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_ldap_group_api.py b/intersight/apis/iam_ldap_group_api.py index 84c98e7e..39739187 100644 --- a/intersight/apis/iam_ldap_group_api.py +++ b/intersight/apis/iam_ldap_group_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_ldap_policy_api.py b/intersight/apis/iam_ldap_policy_api.py index d63ca84a..5a779181 100644 --- a/intersight/apis/iam_ldap_policy_api.py +++ b/intersight/apis/iam_ldap_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_ldap_provider_api.py b/intersight/apis/iam_ldap_provider_api.py index 37ae1ab7..3fa57908 100644 --- a/intersight/apis/iam_ldap_provider_api.py +++ b/intersight/apis/iam_ldap_provider_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_permission_api.py b/intersight/apis/iam_permission_api.py index aa6954ba..171798a7 100644 --- a/intersight/apis/iam_permission_api.py +++ b/intersight/apis/iam_permission_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_privilege_api.py b/intersight/apis/iam_privilege_api.py index 7d1c550e..9aee131b 100644 --- a/intersight/apis/iam_privilege_api.py +++ b/intersight/apis/iam_privilege_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_privilege_set_api.py b/intersight/apis/iam_privilege_set_api.py index 1bda02cf..d9069917 100644 --- a/intersight/apis/iam_privilege_set_api.py +++ b/intersight/apis/iam_privilege_set_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_qualifier_api.py b/intersight/apis/iam_qualifier_api.py index 169755b7..ab7ecbf4 100644 --- a/intersight/apis/iam_qualifier_api.py +++ b/intersight/apis/iam_qualifier_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_resource_limits_api.py b/intersight/apis/iam_resource_limits_api.py index 9c892c0c..4155ffd9 100644 --- a/intersight/apis/iam_resource_limits_api.py +++ b/intersight/apis/iam_resource_limits_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_role_api.py b/intersight/apis/iam_role_api.py index 34638b21..93f47969 100644 --- a/intersight/apis/iam_role_api.py +++ b/intersight/apis/iam_role_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_session_api.py b/intersight/apis/iam_session_api.py index e22aa3a1..6e85c344 100644 --- a/intersight/apis/iam_session_api.py +++ b/intersight/apis/iam_session_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_session_limits_api.py b/intersight/apis/iam_session_limits_api.py index 88df00cd..1a472dd3 100644 --- a/intersight/apis/iam_session_limits_api.py +++ b/intersight/apis/iam_session_limits_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_system_api.py b/intersight/apis/iam_system_api.py index 8f9a3a71..c76b53f3 100644 --- a/intersight/apis/iam_system_api.py +++ b/intersight/apis/iam_system_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_user_api.py b/intersight/apis/iam_user_api.py index 75ee652a..d8a9e3cb 100644 --- a/intersight/apis/iam_user_api.py +++ b/intersight/apis/iam_user_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_user_group_api.py b/intersight/apis/iam_user_group_api.py index 108c41e3..f1a090a2 100644 --- a/intersight/apis/iam_user_group_api.py +++ b/intersight/apis/iam_user_group_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/iam_user_preference_api.py b/intersight/apis/iam_user_preference_api.py index f30ef14f..3d6489b2 100644 --- a/intersight/apis/iam_user_preference_api.py +++ b/intersight/apis/iam_user_preference_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/inventory_device_info_api.py b/intersight/apis/inventory_device_info_api.py index 81876652..1ec20a6e 100644 --- a/intersight/apis/inventory_device_info_api.py +++ b/intersight/apis/inventory_device_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/inventory_dn_mo_binding_api.py b/intersight/apis/inventory_dn_mo_binding_api.py index 79c901ab..2c46e32a 100644 --- a/intersight/apis/inventory_dn_mo_binding_api.py +++ b/intersight/apis/inventory_dn_mo_binding_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/inventory_generic_inventory_api.py b/intersight/apis/inventory_generic_inventory_api.py index 55d6edba..ad1e4d89 100644 --- a/intersight/apis/inventory_generic_inventory_api.py +++ b/intersight/apis/inventory_generic_inventory_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/inventory_generic_inventory_holder_api.py b/intersight/apis/inventory_generic_inventory_holder_api.py index c880a627..b263ec60 100644 --- a/intersight/apis/inventory_generic_inventory_holder_api.py +++ b/intersight/apis/inventory_generic_inventory_holder_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/inventory_request_api.py b/intersight/apis/inventory_request_api.py new file mode 100644 index 00000000..69b37dab --- /dev/null +++ b/intersight/apis/inventory_request_api.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class InventoryRequestApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def inventory_requests_post(self, body, **kwargs): + """ + Create a inventoryRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.inventory_requests_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param InventoryRequest body: inventoryRequest to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.inventory_requests_post_with_http_info(body, **kwargs) + else: + (data) = self.inventory_requests_post_with_http_info(body, **kwargs) + return data + + def inventory_requests_post_with_http_info(self, body, **kwargs): + """ + Create a inventoryRequest + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.inventory_requests_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param InventoryRequest body: inventoryRequest to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method inventory_requests_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `inventory_requests_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/inventory/Requests', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/ipmioverlan_policy_api.py b/intersight/apis/ipmioverlan_policy_api.py index c66a3302..9c313814 100644 --- a/intersight/apis/ipmioverlan_policy_api.py +++ b/intersight/apis/ipmioverlan_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/kvm_policy_api.py b/intersight/apis/kvm_policy_api.py index 2538bef3..673c54a9 100644 --- a/intersight/apis/kvm_policy_api.py +++ b/intersight/apis/kvm_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/license_account_license_data_api.py b/intersight/apis/license_account_license_data_api.py index 79ae3133..afe66095 100644 --- a/intersight/apis/license_account_license_data_api.py +++ b/intersight/apis/license_account_license_data_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/license_customer_op_api.py b/intersight/apis/license_customer_op_api.py index 8837dba4..da43991f 100644 --- a/intersight/apis/license_customer_op_api.py +++ b/intersight/apis/license_customer_op_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/license_license_info_api.py b/intersight/apis/license_license_info_api.py index 329fb8bd..b4b4dbda 100644 --- a/intersight/apis/license_license_info_api.py +++ b/intersight/apis/license_license_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/license_smartlicense_token_api.py b/intersight/apis/license_smartlicense_token_api.py index 4affecde..e1b4e01b 100644 --- a/intersight/apis/license_smartlicense_token_api.py +++ b/intersight/apis/license_smartlicense_token_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/ls_service_profile_api.py b/intersight/apis/ls_service_profile_api.py index 30e3f69d..cbdaf893 100644 --- a/intersight/apis/ls_service_profile_api.py +++ b/intersight/apis/ls_service_profile_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/management_controller_api.py b/intersight/apis/management_controller_api.py index 23d96d3d..a98cf1d4 100644 --- a/intersight/apis/management_controller_api.py +++ b/intersight/apis/management_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/management_entity_api.py b/intersight/apis/management_entity_api.py index 4e33a36b..930a18a7 100644 --- a/intersight/apis/management_entity_api.py +++ b/intersight/apis/management_entity_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/management_interface_api.py b/intersight/apis/management_interface_api.py index 00877e2b..2e017d2f 100644 --- a/intersight/apis/management_interface_api.py +++ b/intersight/apis/management_interface_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/memory_array_api.py b/intersight/apis/memory_array_api.py index 6468a27c..a8237a7b 100644 --- a/intersight/apis/memory_array_api.py +++ b/intersight/apis/memory_array_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/memory_unit_api.py b/intersight/apis/memory_unit_api.py index 1ccd90e1..430d4739 100644 --- a/intersight/apis/memory_unit_api.py +++ b/intersight/apis/memory_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/meta_definition_api.py b/intersight/apis/meta_definition_api.py index f9e43b81..a02e0834 100644 --- a/intersight/apis/meta_definition_api.py +++ b/intersight/apis/meta_definition_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/network_element_api.py b/intersight/apis/network_element_api.py index b50ea2fd..4ad1ceb2 100644 --- a/intersight/apis/network_element_api.py +++ b/intersight/apis/network_element_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/network_element_summary_api.py b/intersight/apis/network_element_summary_api.py index fa36552d..a09f86bf 100644 --- a/intersight/apis/network_element_summary_api.py +++ b/intersight/apis/network_element_summary_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/networkconfig_policy_api.py b/intersight/apis/networkconfig_policy_api.py index 848befb0..03f8bf37 100644 --- a/intersight/apis/networkconfig_policy_api.py +++ b/intersight/apis/networkconfig_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/ntp_policy_api.py b/intersight/apis/ntp_policy_api.py index 726739c2..f4c86e24 100644 --- a/intersight/apis/ntp_policy_api.py +++ b/intersight/apis/ntp_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/oauth_oauth_user_api.py b/intersight/apis/oauth_oauth_user_api.py new file mode 100644 index 00000000..7201b6e6 --- /dev/null +++ b/intersight/apis/oauth_oauth_user_api.py @@ -0,0 +1,708 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class OauthOauthUserApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def oauth_oauth_users_get(self, **kwargs): + """ + List of oauthOauthUsers + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: OauthOauthUserList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.oauth_oauth_users_get_with_http_info(**kwargs) + else: + (data) = self.oauth_oauth_users_get_with_http_info(**kwargs) + return data + + def oauth_oauth_users_get_with_http_info(self, **kwargs): + """ + List of oauthOauthUsers + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: OauthOauthUserList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method oauth_oauth_users_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/oauth/OauthUsers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='OauthOauthUserList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def oauth_oauth_users_moid_delete(self, moid, **kwargs): + """ + Delete an instance of oauthOauthUser + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the oauthOauthUser instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.oauth_oauth_users_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.oauth_oauth_users_moid_delete_with_http_info(moid, **kwargs) + return data + + def oauth_oauth_users_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of oauthOauthUser + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the oauthOauthUser instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method oauth_oauth_users_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `oauth_oauth_users_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/oauth/OauthUsers/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def oauth_oauth_users_moid_get(self, moid, **kwargs): + """ + A instance of oauthOauthUser + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the oauthOauthUser instance. (required) + :return: OauthOauthUser + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.oauth_oauth_users_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.oauth_oauth_users_moid_get_with_http_info(moid, **kwargs) + return data + + def oauth_oauth_users_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of oauthOauthUser + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the oauthOauthUser instance. (required) + :return: OauthOauthUser + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method oauth_oauth_users_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `oauth_oauth_users_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/oauth/OauthUsers/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='OauthOauthUser', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def oauth_oauth_users_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of oauthOauthUser + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the oauthOauthUser instance. (required) + :param OauthOauthUser body: oauthOauthUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.oauth_oauth_users_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.oauth_oauth_users_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def oauth_oauth_users_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of oauthOauthUser + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the oauthOauthUser instance. (required) + :param OauthOauthUser body: oauthOauthUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method oauth_oauth_users_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `oauth_oauth_users_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `oauth_oauth_users_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/oauth/OauthUsers/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def oauth_oauth_users_moid_post(self, moid, body, **kwargs): + """ + Update an instance of oauthOauthUser + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the oauthOauthUser instance. (required) + :param OauthOauthUser body: oauthOauthUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.oauth_oauth_users_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.oauth_oauth_users_moid_post_with_http_info(moid, body, **kwargs) + return data + + def oauth_oauth_users_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of oauthOauthUser + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the oauthOauthUser instance. (required) + :param OauthOauthUser body: oauthOauthUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method oauth_oauth_users_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `oauth_oauth_users_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `oauth_oauth_users_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/oauth/OauthUsers/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def oauth_oauth_users_post(self, body, **kwargs): + """ + Create a oauthOauthUser + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param OauthOauthUser body: oauthOauthUser to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.oauth_oauth_users_post_with_http_info(body, **kwargs) + else: + (data) = self.oauth_oauth_users_post_with_http_info(body, **kwargs) + return data + + def oauth_oauth_users_post_with_http_info(self, body, **kwargs): + """ + Create a oauthOauthUser + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oauth_oauth_users_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param OauthOauthUser body: oauthOauthUser to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method oauth_oauth_users_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `oauth_oauth_users_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/oauth/OauthUsers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/port_group_api.py b/intersight/apis/port_group_api.py index 6f0bdded..261cbbb2 100644 --- a/intersight/apis/port_group_api.py +++ b/intersight/apis/port_group_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/port_sub_group_api.py b/intersight/apis/port_sub_group_api.py index b7e7de61..1ded0d07 100644 --- a/intersight/apis/port_sub_group_api.py +++ b/intersight/apis/port_sub_group_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/processor_unit_api.py b/intersight/apis/processor_unit_api.py index 27b48c50..c9e23c9f 100644 --- a/intersight/apis/processor_unit_api.py +++ b/intersight/apis/processor_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/search_search_item_api.py b/intersight/apis/search_search_item_api.py index 9872f54b..29978822 100644 --- a/intersight/apis/search_search_item_api.py +++ b/intersight/apis/search_search_item_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/search_suggest_item_api.py b/intersight/apis/search_suggest_item_api.py index 514f7046..d3d6a23b 100644 --- a/intersight/apis/search_suggest_item_api.py +++ b/intersight/apis/search_suggest_item_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/search_tag_item_api.py b/intersight/apis/search_tag_item_api.py index 71ac2c5c..34f364f5 100644 --- a/intersight/apis/search_tag_item_api.py +++ b/intersight/apis/search_tag_item_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/security_unit_api.py b/intersight/apis/security_unit_api.py index 992adcd0..5178a931 100644 --- a/intersight/apis/security_unit_api.py +++ b/intersight/apis/security_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/server_config_result_api.py b/intersight/apis/server_config_result_api.py index 4d4f823d..83f0d85d 100644 --- a/intersight/apis/server_config_result_api.py +++ b/intersight/apis/server_config_result_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/server_config_result_entry_api.py b/intersight/apis/server_config_result_entry_api.py new file mode 100644 index 00000000..a7ce0f11 --- /dev/null +++ b/intersight/apis/server_config_result_entry_api.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ServerConfigResultEntryApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def server_config_result_entries_get(self, **kwargs): + """ + List of serverConfigResultEntries + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_result_entries_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: ServerConfigResultEntryList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.server_config_result_entries_get_with_http_info(**kwargs) + else: + (data) = self.server_config_result_entries_get_with_http_info(**kwargs) + return data + + def server_config_result_entries_get_with_http_info(self, **kwargs): + """ + List of serverConfigResultEntries + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_result_entries_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: ServerConfigResultEntryList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method server_config_result_entries_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/server/ConfigResultEntries', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ServerConfigResultEntryList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def server_config_result_entries_moid_get(self, moid, **kwargs): + """ + A instance of serverConfigResultEntry + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_result_entries_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the serverConfigResultEntry instance. (required) + :return: ServerConfigResultEntry + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.server_config_result_entries_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.server_config_result_entries_moid_get_with_http_info(moid, **kwargs) + return data + + def server_config_result_entries_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of serverConfigResultEntry + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_result_entries_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the serverConfigResultEntry instance. (required) + :return: ServerConfigResultEntry + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method server_config_result_entries_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `server_config_result_entries_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/server/ConfigResultEntries/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ServerConfigResultEntry', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/server_profile_api.py b/intersight/apis/server_profile_api.py index 097cc07b..cd849c2b 100644 --- a/intersight/apis/server_profile_api.py +++ b/intersight/apis/server_profile_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/smtp_policy_api.py b/intersight/apis/smtp_policy_api.py index 4353a225..a463d1b5 100644 --- a/intersight/apis/smtp_policy_api.py +++ b/intersight/apis/smtp_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/snmp_policy_api.py b/intersight/apis/snmp_policy_api.py index f4514baa..5b98e01b 100644 --- a/intersight/apis/snmp_policy_api.py +++ b/intersight/apis/snmp_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/sol_policy_api.py b/intersight/apis/sol_policy_api.py index 8b74eadb..6df69623 100644 --- a/intersight/apis/sol_policy_api.py +++ b/intersight/apis/sol_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/ssh_policy_api.py b/intersight/apis/ssh_policy_api.py index da294083..37274933 100644 --- a/intersight/apis/ssh_policy_api.py +++ b/intersight/apis/ssh_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/storage_controller_api.py b/intersight/apis/storage_controller_api.py index e9c4bfa8..ebf3fbcd 100644 --- a/intersight/apis/storage_controller_api.py +++ b/intersight/apis/storage_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/storage_disk_group_policy_api.py b/intersight/apis/storage_disk_group_policy_api.py index a5023f5a..cbc5fa93 100644 --- a/intersight/apis/storage_disk_group_policy_api.py +++ b/intersight/apis/storage_disk_group_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/storage_enclosure_api.py b/intersight/apis/storage_enclosure_api.py new file mode 100644 index 00000000..79cab96c --- /dev/null +++ b/intersight/apis/storage_enclosure_api.py @@ -0,0 +1,500 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageEnclosureApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_enclosures_get(self, **kwargs): + """ + List of storageEnclosures + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StorageEnclosureList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_enclosures_get_with_http_info(**kwargs) + else: + (data) = self.storage_enclosures_get_with_http_info(**kwargs) + return data + + def storage_enclosures_get_with_http_info(self, **kwargs): + """ + List of storageEnclosures + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StorageEnclosureList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_enclosures_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/Enclosures', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageEnclosureList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_enclosures_moid_get(self, moid, **kwargs): + """ + A instance of storageEnclosure + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :return: StorageEnclosure + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_enclosures_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_enclosures_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_enclosures_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of storageEnclosure + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :return: StorageEnclosure + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_enclosures_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_enclosures_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/Enclosures/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageEnclosure', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_enclosures_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of storageEnclosure + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :param StorageEnclosure body: storageEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_enclosures_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_enclosures_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_enclosures_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storageEnclosure + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :param StorageEnclosure body: storageEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_enclosures_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_enclosures_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_enclosures_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/Enclosures/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_enclosures_moid_post(self, moid, body, **kwargs): + """ + Update an instance of storageEnclosure + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :param StorageEnclosure body: storageEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_enclosures_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_enclosures_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_enclosures_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storageEnclosure + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :param StorageEnclosure body: storageEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_enclosures_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_enclosures_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_enclosures_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/Enclosures/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_flex_flash_controller_api.py b/intersight/apis/storage_flex_flash_controller_api.py index f354da74..558bc427 100644 --- a/intersight/apis/storage_flex_flash_controller_api.py +++ b/intersight/apis/storage_flex_flash_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/storage_flex_flash_controller_props_api.py b/intersight/apis/storage_flex_flash_controller_props_api.py new file mode 100644 index 00000000..f93943ec --- /dev/null +++ b/intersight/apis/storage_flex_flash_controller_props_api.py @@ -0,0 +1,500 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageFlexFlashControllerPropsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_flex_flash_controller_props_get(self, **kwargs): + """ + List of storageFlexFlashControllerProps + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StorageFlexFlashControllerPropsList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_controller_props_get_with_http_info(**kwargs) + else: + (data) = self.storage_flex_flash_controller_props_get_with_http_info(**kwargs) + return data + + def storage_flex_flash_controller_props_get_with_http_info(self, **kwargs): + """ + List of storageFlexFlashControllerProps + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StorageFlexFlashControllerPropsList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_controller_props_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashControllerProps', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexFlashControllerPropsList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_controller_props_moid_get(self, moid, **kwargs): + """ + A instance of storageFlexFlashControllerProps + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :return: StorageFlexFlashControllerProps + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_controller_props_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_flex_flash_controller_props_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_flex_flash_controller_props_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of storageFlexFlashControllerProps + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :return: StorageFlexFlashControllerProps + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_controller_props_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_controller_props_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashControllerProps/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexFlashControllerProps', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_controller_props_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of storageFlexFlashControllerProps + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :param StorageFlexFlashControllerProps body: storageFlexFlashControllerProps to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_controller_props_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_flash_controller_props_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_flash_controller_props_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storageFlexFlashControllerProps + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :param StorageFlexFlashControllerProps body: storageFlexFlashControllerProps to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_controller_props_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_controller_props_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_flash_controller_props_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashControllerProps/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_controller_props_moid_post(self, moid, body, **kwargs): + """ + Update an instance of storageFlexFlashControllerProps + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :param StorageFlexFlashControllerProps body: storageFlexFlashControllerProps to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_controller_props_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_flash_controller_props_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_flash_controller_props_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storageFlexFlashControllerProps + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :param StorageFlexFlashControllerProps body: storageFlexFlashControllerProps to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_controller_props_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_controller_props_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_flash_controller_props_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashControllerProps/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_flex_flash_physical_drive_api.py b/intersight/apis/storage_flex_flash_physical_drive_api.py index b1171770..347f67ae 100644 --- a/intersight/apis/storage_flex_flash_physical_drive_api.py +++ b/intersight/apis/storage_flex_flash_physical_drive_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/storage_flex_flash_virtual_drive_api.py b/intersight/apis/storage_flex_flash_virtual_drive_api.py new file mode 100644 index 00000000..e24b0cd8 --- /dev/null +++ b/intersight/apis/storage_flex_flash_virtual_drive_api.py @@ -0,0 +1,500 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageFlexFlashVirtualDriveApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_flex_flash_virtual_drives_get(self, **kwargs): + """ + List of storageFlexFlashVirtualDrives + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StorageFlexFlashVirtualDriveList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_virtual_drives_get_with_http_info(**kwargs) + else: + (data) = self.storage_flex_flash_virtual_drives_get_with_http_info(**kwargs) + return data + + def storage_flex_flash_virtual_drives_get_with_http_info(self, **kwargs): + """ + List of storageFlexFlashVirtualDrives + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StorageFlexFlashVirtualDriveList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_virtual_drives_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashVirtualDrives', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexFlashVirtualDriveList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_virtual_drives_moid_get(self, moid, **kwargs): + """ + A instance of storageFlexFlashVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :return: StorageFlexFlashVirtualDrive + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_virtual_drives_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_flex_flash_virtual_drives_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_flex_flash_virtual_drives_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of storageFlexFlashVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :return: StorageFlexFlashVirtualDrive + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_virtual_drives_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_virtual_drives_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashVirtualDrives/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexFlashVirtualDrive', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_virtual_drives_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of storageFlexFlashVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :param StorageFlexFlashVirtualDrive body: storageFlexFlashVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_virtual_drives_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_flash_virtual_drives_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_flash_virtual_drives_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storageFlexFlashVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :param StorageFlexFlashVirtualDrive body: storageFlexFlashVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_virtual_drives_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_virtual_drives_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_flash_virtual_drives_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashVirtualDrives/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_virtual_drives_moid_post(self, moid, body, **kwargs): + """ + Update an instance of storageFlexFlashVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :param StorageFlexFlashVirtualDrive body: storageFlexFlashVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_virtual_drives_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_flash_virtual_drives_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_flash_virtual_drives_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storageFlexFlashVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :param StorageFlexFlashVirtualDrive body: storageFlexFlashVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_virtual_drives_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_virtual_drives_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_flash_virtual_drives_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashVirtualDrives/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_flex_util_controller_api.py b/intersight/apis/storage_flex_util_controller_api.py index 09a50323..978113a0 100644 --- a/intersight/apis/storage_flex_util_controller_api.py +++ b/intersight/apis/storage_flex_util_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/storage_flex_util_physical_drive_api.py b/intersight/apis/storage_flex_util_physical_drive_api.py new file mode 100644 index 00000000..d340c3c2 --- /dev/null +++ b/intersight/apis/storage_flex_util_physical_drive_api.py @@ -0,0 +1,500 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageFlexUtilPhysicalDriveApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_flex_util_physical_drives_get(self, **kwargs): + """ + List of storageFlexUtilPhysicalDrives + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StorageFlexUtilPhysicalDriveList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_physical_drives_get_with_http_info(**kwargs) + else: + (data) = self.storage_flex_util_physical_drives_get_with_http_info(**kwargs) + return data + + def storage_flex_util_physical_drives_get_with_http_info(self, **kwargs): + """ + List of storageFlexUtilPhysicalDrives + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StorageFlexUtilPhysicalDriveList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_physical_drives_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilPhysicalDrives', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexUtilPhysicalDriveList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_physical_drives_moid_get(self, moid, **kwargs): + """ + A instance of storageFlexUtilPhysicalDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :return: StorageFlexUtilPhysicalDrive + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_physical_drives_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_flex_util_physical_drives_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_flex_util_physical_drives_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of storageFlexUtilPhysicalDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :return: StorageFlexUtilPhysicalDrive + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_physical_drives_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_physical_drives_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilPhysicalDrives/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexUtilPhysicalDrive', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_physical_drives_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of storageFlexUtilPhysicalDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :param StorageFlexUtilPhysicalDrive body: storageFlexUtilPhysicalDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_physical_drives_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_util_physical_drives_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_util_physical_drives_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storageFlexUtilPhysicalDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :param StorageFlexUtilPhysicalDrive body: storageFlexUtilPhysicalDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_physical_drives_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_physical_drives_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_util_physical_drives_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilPhysicalDrives/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_physical_drives_moid_post(self, moid, body, **kwargs): + """ + Update an instance of storageFlexUtilPhysicalDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :param StorageFlexUtilPhysicalDrive body: storageFlexUtilPhysicalDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_physical_drives_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_util_physical_drives_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_util_physical_drives_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storageFlexUtilPhysicalDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :param StorageFlexUtilPhysicalDrive body: storageFlexUtilPhysicalDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_physical_drives_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_physical_drives_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_util_physical_drives_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilPhysicalDrives/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_flex_util_virtual_drive_api.py b/intersight/apis/storage_flex_util_virtual_drive_api.py new file mode 100644 index 00000000..80eb8a22 --- /dev/null +++ b/intersight/apis/storage_flex_util_virtual_drive_api.py @@ -0,0 +1,500 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageFlexUtilVirtualDriveApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_flex_util_virtual_drives_get(self, **kwargs): + """ + List of storageFlexUtilVirtualDrives + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StorageFlexUtilVirtualDriveList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_virtual_drives_get_with_http_info(**kwargs) + else: + (data) = self.storage_flex_util_virtual_drives_get_with_http_info(**kwargs) + return data + + def storage_flex_util_virtual_drives_get_with_http_info(self, **kwargs): + """ + List of storageFlexUtilVirtualDrives + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StorageFlexUtilVirtualDriveList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_virtual_drives_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilVirtualDrives', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexUtilVirtualDriveList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_virtual_drives_moid_get(self, moid, **kwargs): + """ + A instance of storageFlexUtilVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :return: StorageFlexUtilVirtualDrive + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_virtual_drives_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_flex_util_virtual_drives_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_flex_util_virtual_drives_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of storageFlexUtilVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :return: StorageFlexUtilVirtualDrive + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_virtual_drives_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_virtual_drives_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilVirtualDrives/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexUtilVirtualDrive', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_virtual_drives_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of storageFlexUtilVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :param StorageFlexUtilVirtualDrive body: storageFlexUtilVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_virtual_drives_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_util_virtual_drives_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_util_virtual_drives_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storageFlexUtilVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :param StorageFlexUtilVirtualDrive body: storageFlexUtilVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_virtual_drives_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_virtual_drives_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_util_virtual_drives_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilVirtualDrives/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_virtual_drives_moid_post(self, moid, body, **kwargs): + """ + Update an instance of storageFlexUtilVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :param StorageFlexUtilVirtualDrive body: storageFlexUtilVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_virtual_drives_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_util_virtual_drives_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_util_virtual_drives_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storageFlexUtilVirtualDrive + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :param StorageFlexUtilVirtualDrive body: storageFlexUtilVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_virtual_drives_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_virtual_drives_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_util_virtual_drives_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilVirtualDrives/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_physical_disk_api.py b/intersight/apis/storage_physical_disk_api.py index 08938a4d..c29655ba 100644 --- a/intersight/apis/storage_physical_disk_api.py +++ b/intersight/apis/storage_physical_disk_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/storage_physical_disk_extension_api.py b/intersight/apis/storage_physical_disk_extension_api.py new file mode 100644 index 00000000..94895b05 --- /dev/null +++ b/intersight/apis/storage_physical_disk_extension_api.py @@ -0,0 +1,500 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StoragePhysicalDiskExtensionApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_physical_disk_extensions_get(self, **kwargs): + """ + List of storagePhysicalDiskExtensions + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StoragePhysicalDiskExtensionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_physical_disk_extensions_get_with_http_info(**kwargs) + else: + (data) = self.storage_physical_disk_extensions_get_with_http_info(**kwargs) + return data + + def storage_physical_disk_extensions_get_with_http_info(self, **kwargs): + """ + List of storagePhysicalDiskExtensions + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :return: StoragePhysicalDiskExtensionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_physical_disk_extensions_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'tags' in params: + query_params.append(('tags', params['tags'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/PhysicalDiskExtensions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StoragePhysicalDiskExtensionList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_physical_disk_extensions_moid_get(self, moid, **kwargs): + """ + A instance of storagePhysicalDiskExtension + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :return: StoragePhysicalDiskExtension + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_physical_disk_extensions_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_physical_disk_extensions_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_physical_disk_extensions_moid_get_with_http_info(self, moid, **kwargs): + """ + A instance of storagePhysicalDiskExtension + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :return: StoragePhysicalDiskExtension + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_physical_disk_extensions_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_physical_disk_extensions_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/PhysicalDiskExtensions/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StoragePhysicalDiskExtension', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_physical_disk_extensions_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of storagePhysicalDiskExtension + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :param StoragePhysicalDiskExtension body: storagePhysicalDiskExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_physical_disk_extensions_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_physical_disk_extensions_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_physical_disk_extensions_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storagePhysicalDiskExtension + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :param StoragePhysicalDiskExtension body: storagePhysicalDiskExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_physical_disk_extensions_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_physical_disk_extensions_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_physical_disk_extensions_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/PhysicalDiskExtensions/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_physical_disk_extensions_moid_post(self, moid, body, **kwargs): + """ + Update an instance of storagePhysicalDiskExtension + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :param StoragePhysicalDiskExtension body: storagePhysicalDiskExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_physical_disk_extensions_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_physical_disk_extensions_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_physical_disk_extensions_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of storagePhysicalDiskExtension + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :param StoragePhysicalDiskExtension body: storagePhysicalDiskExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_physical_disk_extensions_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_physical_disk_extensions_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_physical_disk_extensions_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/PhysicalDiskExtensions/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_physical_disk_usage_api.py b/intersight/apis/storage_physical_disk_usage_api.py index a52c7bc9..be7f22d6 100644 --- a/intersight/apis/storage_physical_disk_usage_api.py +++ b/intersight/apis/storage_physical_disk_usage_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/storage_sas_expander_api.py b/intersight/apis/storage_sas_expander_api.py index 39094dd2..8ce4741b 100644 --- a/intersight/apis/storage_sas_expander_api.py +++ b/intersight/apis/storage_sas_expander_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/storage_storage_policy_api.py b/intersight/apis/storage_storage_policy_api.py index 00d49b33..5467c189 100644 --- a/intersight/apis/storage_storage_policy_api.py +++ b/intersight/apis/storage_storage_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/storage_vd_member_ep_api.py b/intersight/apis/storage_vd_member_ep_api.py index e92f9159..1363c3a7 100644 --- a/intersight/apis/storage_vd_member_ep_api.py +++ b/intersight/apis/storage_vd_member_ep_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/storage_virtual_drive_api.py b/intersight/apis/storage_virtual_drive_api.py index 8a39eb03..ba1f04d1 100644 --- a/intersight/apis/storage_virtual_drive_api.py +++ b/intersight/apis/storage_virtual_drive_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/task_workflow_action_api.py b/intersight/apis/task_workflow_action_api.py index 1cd4cf55..0e3fbfc7 100644 --- a/intersight/apis/task_workflow_action_api.py +++ b/intersight/apis/task_workflow_action_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/terminal_audit_log_api.py b/intersight/apis/terminal_audit_log_api.py index 88ff2e42..e04d9b56 100644 --- a/intersight/apis/terminal_audit_log_api.py +++ b/intersight/apis/terminal_audit_log_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/top_system_api.py b/intersight/apis/top_system_api.py index ba616820..4f1877e1 100644 --- a/intersight/apis/top_system_api.py +++ b/intersight/apis/top_system_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/vmedia_policy_api.py b/intersight/apis/vmedia_policy_api.py index 14442967..d062ee73 100644 --- a/intersight/apis/vmedia_policy_api.py +++ b/intersight/apis/vmedia_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/workflow_build_task_meta_api.py b/intersight/apis/workflow_build_task_meta_api.py index 5f702012..7e0b7ce2 100644 --- a/intersight/apis/workflow_build_task_meta_api.py +++ b/intersight/apis/workflow_build_task_meta_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/workflow_task_info_api.py b/intersight/apis/workflow_task_info_api.py index f8fccb4d..42027a6c 100644 --- a/intersight/apis/workflow_task_info_api.py +++ b/intersight/apis/workflow_task_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/workflow_task_meta_api.py b/intersight/apis/workflow_task_meta_api.py index a7a60a2d..697b7011 100644 --- a/intersight/apis/workflow_task_meta_api.py +++ b/intersight/apis/workflow_task_meta_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/workflow_workflow_info_api.py b/intersight/apis/workflow_workflow_info_api.py index bde4278b..cfff9884 100644 --- a/intersight/apis/workflow_workflow_info_api.py +++ b/intersight/apis/workflow_workflow_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/workflow_workflow_meta_api.py b/intersight/apis/workflow_workflow_meta_api.py index 8b317e8b..8b2bc106 100644 --- a/intersight/apis/workflow_workflow_meta_api.py +++ b/intersight/apis/workflow_workflow_meta_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/workflow_workflow_task_api.py b/intersight/apis/workflow_workflow_task_api.py index fd79d57e..cafa693a 100644 --- a/intersight/apis/workflow_workflow_task_api.py +++ b/intersight/apis/workflow_workflow_task_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/configuration.py b/intersight/configuration.py index 755da626..95f3c121 100644 --- a/intersight/configuration.py +++ b/intersight/configuration.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -45,7 +45,7 @@ def __init__(self): Constructor """ # Default Base url - self.host = "https://ucs.cisco.com/api/v1" + self.host = "https://intersight.com/api/v1" # Default api client self.api_client = None # Temp file folder for downloading files @@ -219,6 +219,6 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.0\n"\ + "Version of the API: 1.0.5-612\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/intersight/intersight_api_client.py b/intersight/intersight_api_client.py index 72fecc7e..2922b1ad 100644 --- a/intersight/intersight_api_client.py +++ b/intersight/intersight_api_client.py @@ -11,9 +11,7 @@ import json import threading -from six.moves.urllib.parse import quote -from six.moves.urllib.parse import urlencode -from six.moves.urllib.parse import urlparse +from six.moves.urllib.parse import quote, urlencode, urlparse from Crypto.PublicKey import RSA from Crypto.Signature import PKCS1_v1_5 from Crypto.Hash import SHA256 @@ -206,4 +204,4 @@ def prepare_auth_header(self, resource_path, method, body, query_params): self.set_default_header('Host', '{0}'.format(target_host)) self.set_default_header('Digest', 'SHA-256={0}'.format(b64_body_digest.decode('ascii'))) self.set_default_header('Authorization', '{0}'.format(auth_header)) - + \ No newline at end of file diff --git a/intersight/models/__init__.py b/intersight/models/__init__.py index 9e537283..9658a23e 100644 --- a/intersight/models/__init__.py +++ b/intersight/models/__init__.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,15 +21,7 @@ from .adapter_host_iscsi_interface_list import AdapterHostIscsiInterfaceList from .adapter_unit_list import AdapterUnitList from .asset_device_registration_list import AssetDeviceRegistrationList -from .bios_input_output import BiosInputOutput -from .bios_lom_and_pcie_slots_configuration import BiosLomAndPcieSlotsConfiguration -from .bios_memory import BiosMemory from .bios_policy_list import BiosPolicyList -from .bios_power_or_performance import BiosPowerOrPerformance -from .bios_processor import BiosProcessor -from .bios_security import BiosSecurity -from .bios_serial_configuration import BiosSerialConfiguration -from .bios_server_management import BiosServerManagement from .bios_unit_list import BiosUnitList from .boot_device_base import BootDeviceBase from .boot_precision_policy_list import BootPrecisionPolicyList @@ -41,13 +33,12 @@ from .compute_server_config import ComputeServerConfig from .compute_server_setting_list import ComputeServerSettingList from .cond_alarm_list import CondAlarmList -from .cond_hcl_status_action_list import CondHclStatusActionList from .cond_hcl_status_detail_list import CondHclStatusDetailList from .cond_hcl_status_job_list import CondHclStatusJobList from .cond_hcl_status_list import CondHclStatusList +from .connector_auth_message import ConnectorAuthMessage from .crypt_encryption_token_list import CryptEncryptionTokenList from .deviceinfo_serial_number_info_list import DeviceinfoSerialNumberInfoList -from .epansible_runner_list import EpansibleRunnerList from .equipment_chassis_list import EquipmentChassisList from .equipment_device_summary_list import EquipmentDeviceSummaryList from .equipment_fan_list import EquipmentFanList @@ -60,10 +51,10 @@ from .equipment_system_io_controller_list import EquipmentSystemIoControllerList from .error import Error from .ether_physical_port_list import EtherPhysicalPortList -from .externalsite_auth_profile_list import ExternalsiteAuthProfileList -from .extsearch_import_list import ExtsearchImportList +from .externalsite_authorization_list import ExternalsiteAuthorizationList from .fault_instance_list import FaultInstanceList from .fc_physical_port_list import FcPhysicalPortList +from .feedback_feedback_data import FeedbackFeedbackData from .firmware_cifs_server import FirmwareCifsServer from .firmware_direct_download import FirmwareDirectDownload from .firmware_distributable_list import FirmwareDistributableList @@ -79,7 +70,6 @@ from .hcl_compatibility_info_list import HclCompatibilityInfoList from .hcl_data_import_log_list import HclDataImportLogList from .hcl_firmware import HclFirmware -from .hcl_hardware_compatibility_profile import HclHardwareCompatibilityProfile from .hcl_note_list import HclNoteList from .hcl_product import HclProduct from .hyperflex_alarm_list import HyperflexAlarmList @@ -88,6 +78,7 @@ from .hyperflex_cluster_network_policy_list import HyperflexClusterNetworkPolicyList from .hyperflex_cluster_profile_list import HyperflexClusterProfileList from .hyperflex_cluster_storage_policy_list import HyperflexClusterStoragePolicyList +from .hyperflex_config_result_entry_list import HyperflexConfigResultEntryList from .hyperflex_config_result_list import HyperflexConfigResultList from .hyperflex_ext_fc_storage_policy_list import HyperflexExtFcStoragePolicyList from .hyperflex_ext_iscsi_storage_policy_list import HyperflexExtIscsiStoragePolicyList @@ -100,13 +91,22 @@ from .hyperflex_named_vsan import HyperflexNamedVsan from .hyperflex_node_config_policy_list import HyperflexNodeConfigPolicyList from .hyperflex_node_profile_list import HyperflexNodeProfileList +from .hyperflex_proxy_setting_policy_list import HyperflexProxySettingPolicyList from .hyperflex_st_platform_cluster_healing_info import HyperflexStPlatformClusterHealingInfo from .hyperflex_st_platform_cluster_resiliency_info import HyperflexStPlatformClusterResiliencyInfo from .hyperflex_summary import HyperflexSummary from .hyperflex_sys_config_policy_list import HyperflexSysConfigPolicyList from .hyperflex_ucsm_config_policy_list import HyperflexUcsmConfigPolicyList from .hyperflex_vcenter_config_policy_list import HyperflexVcenterConfigPolicyList -from .hyperflex_wwxn_range import HyperflexWwxnRange +from .hyperflex_wwxn_prefix_range import HyperflexWwxnPrefixRange +from .i18n_message import I18nMessage +from .i18n_message_param import I18nMessageParam +from .iaas_connector_pack_list import IaasConnectorPackList +from .iaas_device_status_list import IaasDeviceStatusList +from .iaas_license_info_list import IaasLicenseInfoList +from .iaas_license_keys_info import IaasLicenseKeysInfo +from .iaas_license_utilization_info import IaasLicenseUtilizationInfo +from .iaas_ucsd_info_list import IaasUcsdInfoList from .iam_account_list import IamAccountList from .iam_api_key_list import IamApiKeyList from .iam_end_point_password_properties import IamEndPointPasswordProperties @@ -138,6 +138,8 @@ from .inventory_dn_mo_binding_list import InventoryDnMoBindingList from .inventory_generic_inventory_holder_list import InventoryGenericInventoryHolderList from .inventory_generic_inventory_list import InventoryGenericInventoryList +from .inventory_inventory_mo import InventoryInventoryMo +from .inventory_job_info import InventoryJobInfo from .ipmioverlan_policy_list import IpmioverlanPolicyList from .kvm_policy_list import KvmPolicyList from .license_account_license_data_list import LicenseAccountLicenseDataList @@ -161,17 +163,10 @@ from .network_element_summary_list import NetworkElementSummaryList from .networkconfig_policy_list import NetworkconfigPolicyList from .ntp_policy_list import NtpPolicyList -from .packagemanagement_connector_deploy_policy_list import PackagemanagementConnectorDeployPolicyList -from .packagemanagement_connector_image_list import PackagemanagementConnectorImageList -from .packagemanagement_connector_install_list import PackagemanagementConnectorInstallList -from .policy_attachable_service_object import PolicyAttachableServiceObject -from .policy_category import PolicyCategory +from .oauth_access_token import OauthAccessToken +from .oauth_oauth_user_list import OauthOauthUserList from .policy_config_context import PolicyConfigContext from .policy_config_result_context import PolicyConfigResultContext -from .policy_config_result_entry import PolicyConfigResultEntry -from .policy_hardware_platform import PolicyHardwarePlatform -from .policy_management_platform import PolicyManagementPlatform -from .policy_policy_meta_list import PolicyPolicyMetaList from .port_group_list import PortGroupList from .port_sub_group_list import PortSubGroupList from .processor_unit_list import ProcessorUnitList @@ -180,6 +175,7 @@ from .security_unit_list import SecurityUnitList from .server_config_change import ServerConfigChange from .server_config_change_detail import ServerConfigChangeDetail +from .server_config_result_entry_list import ServerConfigResultEntryList from .server_config_result_list import ServerConfigResultList from .server_profile_list import ServerProfileList from .smtp_policy_list import SmtpPolicyList @@ -190,10 +186,16 @@ from .ssh_policy_list import SshPolicyList from .storage_controller_list import StorageControllerList from .storage_disk_group_policy_list import StorageDiskGroupPolicyList +from .storage_enclosure_list import StorageEnclosureList from .storage_flex_flash_controller_list import StorageFlexFlashControllerList +from .storage_flex_flash_controller_props_list import StorageFlexFlashControllerPropsList from .storage_flex_flash_physical_drive_list import StorageFlexFlashPhysicalDriveList +from .storage_flex_flash_virtual_drive_list import StorageFlexFlashVirtualDriveList from .storage_flex_util_controller_list import StorageFlexUtilControllerList +from .storage_flex_util_physical_drive_list import StorageFlexUtilPhysicalDriveList +from .storage_flex_util_virtual_drive_list import StorageFlexUtilVirtualDriveList from .storage_local_disk import StorageLocalDisk +from .storage_physical_disk_extension_list import StoragePhysicalDiskExtensionList from .storage_physical_disk_list import StoragePhysicalDiskList from .storage_physical_disk_usage_list import StoragePhysicalDiskUsageList from .storage_remote_key_setting import StorageRemoteKeySetting @@ -205,9 +207,6 @@ from .storage_virtual_drive_list import StorageVirtualDriveList from .task_file_download_info import TaskFileDownloadInfo from .task_workflow_action_list import TaskWorkflowActionList -from .techsupportmanagement_download_list import TechsupportmanagementDownloadList -from .techsupportmanagement_tech_support_bundle_list import TechsupportmanagementTechSupportBundleList -from .techsupportmanagement_tech_support_status_list import TechsupportmanagementTechSupportStatusList from .terminal_audit_log_list import TerminalAuditLogList from .top_system_list import TopSystemList from .vmedia_mapping import VmediaMapping @@ -220,92 +219,412 @@ from .workflow_workflow_meta_list import WorkflowWorkflowMetaList from .workflow_workflow_task_list import WorkflowWorkflowTaskList from .aaa_abstract_audit_record import AaaAbstractAuditRecord +from .aaa_abstract_audit_record_ref import AaaAbstractAuditRecordRef +from .aaa_audit_record_local_ref import AaaAuditRecordLocalRef +from .aaa_audit_record_ref import AaaAuditRecordRef +from .adapter_ext_eth_interface_ref import AdapterExtEthInterfaceRef +from .adapter_host_eth_interface_ref import AdapterHostEthInterfaceRef +from .adapter_host_fc_interface_ref import AdapterHostFcInterfaceRef +from .adapter_host_iscsi_interface_ref import AdapterHostIscsiInterfaceRef +from .adapter_unit_ref import AdapterUnitRef from .asset_device_claim import AssetDeviceClaim +from .asset_device_claim_ref import AssetDeviceClaimRef from .asset_device_registration import AssetDeviceRegistration -from .boot_iscsi import BootIscsi -from .boot_local_cdd import BootLocalCdd -from .boot_local_disk import BootLocalDisk -from .boot_nvme import BootNvme -from .boot_pch_storage import BootPchStorage -from .boot_pxe import BootPxe -from .boot_san import BootSan -from .boot_sd_card import BootSdCard -from .boot_uefi_shell import BootUefiShell -from .boot_usb import BootUsb -from .boot_virtual_media import BootVirtualMedia +from .asset_device_registration_ref import AssetDeviceRegistrationRef +from .asset_security_token_ref import AssetSecurityTokenRef +from .bios_deploy_task_ref import BiosDeployTaskRef +from .bios_policy_ref import BiosPolicyRef +from .bios_unit_ref import BiosUnitRef +from .bios_validation_task_ref import BiosValidationTaskRef +from .boot_device_base_ref import BootDeviceBaseRef +from .boot_iscsi_ref import BootIscsiRef +from .boot_local_disk_ref import BootLocalDiskRef +from .boot_nvme_ref import BootNvmeRef +from .boot_pch_storage_ref import BootPchStorageRef +from .boot_precision_deploy_task_ref import BootPrecisionDeployTaskRef +from .boot_precision_policy_ref import BootPrecisionPolicyRef +from .boot_precision_validation_task_ref import BootPrecisionValidationTaskRef +from .boot_pxe_ref import BootPxeRef +from .boot_san_ref import BootSanRef +from .boot_sd_card_ref import BootSdCardRef +from .boot_uefi_shell_ref import BootUefiShellRef +from .boot_usb_ref import BootUsbRef +from .boot_virtual_media_ref import BootVirtualMediaRef +from .compute_blade_ref import ComputeBladeRef +from .compute_board_ref import ComputeBoardRef +from .compute_ip_address_ref import ComputeIpAddressRef +from .compute_locator_led_operation_task_ref import ComputeLocatorLedOperationTaskRef +from .compute_operation_result_handler_ref import ComputeOperationResultHandlerRef +from .compute_physical_ref import ComputePhysicalRef +from .compute_physical_summary_ref import ComputePhysicalSummaryRef +from .compute_rack_unit_ref import ComputeRackUnitRef +from .compute_server_config_ref import ComputeServerConfigRef +from .compute_server_operation_task_ref import ComputeServerOperationTaskRef +from .compute_server_setting_ref import ComputeServerSettingRef from .cond_alarm import CondAlarm +from .cond_alarm_ref import CondAlarmRef from .cond_hcl_status import CondHclStatus -from .cond_hcl_status_action import CondHclStatusAction from .cond_hcl_status_detail import CondHclStatusDetail +from .cond_hcl_status_detail_ref import CondHclStatusDetailRef from .cond_hcl_status_job import CondHclStatusJob +from .cond_hcl_status_job_ref import CondHclStatusJobRef +from .cond_hcl_status_ref import CondHclStatusRef +from .connector_auth_message_ref import ConnectorAuthMessageRef +from .connector_command_message_ref import ConnectorCommandMessageRef +from .connector_event_channel_control_ref import ConnectorEventChannelControlRef +from .connector_event_ref import ConnectorEventRef +from .connector_job_async_response_ref import ConnectorJobAsyncResponseRef +from .connector_job_message_ref import ConnectorJobMessageRef +from .connector_xml_api_message_ref import ConnectorXmlApiMessageRef +from .crypt_account_key_ref import CryptAccountKeyRef +from .crypt_decrypt_ref import CryptDecryptRef +from .crypt_encrypt_ref import CryptEncryptRef +from .crypt_encryption_key_ref import CryptEncryptionKeyRef from .crypt_encryption_token import CryptEncryptionToken +from .crypt_encryption_token_ref import CryptEncryptionTokenRef from .deviceinfo_serial_number_info import DeviceinfoSerialNumberInfo -from .epansible_runner import EpansibleRunner -from .externalsite_auth_profile import ExternalsiteAuthProfile -from .extsearch_import import ExtsearchImport +from .deviceinfo_serial_number_info_ref import DeviceinfoSerialNumberInfoRef +from .equipment_base_ref import EquipmentBaseRef +from .equipment_chassis_ref import EquipmentChassisRef +from .equipment_device_summary_ref import EquipmentDeviceSummaryRef +from .equipment_fan_module_ref import EquipmentFanModuleRef +from .equipment_fan_ref import EquipmentFanRef +from .equipment_fex_ref import EquipmentFexRef +from .equipment_io_card_ref import EquipmentIoCardRef +from .equipment_locator_led_ref import EquipmentLocatorLedRef +from .equipment_psu_ref import EquipmentPsuRef +from .equipment_switch_card_ref import EquipmentSwitchCardRef +from .equipment_system_io_controller_ref import EquipmentSystemIoControllerRef +from .ether_physical_port_ref import EtherPhysicalPortRef +from .externalsite_authorization import ExternalsiteAuthorization +from .externalsite_authorization_ref import ExternalsiteAuthorizationRef +from .extsearch_app_config_ref import ExtsearchAppConfigRef +from .extsearch_import_ref import ExtsearchImportRef +from .fault_instance_ref import FaultInstanceRef +from .fc_physical_port_ref import FcPhysicalPortRef +from .feedback_feedback_data_ref import FeedbackFeedbackDataRef +from .feedback_feedback_post import FeedbackFeedbackPost +from .feedback_feedback_post_ref import FeedbackFeedbackPostRef +from .feedback_feedback_ref import FeedbackFeedbackRef +from .feedback_feedback_settings_ref import FeedbackFeedbackSettingsRef +from .feedback_history_item_ref import FeedbackHistoryItemRef +from .firmware_cifs_server_ref import FirmwareCifsServerRef +from .firmware_direct_download_ref import FirmwareDirectDownloadRef from .firmware_distributable import FirmwareDistributable +from .firmware_distributable_ref import FirmwareDistributableRef +from .firmware_download_spec_ref import FirmwareDownloadSpecRef from .firmware_eula import FirmwareEula +from .firmware_eula_ref import FirmwareEulaRef +from .firmware_http_server_ref import FirmwareHttpServerRef +from .firmware_network_share_ref import FirmwareNetworkShareRef +from .firmware_nfs_server_ref import FirmwareNfsServerRef +from .firmware_running_firmware_ref import FirmwareRunningFirmwareRef from .firmware_upgrade import FirmwareUpgrade +from .firmware_upgrade_ref import FirmwareUpgradeRef from .firmware_upgrade_status import FirmwareUpgradeStatus +from .firmware_upgrade_status_ref import FirmwareUpgradeStatusRef +from .firmwareimc_cancel_pending_firmware_upgrade_ref import FirmwareimcCancelPendingFirmwareUpgradeRef +from .firmwareimc_check_for_existing_upgrade_ref import FirmwareimcCheckForExistingUpgradeRef +from .firmwareimc_firmware_upgrade_result_handler_ref import FirmwareimcFirmwareUpgradeResultHandlerRef +from .firmwareimc_huu_firmware_upgrade_ref import FirmwareimcHuuFirmwareUpgradeRef +from .firmwareimc_initiate_download_ref import FirmwareimcInitiateDownloadRef +from .firmwareimc_wait_for_download_ref import FirmwareimcWaitForDownloadRef +from .firmwareimc_wait_for_firmware_upgrade_ref import FirmwareimcWaitForFirmwareUpgradeRef +from .graphics_card_ref import GraphicsCardRef +from .graphics_controller_ref import GraphicsControllerRef +from .hcl_active_collection_node_ref import HclActiveCollectionNodeRef from .hcl_compatibility_info import HclCompatibilityInfo -from .hcl_compatibility_status import HclCompatibilityStatus +from .hcl_compatibility_info_ref import HclCompatibilityInfoRef from .hcl_data_import_log import HclDataImportLog +from .hcl_data_import_log_ref import HclDataImportLogRef +from .hcl_firmware_ref import HclFirmwareRef +from .hcl_hardware_compatibility_profile_ref import HclHardwareCompatibilityProfileRef from .hcl_note import HclNote -from .hcl_supported_driver_name import HclSupportedDriverName +from .hcl_note_ref import HclNoteRef +from .hcl_product_ref import HclProductRef +from .hcl_service_status_ref import HclServiceStatusRef +from .hxdpconnector_hx_inventory_msg_ref import HxdpconnectorHxInventoryMsgRef from .hyperflex_alarm import HyperflexAlarm +from .hyperflex_alarm_ref import HyperflexAlarmRef +from .hyperflex_auto_support_policy_ref import HyperflexAutoSupportPolicyRef from .hyperflex_cluster import HyperflexCluster +from .hyperflex_cluster_network_policy_ref import HyperflexClusterNetworkPolicyRef +from .hyperflex_cluster_profile_ref import HyperflexClusterProfileRef +from .hyperflex_cluster_ref import HyperflexClusterRef +from .hyperflex_cluster_storage_policy_ref import HyperflexClusterStoragePolicyRef +from .hyperflex_config_result_entry_ref import HyperflexConfigResultEntryRef +from .hyperflex_config_result_ref import HyperflexConfigResultRef +from .hyperflex_credentials_ref import HyperflexCredentialsRef +from .hyperflex_ext_fc_storage_policy_ref import HyperflexExtFcStoragePolicyRef +from .hyperflex_ext_iscsi_storage_policy_ref import HyperflexExtIscsiStoragePolicyRef +from .hyperflex_ip_addr_range_ref import HyperflexIpAddrRangeRef +from .hyperflex_iterator_string_ref import HyperflexIteratorStringRef +from .hyperflex_local_credential_policy_ref import HyperflexLocalCredentialPolicyRef +from .hyperflex_mac_addr_prefix_range_ref import HyperflexMacAddrPrefixRangeRef +from .hyperflex_managed_object_reference_ref import HyperflexManagedObjectReferenceRef +from .hyperflex_named_vlan_ref import HyperflexNamedVlanRef +from .hyperflex_named_vsan_ref import HyperflexNamedVsanRef +from .hyperflex_node_config_policy_ref import HyperflexNodeConfigPolicyRef +from .hyperflex_node_profile_ref import HyperflexNodeProfileRef +from .hyperflex_proxy_setting_policy_ref import HyperflexProxySettingPolicyRef +from .hyperflex_st_platform_cluster_healing_info_ref import HyperflexStPlatformClusterHealingInfoRef +from .hyperflex_st_platform_cluster_resiliency_info_ref import HyperflexStPlatformClusterResiliencyInfoRef +from .hyperflex_summary_ref import HyperflexSummaryRef +from .hyperflex_sys_config_policy_ref import HyperflexSysConfigPolicyRef +from .hyperflex_ucsm_config_policy_ref import HyperflexUcsmConfigPolicyRef +from .hyperflex_vcenter_config_policy_ref import HyperflexVcenterConfigPolicyRef +from .hyperflex_wwxn_prefix_range_ref import HyperflexWwxnPrefixRangeRef +from .i18n_message_param_ref import I18nMessageParamRef +from .i18n_message_ref import I18nMessageRef +from .iaas_connector_pack import IaasConnectorPack +from .iaas_connector_pack_ref import IaasConnectorPackRef +from .iaas_device_status import IaasDeviceStatus +from .iaas_device_status_ref import IaasDeviceStatusRef +from .iaas_license_info import IaasLicenseInfo +from .iaas_license_info_ref import IaasLicenseInfoRef +from .iaas_license_keys_info_ref import IaasLicenseKeysInfoRef +from .iaas_license_utilization_info_ref import IaasLicenseUtilizationInfoRef +from .iaas_ucsd_info import IaasUcsdInfo +from .iaas_ucsd_info_ref import IaasUcsdInfoRef from .iam_account import IamAccount +from .iam_account_ref import IamAccountRef from .iam_api_key import IamApiKey +from .iam_api_key_ref import IamApiKeyRef +from .iam_end_point_password_properties_ref import IamEndPointPasswordPropertiesRef from .iam_end_point_privilege import IamEndPointPrivilege +from .iam_end_point_privilege_ref import IamEndPointPrivilegeRef from .iam_end_point_role import IamEndPointRole +from .iam_end_point_role_ref import IamEndPointRoleRef from .iam_end_point_user import IamEndPointUser +from .iam_end_point_user_deploy_task_ref import IamEndPointUserDeployTaskRef +from .iam_end_point_user_policy_ref import IamEndPointUserPolicyRef +from .iam_end_point_user_ref import IamEndPointUserRef from .iam_end_point_user_role import IamEndPointUserRole +from .iam_end_point_user_role_ref import IamEndPointUserRoleRef +from .iam_end_point_user_validation_task_ref import IamEndPointUserValidationTaskRef from .iam_idp import IamIdp +from .iam_idp_ref import IamIdpRef from .iam_idp_reference import IamIdpReference +from .iam_idp_reference_ref import IamIdpReferenceRef +from .iam_ldap_base_properties_ref import IamLdapBasePropertiesRef +from .iam_ldap_deploy_task_ref import IamLdapDeployTaskRef +from .iam_ldap_dns_parameters_ref import IamLdapDnsParametersRef from .iam_ldap_group import IamLdapGroup +from .iam_ldap_group_ref import IamLdapGroupRef +from .iam_ldap_policy_ref import IamLdapPolicyRef from .iam_ldap_provider import IamLdapProvider +from .iam_ldap_provider_ref import IamLdapProviderRef +from .iam_ldap_validation_task_ref import IamLdapValidationTaskRef from .iam_permission import IamPermission +from .iam_permission_ref import IamPermissionRef from .iam_privilege import IamPrivilege +from .iam_privilege_ref import IamPrivilegeRef from .iam_privilege_set import IamPrivilegeSet +from .iam_privilege_set_ref import IamPrivilegeSetRef from .iam_qualifier import IamQualifier +from .iam_qualifier_ref import IamQualifierRef from .iam_resource_limits import IamResourceLimits +from .iam_resource_limits_ref import IamResourceLimitsRef from .iam_role import IamRole +from .iam_role_ref import IamRoleRef from .iam_session import IamSession from .iam_session_limits import IamSessionLimits +from .iam_session_limits_ref import IamSessionLimitsRef +from .iam_session_ref import IamSessionRef +from .iam_sp_console_ref import IamSpConsoleRef +from .iam_sp_engine_ref import IamSpEngineRef from .iam_system import IamSystem +from .iam_system_ref import IamSystemRef from .iam_user import IamUser from .iam_user_group import IamUserGroup +from .iam_user_group_ref import IamUserGroupRef +from .iam_user_login_time_ref import IamUserLoginTimeRef from .iam_user_preference import IamUserPreference +from .iam_user_preference_ref import IamUserPreferenceRef +from .iam_user_ref import IamUserRef +from .imcconnector_sd_card_image_download_message_ref import ImcconnectorSdCardImageDownloadMessageRef from .inventory_base import InventoryBase +from .inventory_base_ref import InventoryBaseRef from .inventory_device_info import InventoryDeviceInfo +from .inventory_device_info_ref import InventoryDeviceInfoRef from .inventory_dn_mo_binding import InventoryDnMoBinding +from .inventory_dn_mo_binding_ref import InventoryDnMoBindingRef +from .inventory_generic_inventory_holder_ref import InventoryGenericInventoryHolderRef +from .inventory_generic_inventory_ref import InventoryGenericInventoryRef +from .inventory_inventory_mo_ref import InventoryInventoryMoRef +from .inventory_job_info_ref import InventoryJobInfoRef +from .inventory_request import InventoryRequest +from .inventory_request_ref import InventoryRequestRef +from .inventory_scoped_inventory_task_ref import InventoryScopedInventoryTaskRef +from .ipmioverlan_deploy_task_ref import IpmioverlanDeployTaskRef +from .ipmioverlan_policy_ref import IpmioverlanPolicyRef +from .ipmioverlan_validation_task_ref import IpmioverlanValidationTaskRef +from .kvm_deploy_task_ref import KvmDeployTaskRef +from .kvm_policy_ref import KvmPolicyRef +from .kvm_validation_task_ref import KvmValidationTaskRef from .license_account_license_data import LicenseAccountLicenseData +from .license_account_license_data_ref import LicenseAccountLicenseDataRef from .license_customer_op import LicenseCustomerOp +from .license_customer_op_ref import LicenseCustomerOpRef from .license_license_info import LicenseLicenseInfo +from .license_license_info_ref import LicenseLicenseInfoRef from .license_smartlicense_token import LicenseSmartlicenseToken +from .license_smartlicense_token_ref import LicenseSmartlicenseTokenRef +from .license_sync_response_ref import LicenseSyncResponseRef +from .ls_service_profile_ref import LsServiceProfileRef +from .management_controller_ref import ManagementControllerRef +from .management_entity_ref import ManagementEntityRef +from .management_interface_ref import ManagementInterfaceRef +from .memory_array_ref import MemoryArrayRef +from .memory_unit_ref import MemoryUnitRef from .meta_definition import MetaDefinition -from .packagemanagement_connector_deploy_policy import PackagemanagementConnectorDeployPolicy -from .packagemanagement_connector_image import PackagemanagementConnectorImage -from .packagemanagement_connector_install import PackagemanagementConnectorInstall +from .meta_definition_ref import MetaDefinitionRef +from .meta_prop_definition_ref import MetaPropDefinitionRef +from .meta_relationship_definition_ref import MetaRelationshipDefinitionRef +from .mo_base_complex_type_ref import MoBaseComplexTypeRef +from .mo_base_mo_ref import MoBaseMoRef +from .mo_interest_registration_ref import MoInterestRegistrationRef +from .mo_mo_ref_ref import MoMoRefRef +from .mo_tag_ref import MoTagRef +from .network_element_ref import NetworkElementRef +from .network_element_summary_ref import NetworkElementSummaryRef +from .networkconfig_deploy_task_ref import NetworkconfigDeployTaskRef +from .networkconfig_policy_ref import NetworkconfigPolicyRef +from .networkconfig_validation_task_ref import NetworkconfigValidationTaskRef +from .notifs_mo_subscription_ref import NotifsMoSubscriptionRef +from .notifs_subscribed_ref import NotifsSubscribedRef +from .ntp_deploy_task_ref import NtpDeployTaskRef +from .ntp_policy_ref import NtpPolicyRef +from .ntp_validation_task_ref import NtpValidationTaskRef +from .oauth2_auth_token_ref import Oauth2AuthTokenRef +from .oauth_access_token_ref import OauthAccessTokenRef +from .oauth_oauth_user import OauthOauthUser +from .oauth_oauth_user_ref import OauthOauthUserRef +from .policy_abstract_config_profile_ref import PolicyAbstractConfigProfileRef from .policy_abstract_config_result import PolicyAbstractConfigResult +from .policy_abstract_config_result_entry import PolicyAbstractConfigResultEntry +from .policy_abstract_config_result_entry_ref import PolicyAbstractConfigResultEntryRef +from .policy_abstract_config_result_ref import PolicyAbstractConfigResultRef from .policy_abstract_policy import PolicyAbstractPolicy +from .policy_abstract_policy_ref import PolicyAbstractPolicyRef from .policy_abstract_profile import PolicyAbstractProfile -from .policy_policy_meta import PolicyPolicyMeta +from .policy_abstract_profile_ref import PolicyAbstractProfileRef +from .policy_config_context_ref import PolicyConfigContextRef +from .policy_config_result_context_ref import PolicyConfigResultContextRef +from .port_group_ref import PortGroupRef +from .port_physical_ref import PortPhysicalRef +from .port_sub_group_ref import PortSubGroupRef +from .processor_unit_ref import ProcessorUnitRef +from .qatask_execution_status_task_ref import QataskExecutionStatusTaskRef +from .qatask_expobackoff_retry_ref import QataskExpobackoffRetryRef +from .qatask_fail_async_task_ref import QataskFailAsyncTaskRef +from .qatask_failed_no_retry_ref import QataskFailedNoRetryRef +from .qatask_huu_firmware_upgrade_ref import QataskHuuFirmwareUpgradeRef +from .qatask_initiate_download_ref import QataskInitiateDownloadRef +from .qatask_retry30timeout60task_ref import QataskRetry30timeout60taskRef +from .qatask_retry_fixed_ref import QataskRetryFixedRef +from .qatask_success_async_task_ref import QataskSuccessAsyncTaskRef +from .qatask_taskin_scheuled_ref import QataskTaskinScheuledRef +from .qatask_timeoutwf_fixed_ref import QataskTimeoutwfFixedRef +from .qatask_ucs_task1_ref import QataskUcsTask1Ref +from .qatask_ucs_task2_ref import QataskUcsTask2Ref +from .qatask_ucs_task3_ref import QataskUcsTask3Ref +from .qatask_ucs_task4_ref import QataskUcsTask4Ref +from .qatask_ucs_task5_ref import QataskUcsTask5Ref +from .qatask_ucs_task6_ref import QataskUcsTask6Ref +from .qatask_ucs_task7_ref import QataskUcsTask7Ref +from .qatask_ucs_task8_ref import QataskUcsTask8Ref +from .qatask_ucs_task9_ref import QataskUcsTask9Ref +from .qatask_wait_for_download_ref import QataskWaitForDownloadRef +from .qatask_wait_for_firmware_upgrade_ref import QataskWaitForFirmwareUpgradeRef +from .rest_api_ref import RestApiRef from .search_search_item import SearchSearchItem +from .search_search_item_ref import SearchSearchItemRef from .search_suggest_item import SearchSuggestItem +from .search_suggest_item_ref import SearchSuggestItemRef from .search_tag_item import SearchTagItem +from .search_tag_item_ref import SearchTagItemRef +from .security_unit_ref import SecurityUnitRef +from .server_config_change_detail_ref import ServerConfigChangeDetailRef +from .server_config_change_details_ref import ServerConfigChangeDetailsRef +from .server_config_change_ref import ServerConfigChangeRef +from .server_config_result_entry_ref import ServerConfigResultEntryRef +from .server_config_result_ref import ServerConfigResultRef +from .server_profile_apply_task_ref import ServerProfileApplyTaskRef +from .server_profile_ref import ServerProfileRef +from .server_result_handler_task_ref import ServerResultHandlerTaskRef +from .smtp_deploy_task_ref import SmtpDeployTaskRef +from .smtp_policy_ref import SmtpPolicyRef +from .smtp_validation_task_ref import SmtpValidationTaskRef +from .snmp_deploy_task_ref import SnmpDeployTaskRef +from .snmp_policy_ref import SnmpPolicyRef +from .snmp_trap_ref import SnmpTrapRef +from .snmp_user_ref import SnmpUserRef +from .snmp_validation_task_ref import SnmpValidationTaskRef +from .sol_deploy_task_ref import SolDeployTaskRef +from .sol_policy_ref import SolPolicyRef +from .sol_validation_task_ref import SolValidationTaskRef +from .ssh_deploy_task_ref import SshDeployTaskRef +from .ssh_policy_ref import SshPolicyRef +from .ssh_validation_task_ref import SshValidationTaskRef +from .storage_controller_ref import StorageControllerRef +from .storage_deploy_task_ref import StorageDeployTaskRef +from .storage_disk_group_policy_ref import StorageDiskGroupPolicyRef +from .storage_enclosure_ref import StorageEnclosureRef +from .storage_flex_flash_controller_props_ref import StorageFlexFlashControllerPropsRef +from .storage_flex_flash_controller_ref import StorageFlexFlashControllerRef +from .storage_flex_flash_physical_drive_ref import StorageFlexFlashPhysicalDriveRef +from .storage_flex_flash_virtual_drive_ref import StorageFlexFlashVirtualDriveRef +from .storage_flex_util_controller_ref import StorageFlexUtilControllerRef +from .storage_flex_util_physical_drive_ref import StorageFlexUtilPhysicalDriveRef +from .storage_flex_util_virtual_drive_ref import StorageFlexUtilVirtualDriveRef +from .storage_local_disk_ref import StorageLocalDiskRef +from .storage_physical_disk_extension_ref import StoragePhysicalDiskExtensionRef +from .storage_physical_disk_ref import StoragePhysicalDiskRef +from .storage_physical_disk_usage_ref import StoragePhysicalDiskUsageRef +from .storage_remote_key_setting_ref import StorageRemoteKeySettingRef +from .storage_sas_expander_ref import StorageSasExpanderRef +from .storage_span_group_ref import StorageSpanGroupRef +from .storage_storage_policy_ref import StorageStoragePolicyRef +from .storage_validation_task_ref import StorageValidationTaskRef +from .storage_vd_member_ep_ref import StorageVdMemberEpRef +from .storage_virtual_drive_config_ref import StorageVirtualDriveConfigRef +from .storage_virtual_drive_ref import StorageVirtualDriveRef +from .task_file_download_info_ref import TaskFileDownloadInfoRef +from .task_ucs_task1_ref import TaskUcsTask1Ref +from .task_ucs_task2_ref import TaskUcsTask2Ref +from .task_ucs_task3_ref import TaskUcsTask3Ref +from .task_ucs_task4_ref import TaskUcsTask4Ref +from .task_ucs_task5_ref import TaskUcsTask5Ref +from .task_ucs_task6_ref import TaskUcsTask6Ref +from .task_ucs_task7_ref import TaskUcsTask7Ref +from .task_ucs_task8_ref import TaskUcsTask8Ref +from .task_ucs_task9_ref import TaskUcsTask9Ref from .task_workflow_action import TaskWorkflowAction -from .techsupportmanagement_download import TechsupportmanagementDownload -from .techsupportmanagement_tech_support_bundle import TechsupportmanagementTechSupportBundle -from .techsupportmanagement_tech_support_status import TechsupportmanagementTechSupportStatus +from .task_workflow_action_ref import TaskWorkflowActionRef from .terminal_audit_log import TerminalAuditLog +from .terminal_audit_log_ref import TerminalAuditLogRef +from .top_system_ref import TopSystemRef +from .ucsdconnector_inventory_message_ref import UcsdconnectorInventoryMessageRef from .views_view import ViewsView +from .views_view_ref import ViewsViewRef +from .vmedia_deploy_task_ref import VmediaDeployTaskRef +from .vmedia_mapping_ref import VmediaMappingRef +from .vmedia_policy_ref import VmediaPolicyRef +from .vmedia_validation_task_ref import VmediaValidationTaskRef from .workflow_build_task_meta import WorkflowBuildTaskMeta +from .workflow_build_task_meta_ref import WorkflowBuildTaskMetaRef from .workflow_task_info import WorkflowTaskInfo +from .workflow_task_info_ref import WorkflowTaskInfoRef from .workflow_task_meta import WorkflowTaskMeta +from .workflow_task_meta_ref import WorkflowTaskMetaRef +from .workflow_task_retry_info_ref import WorkflowTaskRetryInfoRef from .workflow_workflow_info import WorkflowWorkflowInfo +from .workflow_workflow_info_ref import WorkflowWorkflowInfoRef from .workflow_workflow_meta import WorkflowWorkflowMeta +from .workflow_workflow_meta_ref import WorkflowWorkflowMetaRef from .workflow_workflow_task import WorkflowWorkflowTask +from .workflow_workflow_task_ref import WorkflowWorkflowTaskRef from .aaa_audit_record import AaaAuditRecord from .bios_policy import BiosPolicy from .boot_precision_policy import BootPrecisionPolicy @@ -320,11 +639,13 @@ from .hyperflex_cluster_network_policy import HyperflexClusterNetworkPolicy from .hyperflex_cluster_storage_policy import HyperflexClusterStoragePolicy from .hyperflex_config_result import HyperflexConfigResult +from .hyperflex_config_result_entry import HyperflexConfigResultEntry from .hyperflex_ext_fc_storage_policy import HyperflexExtFcStoragePolicy from .hyperflex_ext_iscsi_storage_policy import HyperflexExtIscsiStoragePolicy from .hyperflex_local_credential_policy import HyperflexLocalCredentialPolicy from .hyperflex_node_config_policy import HyperflexNodeConfigPolicy from .hyperflex_node_profile import HyperflexNodeProfile +from .hyperflex_proxy_setting_policy import HyperflexProxySettingPolicy from .hyperflex_sys_config_policy import HyperflexSysConfigPolicy from .hyperflex_ucsm_config_policy import HyperflexUcsmConfigPolicy from .hyperflex_vcenter_config_policy import HyperflexVcenterConfigPolicy @@ -346,12 +667,14 @@ from .port_physical import PortPhysical from .port_sub_group import PortSubGroup from .server_config_result import ServerConfigResult +from .server_config_result_entry import ServerConfigResultEntry from .smtp_policy import SmtpPolicy from .snmp_policy import SnmpPolicy from .sol_policy import SolPolicy from .ssh_policy import SshPolicy from .storage_disk_group_policy import StorageDiskGroupPolicy from .storage_flex_util_controller import StorageFlexUtilController +from .storage_flex_util_virtual_drive import StorageFlexUtilVirtualDrive from .storage_physical_disk_usage import StoragePhysicalDiskUsage from .storage_storage_policy import StorageStoragePolicy from .storage_vd_member_ep import StorageVdMemberEp @@ -385,9 +708,14 @@ from .security_unit import SecurityUnit from .server_profile import ServerProfile from .storage_controller import StorageController +from .storage_enclosure import StorageEnclosure from .storage_flex_flash_controller import StorageFlexFlashController +from .storage_flex_flash_controller_props import StorageFlexFlashControllerProps from .storage_flex_flash_physical_drive import StorageFlexFlashPhysicalDrive +from .storage_flex_flash_virtual_drive import StorageFlexFlashVirtualDrive +from .storage_flex_util_physical_drive import StorageFlexUtilPhysicalDrive from .storage_physical_disk import StoragePhysicalDisk +from .storage_physical_disk_extension import StoragePhysicalDiskExtension from .storage_sas_expander import StorageSasExpander from .storage_virtual_drive import StorageVirtualDrive from .compute_blade import ComputeBlade diff --git a/intersight/models/aaa_abstract_audit_record.py b/intersight/models/aaa_abstract_audit_record.py index 5cabbcc3..68e7abdd 100644 --- a/intersight/models/aaa_abstract_audit_record.py +++ b/intersight/models/aaa_abstract_audit_record.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class AaaAbstractAuditRecord(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'event': 'str', 'mo_type': 'str', @@ -143,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AaaAbstractAuditRecord. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AaaAbstractAuditRecord. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AaaAbstractAuditRecord. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AaaAbstractAuditRecord. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/aaa_abstract_audit_record_ref.py b/intersight/models/aaa_abstract_audit_record_ref.py new file mode 100644 index 00000000..9fd00cfd --- /dev/null +++ b/intersight/models/aaa_abstract_audit_record_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AaaAbstractAuditRecordRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AaaAbstractAuditRecordRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AaaAbstractAuditRecordRef. + + :return: The moid of this AaaAbstractAuditRecordRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AaaAbstractAuditRecordRef. + + :param moid: The moid of this AaaAbstractAuditRecordRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AaaAbstractAuditRecordRef. + + :return: The object_type of this AaaAbstractAuditRecordRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AaaAbstractAuditRecordRef. + + :param object_type: The object_type of this AaaAbstractAuditRecordRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AaaAbstractAuditRecordRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/aaa_audit_record.py b/intersight/models/aaa_audit_record.py index 1c1e60fc..3c484e2d 100644 --- a/intersight/models/aaa_audit_record.py +++ b/intersight/models/aaa_audit_record.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,25 +32,25 @@ class AaaAuditRecord(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'event': 'str', 'mo_type': 'str', 'object_moid': 'str', 'request': 'object', 'trace_id': 'str', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'inst_id': 'str', - 'sessions': 'MoMoRef', + 'sessions': 'IamSessionRef', 'source_ip': 'str', 'timestamp': 'datetime', - 'user': 'MoMoRef' + 'user': 'IamUserRef' } attribute_map = { @@ -173,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AaaAuditRecord. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -184,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AaaAuditRecord. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -311,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AaaAuditRecord. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -322,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AaaAuditRecord. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -472,7 +472,7 @@ def account(self): The account of the user who performed the operation. :return: The account of this AaaAuditRecord. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -483,7 +483,7 @@ def account(self, account): The account of the user who performed the operation. :param account: The account of this AaaAuditRecord. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -518,7 +518,7 @@ def sessions(self): The sessions of the user who performed the operation. :return: The sessions of this AaaAuditRecord. - :rtype: MoMoRef + :rtype: IamSessionRef """ return self._sessions @@ -529,7 +529,7 @@ def sessions(self, sessions): The sessions of the user who performed the operation. :param sessions: The sessions of this AaaAuditRecord. - :type: MoMoRef + :type: IamSessionRef """ self._sessions = sessions @@ -587,7 +587,7 @@ def user(self): The user who performed the operation. :return: The user of this AaaAuditRecord. - :rtype: MoMoRef + :rtype: IamUserRef """ return self._user @@ -598,7 +598,7 @@ def user(self, user): The user who performed the operation. :param user: The user of this AaaAuditRecord. - :type: MoMoRef + :type: IamUserRef """ self._user = user diff --git a/intersight/models/aaa_audit_record_list.py b/intersight/models/aaa_audit_record_list.py index 6e11f622..6f16bfc8 100644 --- a/intersight/models/aaa_audit_record_list.py +++ b/intersight/models/aaa_audit_record_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/aaa_audit_record_local_ref.py b/intersight/models/aaa_audit_record_local_ref.py new file mode 100644 index 00000000..6eca6730 --- /dev/null +++ b/intersight/models/aaa_audit_record_local_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AaaAuditRecordLocalRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AaaAuditRecordLocalRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AaaAuditRecordLocalRef. + + :return: The moid of this AaaAuditRecordLocalRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AaaAuditRecordLocalRef. + + :param moid: The moid of this AaaAuditRecordLocalRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AaaAuditRecordLocalRef. + + :return: The object_type of this AaaAuditRecordLocalRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AaaAuditRecordLocalRef. + + :param object_type: The object_type of this AaaAuditRecordLocalRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AaaAuditRecordLocalRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/aaa_audit_record_ref.py b/intersight/models/aaa_audit_record_ref.py new file mode 100644 index 00000000..a21c03a8 --- /dev/null +++ b/intersight/models/aaa_audit_record_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AaaAuditRecordRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AaaAuditRecordRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AaaAuditRecordRef. + + :return: The moid of this AaaAuditRecordRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AaaAuditRecordRef. + + :param moid: The moid of this AaaAuditRecordRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AaaAuditRecordRef. + + :return: The object_type of this AaaAuditRecordRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AaaAuditRecordRef. + + :param object_type: The object_type of this AaaAuditRecordRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AaaAuditRecordRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/adapter_ext_eth_interface.py b/intersight/models/adapter_ext_eth_interface.py index 75c03286..e8011474 100644 --- a/intersight/models/adapter_ext_eth_interface.py +++ b/intersight/models/adapter_ext_eth_interface.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class AdapterExtEthInterface(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,14 +47,15 @@ class AdapterExtEthInterface(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'adapter_unit': 'MoMoRef', + 'adapter_unit': 'AdapterUnitRef', 'admin_state': 'str', 'ep_dn': 'str', + 'ext_eth_interface_id': 'str', 'interface_type': 'str', 'mac_address': 'str', 'oper_state': 'str', 'peer_dn': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -77,6 +78,7 @@ class AdapterExtEthInterface(object): 'adapter_unit': 'AdapterUnit', 'admin_state': 'AdminState', 'ep_dn': 'EpDn', + 'ext_eth_interface_id': 'ExtEthInterfaceId', 'interface_type': 'InterfaceType', 'mac_address': 'MacAddress', 'oper_state': 'OperState', @@ -84,7 +86,7 @@ class AdapterExtEthInterface(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_unit=None, admin_state=None, ep_dn=None, interface_type=None, mac_address=None, oper_state=None, peer_dn=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_unit=None, admin_state=None, ep_dn=None, ext_eth_interface_id=None, interface_type=None, mac_address=None, oper_state=None, peer_dn=None, registered_device=None): """ AdapterExtEthInterface - a model defined in Swagger """ @@ -108,6 +110,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._adapter_unit = None self._admin_state = None self._ep_dn = None + self._ext_eth_interface_id = None self._interface_type = None self._mac_address = None self._oper_state = None @@ -152,6 +155,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.admin_state = admin_state if ep_dn is not None: self.ep_dn = ep_dn + if ext_eth_interface_id is not None: + self.ext_eth_interface_id = ext_eth_interface_id if interface_type is not None: self.interface_type = interface_type if mac_address is not None: @@ -193,7 +198,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AdapterExtEthInterface. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +209,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AdapterExtEthInterface. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +336,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AdapterExtEthInterface. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +347,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AdapterExtEthInterface. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -523,7 +528,7 @@ def adapter_unit(self): Gets the adapter_unit of this AdapterExtEthInterface. :return: The adapter_unit of this AdapterExtEthInterface. - :rtype: MoMoRef + :rtype: AdapterUnitRef """ return self._adapter_unit @@ -533,7 +538,7 @@ def adapter_unit(self, adapter_unit): Sets the adapter_unit of this AdapterExtEthInterface. :param adapter_unit: The adapter_unit of this AdapterExtEthInterface. - :type: MoMoRef + :type: AdapterUnitRef """ self._adapter_unit = adapter_unit @@ -580,6 +585,27 @@ def ep_dn(self, ep_dn): self._ep_dn = ep_dn + @property + def ext_eth_interface_id(self): + """ + Gets the ext_eth_interface_id of this AdapterExtEthInterface. + + :return: The ext_eth_interface_id of this AdapterExtEthInterface. + :rtype: str + """ + return self._ext_eth_interface_id + + @ext_eth_interface_id.setter + def ext_eth_interface_id(self, ext_eth_interface_id): + """ + Sets the ext_eth_interface_id of this AdapterExtEthInterface. + + :param ext_eth_interface_id: The ext_eth_interface_id of this AdapterExtEthInterface. + :type: str + """ + + self._ext_eth_interface_id = ext_eth_interface_id + @property def interface_type(self): """ @@ -670,7 +696,7 @@ def registered_device(self): Gets the registered_device of this AdapterExtEthInterface. :return: The registered_device of this AdapterExtEthInterface. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -680,7 +706,7 @@ def registered_device(self, registered_device): Sets the registered_device of this AdapterExtEthInterface. :param registered_device: The registered_device of this AdapterExtEthInterface. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/adapter_ext_eth_interface_list.py b/intersight/models/adapter_ext_eth_interface_list.py index 553154bf..f7388a4f 100644 --- a/intersight/models/adapter_ext_eth_interface_list.py +++ b/intersight/models/adapter_ext_eth_interface_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/adapter_ext_eth_interface_ref.py b/intersight/models/adapter_ext_eth_interface_ref.py new file mode 100644 index 00000000..8275c47e --- /dev/null +++ b/intersight/models/adapter_ext_eth_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AdapterExtEthInterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AdapterExtEthInterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AdapterExtEthInterfaceRef. + + :return: The moid of this AdapterExtEthInterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AdapterExtEthInterfaceRef. + + :param moid: The moid of this AdapterExtEthInterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AdapterExtEthInterfaceRef. + + :return: The object_type of this AdapterExtEthInterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AdapterExtEthInterfaceRef. + + :param object_type: The object_type of this AdapterExtEthInterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AdapterExtEthInterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/adapter_host_eth_interface.py b/intersight/models/adapter_host_eth_interface.py index 00242b06..278ecd45 100644 --- a/intersight/models/adapter_host_eth_interface.py +++ b/intersight/models/adapter_host_eth_interface.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class AdapterHostEthInterface(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,7 +47,7 @@ class AdapterHostEthInterface(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'adapter_unit': 'MoMoRef', + 'adapter_unit': 'AdapterUnitRef', 'admin_state': 'str', 'ep_dn': 'str', 'host_eth_interface_id': 'int', @@ -59,7 +59,7 @@ class AdapterHostEthInterface(object): 'original_mac_address': 'str', 'pci_addr': 'str', 'peer_dn': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'virtualization_preference': 'str', 'vnic_dn': 'str' } @@ -228,7 +228,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AdapterHostEthInterface. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -239,7 +239,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AdapterHostEthInterface. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -366,7 +366,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AdapterHostEthInterface. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -377,7 +377,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AdapterHostEthInterface. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -558,7 +558,7 @@ def adapter_unit(self): Gets the adapter_unit of this AdapterHostEthInterface. :return: The adapter_unit of this AdapterHostEthInterface. - :rtype: MoMoRef + :rtype: AdapterUnitRef """ return self._adapter_unit @@ -568,7 +568,7 @@ def adapter_unit(self, adapter_unit): Sets the adapter_unit of this AdapterHostEthInterface. :param adapter_unit: The adapter_unit of this AdapterHostEthInterface. - :type: MoMoRef + :type: AdapterUnitRef """ self._adapter_unit = adapter_unit @@ -810,7 +810,7 @@ def registered_device(self): Gets the registered_device of this AdapterHostEthInterface. :return: The registered_device of this AdapterHostEthInterface. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -820,7 +820,7 @@ def registered_device(self, registered_device): Sets the registered_device of this AdapterHostEthInterface. :param registered_device: The registered_device of this AdapterHostEthInterface. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/adapter_host_eth_interface_list.py b/intersight/models/adapter_host_eth_interface_list.py index 30a3ebc6..b349c512 100644 --- a/intersight/models/adapter_host_eth_interface_list.py +++ b/intersight/models/adapter_host_eth_interface_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/adapter_host_eth_interface_ref.py b/intersight/models/adapter_host_eth_interface_ref.py new file mode 100644 index 00000000..6c104a99 --- /dev/null +++ b/intersight/models/adapter_host_eth_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AdapterHostEthInterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AdapterHostEthInterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AdapterHostEthInterfaceRef. + + :return: The moid of this AdapterHostEthInterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AdapterHostEthInterfaceRef. + + :param moid: The moid of this AdapterHostEthInterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AdapterHostEthInterfaceRef. + + :return: The object_type of this AdapterHostEthInterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AdapterHostEthInterfaceRef. + + :param object_type: The object_type of this AdapterHostEthInterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AdapterHostEthInterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/adapter_host_fc_interface.py b/intersight/models/adapter_host_fc_interface.py index 480cd794..d455287a 100644 --- a/intersight/models/adapter_host_fc_interface.py +++ b/intersight/models/adapter_host_fc_interface.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class AdapterHostFcInterface(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,7 +47,7 @@ class AdapterHostFcInterface(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'adapter_unit': 'MoMoRef', + 'adapter_unit': 'AdapterUnitRef', 'admin_state': 'str', 'ep_dn': 'str', 'host_fc_interface_id': 'int', @@ -57,7 +57,7 @@ class AdapterHostFcInterface(object): 'original_wwnn': 'str', 'original_wwpn': 'str', 'peer_dn': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'wwnn': 'str', 'wwpn': 'str' } @@ -218,7 +218,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AdapterHostFcInterface. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -229,7 +229,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AdapterHostFcInterface. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -356,7 +356,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AdapterHostFcInterface. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -367,7 +367,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AdapterHostFcInterface. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -548,7 +548,7 @@ def adapter_unit(self): Gets the adapter_unit of this AdapterHostFcInterface. :return: The adapter_unit of this AdapterHostFcInterface. - :rtype: MoMoRef + :rtype: AdapterUnitRef """ return self._adapter_unit @@ -558,7 +558,7 @@ def adapter_unit(self, adapter_unit): Sets the adapter_unit of this AdapterHostFcInterface. :param adapter_unit: The adapter_unit of this AdapterHostFcInterface. - :type: MoMoRef + :type: AdapterUnitRef """ self._adapter_unit = adapter_unit @@ -758,7 +758,7 @@ def registered_device(self): Gets the registered_device of this AdapterHostFcInterface. :return: The registered_device of this AdapterHostFcInterface. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -768,7 +768,7 @@ def registered_device(self, registered_device): Sets the registered_device of this AdapterHostFcInterface. :param registered_device: The registered_device of this AdapterHostFcInterface. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/adapter_host_fc_interface_list.py b/intersight/models/adapter_host_fc_interface_list.py index c1ec8cfd..8b2da266 100644 --- a/intersight/models/adapter_host_fc_interface_list.py +++ b/intersight/models/adapter_host_fc_interface_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/adapter_host_fc_interface_ref.py b/intersight/models/adapter_host_fc_interface_ref.py new file mode 100644 index 00000000..d02b3a03 --- /dev/null +++ b/intersight/models/adapter_host_fc_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AdapterHostFcInterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AdapterHostFcInterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AdapterHostFcInterfaceRef. + + :return: The moid of this AdapterHostFcInterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AdapterHostFcInterfaceRef. + + :param moid: The moid of this AdapterHostFcInterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AdapterHostFcInterfaceRef. + + :return: The object_type of this AdapterHostFcInterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AdapterHostFcInterfaceRef. + + :param object_type: The object_type of this AdapterHostFcInterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AdapterHostFcInterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/adapter_host_iscsi_interface.py b/intersight/models/adapter_host_iscsi_interface.py index ba1c88ff..fa4d1b6e 100644 --- a/intersight/models/adapter_host_iscsi_interface.py +++ b/intersight/models/adapter_host_iscsi_interface.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class AdapterHostIscsiInterface(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,7 +47,7 @@ class AdapterHostIscsiInterface(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'adapter_unit': 'MoMoRef', + 'adapter_unit': 'AdapterUnitRef', 'admin_state': 'str', 'ep_dn': 'str', 'host_iscsi_interface_id': 'int', @@ -57,7 +57,7 @@ class AdapterHostIscsiInterface(object): 'oper_state': 'str', 'operability': 'str', 'peer_dn': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -208,7 +208,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AdapterHostIscsiInterface. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -219,7 +219,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AdapterHostIscsiInterface. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -346,7 +346,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AdapterHostIscsiInterface. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -357,7 +357,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AdapterHostIscsiInterface. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -538,7 +538,7 @@ def adapter_unit(self): Gets the adapter_unit of this AdapterHostIscsiInterface. :return: The adapter_unit of this AdapterHostIscsiInterface. - :rtype: MoMoRef + :rtype: AdapterUnitRef """ return self._adapter_unit @@ -548,7 +548,7 @@ def adapter_unit(self, adapter_unit): Sets the adapter_unit of this AdapterHostIscsiInterface. :param adapter_unit: The adapter_unit of this AdapterHostIscsiInterface. - :type: MoMoRef + :type: AdapterUnitRef """ self._adapter_unit = adapter_unit @@ -748,7 +748,7 @@ def registered_device(self): Gets the registered_device of this AdapterHostIscsiInterface. :return: The registered_device of this AdapterHostIscsiInterface. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -758,7 +758,7 @@ def registered_device(self, registered_device): Sets the registered_device of this AdapterHostIscsiInterface. :param registered_device: The registered_device of this AdapterHostIscsiInterface. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/adapter_host_iscsi_interface_list.py b/intersight/models/adapter_host_iscsi_interface_list.py index 27157fec..d5d1e530 100644 --- a/intersight/models/adapter_host_iscsi_interface_list.py +++ b/intersight/models/adapter_host_iscsi_interface_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/adapter_host_iscsi_interface_ref.py b/intersight/models/adapter_host_iscsi_interface_ref.py new file mode 100644 index 00000000..c7d7a04c --- /dev/null +++ b/intersight/models/adapter_host_iscsi_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AdapterHostIscsiInterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AdapterHostIscsiInterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AdapterHostIscsiInterfaceRef. + + :return: The moid of this AdapterHostIscsiInterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AdapterHostIscsiInterfaceRef. + + :param moid: The moid of this AdapterHostIscsiInterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AdapterHostIscsiInterfaceRef. + + :return: The object_type of this AdapterHostIscsiInterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AdapterHostIscsiInterfaceRef. + + :param object_type: The object_type of this AdapterHostIscsiInterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AdapterHostIscsiInterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/adapter_unit.py b/intersight/models/adapter_unit.py index cb0a2fd3..c5a4ccbe 100644 --- a/intersight/models/adapter_unit.py +++ b/intersight/models/adapter_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class AdapterUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -49,13 +49,13 @@ class AdapterUnit(object): 'vendor': 'str', 'adapter_id': 'str', 'base_mac_address': 'str', - 'compute_blade': 'MoMoRef', - 'compute_rack_unit': 'MoMoRef', - 'controller': 'MoMoRef', - 'ext_eth_ifs': 'list[MoMoRef]', - 'host_eth_ifs': 'list[MoMoRef]', - 'host_fc_ifs': 'list[MoMoRef]', - 'host_iscsi_ifs': 'list[MoMoRef]', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', + 'controller': 'ManagementControllerRef', + 'ext_eth_ifs': 'list[AdapterExtEthInterfaceRef]', + 'host_eth_ifs': 'list[AdapterHostEthInterfaceRef]', + 'host_fc_ifs': 'list[AdapterHostFcInterfaceRef]', + 'host_iscsi_ifs': 'list[AdapterHostIscsiInterfaceRef]', 'integrated': 'str', 'oper_state': 'str', 'operability': 'str', @@ -63,7 +63,7 @@ class AdapterUnit(object): 'pci_slot': 'str', 'power': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'thermal': 'str', 'vid': 'str' } @@ -248,7 +248,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AdapterUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -259,7 +259,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AdapterUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -386,7 +386,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AdapterUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -397,7 +397,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AdapterUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -620,7 +620,7 @@ def compute_blade(self): Gets the compute_blade of this AdapterUnit. :return: The compute_blade of this AdapterUnit. - :rtype: MoMoRef + :rtype: ComputeBladeRef """ return self._compute_blade @@ -630,7 +630,7 @@ def compute_blade(self, compute_blade): Sets the compute_blade of this AdapterUnit. :param compute_blade: The compute_blade of this AdapterUnit. - :type: MoMoRef + :type: ComputeBladeRef """ self._compute_blade = compute_blade @@ -641,7 +641,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this AdapterUnit. :return: The compute_rack_unit of this AdapterUnit. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -651,7 +651,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this AdapterUnit. :param compute_rack_unit: The compute_rack_unit of this AdapterUnit. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -662,7 +662,7 @@ def controller(self): Gets the controller of this AdapterUnit. :return: The controller of this AdapterUnit. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._controller @@ -672,7 +672,7 @@ def controller(self, controller): Sets the controller of this AdapterUnit. :param controller: The controller of this AdapterUnit. - :type: MoMoRef + :type: ManagementControllerRef """ self._controller = controller @@ -683,7 +683,7 @@ def ext_eth_ifs(self): Gets the ext_eth_ifs of this AdapterUnit. :return: The ext_eth_ifs of this AdapterUnit. - :rtype: list[MoMoRef] + :rtype: list[AdapterExtEthInterfaceRef] """ return self._ext_eth_ifs @@ -693,7 +693,7 @@ def ext_eth_ifs(self, ext_eth_ifs): Sets the ext_eth_ifs of this AdapterUnit. :param ext_eth_ifs: The ext_eth_ifs of this AdapterUnit. - :type: list[MoMoRef] + :type: list[AdapterExtEthInterfaceRef] """ self._ext_eth_ifs = ext_eth_ifs @@ -704,7 +704,7 @@ def host_eth_ifs(self): Gets the host_eth_ifs of this AdapterUnit. :return: The host_eth_ifs of this AdapterUnit. - :rtype: list[MoMoRef] + :rtype: list[AdapterHostEthInterfaceRef] """ return self._host_eth_ifs @@ -714,7 +714,7 @@ def host_eth_ifs(self, host_eth_ifs): Sets the host_eth_ifs of this AdapterUnit. :param host_eth_ifs: The host_eth_ifs of this AdapterUnit. - :type: list[MoMoRef] + :type: list[AdapterHostEthInterfaceRef] """ self._host_eth_ifs = host_eth_ifs @@ -725,7 +725,7 @@ def host_fc_ifs(self): Gets the host_fc_ifs of this AdapterUnit. :return: The host_fc_ifs of this AdapterUnit. - :rtype: list[MoMoRef] + :rtype: list[AdapterHostFcInterfaceRef] """ return self._host_fc_ifs @@ -735,7 +735,7 @@ def host_fc_ifs(self, host_fc_ifs): Sets the host_fc_ifs of this AdapterUnit. :param host_fc_ifs: The host_fc_ifs of this AdapterUnit. - :type: list[MoMoRef] + :type: list[AdapterHostFcInterfaceRef] """ self._host_fc_ifs = host_fc_ifs @@ -746,7 +746,7 @@ def host_iscsi_ifs(self): Gets the host_iscsi_ifs of this AdapterUnit. :return: The host_iscsi_ifs of this AdapterUnit. - :rtype: list[MoMoRef] + :rtype: list[AdapterHostIscsiInterfaceRef] """ return self._host_iscsi_ifs @@ -756,7 +756,7 @@ def host_iscsi_ifs(self, host_iscsi_ifs): Sets the host_iscsi_ifs of this AdapterUnit. :param host_iscsi_ifs: The host_iscsi_ifs of this AdapterUnit. - :type: list[MoMoRef] + :type: list[AdapterHostIscsiInterfaceRef] """ self._host_iscsi_ifs = host_iscsi_ifs @@ -914,7 +914,7 @@ def registered_device(self): Gets the registered_device of this AdapterUnit. :return: The registered_device of this AdapterUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -924,7 +924,7 @@ def registered_device(self, registered_device): Sets the registered_device of this AdapterUnit. :param registered_device: The registered_device of this AdapterUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/adapter_unit_list.py b/intersight/models/adapter_unit_list.py index 20828cb1..87747313 100644 --- a/intersight/models/adapter_unit_list.py +++ b/intersight/models/adapter_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/adapter_unit_ref.py b/intersight/models/adapter_unit_ref.py new file mode 100644 index 00000000..845badd6 --- /dev/null +++ b/intersight/models/adapter_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AdapterUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AdapterUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AdapterUnitRef. + + :return: The moid of this AdapterUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AdapterUnitRef. + + :param moid: The moid of this AdapterUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AdapterUnitRef. + + :return: The object_type of this AdapterUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AdapterUnitRef. + + :param object_type: The object_type of this AdapterUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AdapterUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_device_claim.py b/intersight/models/asset_device_claim.py index 9d08c9d6..61b505df 100644 --- a/intersight/models/asset_device_claim.py +++ b/intersight/models/asset_device_claim.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,16 @@ class AssetDeviceClaim(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'device': 'MoMoRef', + 'account': 'IamAccountRef', + 'device': 'AssetDeviceRegistrationRef', 'security_token': 'str', 'serial_number': 'str' } @@ -138,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AssetDeviceClaim. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AssetDeviceClaim. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AssetDeviceClaim. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AssetDeviceClaim. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +321,7 @@ def account(self): Gets the account of this AssetDeviceClaim. :return: The account of this AssetDeviceClaim. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -331,7 +331,7 @@ def account(self, account): Sets the account of this AssetDeviceClaim. :param account: The account of this AssetDeviceClaim. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -342,7 +342,7 @@ def device(self): Gets the device of this AssetDeviceClaim. :return: The device of this AssetDeviceClaim. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._device @@ -352,7 +352,7 @@ def device(self, device): Sets the device of this AssetDeviceClaim. :param device: The device of this AssetDeviceClaim. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._device = device diff --git a/intersight/models/asset_device_claim_ref.py b/intersight/models/asset_device_claim_ref.py new file mode 100644 index 00000000..de24d1bc --- /dev/null +++ b/intersight/models/asset_device_claim_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetDeviceClaimRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AssetDeviceClaimRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AssetDeviceClaimRef. + + :return: The moid of this AssetDeviceClaimRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetDeviceClaimRef. + + :param moid: The moid of this AssetDeviceClaimRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetDeviceClaimRef. + + :return: The object_type of this AssetDeviceClaimRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetDeviceClaimRef. + + :param object_type: The object_type of this AssetDeviceClaimRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetDeviceClaimRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_device_registration.py b/intersight/models/asset_device_registration.py index 4de02c01..a4d8d693 100644 --- a/intersight/models/asset_device_registration.py +++ b/intersight/models/asset_device_registration.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,32 +32,34 @@ class AssetDeviceRegistration(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'access_key': 'str', 'access_key_id': 'str', - 'account': 'MoMoRef', - 'claimed_by_user': 'MoMoRef', + 'account': 'IamAccountRef', + 'api_version': 'int', + 'claimed_by_user': 'IamUserRef', 'claimed_time': 'datetime', 'connection_reason': 'str', 'connection_status': 'str', 'connection_status_last_change_time': 'datetime', 'connector_version': 'str', - 'device_claim': 'MoMoRef', + 'device_claim': 'AssetDeviceClaimRef', 'device_external_ip_address': 'str', 'device_hostname': 'list[str]', 'device_ip_address': 'list[str]', 'execution_mode': 'str', 'pid': 'list[str]', 'platform_type': 'str', + 'public_access_key': 'str', 'read_only': 'bool', - 'security_token': 'MoMoRef', + 'security_token': 'AssetSecurityTokenRef', 'serial': 'list[str]', 'vendor': 'str' } @@ -75,6 +77,7 @@ class AssetDeviceRegistration(object): 'access_key': 'AccessKey', 'access_key_id': 'AccessKeyId', 'account': 'Account', + 'api_version': 'ApiVersion', 'claimed_by_user': 'ClaimedByUser', 'claimed_time': 'ClaimedTime', 'connection_reason': 'ConnectionReason', @@ -88,13 +91,14 @@ class AssetDeviceRegistration(object): 'execution_mode': 'ExecutionMode', 'pid': 'Pid', 'platform_type': 'PlatformType', + 'public_access_key': 'PublicAccessKey', 'read_only': 'ReadOnly', 'security_token': 'SecurityToken', 'serial': 'Serial', 'vendor': 'Vendor' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, access_key=None, access_key_id=None, account=None, claimed_by_user=None, claimed_time=None, connection_reason=None, connection_status=None, connection_status_last_change_time=None, connector_version=None, device_claim=None, device_external_ip_address=None, device_hostname=None, device_ip_address=None, execution_mode=None, pid=None, platform_type=None, read_only=None, security_token=None, serial=None, vendor=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, access_key=None, access_key_id=None, account=None, api_version=None, claimed_by_user=None, claimed_time=None, connection_reason=None, connection_status='null', connection_status_last_change_time=None, connector_version=None, device_claim=None, device_external_ip_address=None, device_hostname=None, device_ip_address=None, execution_mode=None, pid=None, platform_type='null', public_access_key=None, read_only=None, security_token=None, serial=None, vendor=None): """ AssetDeviceRegistration - a model defined in Swagger """ @@ -111,6 +115,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._access_key = None self._access_key_id = None self._account = None + self._api_version = None self._claimed_by_user = None self._claimed_time = None self._connection_reason = None @@ -124,6 +129,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._execution_mode = None self._pid = None self._platform_type = None + self._public_access_key = None self._read_only = None self._security_token = None self._serial = None @@ -153,6 +159,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.access_key_id = access_key_id if account is not None: self.account = account + if api_version is not None: + self.api_version = api_version if claimed_by_user is not None: self.claimed_by_user = claimed_by_user if claimed_time is not None: @@ -179,6 +187,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.pid = pid if platform_type is not None: self.platform_type = platform_type + if public_access_key is not None: + self.public_access_key = public_access_key if read_only is not None: self.read_only = read_only if security_token is not None: @@ -218,7 +228,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AssetDeviceRegistration. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -229,7 +239,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AssetDeviceRegistration. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -356,7 +366,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AssetDeviceRegistration. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -367,7 +377,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AssetDeviceRegistration. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -422,7 +432,7 @@ def access_key(self, access_key): def access_key_id(self): """ Gets the access_key_id of this AssetDeviceRegistration. - Part of the credential used for the device connector to authenticate with the cloud. + Part of the credential used for the device connector to authenticate with the cloud. :return: The access_key_id of this AssetDeviceRegistration. :rtype: str @@ -433,7 +443,7 @@ def access_key_id(self): def access_key_id(self, access_key_id): """ Sets the access_key_id of this AssetDeviceRegistration. - Part of the credential used for the device connector to authenticate with the cloud. + Part of the credential used for the device connector to authenticate with the cloud. :param access_key_id: The access_key_id of this AssetDeviceRegistration. :type: str @@ -448,7 +458,7 @@ def account(self): The account to which the device has been claimed. :return: The account of this AssetDeviceRegistration. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -459,11 +469,34 @@ def account(self, account): The account to which the device has been claimed. :param account: The account of this AssetDeviceRegistration. - :type: MoMoRef + :type: IamAccountRef """ self._account = account + @property + def api_version(self): + """ + Gets the api_version of this AssetDeviceRegistration. + The version of the connector api. Describes the capability of the connectors framework. If the version is lower than the current minimum supported version defined in the service managing the connection the device will be connected with limited capabilities until the device is upgraded to a fully supported version. For example if a device connector that was released without delta inventory capabilities registers and connects to Intersight inventory collection may be disabled until it has been upgraded. + + :return: The api_version of this AssetDeviceRegistration. + :rtype: int + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this AssetDeviceRegistration. + The version of the connector api. Describes the capability of the connectors framework. If the version is lower than the current minimum supported version defined in the service managing the connection the device will be connected with limited capabilities until the device is upgraded to a fully supported version. For example if a device connector that was released without delta inventory capabilities registers and connects to Intersight inventory collection may be disabled until it has been upgraded. + + :param api_version: The api_version of this AssetDeviceRegistration. + :type: int + """ + + self._api_version = api_version + @property def claimed_by_user(self): """ @@ -471,7 +504,7 @@ def claimed_by_user(self): The user who claimed the device for the account. :return: The claimed_by_user of this AssetDeviceRegistration. - :rtype: MoMoRef + :rtype: IamUserRef """ return self._claimed_by_user @@ -482,7 +515,7 @@ def claimed_by_user(self, claimed_by_user): The user who claimed the device for the account. :param claimed_by_user: The claimed_by_user of this AssetDeviceRegistration. - :type: MoMoRef + :type: IamUserRef """ self._claimed_by_user = claimed_by_user @@ -553,6 +586,12 @@ def connection_status(self, connection_status): :param connection_status: The connection_status of this AssetDeviceRegistration. :type: str """ + allowed_values = ["", "Connected", "NotConnected"] + if connection_status not in allowed_values: + raise ValueError( + "Invalid value for `connection_status` ({0}), must be one of {1}" + .format(connection_status, allowed_values) + ) self._connection_status = connection_status @@ -608,7 +647,7 @@ def device_claim(self): Gets the device_claim of this AssetDeviceRegistration. :return: The device_claim of this AssetDeviceRegistration. - :rtype: MoMoRef + :rtype: AssetDeviceClaimRef """ return self._device_claim @@ -618,7 +657,7 @@ def device_claim(self, device_claim): Sets the device_claim of this AssetDeviceRegistration. :param device_claim: The device_claim of this AssetDeviceRegistration. - :type: MoMoRef + :type: AssetDeviceClaimRef """ self._device_claim = device_claim @@ -758,9 +797,38 @@ def platform_type(self, platform_type): :param platform_type: The platform_type of this AssetDeviceRegistration. :type: str """ + allowed_values = ["", "UCSFI", "IMC", "IMCM4", "IMCM5", "HX", "UCSD"] + if platform_type not in allowed_values: + raise ValueError( + "Invalid value for `platform_type` ({0}), must be one of {1}" + .format(platform_type, allowed_values) + ) self._platform_type = platform_type + @property + def public_access_key(self): + """ + Gets the public_access_key of this AssetDeviceRegistration. + The devices public key. Used to verify that the signature a device connector sends on connect has been signed by the connectors private key stored on the devices filesystem. Must be a PEM encoded RSA public key string. + + :return: The public_access_key of this AssetDeviceRegistration. + :rtype: str + """ + return self._public_access_key + + @public_access_key.setter + def public_access_key(self, public_access_key): + """ + Sets the public_access_key of this AssetDeviceRegistration. + The devices public key. Used to verify that the signature a device connector sends on connect has been signed by the connectors private key stored on the devices filesystem. Must be a PEM encoded RSA public key string. + + :param public_access_key: The public_access_key of this AssetDeviceRegistration. + :type: str + """ + + self._public_access_key = public_access_key + @property def read_only(self): """ @@ -790,7 +858,7 @@ def security_token(self): Gets the security_token of this AssetDeviceRegistration. :return: The security_token of this AssetDeviceRegistration. - :rtype: MoMoRef + :rtype: AssetSecurityTokenRef """ return self._security_token @@ -800,7 +868,7 @@ def security_token(self, security_token): Sets the security_token of this AssetDeviceRegistration. :param security_token: The security_token of this AssetDeviceRegistration. - :type: MoMoRef + :type: AssetSecurityTokenRef """ self._security_token = security_token diff --git a/intersight/models/asset_device_registration_list.py b/intersight/models/asset_device_registration_list.py index 6f6c791c..67799fda 100644 --- a/intersight/models/asset_device_registration_list.py +++ b/intersight/models/asset_device_registration_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/asset_device_registration_ref.py b/intersight/models/asset_device_registration_ref.py new file mode 100644 index 00000000..3f0b3381 --- /dev/null +++ b/intersight/models/asset_device_registration_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetDeviceRegistrationRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AssetDeviceRegistrationRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AssetDeviceRegistrationRef. + + :return: The moid of this AssetDeviceRegistrationRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetDeviceRegistrationRef. + + :param moid: The moid of this AssetDeviceRegistrationRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetDeviceRegistrationRef. + + :return: The object_type of this AssetDeviceRegistrationRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetDeviceRegistrationRef. + + :param object_type: The object_type of this AssetDeviceRegistrationRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetDeviceRegistrationRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_security_token_ref.py b/intersight/models/asset_security_token_ref.py new file mode 100644 index 00000000..453f7926 --- /dev/null +++ b/intersight/models/asset_security_token_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetSecurityTokenRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AssetSecurityTokenRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AssetSecurityTokenRef. + + :return: The moid of this AssetSecurityTokenRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetSecurityTokenRef. + + :param moid: The moid of this AssetSecurityTokenRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetSecurityTokenRef. + + :return: The object_type of this AssetSecurityTokenRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetSecurityTokenRef. + + :param object_type: The object_type of this AssetSecurityTokenRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetSecurityTokenRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/bios_deploy_task_ref.py b/intersight/models/bios_deploy_task_ref.py new file mode 100644 index 00000000..0b25234e --- /dev/null +++ b/intersight/models/bios_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BiosDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BiosDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BiosDeployTaskRef. + + :return: The moid of this BiosDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BiosDeployTaskRef. + + :param moid: The moid of this BiosDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BiosDeployTaskRef. + + :return: The object_type of this BiosDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BiosDeployTaskRef. + + :param object_type: The object_type of this BiosDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BiosDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/bios_policy.py b/intersight/models/bios_policy.py index d649d67c..dd220f58 100644 --- a/intersight/models/bios_policy.py +++ b/intersight/models/bios_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,26 +32,223 @@ class BiosPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'input_output': 'BiosInputOutput', - 'lom_and_pcie_slots_configuration': 'BiosLomAndPcieSlotsConfiguration', - 'memory': 'BiosMemory', - 'organization': 'MoMoRef', - 'power_or_performance': 'BiosPowerOrPerformance', - 'processor': 'BiosProcessor', - 'profiles': 'list[MoMoRef]', - 'security': 'BiosSecurity', - 'serial_configuration': 'BiosSerialConfiguration', - 'server_management': 'BiosServerManagement' + 'adjacent_cache_line_prefetch': 'str', + 'all_usb_devices': 'str', + 'altitude': 'str', + 'aspm_support': 'str', + 'assert_nmi_on_perr': 'str', + 'assert_nmi_on_serr': 'str', + 'auto_cc_state': 'str', + 'autonumous_cstate_enable': 'str', + 'baud_rate': 'str', + 'boot_option_num_retry': 'str', + 'boot_option_re_cool_down': 'str', + 'boot_option_retry': 'str', + 'boot_performance_mode': 'str', + 'cdn_enable': 'str', + 'cdn_support': 'str', + 'channel_inter_leave': 'str', + 'cke_low_policy': 'str', + 'closed_loop_therm_throtl': 'str', + 'cmci_enable': 'str', + 'config_tdp': 'str', + 'console_redirection': 'str', + 'core_multi_processing': 'str', + 'cpu_energy_performance': 'str', + 'cpu_frequency_floor': 'str', + 'cpu_performance': 'str', + 'cpu_power_management': 'str', + 'demand_scrub': 'str', + 'direct_cache_access': 'str', + 'dram_clock_throttling': 'str', + 'dram_refresh_rate': 'str', + 'energy_efficient_turbo': 'str', + 'eng_perf_tuning': 'str', + 'enhanced_intel_speed_step_tech': 'str', + 'epp_profile': 'str', + 'execute_disable_bit': 'str', + 'extended_apic': 'str', + 'flow_control': 'str', + 'frb2enable': 'str', + 'hardware_prefetch': 'str', + 'hwpm_enable': 'str', + 'imc_interleave': 'str', + 'intel_hyper_threading_tech': 'str', + 'intel_turbo_boost_tech': 'str', + 'intel_virtualization_technology': 'str', + 'intel_vt_for_directed_io': 'str', + 'intel_vtd_coherency_support': 'str', + 'intel_vtd_interrupt_remapping': 'str', + 'intel_vtd_pass_through_dma_support': 'str', + 'intel_vtdats_support': 'str', + 'ioh_error_enable': 'str', + 'ioh_resource': 'str', + 'ip_prefetch': 'str', + 'ipv6pxe': 'str', + 'kti_prefetch': 'str', + 'legacy_os_redirection': 'str', + 'legacy_usb_support': 'str', + 'llc_prefetch': 'str', + 'lom_port0state': 'str', + 'lom_port1state': 'str', + 'lom_port2state': 'str', + 'lom_port3state': 'str', + 'lom_ports_all_state': 'str', + 'lv_ddr_mode': 'str', + 'make_device_non_bootable': 'str', + 'memory_inter_leave': 'str', + 'memory_mapped_io_above4gb': 'str', + 'mirroring_mode': 'str', + 'mmcfg_base': 'str', + 'numa_optimized': 'str', + 'onboard10gbit_lom': 'str', + 'onboard_gbit_lom': 'str', + 'onboard_scu_storage_support': 'str', + 'onboard_scu_storage_sw_stack': 'str', + 'organization': 'IamAccountRef', + 'os_boot_watchdog_timer': 'str', + 'os_boot_watchdog_timer_policy': 'str', + 'os_boot_watchdog_timer_timeout': 'str', + 'out_of_band_mgmt_port': 'str', + 'package_cstate_limit': 'str', + 'patrol_scrub': 'str', + 'patrol_scrub_duration': 'str', + 'pc_ie_ssd_hot_plug_support': 'str', + 'pch_usb30mode': 'str', + 'pci_option_ro_ms': 'str', + 'pci_rom_clp': 'str', + 'pop_support': 'str', + 'post_error_pause': 'str', + 'processor_c1e': 'str', + 'processor_c3report': 'str', + 'processor_c6report': 'str', + 'processor_cstate': 'str', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', + 'psata': 'str', + 'pstate_coord_type': 'str', + 'putty_key_pad': 'str', + 'pwr_perf_tuning': 'str', + 'qpi_link_frequency': 'str', + 'qpi_snoop_mode': 'str', + 'rank_inter_leave': 'str', + 'redirection_after_post': 'str', + 'sata_mode_select': 'str', + 'select_memory_ras_configuration': 'str', + 'serial_port_aenable': 'str', + 'single_pctl_enable': 'str', + 'slot10link_speed': 'str', + 'slot10state': 'str', + 'slot11link_speed': 'str', + 'slot11state': 'str', + 'slot12link_speed': 'str', + 'slot12state': 'str', + 'slot1link_speed': 'str', + 'slot1state': 'str', + 'slot2link_speed': 'str', + 'slot2state': 'str', + 'slot3link_speed': 'str', + 'slot3state': 'str', + 'slot4link_speed': 'str', + 'slot4state': 'str', + 'slot5link_speed': 'str', + 'slot5state': 'str', + 'slot6link_speed': 'str', + 'slot6state': 'str', + 'slot7link_speed': 'str', + 'slot7state': 'str', + 'slot8link_speed': 'str', + 'slot8state': 'str', + 'slot9link_speed': 'str', + 'slot9state': 'str', + 'slot_flom_link_speed': 'str', + 'slot_front_nvme1link_speed': 'str', + 'slot_front_nvme2link_speed': 'str', + 'slot_front_slot5link_speed': 'str', + 'slot_front_slot6link_speed': 'str', + 'slot_hba_link_speed': 'str', + 'slot_hba_state': 'str', + 'slot_mezz_state': 'str', + 'slot_mlom_link_speed': 'str', + 'slot_mlom_state': 'str', + 'slot_mraid_link_speed': 'str', + 'slot_mraid_state': 'str', + 'slot_n10state': 'str', + 'slot_n11state': 'str', + 'slot_n12state': 'str', + 'slot_n13state': 'str', + 'slot_n14state': 'str', + 'slot_n15state': 'str', + 'slot_n16state': 'str', + 'slot_n17state': 'str', + 'slot_n18state': 'str', + 'slot_n19state': 'str', + 'slot_n1state': 'str', + 'slot_n20state': 'str', + 'slot_n21state': 'str', + 'slot_n22state': 'str', + 'slot_n23state': 'str', + 'slot_n24state': 'str', + 'slot_n2state': 'str', + 'slot_n3state': 'str', + 'slot_n4state': 'str', + 'slot_n5state': 'str', + 'slot_n6state': 'str', + 'slot_n7state': 'str', + 'slot_n8state': 'str', + 'slot_n9state': 'str', + 'slot_raid_link_speed': 'str', + 'slot_raid_state': 'str', + 'slot_rear_nvme1link_speed': 'str', + 'slot_rear_nvme1state': 'str', + 'slot_rear_nvme2link_speed': 'str', + 'slot_rear_nvme2state': 'str', + 'slot_rear_nvme3state': 'str', + 'slot_rear_nvme4state': 'str', + 'slot_rear_nvme5state': 'str', + 'slot_rear_nvme6state': 'str', + 'slot_rear_nvme7state': 'str', + 'slot_rear_nvme8state': 'str', + 'slot_riser1link_speed': 'str', + 'slot_riser1slot1link_speed': 'str', + 'slot_riser1slot2link_speed': 'str', + 'slot_riser1slot3link_speed': 'str', + 'slot_riser2link_speed': 'str', + 'slot_riser2slot4link_speed': 'str', + 'slot_riser2slot5link_speed': 'str', + 'slot_riser2slot6link_speed': 'str', + 'slot_sas_state': 'str', + 'slot_ssd_slot1link_speed': 'str', + 'slot_ssd_slot2link_speed': 'str', + 'snc': 'str', + 'sparing_mode': 'str', + 'sr_iov': 'str', + 'streamer_prefetch': 'str', + 'terminal_type': 'str', + 'tpm_control': 'str', + 'tpm_support': 'str', + 'txt_support': 'str', + 'ucsm_boot_order_rule': 'str', + 'usb_emul6064': 'str', + 'usb_port_front': 'str', + 'usb_port_internal': 'str', + 'usb_port_kvm': 'str', + 'usb_port_rear': 'str', + 'usb_port_sd_card': 'str', + 'usb_port_vmedia': 'str', + 'usb_xhci_support': 'str', + 'vga_priority': 'str', + 'work_load_config': 'str', + 'xpt_prefetch': 'str' } attribute_map = { @@ -66,19 +263,216 @@ class BiosPolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'input_output': 'InputOutput', - 'lom_and_pcie_slots_configuration': 'LomAndPcieSlotsConfiguration', - 'memory': 'Memory', + 'adjacent_cache_line_prefetch': 'AdjacentCacheLinePrefetch', + 'all_usb_devices': 'AllUsbDevices', + 'altitude': 'Altitude', + 'aspm_support': 'AspmSupport', + 'assert_nmi_on_perr': 'AssertNmiOnPerr', + 'assert_nmi_on_serr': 'AssertNmiOnSerr', + 'auto_cc_state': 'AutoCcState', + 'autonumous_cstate_enable': 'AutonumousCstateEnable', + 'baud_rate': 'BaudRate', + 'boot_option_num_retry': 'BootOptionNumRetry', + 'boot_option_re_cool_down': 'BootOptionReCoolDown', + 'boot_option_retry': 'BootOptionRetry', + 'boot_performance_mode': 'BootPerformanceMode', + 'cdn_enable': 'CdnEnable', + 'cdn_support': 'CdnSupport', + 'channel_inter_leave': 'ChannelInterLeave', + 'cke_low_policy': 'CkeLowPolicy', + 'closed_loop_therm_throtl': 'ClosedLoopThermThrotl', + 'cmci_enable': 'CmciEnable', + 'config_tdp': 'ConfigTdp', + 'console_redirection': 'ConsoleRedirection', + 'core_multi_processing': 'CoreMultiProcessing', + 'cpu_energy_performance': 'CpuEnergyPerformance', + 'cpu_frequency_floor': 'CpuFrequencyFloor', + 'cpu_performance': 'CpuPerformance', + 'cpu_power_management': 'CpuPowerManagement', + 'demand_scrub': 'DemandScrub', + 'direct_cache_access': 'DirectCacheAccess', + 'dram_clock_throttling': 'DramClockThrottling', + 'dram_refresh_rate': 'DramRefreshRate', + 'energy_efficient_turbo': 'EnergyEfficientTurbo', + 'eng_perf_tuning': 'EngPerfTuning', + 'enhanced_intel_speed_step_tech': 'EnhancedIntelSpeedStepTech', + 'epp_profile': 'EppProfile', + 'execute_disable_bit': 'ExecuteDisableBit', + 'extended_apic': 'ExtendedApic', + 'flow_control': 'FlowControl', + 'frb2enable': 'Frb2enable', + 'hardware_prefetch': 'HardwarePrefetch', + 'hwpm_enable': 'HwpmEnable', + 'imc_interleave': 'ImcInterleave', + 'intel_hyper_threading_tech': 'IntelHyperThreadingTech', + 'intel_turbo_boost_tech': 'IntelTurboBoostTech', + 'intel_virtualization_technology': 'IntelVirtualizationTechnology', + 'intel_vt_for_directed_io': 'IntelVtForDirectedIo', + 'intel_vtd_coherency_support': 'IntelVtdCoherencySupport', + 'intel_vtd_interrupt_remapping': 'IntelVtdInterruptRemapping', + 'intel_vtd_pass_through_dma_support': 'IntelVtdPassThroughDmaSupport', + 'intel_vtdats_support': 'IntelVtdatsSupport', + 'ioh_error_enable': 'IohErrorEnable', + 'ioh_resource': 'IohResource', + 'ip_prefetch': 'IpPrefetch', + 'ipv6pxe': 'Ipv6pxe', + 'kti_prefetch': 'KtiPrefetch', + 'legacy_os_redirection': 'LegacyOsRedirection', + 'legacy_usb_support': 'LegacyUsbSupport', + 'llc_prefetch': 'LlcPrefetch', + 'lom_port0state': 'LomPort0state', + 'lom_port1state': 'LomPort1state', + 'lom_port2state': 'LomPort2state', + 'lom_port3state': 'LomPort3state', + 'lom_ports_all_state': 'LomPortsAllState', + 'lv_ddr_mode': 'LvDdrMode', + 'make_device_non_bootable': 'MakeDeviceNonBootable', + 'memory_inter_leave': 'MemoryInterLeave', + 'memory_mapped_io_above4gb': 'MemoryMappedIoAbove4gb', + 'mirroring_mode': 'MirroringMode', + 'mmcfg_base': 'MmcfgBase', + 'numa_optimized': 'NumaOptimized', + 'onboard10gbit_lom': 'Onboard10gbitLom', + 'onboard_gbit_lom': 'OnboardGbitLom', + 'onboard_scu_storage_support': 'OnboardScuStorageSupport', + 'onboard_scu_storage_sw_stack': 'OnboardScuStorageSwStack', 'organization': 'Organization', - 'power_or_performance': 'PowerOrPerformance', - 'processor': 'Processor', + 'os_boot_watchdog_timer': 'OsBootWatchdogTimer', + 'os_boot_watchdog_timer_policy': 'OsBootWatchdogTimerPolicy', + 'os_boot_watchdog_timer_timeout': 'OsBootWatchdogTimerTimeout', + 'out_of_band_mgmt_port': 'OutOfBandMgmtPort', + 'package_cstate_limit': 'PackageCstateLimit', + 'patrol_scrub': 'PatrolScrub', + 'patrol_scrub_duration': 'PatrolScrubDuration', + 'pc_ie_ssd_hot_plug_support': 'PcIeSsdHotPlugSupport', + 'pch_usb30mode': 'PchUsb30mode', + 'pci_option_ro_ms': 'PciOptionRoMs', + 'pci_rom_clp': 'PciRomClp', + 'pop_support': 'PopSupport', + 'post_error_pause': 'PostErrorPause', + 'processor_c1e': 'ProcessorC1e', + 'processor_c3report': 'ProcessorC3report', + 'processor_c6report': 'ProcessorC6report', + 'processor_cstate': 'ProcessorCstate', 'profiles': 'Profiles', - 'security': 'Security', - 'serial_configuration': 'SerialConfiguration', - 'server_management': 'ServerManagement' + 'psata': 'Psata', + 'pstate_coord_type': 'PstateCoordType', + 'putty_key_pad': 'PuttyKeyPad', + 'pwr_perf_tuning': 'PwrPerfTuning', + 'qpi_link_frequency': 'QpiLinkFrequency', + 'qpi_snoop_mode': 'QpiSnoopMode', + 'rank_inter_leave': 'RankInterLeave', + 'redirection_after_post': 'RedirectionAfterPost', + 'sata_mode_select': 'SataModeSelect', + 'select_memory_ras_configuration': 'SelectMemoryRasConfiguration', + 'serial_port_aenable': 'SerialPortAenable', + 'single_pctl_enable': 'SinglePctlEnable', + 'slot10link_speed': 'Slot10linkSpeed', + 'slot10state': 'Slot10state', + 'slot11link_speed': 'Slot11linkSpeed', + 'slot11state': 'Slot11state', + 'slot12link_speed': 'Slot12linkSpeed', + 'slot12state': 'Slot12state', + 'slot1link_speed': 'Slot1linkSpeed', + 'slot1state': 'Slot1state', + 'slot2link_speed': 'Slot2linkSpeed', + 'slot2state': 'Slot2state', + 'slot3link_speed': 'Slot3linkSpeed', + 'slot3state': 'Slot3state', + 'slot4link_speed': 'Slot4linkSpeed', + 'slot4state': 'Slot4state', + 'slot5link_speed': 'Slot5linkSpeed', + 'slot5state': 'Slot5state', + 'slot6link_speed': 'Slot6linkSpeed', + 'slot6state': 'Slot6state', + 'slot7link_speed': 'Slot7linkSpeed', + 'slot7state': 'Slot7state', + 'slot8link_speed': 'Slot8linkSpeed', + 'slot8state': 'Slot8state', + 'slot9link_speed': 'Slot9linkSpeed', + 'slot9state': 'Slot9state', + 'slot_flom_link_speed': 'SlotFlomLinkSpeed', + 'slot_front_nvme1link_speed': 'SlotFrontNvme1linkSpeed', + 'slot_front_nvme2link_speed': 'SlotFrontNvme2linkSpeed', + 'slot_front_slot5link_speed': 'SlotFrontSlot5linkSpeed', + 'slot_front_slot6link_speed': 'SlotFrontSlot6linkSpeed', + 'slot_hba_link_speed': 'SlotHbaLinkSpeed', + 'slot_hba_state': 'SlotHbaState', + 'slot_mezz_state': 'SlotMezzState', + 'slot_mlom_link_speed': 'SlotMlomLinkSpeed', + 'slot_mlom_state': 'SlotMlomState', + 'slot_mraid_link_speed': 'SlotMraidLinkSpeed', + 'slot_mraid_state': 'SlotMraidState', + 'slot_n10state': 'SlotN10state', + 'slot_n11state': 'SlotN11state', + 'slot_n12state': 'SlotN12state', + 'slot_n13state': 'SlotN13state', + 'slot_n14state': 'SlotN14state', + 'slot_n15state': 'SlotN15state', + 'slot_n16state': 'SlotN16state', + 'slot_n17state': 'SlotN17state', + 'slot_n18state': 'SlotN18state', + 'slot_n19state': 'SlotN19state', + 'slot_n1state': 'SlotN1state', + 'slot_n20state': 'SlotN20state', + 'slot_n21state': 'SlotN21state', + 'slot_n22state': 'SlotN22state', + 'slot_n23state': 'SlotN23state', + 'slot_n24state': 'SlotN24state', + 'slot_n2state': 'SlotN2state', + 'slot_n3state': 'SlotN3state', + 'slot_n4state': 'SlotN4state', + 'slot_n5state': 'SlotN5state', + 'slot_n6state': 'SlotN6state', + 'slot_n7state': 'SlotN7state', + 'slot_n8state': 'SlotN8state', + 'slot_n9state': 'SlotN9state', + 'slot_raid_link_speed': 'SlotRaidLinkSpeed', + 'slot_raid_state': 'SlotRaidState', + 'slot_rear_nvme1link_speed': 'SlotRearNvme1linkSpeed', + 'slot_rear_nvme1state': 'SlotRearNvme1state', + 'slot_rear_nvme2link_speed': 'SlotRearNvme2linkSpeed', + 'slot_rear_nvme2state': 'SlotRearNvme2state', + 'slot_rear_nvme3state': 'SlotRearNvme3state', + 'slot_rear_nvme4state': 'SlotRearNvme4state', + 'slot_rear_nvme5state': 'SlotRearNvme5state', + 'slot_rear_nvme6state': 'SlotRearNvme6state', + 'slot_rear_nvme7state': 'SlotRearNvme7state', + 'slot_rear_nvme8state': 'SlotRearNvme8state', + 'slot_riser1link_speed': 'SlotRiser1linkSpeed', + 'slot_riser1slot1link_speed': 'SlotRiser1slot1linkSpeed', + 'slot_riser1slot2link_speed': 'SlotRiser1slot2linkSpeed', + 'slot_riser1slot3link_speed': 'SlotRiser1slot3linkSpeed', + 'slot_riser2link_speed': 'SlotRiser2linkSpeed', + 'slot_riser2slot4link_speed': 'SlotRiser2slot4linkSpeed', + 'slot_riser2slot5link_speed': 'SlotRiser2slot5linkSpeed', + 'slot_riser2slot6link_speed': 'SlotRiser2slot6linkSpeed', + 'slot_sas_state': 'SlotSasState', + 'slot_ssd_slot1link_speed': 'SlotSsdSlot1linkSpeed', + 'slot_ssd_slot2link_speed': 'SlotSsdSlot2linkSpeed', + 'snc': 'Snc', + 'sparing_mode': 'SparingMode', + 'sr_iov': 'SrIov', + 'streamer_prefetch': 'StreamerPrefetch', + 'terminal_type': 'TerminalType', + 'tpm_control': 'TpmControl', + 'tpm_support': 'TpmSupport', + 'txt_support': 'TxtSupport', + 'ucsm_boot_order_rule': 'UcsmBootOrderRule', + 'usb_emul6064': 'UsbEmul6064', + 'usb_port_front': 'UsbPortFront', + 'usb_port_internal': 'UsbPortInternal', + 'usb_port_kvm': 'UsbPortKvm', + 'usb_port_rear': 'UsbPortRear', + 'usb_port_sd_card': 'UsbPortSdCard', + 'usb_port_vmedia': 'UsbPortVmedia', + 'usb_xhci_support': 'UsbXhciSupport', + 'vga_priority': 'VgaPriority', + 'work_load_config': 'WorkLoadConfig', + 'xpt_prefetch': 'XptPrefetch' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, input_output=None, lom_and_pcie_slots_configuration=None, memory=None, organization=None, power_or_performance=None, processor=None, profiles=None, security=None, serial_configuration=None, server_management=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, adjacent_cache_line_prefetch='platform-default', all_usb_devices='platform-default', altitude='platform-default', aspm_support='platform-default', assert_nmi_on_perr='platform-default', assert_nmi_on_serr='platform-default', auto_cc_state='platform-default', autonumous_cstate_enable='platform-default', baud_rate='platform-default', boot_option_num_retry='platform-default', boot_option_re_cool_down='platform-default', boot_option_retry='platform-default', boot_performance_mode='platform-default', cdn_enable='platform-default', cdn_support='platform-default', channel_inter_leave='platform-default', cke_low_policy='platform-default', closed_loop_therm_throtl='platform-default', cmci_enable='platform-default', config_tdp='platform-default', console_redirection='platform-default', core_multi_processing='platform-default', cpu_energy_performance='platform-default', cpu_frequency_floor='platform-default', cpu_performance='platform-default', cpu_power_management='platform-default', demand_scrub='platform-default', direct_cache_access='platform-default', dram_clock_throttling='platform-default', dram_refresh_rate='platform-default', energy_efficient_turbo='platform-default', eng_perf_tuning='platform-default', enhanced_intel_speed_step_tech='platform-default', epp_profile='platform-default', execute_disable_bit='platform-default', extended_apic='platform-default', flow_control='platform-default', frb2enable='platform-default', hardware_prefetch='platform-default', hwpm_enable='platform-default', imc_interleave='platform-default', intel_hyper_threading_tech='platform-default', intel_turbo_boost_tech='platform-default', intel_virtualization_technology='platform-default', intel_vt_for_directed_io='platform-default', intel_vtd_coherency_support='platform-default', intel_vtd_interrupt_remapping='platform-default', intel_vtd_pass_through_dma_support='platform-default', intel_vtdats_support='platform-default', ioh_error_enable='platform-default', ioh_resource='platform-default', ip_prefetch='platform-default', ipv6pxe='platform-default', kti_prefetch='platform-default', legacy_os_redirection='platform-default', legacy_usb_support='platform-default', llc_prefetch='platform-default', lom_port0state='platform-default', lom_port1state='platform-default', lom_port2state='platform-default', lom_port3state='platform-default', lom_ports_all_state='platform-default', lv_ddr_mode='platform-default', make_device_non_bootable='platform-default', memory_inter_leave='platform-default', memory_mapped_io_above4gb='platform-default', mirroring_mode='platform-default', mmcfg_base='platform-default', numa_optimized='platform-default', onboard10gbit_lom='platform-default', onboard_gbit_lom='platform-default', onboard_scu_storage_support='platform-default', onboard_scu_storage_sw_stack='platform-default', organization=None, os_boot_watchdog_timer='platform-default', os_boot_watchdog_timer_policy='platform-default', os_boot_watchdog_timer_timeout='platform-default', out_of_band_mgmt_port='platform-default', package_cstate_limit='platform-default', patrol_scrub='platform-default', patrol_scrub_duration='platform-default', pc_ie_ssd_hot_plug_support='platform-default', pch_usb30mode='platform-default', pci_option_ro_ms='platform-default', pci_rom_clp='platform-default', pop_support='platform-default', post_error_pause='platform-default', processor_c1e='platform-default', processor_c3report='platform-default', processor_c6report='platform-default', processor_cstate='platform-default', profiles=None, psata='platform-default', pstate_coord_type='platform-default', putty_key_pad='platform-default', pwr_perf_tuning='platform-default', qpi_link_frequency='platform-default', qpi_snoop_mode='platform-default', rank_inter_leave='platform-default', redirection_after_post='platform-default', sata_mode_select='platform-default', select_memory_ras_configuration='platform-default', serial_port_aenable='platform-default', single_pctl_enable='platform-default', slot10link_speed='platform-default', slot10state='platform-default', slot11link_speed='platform-default', slot11state='platform-default', slot12link_speed='platform-default', slot12state='platform-default', slot1link_speed='platform-default', slot1state='platform-default', slot2link_speed='platform-default', slot2state='platform-default', slot3link_speed='platform-default', slot3state='platform-default', slot4link_speed='platform-default', slot4state='platform-default', slot5link_speed='platform-default', slot5state='platform-default', slot6link_speed='platform-default', slot6state='platform-default', slot7link_speed='platform-default', slot7state='platform-default', slot8link_speed='platform-default', slot8state='platform-default', slot9link_speed='platform-default', slot9state='platform-default', slot_flom_link_speed='platform-default', slot_front_nvme1link_speed='platform-default', slot_front_nvme2link_speed='platform-default', slot_front_slot5link_speed='platform-default', slot_front_slot6link_speed='platform-default', slot_hba_link_speed='platform-default', slot_hba_state='platform-default', slot_mezz_state='platform-default', slot_mlom_link_speed='platform-default', slot_mlom_state='platform-default', slot_mraid_link_speed='platform-default', slot_mraid_state='platform-default', slot_n10state='platform-default', slot_n11state='platform-default', slot_n12state='platform-default', slot_n13state='platform-default', slot_n14state='platform-default', slot_n15state='platform-default', slot_n16state='platform-default', slot_n17state='platform-default', slot_n18state='platform-default', slot_n19state='platform-default', slot_n1state='platform-default', slot_n20state='platform-default', slot_n21state='platform-default', slot_n22state='platform-default', slot_n23state='platform-default', slot_n24state='platform-default', slot_n2state='platform-default', slot_n3state='platform-default', slot_n4state='platform-default', slot_n5state='platform-default', slot_n6state='platform-default', slot_n7state='platform-default', slot_n8state='platform-default', slot_n9state='platform-default', slot_raid_link_speed='platform-default', slot_raid_state='platform-default', slot_rear_nvme1link_speed='platform-default', slot_rear_nvme1state='platform-default', slot_rear_nvme2link_speed='platform-default', slot_rear_nvme2state='platform-default', slot_rear_nvme3state='platform-default', slot_rear_nvme4state='platform-default', slot_rear_nvme5state='platform-default', slot_rear_nvme6state='platform-default', slot_rear_nvme7state='platform-default', slot_rear_nvme8state='platform-default', slot_riser1link_speed='platform-default', slot_riser1slot1link_speed='platform-default', slot_riser1slot2link_speed='platform-default', slot_riser1slot3link_speed='platform-default', slot_riser2link_speed='platform-default', slot_riser2slot4link_speed='platform-default', slot_riser2slot5link_speed='platform-default', slot_riser2slot6link_speed='platform-default', slot_sas_state='platform-default', slot_ssd_slot1link_speed='platform-default', slot_ssd_slot2link_speed='platform-default', snc='platform-default', sparing_mode='platform-default', sr_iov='platform-default', streamer_prefetch='platform-default', terminal_type='platform-default', tpm_control='platform-default', tpm_support='platform-default', txt_support='platform-default', ucsm_boot_order_rule='platform-default', usb_emul6064='platform-default', usb_port_front='platform-default', usb_port_internal='platform-default', usb_port_kvm='platform-default', usb_port_rear='platform-default', usb_port_sd_card='platform-default', usb_port_vmedia='platform-default', usb_xhci_support='platform-default', vga_priority='platform-default', work_load_config='platform-default', xpt_prefetch='platform-default'): """ BiosPolicy - a model defined in Swagger """ @@ -94,16 +488,213 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._input_output = None - self._lom_and_pcie_slots_configuration = None - self._memory = None + self._adjacent_cache_line_prefetch = None + self._all_usb_devices = None + self._altitude = None + self._aspm_support = None + self._assert_nmi_on_perr = None + self._assert_nmi_on_serr = None + self._auto_cc_state = None + self._autonumous_cstate_enable = None + self._baud_rate = None + self._boot_option_num_retry = None + self._boot_option_re_cool_down = None + self._boot_option_retry = None + self._boot_performance_mode = None + self._cdn_enable = None + self._cdn_support = None + self._channel_inter_leave = None + self._cke_low_policy = None + self._closed_loop_therm_throtl = None + self._cmci_enable = None + self._config_tdp = None + self._console_redirection = None + self._core_multi_processing = None + self._cpu_energy_performance = None + self._cpu_frequency_floor = None + self._cpu_performance = None + self._cpu_power_management = None + self._demand_scrub = None + self._direct_cache_access = None + self._dram_clock_throttling = None + self._dram_refresh_rate = None + self._energy_efficient_turbo = None + self._eng_perf_tuning = None + self._enhanced_intel_speed_step_tech = None + self._epp_profile = None + self._execute_disable_bit = None + self._extended_apic = None + self._flow_control = None + self._frb2enable = None + self._hardware_prefetch = None + self._hwpm_enable = None + self._imc_interleave = None + self._intel_hyper_threading_tech = None + self._intel_turbo_boost_tech = None + self._intel_virtualization_technology = None + self._intel_vt_for_directed_io = None + self._intel_vtd_coherency_support = None + self._intel_vtd_interrupt_remapping = None + self._intel_vtd_pass_through_dma_support = None + self._intel_vtdats_support = None + self._ioh_error_enable = None + self._ioh_resource = None + self._ip_prefetch = None + self._ipv6pxe = None + self._kti_prefetch = None + self._legacy_os_redirection = None + self._legacy_usb_support = None + self._llc_prefetch = None + self._lom_port0state = None + self._lom_port1state = None + self._lom_port2state = None + self._lom_port3state = None + self._lom_ports_all_state = None + self._lv_ddr_mode = None + self._make_device_non_bootable = None + self._memory_inter_leave = None + self._memory_mapped_io_above4gb = None + self._mirroring_mode = None + self._mmcfg_base = None + self._numa_optimized = None + self._onboard10gbit_lom = None + self._onboard_gbit_lom = None + self._onboard_scu_storage_support = None + self._onboard_scu_storage_sw_stack = None self._organization = None - self._power_or_performance = None - self._processor = None + self._os_boot_watchdog_timer = None + self._os_boot_watchdog_timer_policy = None + self._os_boot_watchdog_timer_timeout = None + self._out_of_band_mgmt_port = None + self._package_cstate_limit = None + self._patrol_scrub = None + self._patrol_scrub_duration = None + self._pc_ie_ssd_hot_plug_support = None + self._pch_usb30mode = None + self._pci_option_ro_ms = None + self._pci_rom_clp = None + self._pop_support = None + self._post_error_pause = None + self._processor_c1e = None + self._processor_c3report = None + self._processor_c6report = None + self._processor_cstate = None self._profiles = None - self._security = None - self._serial_configuration = None - self._server_management = None + self._psata = None + self._pstate_coord_type = None + self._putty_key_pad = None + self._pwr_perf_tuning = None + self._qpi_link_frequency = None + self._qpi_snoop_mode = None + self._rank_inter_leave = None + self._redirection_after_post = None + self._sata_mode_select = None + self._select_memory_ras_configuration = None + self._serial_port_aenable = None + self._single_pctl_enable = None + self._slot10link_speed = None + self._slot10state = None + self._slot11link_speed = None + self._slot11state = None + self._slot12link_speed = None + self._slot12state = None + self._slot1link_speed = None + self._slot1state = None + self._slot2link_speed = None + self._slot2state = None + self._slot3link_speed = None + self._slot3state = None + self._slot4link_speed = None + self._slot4state = None + self._slot5link_speed = None + self._slot5state = None + self._slot6link_speed = None + self._slot6state = None + self._slot7link_speed = None + self._slot7state = None + self._slot8link_speed = None + self._slot8state = None + self._slot9link_speed = None + self._slot9state = None + self._slot_flom_link_speed = None + self._slot_front_nvme1link_speed = None + self._slot_front_nvme2link_speed = None + self._slot_front_slot5link_speed = None + self._slot_front_slot6link_speed = None + self._slot_hba_link_speed = None + self._slot_hba_state = None + self._slot_mezz_state = None + self._slot_mlom_link_speed = None + self._slot_mlom_state = None + self._slot_mraid_link_speed = None + self._slot_mraid_state = None + self._slot_n10state = None + self._slot_n11state = None + self._slot_n12state = None + self._slot_n13state = None + self._slot_n14state = None + self._slot_n15state = None + self._slot_n16state = None + self._slot_n17state = None + self._slot_n18state = None + self._slot_n19state = None + self._slot_n1state = None + self._slot_n20state = None + self._slot_n21state = None + self._slot_n22state = None + self._slot_n23state = None + self._slot_n24state = None + self._slot_n2state = None + self._slot_n3state = None + self._slot_n4state = None + self._slot_n5state = None + self._slot_n6state = None + self._slot_n7state = None + self._slot_n8state = None + self._slot_n9state = None + self._slot_raid_link_speed = None + self._slot_raid_state = None + self._slot_rear_nvme1link_speed = None + self._slot_rear_nvme1state = None + self._slot_rear_nvme2link_speed = None + self._slot_rear_nvme2state = None + self._slot_rear_nvme3state = None + self._slot_rear_nvme4state = None + self._slot_rear_nvme5state = None + self._slot_rear_nvme6state = None + self._slot_rear_nvme7state = None + self._slot_rear_nvme8state = None + self._slot_riser1link_speed = None + self._slot_riser1slot1link_speed = None + self._slot_riser1slot2link_speed = None + self._slot_riser1slot3link_speed = None + self._slot_riser2link_speed = None + self._slot_riser2slot4link_speed = None + self._slot_riser2slot5link_speed = None + self._slot_riser2slot6link_speed = None + self._slot_sas_state = None + self._slot_ssd_slot1link_speed = None + self._slot_ssd_slot2link_speed = None + self._snc = None + self._sparing_mode = None + self._sr_iov = None + self._streamer_prefetch = None + self._terminal_type = None + self._tpm_control = None + self._tpm_support = None + self._txt_support = None + self._ucsm_boot_order_rule = None + self._usb_emul6064 = None + self._usb_port_front = None + self._usb_port_internal = None + self._usb_port_kvm = None + self._usb_port_rear = None + self._usb_port_sd_card = None + self._usb_port_vmedia = None + self._usb_xhci_support = None + self._vga_priority = None + self._work_load_config = None + self._xpt_prefetch = None if account_moid is not None: self.account_moid = account_moid @@ -127,26 +718,420 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if input_output is not None: - self.input_output = input_output - if lom_and_pcie_slots_configuration is not None: - self.lom_and_pcie_slots_configuration = lom_and_pcie_slots_configuration - if memory is not None: - self.memory = memory + if adjacent_cache_line_prefetch is not None: + self.adjacent_cache_line_prefetch = adjacent_cache_line_prefetch + if all_usb_devices is not None: + self.all_usb_devices = all_usb_devices + if altitude is not None: + self.altitude = altitude + if aspm_support is not None: + self.aspm_support = aspm_support + if assert_nmi_on_perr is not None: + self.assert_nmi_on_perr = assert_nmi_on_perr + if assert_nmi_on_serr is not None: + self.assert_nmi_on_serr = assert_nmi_on_serr + if auto_cc_state is not None: + self.auto_cc_state = auto_cc_state + if autonumous_cstate_enable is not None: + self.autonumous_cstate_enable = autonumous_cstate_enable + if baud_rate is not None: + self.baud_rate = baud_rate + if boot_option_num_retry is not None: + self.boot_option_num_retry = boot_option_num_retry + if boot_option_re_cool_down is not None: + self.boot_option_re_cool_down = boot_option_re_cool_down + if boot_option_retry is not None: + self.boot_option_retry = boot_option_retry + if boot_performance_mode is not None: + self.boot_performance_mode = boot_performance_mode + if cdn_enable is not None: + self.cdn_enable = cdn_enable + if cdn_support is not None: + self.cdn_support = cdn_support + if channel_inter_leave is not None: + self.channel_inter_leave = channel_inter_leave + if cke_low_policy is not None: + self.cke_low_policy = cke_low_policy + if closed_loop_therm_throtl is not None: + self.closed_loop_therm_throtl = closed_loop_therm_throtl + if cmci_enable is not None: + self.cmci_enable = cmci_enable + if config_tdp is not None: + self.config_tdp = config_tdp + if console_redirection is not None: + self.console_redirection = console_redirection + if core_multi_processing is not None: + self.core_multi_processing = core_multi_processing + if cpu_energy_performance is not None: + self.cpu_energy_performance = cpu_energy_performance + if cpu_frequency_floor is not None: + self.cpu_frequency_floor = cpu_frequency_floor + if cpu_performance is not None: + self.cpu_performance = cpu_performance + if cpu_power_management is not None: + self.cpu_power_management = cpu_power_management + if demand_scrub is not None: + self.demand_scrub = demand_scrub + if direct_cache_access is not None: + self.direct_cache_access = direct_cache_access + if dram_clock_throttling is not None: + self.dram_clock_throttling = dram_clock_throttling + if dram_refresh_rate is not None: + self.dram_refresh_rate = dram_refresh_rate + if energy_efficient_turbo is not None: + self.energy_efficient_turbo = energy_efficient_turbo + if eng_perf_tuning is not None: + self.eng_perf_tuning = eng_perf_tuning + if enhanced_intel_speed_step_tech is not None: + self.enhanced_intel_speed_step_tech = enhanced_intel_speed_step_tech + if epp_profile is not None: + self.epp_profile = epp_profile + if execute_disable_bit is not None: + self.execute_disable_bit = execute_disable_bit + if extended_apic is not None: + self.extended_apic = extended_apic + if flow_control is not None: + self.flow_control = flow_control + if frb2enable is not None: + self.frb2enable = frb2enable + if hardware_prefetch is not None: + self.hardware_prefetch = hardware_prefetch + if hwpm_enable is not None: + self.hwpm_enable = hwpm_enable + if imc_interleave is not None: + self.imc_interleave = imc_interleave + if intel_hyper_threading_tech is not None: + self.intel_hyper_threading_tech = intel_hyper_threading_tech + if intel_turbo_boost_tech is not None: + self.intel_turbo_boost_tech = intel_turbo_boost_tech + if intel_virtualization_technology is not None: + self.intel_virtualization_technology = intel_virtualization_technology + if intel_vt_for_directed_io is not None: + self.intel_vt_for_directed_io = intel_vt_for_directed_io + if intel_vtd_coherency_support is not None: + self.intel_vtd_coherency_support = intel_vtd_coherency_support + if intel_vtd_interrupt_remapping is not None: + self.intel_vtd_interrupt_remapping = intel_vtd_interrupt_remapping + if intel_vtd_pass_through_dma_support is not None: + self.intel_vtd_pass_through_dma_support = intel_vtd_pass_through_dma_support + if intel_vtdats_support is not None: + self.intel_vtdats_support = intel_vtdats_support + if ioh_error_enable is not None: + self.ioh_error_enable = ioh_error_enable + if ioh_resource is not None: + self.ioh_resource = ioh_resource + if ip_prefetch is not None: + self.ip_prefetch = ip_prefetch + if ipv6pxe is not None: + self.ipv6pxe = ipv6pxe + if kti_prefetch is not None: + self.kti_prefetch = kti_prefetch + if legacy_os_redirection is not None: + self.legacy_os_redirection = legacy_os_redirection + if legacy_usb_support is not None: + self.legacy_usb_support = legacy_usb_support + if llc_prefetch is not None: + self.llc_prefetch = llc_prefetch + if lom_port0state is not None: + self.lom_port0state = lom_port0state + if lom_port1state is not None: + self.lom_port1state = lom_port1state + if lom_port2state is not None: + self.lom_port2state = lom_port2state + if lom_port3state is not None: + self.lom_port3state = lom_port3state + if lom_ports_all_state is not None: + self.lom_ports_all_state = lom_ports_all_state + if lv_ddr_mode is not None: + self.lv_ddr_mode = lv_ddr_mode + if make_device_non_bootable is not None: + self.make_device_non_bootable = make_device_non_bootable + if memory_inter_leave is not None: + self.memory_inter_leave = memory_inter_leave + if memory_mapped_io_above4gb is not None: + self.memory_mapped_io_above4gb = memory_mapped_io_above4gb + if mirroring_mode is not None: + self.mirroring_mode = mirroring_mode + if mmcfg_base is not None: + self.mmcfg_base = mmcfg_base + if numa_optimized is not None: + self.numa_optimized = numa_optimized + if onboard10gbit_lom is not None: + self.onboard10gbit_lom = onboard10gbit_lom + if onboard_gbit_lom is not None: + self.onboard_gbit_lom = onboard_gbit_lom + if onboard_scu_storage_support is not None: + self.onboard_scu_storage_support = onboard_scu_storage_support + if onboard_scu_storage_sw_stack is not None: + self.onboard_scu_storage_sw_stack = onboard_scu_storage_sw_stack if organization is not None: self.organization = organization - if power_or_performance is not None: - self.power_or_performance = power_or_performance - if processor is not None: - self.processor = processor + if os_boot_watchdog_timer is not None: + self.os_boot_watchdog_timer = os_boot_watchdog_timer + if os_boot_watchdog_timer_policy is not None: + self.os_boot_watchdog_timer_policy = os_boot_watchdog_timer_policy + if os_boot_watchdog_timer_timeout is not None: + self.os_boot_watchdog_timer_timeout = os_boot_watchdog_timer_timeout + if out_of_band_mgmt_port is not None: + self.out_of_band_mgmt_port = out_of_band_mgmt_port + if package_cstate_limit is not None: + self.package_cstate_limit = package_cstate_limit + if patrol_scrub is not None: + self.patrol_scrub = patrol_scrub + if patrol_scrub_duration is not None: + self.patrol_scrub_duration = patrol_scrub_duration + if pc_ie_ssd_hot_plug_support is not None: + self.pc_ie_ssd_hot_plug_support = pc_ie_ssd_hot_plug_support + if pch_usb30mode is not None: + self.pch_usb30mode = pch_usb30mode + if pci_option_ro_ms is not None: + self.pci_option_ro_ms = pci_option_ro_ms + if pci_rom_clp is not None: + self.pci_rom_clp = pci_rom_clp + if pop_support is not None: + self.pop_support = pop_support + if post_error_pause is not None: + self.post_error_pause = post_error_pause + if processor_c1e is not None: + self.processor_c1e = processor_c1e + if processor_c3report is not None: + self.processor_c3report = processor_c3report + if processor_c6report is not None: + self.processor_c6report = processor_c6report + if processor_cstate is not None: + self.processor_cstate = processor_cstate if profiles is not None: self.profiles = profiles - if security is not None: - self.security = security - if serial_configuration is not None: - self.serial_configuration = serial_configuration - if server_management is not None: - self.server_management = server_management + if psata is not None: + self.psata = psata + if pstate_coord_type is not None: + self.pstate_coord_type = pstate_coord_type + if putty_key_pad is not None: + self.putty_key_pad = putty_key_pad + if pwr_perf_tuning is not None: + self.pwr_perf_tuning = pwr_perf_tuning + if qpi_link_frequency is not None: + self.qpi_link_frequency = qpi_link_frequency + if qpi_snoop_mode is not None: + self.qpi_snoop_mode = qpi_snoop_mode + if rank_inter_leave is not None: + self.rank_inter_leave = rank_inter_leave + if redirection_after_post is not None: + self.redirection_after_post = redirection_after_post + if sata_mode_select is not None: + self.sata_mode_select = sata_mode_select + if select_memory_ras_configuration is not None: + self.select_memory_ras_configuration = select_memory_ras_configuration + if serial_port_aenable is not None: + self.serial_port_aenable = serial_port_aenable + if single_pctl_enable is not None: + self.single_pctl_enable = single_pctl_enable + if slot10link_speed is not None: + self.slot10link_speed = slot10link_speed + if slot10state is not None: + self.slot10state = slot10state + if slot11link_speed is not None: + self.slot11link_speed = slot11link_speed + if slot11state is not None: + self.slot11state = slot11state + if slot12link_speed is not None: + self.slot12link_speed = slot12link_speed + if slot12state is not None: + self.slot12state = slot12state + if slot1link_speed is not None: + self.slot1link_speed = slot1link_speed + if slot1state is not None: + self.slot1state = slot1state + if slot2link_speed is not None: + self.slot2link_speed = slot2link_speed + if slot2state is not None: + self.slot2state = slot2state + if slot3link_speed is not None: + self.slot3link_speed = slot3link_speed + if slot3state is not None: + self.slot3state = slot3state + if slot4link_speed is not None: + self.slot4link_speed = slot4link_speed + if slot4state is not None: + self.slot4state = slot4state + if slot5link_speed is not None: + self.slot5link_speed = slot5link_speed + if slot5state is not None: + self.slot5state = slot5state + if slot6link_speed is not None: + self.slot6link_speed = slot6link_speed + if slot6state is not None: + self.slot6state = slot6state + if slot7link_speed is not None: + self.slot7link_speed = slot7link_speed + if slot7state is not None: + self.slot7state = slot7state + if slot8link_speed is not None: + self.slot8link_speed = slot8link_speed + if slot8state is not None: + self.slot8state = slot8state + if slot9link_speed is not None: + self.slot9link_speed = slot9link_speed + if slot9state is not None: + self.slot9state = slot9state + if slot_flom_link_speed is not None: + self.slot_flom_link_speed = slot_flom_link_speed + if slot_front_nvme1link_speed is not None: + self.slot_front_nvme1link_speed = slot_front_nvme1link_speed + if slot_front_nvme2link_speed is not None: + self.slot_front_nvme2link_speed = slot_front_nvme2link_speed + if slot_front_slot5link_speed is not None: + self.slot_front_slot5link_speed = slot_front_slot5link_speed + if slot_front_slot6link_speed is not None: + self.slot_front_slot6link_speed = slot_front_slot6link_speed + if slot_hba_link_speed is not None: + self.slot_hba_link_speed = slot_hba_link_speed + if slot_hba_state is not None: + self.slot_hba_state = slot_hba_state + if slot_mezz_state is not None: + self.slot_mezz_state = slot_mezz_state + if slot_mlom_link_speed is not None: + self.slot_mlom_link_speed = slot_mlom_link_speed + if slot_mlom_state is not None: + self.slot_mlom_state = slot_mlom_state + if slot_mraid_link_speed is not None: + self.slot_mraid_link_speed = slot_mraid_link_speed + if slot_mraid_state is not None: + self.slot_mraid_state = slot_mraid_state + if slot_n10state is not None: + self.slot_n10state = slot_n10state + if slot_n11state is not None: + self.slot_n11state = slot_n11state + if slot_n12state is not None: + self.slot_n12state = slot_n12state + if slot_n13state is not None: + self.slot_n13state = slot_n13state + if slot_n14state is not None: + self.slot_n14state = slot_n14state + if slot_n15state is not None: + self.slot_n15state = slot_n15state + if slot_n16state is not None: + self.slot_n16state = slot_n16state + if slot_n17state is not None: + self.slot_n17state = slot_n17state + if slot_n18state is not None: + self.slot_n18state = slot_n18state + if slot_n19state is not None: + self.slot_n19state = slot_n19state + if slot_n1state is not None: + self.slot_n1state = slot_n1state + if slot_n20state is not None: + self.slot_n20state = slot_n20state + if slot_n21state is not None: + self.slot_n21state = slot_n21state + if slot_n22state is not None: + self.slot_n22state = slot_n22state + if slot_n23state is not None: + self.slot_n23state = slot_n23state + if slot_n24state is not None: + self.slot_n24state = slot_n24state + if slot_n2state is not None: + self.slot_n2state = slot_n2state + if slot_n3state is not None: + self.slot_n3state = slot_n3state + if slot_n4state is not None: + self.slot_n4state = slot_n4state + if slot_n5state is not None: + self.slot_n5state = slot_n5state + if slot_n6state is not None: + self.slot_n6state = slot_n6state + if slot_n7state is not None: + self.slot_n7state = slot_n7state + if slot_n8state is not None: + self.slot_n8state = slot_n8state + if slot_n9state is not None: + self.slot_n9state = slot_n9state + if slot_raid_link_speed is not None: + self.slot_raid_link_speed = slot_raid_link_speed + if slot_raid_state is not None: + self.slot_raid_state = slot_raid_state + if slot_rear_nvme1link_speed is not None: + self.slot_rear_nvme1link_speed = slot_rear_nvme1link_speed + if slot_rear_nvme1state is not None: + self.slot_rear_nvme1state = slot_rear_nvme1state + if slot_rear_nvme2link_speed is not None: + self.slot_rear_nvme2link_speed = slot_rear_nvme2link_speed + if slot_rear_nvme2state is not None: + self.slot_rear_nvme2state = slot_rear_nvme2state + if slot_rear_nvme3state is not None: + self.slot_rear_nvme3state = slot_rear_nvme3state + if slot_rear_nvme4state is not None: + self.slot_rear_nvme4state = slot_rear_nvme4state + if slot_rear_nvme5state is not None: + self.slot_rear_nvme5state = slot_rear_nvme5state + if slot_rear_nvme6state is not None: + self.slot_rear_nvme6state = slot_rear_nvme6state + if slot_rear_nvme7state is not None: + self.slot_rear_nvme7state = slot_rear_nvme7state + if slot_rear_nvme8state is not None: + self.slot_rear_nvme8state = slot_rear_nvme8state + if slot_riser1link_speed is not None: + self.slot_riser1link_speed = slot_riser1link_speed + if slot_riser1slot1link_speed is not None: + self.slot_riser1slot1link_speed = slot_riser1slot1link_speed + if slot_riser1slot2link_speed is not None: + self.slot_riser1slot2link_speed = slot_riser1slot2link_speed + if slot_riser1slot3link_speed is not None: + self.slot_riser1slot3link_speed = slot_riser1slot3link_speed + if slot_riser2link_speed is not None: + self.slot_riser2link_speed = slot_riser2link_speed + if slot_riser2slot4link_speed is not None: + self.slot_riser2slot4link_speed = slot_riser2slot4link_speed + if slot_riser2slot5link_speed is not None: + self.slot_riser2slot5link_speed = slot_riser2slot5link_speed + if slot_riser2slot6link_speed is not None: + self.slot_riser2slot6link_speed = slot_riser2slot6link_speed + if slot_sas_state is not None: + self.slot_sas_state = slot_sas_state + if slot_ssd_slot1link_speed is not None: + self.slot_ssd_slot1link_speed = slot_ssd_slot1link_speed + if slot_ssd_slot2link_speed is not None: + self.slot_ssd_slot2link_speed = slot_ssd_slot2link_speed + if snc is not None: + self.snc = snc + if sparing_mode is not None: + self.sparing_mode = sparing_mode + if sr_iov is not None: + self.sr_iov = sr_iov + if streamer_prefetch is not None: + self.streamer_prefetch = streamer_prefetch + if terminal_type is not None: + self.terminal_type = terminal_type + if tpm_control is not None: + self.tpm_control = tpm_control + if tpm_support is not None: + self.tpm_support = tpm_support + if txt_support is not None: + self.txt_support = txt_support + if ucsm_boot_order_rule is not None: + self.ucsm_boot_order_rule = ucsm_boot_order_rule + if usb_emul6064 is not None: + self.usb_emul6064 = usb_emul6064 + if usb_port_front is not None: + self.usb_port_front = usb_port_front + if usb_port_internal is not None: + self.usb_port_internal = usb_port_internal + if usb_port_kvm is not None: + self.usb_port_kvm = usb_port_kvm + if usb_port_rear is not None: + self.usb_port_rear = usb_port_rear + if usb_port_sd_card is not None: + self.usb_port_sd_card = usb_port_sd_card + if usb_port_vmedia is not None: + self.usb_port_vmedia = usb_port_vmedia + if usb_xhci_support is not None: + self.usb_xhci_support = usb_xhci_support + if vga_priority is not None: + self.vga_priority = vga_priority + if work_load_config is not None: + self.work_load_config = work_load_config + if xpt_prefetch is not None: + self.xpt_prefetch = xpt_prefetch @property def account_moid(self): @@ -178,7 +1163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this BiosPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +1174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this BiosPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +1301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this BiosPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +1312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this BiosPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -402,234 +1387,5995 @@ def name(self, name): self._name = name @property - def input_output(self): + def adjacent_cache_line_prefetch(self): """ - Gets the input_output of this BiosPolicy. - BIOS Settings for Input-output + Gets the adjacent_cache_line_prefetch of this BiosPolicy. + BIOS Token for setting Adjacent Cache Line Prefetcher configuration - :return: The input_output of this BiosPolicy. - :rtype: BiosInputOutput + :return: The adjacent_cache_line_prefetch of this BiosPolicy. + :rtype: str + """ + return self._adjacent_cache_line_prefetch + + @adjacent_cache_line_prefetch.setter + def adjacent_cache_line_prefetch(self, adjacent_cache_line_prefetch): + """ + Sets the adjacent_cache_line_prefetch of this BiosPolicy. + BIOS Token for setting Adjacent Cache Line Prefetcher configuration + + :param adjacent_cache_line_prefetch: The adjacent_cache_line_prefetch of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if adjacent_cache_line_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `adjacent_cache_line_prefetch` ({0}), must be one of {1}" + .format(adjacent_cache_line_prefetch, allowed_values) + ) + + self._adjacent_cache_line_prefetch = adjacent_cache_line_prefetch + + @property + def all_usb_devices(self): + """ + Gets the all_usb_devices of this BiosPolicy. + BIOS Token for setting All USB Devices configuration + + :return: The all_usb_devices of this BiosPolicy. + :rtype: str + """ + return self._all_usb_devices + + @all_usb_devices.setter + def all_usb_devices(self, all_usb_devices): + """ + Sets the all_usb_devices of this BiosPolicy. + BIOS Token for setting All USB Devices configuration + + :param all_usb_devices: The all_usb_devices of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if all_usb_devices not in allowed_values: + raise ValueError( + "Invalid value for `all_usb_devices` ({0}), must be one of {1}" + .format(all_usb_devices, allowed_values) + ) + + self._all_usb_devices = all_usb_devices + + @property + def altitude(self): + """ + Gets the altitude of this BiosPolicy. + BIOS Token for setting Altitude configuration + + :return: The altitude of this BiosPolicy. + :rtype: str + """ + return self._altitude + + @altitude.setter + def altitude(self, altitude): + """ + Sets the altitude of this BiosPolicy. + BIOS Token for setting Altitude configuration + + :param altitude: The altitude of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1500-m", "300-m", "3000-m", "900-m", "auto"] + if altitude not in allowed_values: + raise ValueError( + "Invalid value for `altitude` ({0}), must be one of {1}" + .format(altitude, allowed_values) + ) + + self._altitude = altitude + + @property + def aspm_support(self): + """ + Gets the aspm_support of this BiosPolicy. + BIOS Token for setting ASPM Support configuration + + :return: The aspm_support of this BiosPolicy. + :rtype: str + """ + return self._aspm_support + + @aspm_support.setter + def aspm_support(self, aspm_support): + """ + Sets the aspm_support of this BiosPolicy. + BIOS Token for setting ASPM Support configuration + + :param aspm_support: The aspm_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "Force L0s", "L1 Only"] + if aspm_support not in allowed_values: + raise ValueError( + "Invalid value for `aspm_support` ({0}), must be one of {1}" + .format(aspm_support, allowed_values) + ) + + self._aspm_support = aspm_support + + @property + def assert_nmi_on_perr(self): + """ + Gets the assert_nmi_on_perr of this BiosPolicy. + BIOS Token for setting Assert NMI on PERR configuration + + :return: The assert_nmi_on_perr of this BiosPolicy. + :rtype: str + """ + return self._assert_nmi_on_perr + + @assert_nmi_on_perr.setter + def assert_nmi_on_perr(self, assert_nmi_on_perr): + """ + Sets the assert_nmi_on_perr of this BiosPolicy. + BIOS Token for setting Assert NMI on PERR configuration + + :param assert_nmi_on_perr: The assert_nmi_on_perr of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if assert_nmi_on_perr not in allowed_values: + raise ValueError( + "Invalid value for `assert_nmi_on_perr` ({0}), must be one of {1}" + .format(assert_nmi_on_perr, allowed_values) + ) + + self._assert_nmi_on_perr = assert_nmi_on_perr + + @property + def assert_nmi_on_serr(self): + """ + Gets the assert_nmi_on_serr of this BiosPolicy. + BIOS Token for setting Assert NMI on SERR configuration + + :return: The assert_nmi_on_serr of this BiosPolicy. + :rtype: str + """ + return self._assert_nmi_on_serr + + @assert_nmi_on_serr.setter + def assert_nmi_on_serr(self, assert_nmi_on_serr): + """ + Sets the assert_nmi_on_serr of this BiosPolicy. + BIOS Token for setting Assert NMI on SERR configuration + + :param assert_nmi_on_serr: The assert_nmi_on_serr of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if assert_nmi_on_serr not in allowed_values: + raise ValueError( + "Invalid value for `assert_nmi_on_serr` ({0}), must be one of {1}" + .format(assert_nmi_on_serr, allowed_values) + ) + + self._assert_nmi_on_serr = assert_nmi_on_serr + + @property + def auto_cc_state(self): + """ + Gets the auto_cc_state of this BiosPolicy. + BIOS Token for setting Autonomous Core C-state configuration + + :return: The auto_cc_state of this BiosPolicy. + :rtype: str + """ + return self._auto_cc_state + + @auto_cc_state.setter + def auto_cc_state(self, auto_cc_state): + """ + Sets the auto_cc_state of this BiosPolicy. + BIOS Token for setting Autonomous Core C-state configuration + + :param auto_cc_state: The auto_cc_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if auto_cc_state not in allowed_values: + raise ValueError( + "Invalid value for `auto_cc_state` ({0}), must be one of {1}" + .format(auto_cc_state, allowed_values) + ) + + self._auto_cc_state = auto_cc_state + + @property + def autonumous_cstate_enable(self): + """ + Gets the autonumous_cstate_enable of this BiosPolicy. + BIOS Token for setting CPU Autonomous Cstate configuration + + :return: The autonumous_cstate_enable of this BiosPolicy. + :rtype: str + """ + return self._autonumous_cstate_enable + + @autonumous_cstate_enable.setter + def autonumous_cstate_enable(self, autonumous_cstate_enable): + """ + Sets the autonumous_cstate_enable of this BiosPolicy. + BIOS Token for setting CPU Autonomous Cstate configuration + + :param autonumous_cstate_enable: The autonumous_cstate_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if autonumous_cstate_enable not in allowed_values: + raise ValueError( + "Invalid value for `autonumous_cstate_enable` ({0}), must be one of {1}" + .format(autonumous_cstate_enable, allowed_values) + ) + + self._autonumous_cstate_enable = autonumous_cstate_enable + + @property + def baud_rate(self): + """ + Gets the baud_rate of this BiosPolicy. + BIOS Token for setting Bits per second configuration + + :return: The baud_rate of this BiosPolicy. + :rtype: str + """ + return self._baud_rate + + @baud_rate.setter + def baud_rate(self, baud_rate): + """ + Sets the baud_rate of this BiosPolicy. + BIOS Token for setting Bits per second configuration + + :param baud_rate: The baud_rate of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "115200", "19200", "38400", "57600", "9600"] + if baud_rate not in allowed_values: + raise ValueError( + "Invalid value for `baud_rate` ({0}), must be one of {1}" + .format(baud_rate, allowed_values) + ) + + self._baud_rate = baud_rate + + @property + def boot_option_num_retry(self): + """ + Gets the boot_option_num_retry of this BiosPolicy. + BIOS Token for setting Number of Retries configuration + + :return: The boot_option_num_retry of this BiosPolicy. + :rtype: str + """ + return self._boot_option_num_retry + + @boot_option_num_retry.setter + def boot_option_num_retry(self, boot_option_num_retry): + """ + Sets the boot_option_num_retry of this BiosPolicy. + BIOS Token for setting Number of Retries configuration + + :param boot_option_num_retry: The boot_option_num_retry of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "13", "5", "Infinite"] + if boot_option_num_retry not in allowed_values: + raise ValueError( + "Invalid value for `boot_option_num_retry` ({0}), must be one of {1}" + .format(boot_option_num_retry, allowed_values) + ) + + self._boot_option_num_retry = boot_option_num_retry + + @property + def boot_option_re_cool_down(self): + """ + Gets the boot_option_re_cool_down of this BiosPolicy. + BIOS Token for setting Cool Down Time (sec) configuration + + :return: The boot_option_re_cool_down of this BiosPolicy. + :rtype: str + """ + return self._boot_option_re_cool_down + + @boot_option_re_cool_down.setter + def boot_option_re_cool_down(self, boot_option_re_cool_down): + """ + Sets the boot_option_re_cool_down of this BiosPolicy. + BIOS Token for setting Cool Down Time (sec) configuration + + :param boot_option_re_cool_down: The boot_option_re_cool_down of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "15", "45", "90"] + if boot_option_re_cool_down not in allowed_values: + raise ValueError( + "Invalid value for `boot_option_re_cool_down` ({0}), must be one of {1}" + .format(boot_option_re_cool_down, allowed_values) + ) + + self._boot_option_re_cool_down = boot_option_re_cool_down + + @property + def boot_option_retry(self): + """ + Gets the boot_option_retry of this BiosPolicy. + BIOS Token for setting Boot Option Retry configuration + + :return: The boot_option_retry of this BiosPolicy. + :rtype: str + """ + return self._boot_option_retry + + @boot_option_retry.setter + def boot_option_retry(self, boot_option_retry): + """ + Sets the boot_option_retry of this BiosPolicy. + BIOS Token for setting Boot Option Retry configuration + + :param boot_option_retry: The boot_option_retry of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if boot_option_retry not in allowed_values: + raise ValueError( + "Invalid value for `boot_option_retry` ({0}), must be one of {1}" + .format(boot_option_retry, allowed_values) + ) + + self._boot_option_retry = boot_option_retry + + @property + def boot_performance_mode(self): + """ + Gets the boot_performance_mode of this BiosPolicy. + BIOS Token for setting Boot Performance Mode configuration + + :return: The boot_performance_mode of this BiosPolicy. + :rtype: str + """ + return self._boot_performance_mode + + @boot_performance_mode.setter + def boot_performance_mode(self, boot_performance_mode): + """ + Sets the boot_performance_mode of this BiosPolicy. + BIOS Token for setting Boot Performance Mode configuration + + :param boot_performance_mode: The boot_performance_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Max Efficient", "Max Performance", "Set by Intel NM"] + if boot_performance_mode not in allowed_values: + raise ValueError( + "Invalid value for `boot_performance_mode` ({0}), must be one of {1}" + .format(boot_performance_mode, allowed_values) + ) + + self._boot_performance_mode = boot_performance_mode + + @property + def cdn_enable(self): + """ + Gets the cdn_enable of this BiosPolicy. + BIOS Token for setting Consistent Device Naming configuration + + :return: The cdn_enable of this BiosPolicy. + :rtype: str + """ + return self._cdn_enable + + @cdn_enable.setter + def cdn_enable(self, cdn_enable): + """ + Sets the cdn_enable of this BiosPolicy. + BIOS Token for setting Consistent Device Naming configuration + + :param cdn_enable: The cdn_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if cdn_enable not in allowed_values: + raise ValueError( + "Invalid value for `cdn_enable` ({0}), must be one of {1}" + .format(cdn_enable, allowed_values) + ) + + self._cdn_enable = cdn_enable + + @property + def cdn_support(self): + """ + Gets the cdn_support of this BiosPolicy. + BIOS Token for setting CDN Support configuration + + :return: The cdn_support of this BiosPolicy. + :rtype: str + """ + return self._cdn_support + + @cdn_support.setter + def cdn_support(self, cdn_support): + """ + Sets the cdn_support of this BiosPolicy. + BIOS Token for setting CDN Support configuration + + :param cdn_support: The cdn_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Disabled", "LOMs Only"] + if cdn_support not in allowed_values: + raise ValueError( + "Invalid value for `cdn_support` ({0}), must be one of {1}" + .format(cdn_support, allowed_values) + ) + + self._cdn_support = cdn_support + + @property + def channel_inter_leave(self): + """ + Gets the channel_inter_leave of this BiosPolicy. + BIOS Token for setting Channel Interleaving configuration + + :return: The channel_inter_leave of this BiosPolicy. + :rtype: str + """ + return self._channel_inter_leave + + @channel_inter_leave.setter + def channel_inter_leave(self, channel_inter_leave): + """ + Sets the channel_inter_leave of this BiosPolicy. + BIOS Token for setting Channel Interleaving configuration + + :param channel_inter_leave: The channel_inter_leave of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1-way", "2-way", "3-way", "4-way", "auto"] + if channel_inter_leave not in allowed_values: + raise ValueError( + "Invalid value for `channel_inter_leave` ({0}), must be one of {1}" + .format(channel_inter_leave, allowed_values) + ) + + self._channel_inter_leave = channel_inter_leave + + @property + def cke_low_policy(self): + """ + Gets the cke_low_policy of this BiosPolicy. + BIOS Token for setting CKE Low Policy configuration + + :return: The cke_low_policy of this BiosPolicy. + :rtype: str + """ + return self._cke_low_policy + + @cke_low_policy.setter + def cke_low_policy(self, cke_low_policy): + """ + Sets the cke_low_policy of this BiosPolicy. + BIOS Token for setting CKE Low Policy configuration + + :param cke_low_policy: The cke_low_policy of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "auto", "disabled", "fast", "slow"] + if cke_low_policy not in allowed_values: + raise ValueError( + "Invalid value for `cke_low_policy` ({0}), must be one of {1}" + .format(cke_low_policy, allowed_values) + ) + + self._cke_low_policy = cke_low_policy + + @property + def closed_loop_therm_throtl(self): + """ + Gets the closed_loop_therm_throtl of this BiosPolicy. + BIOS Token for setting Closed Loop Therm Throt configuration + + :return: The closed_loop_therm_throtl of this BiosPolicy. + :rtype: str + """ + return self._closed_loop_therm_throtl + + @closed_loop_therm_throtl.setter + def closed_loop_therm_throtl(self, closed_loop_therm_throtl): + """ + Sets the closed_loop_therm_throtl of this BiosPolicy. + BIOS Token for setting Closed Loop Therm Throt configuration + + :param closed_loop_therm_throtl: The closed_loop_therm_throtl of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if closed_loop_therm_throtl not in allowed_values: + raise ValueError( + "Invalid value for `closed_loop_therm_throtl` ({0}), must be one of {1}" + .format(closed_loop_therm_throtl, allowed_values) + ) + + self._closed_loop_therm_throtl = closed_loop_therm_throtl + + @property + def cmci_enable(self): + """ + Gets the cmci_enable of this BiosPolicy. + BIOS Token for setting Processor CMCI configuration + + :return: The cmci_enable of this BiosPolicy. + :rtype: str + """ + return self._cmci_enable + + @cmci_enable.setter + def cmci_enable(self, cmci_enable): + """ + Sets the cmci_enable of this BiosPolicy. + BIOS Token for setting Processor CMCI configuration + + :param cmci_enable: The cmci_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if cmci_enable not in allowed_values: + raise ValueError( + "Invalid value for `cmci_enable` ({0}), must be one of {1}" + .format(cmci_enable, allowed_values) + ) + + self._cmci_enable = cmci_enable + + @property + def config_tdp(self): + """ + Gets the config_tdp of this BiosPolicy. + BIOS Token for setting ConfigTDP configuration + + :return: The config_tdp of this BiosPolicy. + :rtype: str + """ + return self._config_tdp + + @config_tdp.setter + def config_tdp(self, config_tdp): + """ + Sets the config_tdp of this BiosPolicy. + BIOS Token for setting ConfigTDP configuration + + :param config_tdp: The config_tdp of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if config_tdp not in allowed_values: + raise ValueError( + "Invalid value for `config_tdp` ({0}), must be one of {1}" + .format(config_tdp, allowed_values) + ) + + self._config_tdp = config_tdp + + @property + def console_redirection(self): + """ + Gets the console_redirection of this BiosPolicy. + BIOS Token for setting Console Redirection configuration + + :return: The console_redirection of this BiosPolicy. + :rtype: str + """ + return self._console_redirection + + @console_redirection.setter + def console_redirection(self, console_redirection): + """ + Sets the console_redirection of this BiosPolicy. + BIOS Token for setting Console Redirection configuration + + :param console_redirection: The console_redirection of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "com-0", "com-1", "disabled", "enabled", "serial-port-a"] + if console_redirection not in allowed_values: + raise ValueError( + "Invalid value for `console_redirection` ({0}), must be one of {1}" + .format(console_redirection, allowed_values) + ) + + self._console_redirection = console_redirection + + @property + def core_multi_processing(self): + """ + Gets the core_multi_processing of this BiosPolicy. + BIOS Token for setting Number of Enabled Cores configuration + + :return: The core_multi_processing of this BiosPolicy. + :rtype: str + """ + return self._core_multi_processing + + @core_multi_processing.setter + def core_multi_processing(self, core_multi_processing): + """ + Sets the core_multi_processing of this BiosPolicy. + BIOS Token for setting Number of Enabled Cores configuration + + :param core_multi_processing: The core_multi_processing of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "2", "20", "21", "22", "23", "24", "25", "26", "27", "28", "3", "4", "5", "6", "7", "8", "9", "all"] + if core_multi_processing not in allowed_values: + raise ValueError( + "Invalid value for `core_multi_processing` ({0}), must be one of {1}" + .format(core_multi_processing, allowed_values) + ) + + self._core_multi_processing = core_multi_processing + + @property + def cpu_energy_performance(self): + """ + Gets the cpu_energy_performance of this BiosPolicy. + BIOS Token for setting Energy Performance configuration + + :return: The cpu_energy_performance of this BiosPolicy. + :rtype: str + """ + return self._cpu_energy_performance + + @cpu_energy_performance.setter + def cpu_energy_performance(self, cpu_energy_performance): + """ + Sets the cpu_energy_performance of this BiosPolicy. + BIOS Token for setting Energy Performance configuration + + :param cpu_energy_performance: The cpu_energy_performance of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "balanced-energy", "balanced-performance", "balanced-power", "energy-efficient", "performance", "power"] + if cpu_energy_performance not in allowed_values: + raise ValueError( + "Invalid value for `cpu_energy_performance` ({0}), must be one of {1}" + .format(cpu_energy_performance, allowed_values) + ) + + self._cpu_energy_performance = cpu_energy_performance + + @property + def cpu_frequency_floor(self): + """ + Gets the cpu_frequency_floor of this BiosPolicy. + BIOS Token for setting Frequency Floor Override configuration + + :return: The cpu_frequency_floor of this BiosPolicy. + :rtype: str + """ + return self._cpu_frequency_floor + + @cpu_frequency_floor.setter + def cpu_frequency_floor(self, cpu_frequency_floor): + """ + Sets the cpu_frequency_floor of this BiosPolicy. + BIOS Token for setting Frequency Floor Override configuration + + :param cpu_frequency_floor: The cpu_frequency_floor of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if cpu_frequency_floor not in allowed_values: + raise ValueError( + "Invalid value for `cpu_frequency_floor` ({0}), must be one of {1}" + .format(cpu_frequency_floor, allowed_values) + ) + + self._cpu_frequency_floor = cpu_frequency_floor + + @property + def cpu_performance(self): + """ + Gets the cpu_performance of this BiosPolicy. + BIOS Token for setting CPU Performance configuration + + :return: The cpu_performance of this BiosPolicy. + :rtype: str + """ + return self._cpu_performance + + @cpu_performance.setter + def cpu_performance(self, cpu_performance): + """ + Sets the cpu_performance of this BiosPolicy. + BIOS Token for setting CPU Performance configuration + + :param cpu_performance: The cpu_performance of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "custom", "enterprise", "high-throughput", "hpc"] + if cpu_performance not in allowed_values: + raise ValueError( + "Invalid value for `cpu_performance` ({0}), must be one of {1}" + .format(cpu_performance, allowed_values) + ) + + self._cpu_performance = cpu_performance + + @property + def cpu_power_management(self): + """ + Gets the cpu_power_management of this BiosPolicy. + BIOS Token for setting Power Technology configuration + + :return: The cpu_power_management of this BiosPolicy. + :rtype: str + """ + return self._cpu_power_management + + @cpu_power_management.setter + def cpu_power_management(self, cpu_power_management): + """ + Sets the cpu_power_management of this BiosPolicy. + BIOS Token for setting Power Technology configuration + + :param cpu_power_management: The cpu_power_management of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "custom", "disabled", "energy-efficient", "performance"] + if cpu_power_management not in allowed_values: + raise ValueError( + "Invalid value for `cpu_power_management` ({0}), must be one of {1}" + .format(cpu_power_management, allowed_values) + ) + + self._cpu_power_management = cpu_power_management + + @property + def demand_scrub(self): + """ + Gets the demand_scrub of this BiosPolicy. + BIOS Token for setting Demand Scrub configuration + + :return: The demand_scrub of this BiosPolicy. + :rtype: str + """ + return self._demand_scrub + + @demand_scrub.setter + def demand_scrub(self, demand_scrub): + """ + Sets the demand_scrub of this BiosPolicy. + BIOS Token for setting Demand Scrub configuration + + :param demand_scrub: The demand_scrub of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if demand_scrub not in allowed_values: + raise ValueError( + "Invalid value for `demand_scrub` ({0}), must be one of {1}" + .format(demand_scrub, allowed_values) + ) + + self._demand_scrub = demand_scrub + + @property + def direct_cache_access(self): + """ + Gets the direct_cache_access of this BiosPolicy. + BIOS Token for setting Direct Cache Access Support configuration + + :return: The direct_cache_access of this BiosPolicy. + :rtype: str + """ + return self._direct_cache_access + + @direct_cache_access.setter + def direct_cache_access(self, direct_cache_access): + """ + Sets the direct_cache_access of this BiosPolicy. + BIOS Token for setting Direct Cache Access Support configuration + + :param direct_cache_access: The direct_cache_access of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "auto", "disabled", "enabled"] + if direct_cache_access not in allowed_values: + raise ValueError( + "Invalid value for `direct_cache_access` ({0}), must be one of {1}" + .format(direct_cache_access, allowed_values) + ) + + self._direct_cache_access = direct_cache_access + + @property + def dram_clock_throttling(self): + """ + Gets the dram_clock_throttling of this BiosPolicy. + BIOS Token for setting DRAM Clock Throttling configuration + + :return: The dram_clock_throttling of this BiosPolicy. + :rtype: str + """ + return self._dram_clock_throttling + + @dram_clock_throttling.setter + def dram_clock_throttling(self, dram_clock_throttling): + """ + Sets the dram_clock_throttling of this BiosPolicy. + BIOS Token for setting DRAM Clock Throttling configuration + + :param dram_clock_throttling: The dram_clock_throttling of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Balanced", "Energy Efficient", "Performance"] + if dram_clock_throttling not in allowed_values: + raise ValueError( + "Invalid value for `dram_clock_throttling` ({0}), must be one of {1}" + .format(dram_clock_throttling, allowed_values) + ) + + self._dram_clock_throttling = dram_clock_throttling + + @property + def dram_refresh_rate(self): + """ + Gets the dram_refresh_rate of this BiosPolicy. + BIOS Token for setting DRAM Refresh rate configuration + + :return: The dram_refresh_rate of this BiosPolicy. + :rtype: str + """ + return self._dram_refresh_rate + + @dram_refresh_rate.setter + def dram_refresh_rate(self, dram_refresh_rate): + """ + Sets the dram_refresh_rate of this BiosPolicy. + BIOS Token for setting DRAM Refresh rate configuration + + :param dram_refresh_rate: The dram_refresh_rate of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1x", "2x", "3x", "4x", "Auto"] + if dram_refresh_rate not in allowed_values: + raise ValueError( + "Invalid value for `dram_refresh_rate` ({0}), must be one of {1}" + .format(dram_refresh_rate, allowed_values) + ) + + self._dram_refresh_rate = dram_refresh_rate + + @property + def energy_efficient_turbo(self): + """ + Gets the energy_efficient_turbo of this BiosPolicy. + BIOS Token for setting Energy Efficient Turbo configuration + + :return: The energy_efficient_turbo of this BiosPolicy. + :rtype: str + """ + return self._energy_efficient_turbo + + @energy_efficient_turbo.setter + def energy_efficient_turbo(self, energy_efficient_turbo): + """ + Sets the energy_efficient_turbo of this BiosPolicy. + BIOS Token for setting Energy Efficient Turbo configuration + + :param energy_efficient_turbo: The energy_efficient_turbo of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if energy_efficient_turbo not in allowed_values: + raise ValueError( + "Invalid value for `energy_efficient_turbo` ({0}), must be one of {1}" + .format(energy_efficient_turbo, allowed_values) + ) + + self._energy_efficient_turbo = energy_efficient_turbo + + @property + def eng_perf_tuning(self): + """ + Gets the eng_perf_tuning of this BiosPolicy. + BIOS Token for setting EngPerfTuning configuration + + :return: The eng_perf_tuning of this BiosPolicy. + :rtype: str + """ + return self._eng_perf_tuning + + @eng_perf_tuning.setter + def eng_perf_tuning(self, eng_perf_tuning): + """ + Sets the eng_perf_tuning of this BiosPolicy. + BIOS Token for setting EngPerfTuning configuration + + :param eng_perf_tuning: The eng_perf_tuning of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "BIOS", "OS"] + if eng_perf_tuning not in allowed_values: + raise ValueError( + "Invalid value for `eng_perf_tuning` ({0}), must be one of {1}" + .format(eng_perf_tuning, allowed_values) + ) + + self._eng_perf_tuning = eng_perf_tuning + + @property + def enhanced_intel_speed_step_tech(self): + """ + Gets the enhanced_intel_speed_step_tech of this BiosPolicy. + BIOS Token for setting Enhanced Intel Speedstep(R) Technology configuration + + :return: The enhanced_intel_speed_step_tech of this BiosPolicy. + :rtype: str + """ + return self._enhanced_intel_speed_step_tech + + @enhanced_intel_speed_step_tech.setter + def enhanced_intel_speed_step_tech(self, enhanced_intel_speed_step_tech): + """ + Sets the enhanced_intel_speed_step_tech of this BiosPolicy. + BIOS Token for setting Enhanced Intel Speedstep(R) Technology configuration + + :param enhanced_intel_speed_step_tech: The enhanced_intel_speed_step_tech of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if enhanced_intel_speed_step_tech not in allowed_values: + raise ValueError( + "Invalid value for `enhanced_intel_speed_step_tech` ({0}), must be one of {1}" + .format(enhanced_intel_speed_step_tech, allowed_values) + ) + + self._enhanced_intel_speed_step_tech = enhanced_intel_speed_step_tech + + @property + def epp_profile(self): + """ + Gets the epp_profile of this BiosPolicy. + BIOS Token for setting EPP Profile configuration + + :return: The epp_profile of this BiosPolicy. + :rtype: str + """ + return self._epp_profile + + @epp_profile.setter + def epp_profile(self, epp_profile): + """ + Sets the epp_profile of this BiosPolicy. + BIOS Token for setting EPP Profile configuration + + :param epp_profile: The epp_profile of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Balanced Performance", "Balanced Power", "Performance", "Power"] + if epp_profile not in allowed_values: + raise ValueError( + "Invalid value for `epp_profile` ({0}), must be one of {1}" + .format(epp_profile, allowed_values) + ) + + self._epp_profile = epp_profile + + @property + def execute_disable_bit(self): + """ + Gets the execute_disable_bit of this BiosPolicy. + BIOS Token for setting Execute Disable configuration + + :return: The execute_disable_bit of this BiosPolicy. + :rtype: str + """ + return self._execute_disable_bit + + @execute_disable_bit.setter + def execute_disable_bit(self, execute_disable_bit): + """ + Sets the execute_disable_bit of this BiosPolicy. + BIOS Token for setting Execute Disable configuration + + :param execute_disable_bit: The execute_disable_bit of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if execute_disable_bit not in allowed_values: + raise ValueError( + "Invalid value for `execute_disable_bit` ({0}), must be one of {1}" + .format(execute_disable_bit, allowed_values) + ) + + self._execute_disable_bit = execute_disable_bit + + @property + def extended_apic(self): + """ + Gets the extended_apic of this BiosPolicy. + BIOS Token for setting Extended APIC configuration + + :return: The extended_apic of this BiosPolicy. + :rtype: str + """ + return self._extended_apic + + @extended_apic.setter + def extended_apic(self, extended_apic): + """ + Sets the extended_apic of this BiosPolicy. + BIOS Token for setting Extended APIC configuration + + :param extended_apic: The extended_apic of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "X2APIC", "XAPIC"] + if extended_apic not in allowed_values: + raise ValueError( + "Invalid value for `extended_apic` ({0}), must be one of {1}" + .format(extended_apic, allowed_values) + ) + + self._extended_apic = extended_apic + + @property + def flow_control(self): + """ + Gets the flow_control of this BiosPolicy. + BIOS Token for setting Flow Control configuration + + :return: The flow_control of this BiosPolicy. + :rtype: str + """ + return self._flow_control + + @flow_control.setter + def flow_control(self, flow_control): + """ + Sets the flow_control of this BiosPolicy. + BIOS Token for setting Flow Control configuration + + :param flow_control: The flow_control of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "none", "rts-cts"] + if flow_control not in allowed_values: + raise ValueError( + "Invalid value for `flow_control` ({0}), must be one of {1}" + .format(flow_control, allowed_values) + ) + + self._flow_control = flow_control + + @property + def frb2enable(self): + """ + Gets the frb2enable of this BiosPolicy. + BIOS Token for setting FRB-2 Timer configuration + + :return: The frb2enable of this BiosPolicy. + :rtype: str + """ + return self._frb2enable + + @frb2enable.setter + def frb2enable(self, frb2enable): + """ + Sets the frb2enable of this BiosPolicy. + BIOS Token for setting FRB-2 Timer configuration + + :param frb2enable: The frb2enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if frb2enable not in allowed_values: + raise ValueError( + "Invalid value for `frb2enable` ({0}), must be one of {1}" + .format(frb2enable, allowed_values) + ) + + self._frb2enable = frb2enable + + @property + def hardware_prefetch(self): + """ + Gets the hardware_prefetch of this BiosPolicy. + BIOS Token for setting Hardware Prefetcher configuration + + :return: The hardware_prefetch of this BiosPolicy. + :rtype: str + """ + return self._hardware_prefetch + + @hardware_prefetch.setter + def hardware_prefetch(self, hardware_prefetch): + """ + Sets the hardware_prefetch of this BiosPolicy. + BIOS Token for setting Hardware Prefetcher configuration + + :param hardware_prefetch: The hardware_prefetch of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if hardware_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `hardware_prefetch` ({0}), must be one of {1}" + .format(hardware_prefetch, allowed_values) + ) + + self._hardware_prefetch = hardware_prefetch + + @property + def hwpm_enable(self): + """ + Gets the hwpm_enable of this BiosPolicy. + BIOS Token for setting HWPMEnable configuration + + :return: The hwpm_enable of this BiosPolicy. + :rtype: str + """ + return self._hwpm_enable + + @hwpm_enable.setter + def hwpm_enable(self, hwpm_enable): + """ + Sets the hwpm_enable of this BiosPolicy. + BIOS Token for setting HWPMEnable configuration + + :param hwpm_enable: The hwpm_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Disabled", "HWPM Native Mode", "HWPM OOB Mode", "NATIVE MODE", "Native Mode with no Legacy", "OOB MODE"] + if hwpm_enable not in allowed_values: + raise ValueError( + "Invalid value for `hwpm_enable` ({0}), must be one of {1}" + .format(hwpm_enable, allowed_values) + ) + + self._hwpm_enable = hwpm_enable + + @property + def imc_interleave(self): + """ + Gets the imc_interleave of this BiosPolicy. + BIOS Token for setting IMC Interleaving configuration + + :return: The imc_interleave of this BiosPolicy. + :rtype: str + """ + return self._imc_interleave + + @imc_interleave.setter + def imc_interleave(self, imc_interleave): + """ + Sets the imc_interleave of this BiosPolicy. + BIOS Token for setting IMC Interleaving configuration + + :param imc_interleave: The imc_interleave of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1-way Interleave", "2-way Interleave", "Auto"] + if imc_interleave not in allowed_values: + raise ValueError( + "Invalid value for `imc_interleave` ({0}), must be one of {1}" + .format(imc_interleave, allowed_values) + ) + + self._imc_interleave = imc_interleave + + @property + def intel_hyper_threading_tech(self): + """ + Gets the intel_hyper_threading_tech of this BiosPolicy. + BIOS Token for setting Intel(R) Hyper-Threading Technology configuration + + :return: The intel_hyper_threading_tech of this BiosPolicy. + :rtype: str + """ + return self._intel_hyper_threading_tech + + @intel_hyper_threading_tech.setter + def intel_hyper_threading_tech(self, intel_hyper_threading_tech): + """ + Sets the intel_hyper_threading_tech of this BiosPolicy. + BIOS Token for setting Intel(R) Hyper-Threading Technology configuration + + :param intel_hyper_threading_tech: The intel_hyper_threading_tech of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_hyper_threading_tech not in allowed_values: + raise ValueError( + "Invalid value for `intel_hyper_threading_tech` ({0}), must be one of {1}" + .format(intel_hyper_threading_tech, allowed_values) + ) + + self._intel_hyper_threading_tech = intel_hyper_threading_tech + + @property + def intel_turbo_boost_tech(self): + """ + Gets the intel_turbo_boost_tech of this BiosPolicy. + BIOS Token for setting Intel(R) Turbo Boost Technology configuration + + :return: The intel_turbo_boost_tech of this BiosPolicy. + :rtype: str + """ + return self._intel_turbo_boost_tech + + @intel_turbo_boost_tech.setter + def intel_turbo_boost_tech(self, intel_turbo_boost_tech): + """ + Sets the intel_turbo_boost_tech of this BiosPolicy. + BIOS Token for setting Intel(R) Turbo Boost Technology configuration + + :param intel_turbo_boost_tech: The intel_turbo_boost_tech of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_turbo_boost_tech not in allowed_values: + raise ValueError( + "Invalid value for `intel_turbo_boost_tech` ({0}), must be one of {1}" + .format(intel_turbo_boost_tech, allowed_values) + ) + + self._intel_turbo_boost_tech = intel_turbo_boost_tech + + @property + def intel_virtualization_technology(self): + """ + Gets the intel_virtualization_technology of this BiosPolicy. + BIOS Token for setting Intel(R) VT configuration + + :return: The intel_virtualization_technology of this BiosPolicy. + :rtype: str + """ + return self._intel_virtualization_technology + + @intel_virtualization_technology.setter + def intel_virtualization_technology(self, intel_virtualization_technology): + """ + Sets the intel_virtualization_technology of this BiosPolicy. + BIOS Token for setting Intel(R) VT configuration + + :param intel_virtualization_technology: The intel_virtualization_technology of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_virtualization_technology not in allowed_values: + raise ValueError( + "Invalid value for `intel_virtualization_technology` ({0}), must be one of {1}" + .format(intel_virtualization_technology, allowed_values) + ) + + self._intel_virtualization_technology = intel_virtualization_technology + + @property + def intel_vt_for_directed_io(self): + """ + Gets the intel_vt_for_directed_io of this BiosPolicy. + BIOS Token for setting Intel(R) VT for Directed IO configuration + + :return: The intel_vt_for_directed_io of this BiosPolicy. + :rtype: str + """ + return self._intel_vt_for_directed_io + + @intel_vt_for_directed_io.setter + def intel_vt_for_directed_io(self, intel_vt_for_directed_io): + """ + Sets the intel_vt_for_directed_io of this BiosPolicy. + BIOS Token for setting Intel(R) VT for Directed IO configuration + + :param intel_vt_for_directed_io: The intel_vt_for_directed_io of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_vt_for_directed_io not in allowed_values: + raise ValueError( + "Invalid value for `intel_vt_for_directed_io` ({0}), must be one of {1}" + .format(intel_vt_for_directed_io, allowed_values) + ) + + self._intel_vt_for_directed_io = intel_vt_for_directed_io + + @property + def intel_vtd_coherency_support(self): + """ + Gets the intel_vtd_coherency_support of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d Coherency Support configuration + + :return: The intel_vtd_coherency_support of this BiosPolicy. + :rtype: str + """ + return self._intel_vtd_coherency_support + + @intel_vtd_coherency_support.setter + def intel_vtd_coherency_support(self, intel_vtd_coherency_support): + """ + Sets the intel_vtd_coherency_support of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d Coherency Support configuration + + :param intel_vtd_coherency_support: The intel_vtd_coherency_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_vtd_coherency_support not in allowed_values: + raise ValueError( + "Invalid value for `intel_vtd_coherency_support` ({0}), must be one of {1}" + .format(intel_vtd_coherency_support, allowed_values) + ) + + self._intel_vtd_coherency_support = intel_vtd_coherency_support + + @property + def intel_vtd_interrupt_remapping(self): + """ + Gets the intel_vtd_interrupt_remapping of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d Interrupt Remapping configuration + + :return: The intel_vtd_interrupt_remapping of this BiosPolicy. + :rtype: str + """ + return self._intel_vtd_interrupt_remapping + + @intel_vtd_interrupt_remapping.setter + def intel_vtd_interrupt_remapping(self, intel_vtd_interrupt_remapping): + """ + Sets the intel_vtd_interrupt_remapping of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d Interrupt Remapping configuration + + :param intel_vtd_interrupt_remapping: The intel_vtd_interrupt_remapping of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_vtd_interrupt_remapping not in allowed_values: + raise ValueError( + "Invalid value for `intel_vtd_interrupt_remapping` ({0}), must be one of {1}" + .format(intel_vtd_interrupt_remapping, allowed_values) + ) + + self._intel_vtd_interrupt_remapping = intel_vtd_interrupt_remapping + + @property + def intel_vtd_pass_through_dma_support(self): + """ + Gets the intel_vtd_pass_through_dma_support of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d PassThrough DMA configuration + + :return: The intel_vtd_pass_through_dma_support of this BiosPolicy. + :rtype: str + """ + return self._intel_vtd_pass_through_dma_support + + @intel_vtd_pass_through_dma_support.setter + def intel_vtd_pass_through_dma_support(self, intel_vtd_pass_through_dma_support): + """ + Sets the intel_vtd_pass_through_dma_support of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d PassThrough DMA configuration + + :param intel_vtd_pass_through_dma_support: The intel_vtd_pass_through_dma_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_vtd_pass_through_dma_support not in allowed_values: + raise ValueError( + "Invalid value for `intel_vtd_pass_through_dma_support` ({0}), must be one of {1}" + .format(intel_vtd_pass_through_dma_support, allowed_values) + ) + + self._intel_vtd_pass_through_dma_support = intel_vtd_pass_through_dma_support + + @property + def intel_vtdats_support(self): + """ + Gets the intel_vtdats_support of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d ATS Support configuration + + :return: The intel_vtdats_support of this BiosPolicy. + :rtype: str + """ + return self._intel_vtdats_support + + @intel_vtdats_support.setter + def intel_vtdats_support(self, intel_vtdats_support): + """ + Sets the intel_vtdats_support of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d ATS Support configuration + + :param intel_vtdats_support: The intel_vtdats_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_vtdats_support not in allowed_values: + raise ValueError( + "Invalid value for `intel_vtdats_support` ({0}), must be one of {1}" + .format(intel_vtdats_support, allowed_values) + ) + + self._intel_vtdats_support = intel_vtdats_support + + @property + def ioh_error_enable(self): + """ + Gets the ioh_error_enable of this BiosPolicy. + BIOS Token for setting IIO Error Enable configuration + + :return: The ioh_error_enable of this BiosPolicy. + :rtype: str + """ + return self._ioh_error_enable + + @ioh_error_enable.setter + def ioh_error_enable(self, ioh_error_enable): + """ + Sets the ioh_error_enable of this BiosPolicy. + BIOS Token for setting IIO Error Enable configuration + + :param ioh_error_enable: The ioh_error_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "No", "Yes"] + if ioh_error_enable not in allowed_values: + raise ValueError( + "Invalid value for `ioh_error_enable` ({0}), must be one of {1}" + .format(ioh_error_enable, allowed_values) + ) + + self._ioh_error_enable = ioh_error_enable + + @property + def ioh_resource(self): + """ + Gets the ioh_resource of this BiosPolicy. + BIOS Token for setting IOH Resource Allocation configuration + + :return: The ioh_resource of this BiosPolicy. + :rtype: str + """ + return self._ioh_resource + + @ioh_resource.setter + def ioh_resource(self, ioh_resource): + """ + Sets the ioh_resource of this BiosPolicy. + BIOS Token for setting IOH Resource Allocation configuration + + :param ioh_resource: The ioh_resource of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "IOH0 24k IOH1 40k", "IOH0 32k IOH1 32k", "IOH0 40k IOH1 24k", "IOH0 48k IOH1 16k", "IOH0 56k IOH1 8k"] + if ioh_resource not in allowed_values: + raise ValueError( + "Invalid value for `ioh_resource` ({0}), must be one of {1}" + .format(ioh_resource, allowed_values) + ) + + self._ioh_resource = ioh_resource + + @property + def ip_prefetch(self): + """ + Gets the ip_prefetch of this BiosPolicy. + BIOS Token for setting DCU IP Prefetcher configuration + + :return: The ip_prefetch of this BiosPolicy. + :rtype: str + """ + return self._ip_prefetch + + @ip_prefetch.setter + def ip_prefetch(self, ip_prefetch): + """ + Sets the ip_prefetch of this BiosPolicy. + BIOS Token for setting DCU IP Prefetcher configuration + + :param ip_prefetch: The ip_prefetch of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if ip_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `ip_prefetch` ({0}), must be one of {1}" + .format(ip_prefetch, allowed_values) + ) + + self._ip_prefetch = ip_prefetch + + @property + def ipv6pxe(self): + """ + Gets the ipv6pxe of this BiosPolicy. + BIOS Token for setting IPV6 PXE Support configuration + + :return: The ipv6pxe of this BiosPolicy. + :rtype: str + """ + return self._ipv6pxe + + @ipv6pxe.setter + def ipv6pxe(self, ipv6pxe): + """ + Sets the ipv6pxe of this BiosPolicy. + BIOS Token for setting IPV6 PXE Support configuration + + :param ipv6pxe: The ipv6pxe of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if ipv6pxe not in allowed_values: + raise ValueError( + "Invalid value for `ipv6pxe` ({0}), must be one of {1}" + .format(ipv6pxe, allowed_values) + ) + + self._ipv6pxe = ipv6pxe + + @property + def kti_prefetch(self): + """ + Gets the kti_prefetch of this BiosPolicy. + BIOS Token for setting KTI Prefetch configuration + + :return: The kti_prefetch of this BiosPolicy. + :rtype: str + """ + return self._kti_prefetch + + @kti_prefetch.setter + def kti_prefetch(self, kti_prefetch): + """ + Sets the kti_prefetch of this BiosPolicy. + BIOS Token for setting KTI Prefetch configuration + + :param kti_prefetch: The kti_prefetch of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if kti_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `kti_prefetch` ({0}), must be one of {1}" + .format(kti_prefetch, allowed_values) + ) + + self._kti_prefetch = kti_prefetch + + @property + def legacy_os_redirection(self): + """ + Gets the legacy_os_redirection of this BiosPolicy. + BIOS Token for setting Legacy OS Redirection configuration + + :return: The legacy_os_redirection of this BiosPolicy. + :rtype: str + """ + return self._legacy_os_redirection + + @legacy_os_redirection.setter + def legacy_os_redirection(self, legacy_os_redirection): + """ + Sets the legacy_os_redirection of this BiosPolicy. + BIOS Token for setting Legacy OS Redirection configuration + + :param legacy_os_redirection: The legacy_os_redirection of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if legacy_os_redirection not in allowed_values: + raise ValueError( + "Invalid value for `legacy_os_redirection` ({0}), must be one of {1}" + .format(legacy_os_redirection, allowed_values) + ) + + self._legacy_os_redirection = legacy_os_redirection + + @property + def legacy_usb_support(self): + """ + Gets the legacy_usb_support of this BiosPolicy. + BIOS Token for setting Legacy USB Support configuration + + :return: The legacy_usb_support of this BiosPolicy. + :rtype: str + """ + return self._legacy_usb_support + + @legacy_usb_support.setter + def legacy_usb_support(self, legacy_usb_support): + """ + Sets the legacy_usb_support of this BiosPolicy. + BIOS Token for setting Legacy USB Support configuration + + :param legacy_usb_support: The legacy_usb_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "auto", "disabled", "enabled"] + if legacy_usb_support not in allowed_values: + raise ValueError( + "Invalid value for `legacy_usb_support` ({0}), must be one of {1}" + .format(legacy_usb_support, allowed_values) + ) + + self._legacy_usb_support = legacy_usb_support + + @property + def llc_prefetch(self): + """ + Gets the llc_prefetch of this BiosPolicy. + BIOS Token for setting LLC Prefetch configuration + + :return: The llc_prefetch of this BiosPolicy. + :rtype: str + """ + return self._llc_prefetch + + @llc_prefetch.setter + def llc_prefetch(self, llc_prefetch): + """ + Sets the llc_prefetch of this BiosPolicy. + BIOS Token for setting LLC Prefetch configuration + + :param llc_prefetch: The llc_prefetch of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if llc_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `llc_prefetch` ({0}), must be one of {1}" + .format(llc_prefetch, allowed_values) + ) + + self._llc_prefetch = llc_prefetch + + @property + def lom_port0state(self): + """ + Gets the lom_port0state of this BiosPolicy. + BIOS Token for setting LOM Port 0 OptionROM configuration + + :return: The lom_port0state of this BiosPolicy. + :rtype: str + """ + return self._lom_port0state + + @lom_port0state.setter + def lom_port0state(self, lom_port0state): + """ + Sets the lom_port0state of this BiosPolicy. + BIOS Token for setting LOM Port 0 OptionROM configuration + + :param lom_port0state: The lom_port0state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if lom_port0state not in allowed_values: + raise ValueError( + "Invalid value for `lom_port0state` ({0}), must be one of {1}" + .format(lom_port0state, allowed_values) + ) + + self._lom_port0state = lom_port0state + + @property + def lom_port1state(self): + """ + Gets the lom_port1state of this BiosPolicy. + BIOS Token for setting LOM Port 1 OptionROM configuration + + :return: The lom_port1state of this BiosPolicy. + :rtype: str + """ + return self._lom_port1state + + @lom_port1state.setter + def lom_port1state(self, lom_port1state): + """ + Sets the lom_port1state of this BiosPolicy. + BIOS Token for setting LOM Port 1 OptionROM configuration + + :param lom_port1state: The lom_port1state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if lom_port1state not in allowed_values: + raise ValueError( + "Invalid value for `lom_port1state` ({0}), must be one of {1}" + .format(lom_port1state, allowed_values) + ) + + self._lom_port1state = lom_port1state + + @property + def lom_port2state(self): + """ + Gets the lom_port2state of this BiosPolicy. + BIOS Token for setting LOM Port 2 OptionROM configuration + + :return: The lom_port2state of this BiosPolicy. + :rtype: str + """ + return self._lom_port2state + + @lom_port2state.setter + def lom_port2state(self, lom_port2state): + """ + Sets the lom_port2state of this BiosPolicy. + BIOS Token for setting LOM Port 2 OptionROM configuration + + :param lom_port2state: The lom_port2state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if lom_port2state not in allowed_values: + raise ValueError( + "Invalid value for `lom_port2state` ({0}), must be one of {1}" + .format(lom_port2state, allowed_values) + ) + + self._lom_port2state = lom_port2state + + @property + def lom_port3state(self): + """ + Gets the lom_port3state of this BiosPolicy. + BIOS Token for setting LOM Port 3 OptionROM configuration + + :return: The lom_port3state of this BiosPolicy. + :rtype: str + """ + return self._lom_port3state + + @lom_port3state.setter + def lom_port3state(self, lom_port3state): + """ + Sets the lom_port3state of this BiosPolicy. + BIOS Token for setting LOM Port 3 OptionROM configuration + + :param lom_port3state: The lom_port3state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if lom_port3state not in allowed_values: + raise ValueError( + "Invalid value for `lom_port3state` ({0}), must be one of {1}" + .format(lom_port3state, allowed_values) + ) + + self._lom_port3state = lom_port3state + + @property + def lom_ports_all_state(self): + """ + Gets the lom_ports_all_state of this BiosPolicy. + BIOS Token for setting All Onboard LOM Ports configuration + + :return: The lom_ports_all_state of this BiosPolicy. + :rtype: str + """ + return self._lom_ports_all_state + + @lom_ports_all_state.setter + def lom_ports_all_state(self, lom_ports_all_state): + """ + Sets the lom_ports_all_state of this BiosPolicy. + BIOS Token for setting All Onboard LOM Ports configuration + + :param lom_ports_all_state: The lom_ports_all_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if lom_ports_all_state not in allowed_values: + raise ValueError( + "Invalid value for `lom_ports_all_state` ({0}), must be one of {1}" + .format(lom_ports_all_state, allowed_values) + ) + + self._lom_ports_all_state = lom_ports_all_state + + @property + def lv_ddr_mode(self): + """ + Gets the lv_ddr_mode of this BiosPolicy. + BIOS Token for setting Low Voltage DDR Mode configuration + + :return: The lv_ddr_mode of this BiosPolicy. + :rtype: str + """ + return self._lv_ddr_mode + + @lv_ddr_mode.setter + def lv_ddr_mode(self, lv_ddr_mode): + """ + Sets the lv_ddr_mode of this BiosPolicy. + BIOS Token for setting Low Voltage DDR Mode configuration + + :param lv_ddr_mode: The lv_ddr_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "auto", "performance-mode", "power-saving-mode"] + if lv_ddr_mode not in allowed_values: + raise ValueError( + "Invalid value for `lv_ddr_mode` ({0}), must be one of {1}" + .format(lv_ddr_mode, allowed_values) + ) + + self._lv_ddr_mode = lv_ddr_mode + + @property + def make_device_non_bootable(self): + """ + Gets the make_device_non_bootable of this BiosPolicy. + BIOS Token for setting Make Device Non Bootable configuration + + :return: The make_device_non_bootable of this BiosPolicy. + :rtype: str + """ + return self._make_device_non_bootable + + @make_device_non_bootable.setter + def make_device_non_bootable(self, make_device_non_bootable): + """ + Sets the make_device_non_bootable of this BiosPolicy. + BIOS Token for setting Make Device Non Bootable configuration + + :param make_device_non_bootable: The make_device_non_bootable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if make_device_non_bootable not in allowed_values: + raise ValueError( + "Invalid value for `make_device_non_bootable` ({0}), must be one of {1}" + .format(make_device_non_bootable, allowed_values) + ) + + self._make_device_non_bootable = make_device_non_bootable + + @property + def memory_inter_leave(self): + """ + Gets the memory_inter_leave of this BiosPolicy. + BIOS Token for setting Memory Interleaving configuration + + :return: The memory_inter_leave of this BiosPolicy. + :rtype: str + """ + return self._memory_inter_leave + + @memory_inter_leave.setter + def memory_inter_leave(self, memory_inter_leave): + """ + Sets the memory_inter_leave of this BiosPolicy. + BIOS Token for setting Memory Interleaving configuration + + :param memory_inter_leave: The memory_inter_leave of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1 Way Node Interleave", "2 Way Node Interleave", "4 Way Node Interleave", "8 Way Node Interleave", "disabled", "enabled"] + if memory_inter_leave not in allowed_values: + raise ValueError( + "Invalid value for `memory_inter_leave` ({0}), must be one of {1}" + .format(memory_inter_leave, allowed_values) + ) + + self._memory_inter_leave = memory_inter_leave + + @property + def memory_mapped_io_above4gb(self): + """ + Gets the memory_mapped_io_above4gb of this BiosPolicy. + BIOS Token for setting MMIO above 4GB configuration + + :return: The memory_mapped_io_above4gb of this BiosPolicy. + :rtype: str + """ + return self._memory_mapped_io_above4gb + + @memory_mapped_io_above4gb.setter + def memory_mapped_io_above4gb(self, memory_mapped_io_above4gb): + """ + Sets the memory_mapped_io_above4gb of this BiosPolicy. + BIOS Token for setting MMIO above 4GB configuration + + :param memory_mapped_io_above4gb: The memory_mapped_io_above4gb of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if memory_mapped_io_above4gb not in allowed_values: + raise ValueError( + "Invalid value for `memory_mapped_io_above4gb` ({0}), must be one of {1}" + .format(memory_mapped_io_above4gb, allowed_values) + ) + + self._memory_mapped_io_above4gb = memory_mapped_io_above4gb + + @property + def mirroring_mode(self): + """ + Gets the mirroring_mode of this BiosPolicy. + BIOS Token for setting Mirroring Mode configuration + + :return: The mirroring_mode of this BiosPolicy. + :rtype: str + """ + return self._mirroring_mode + + @mirroring_mode.setter + def mirroring_mode(self, mirroring_mode): + """ + Sets the mirroring_mode of this BiosPolicy. + BIOS Token for setting Mirroring Mode configuration + + :param mirroring_mode: The mirroring_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "inter-socket", "intra-socket"] + if mirroring_mode not in allowed_values: + raise ValueError( + "Invalid value for `mirroring_mode` ({0}), must be one of {1}" + .format(mirroring_mode, allowed_values) + ) + + self._mirroring_mode = mirroring_mode + + @property + def mmcfg_base(self): + """ + Gets the mmcfg_base of this BiosPolicy. + BIOS Token for setting MMCFG BASE configuration + + :return: The mmcfg_base of this BiosPolicy. + :rtype: str + """ + return self._mmcfg_base + + @mmcfg_base.setter + def mmcfg_base(self, mmcfg_base): + """ + Sets the mmcfg_base of this BiosPolicy. + BIOS Token for setting MMCFG BASE configuration + + :param mmcfg_base: The mmcfg_base of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1 GB", "2 GB", "2.5 GB", "3 GB", "Auto"] + if mmcfg_base not in allowed_values: + raise ValueError( + "Invalid value for `mmcfg_base` ({0}), must be one of {1}" + .format(mmcfg_base, allowed_values) + ) + + self._mmcfg_base = mmcfg_base + + @property + def numa_optimized(self): + """ + Gets the numa_optimized of this BiosPolicy. + BIOS Token for setting NUMA configuration + + :return: The numa_optimized of this BiosPolicy. + :rtype: str + """ + return self._numa_optimized + + @numa_optimized.setter + def numa_optimized(self, numa_optimized): + """ + Sets the numa_optimized of this BiosPolicy. + BIOS Token for setting NUMA configuration + + :param numa_optimized: The numa_optimized of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if numa_optimized not in allowed_values: + raise ValueError( + "Invalid value for `numa_optimized` ({0}), must be one of {1}" + .format(numa_optimized, allowed_values) + ) + + self._numa_optimized = numa_optimized + + @property + def onboard10gbit_lom(self): + """ + Gets the onboard10gbit_lom of this BiosPolicy. + BIOS Token for setting Onboard 10Gbit LOM configuration + + :return: The onboard10gbit_lom of this BiosPolicy. + :rtype: str + """ + return self._onboard10gbit_lom + + @onboard10gbit_lom.setter + def onboard10gbit_lom(self, onboard10gbit_lom): + """ + Sets the onboard10gbit_lom of this BiosPolicy. + BIOS Token for setting Onboard 10Gbit LOM configuration + + :param onboard10gbit_lom: The onboard10gbit_lom of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if onboard10gbit_lom not in allowed_values: + raise ValueError( + "Invalid value for `onboard10gbit_lom` ({0}), must be one of {1}" + .format(onboard10gbit_lom, allowed_values) + ) + + self._onboard10gbit_lom = onboard10gbit_lom + + @property + def onboard_gbit_lom(self): + """ + Gets the onboard_gbit_lom of this BiosPolicy. + BIOS Token for setting Onboard Gbit LOM configuration + + :return: The onboard_gbit_lom of this BiosPolicy. + :rtype: str + """ + return self._onboard_gbit_lom + + @onboard_gbit_lom.setter + def onboard_gbit_lom(self, onboard_gbit_lom): + """ + Sets the onboard_gbit_lom of this BiosPolicy. + BIOS Token for setting Onboard Gbit LOM configuration + + :param onboard_gbit_lom: The onboard_gbit_lom of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if onboard_gbit_lom not in allowed_values: + raise ValueError( + "Invalid value for `onboard_gbit_lom` ({0}), must be one of {1}" + .format(onboard_gbit_lom, allowed_values) + ) + + self._onboard_gbit_lom = onboard_gbit_lom + + @property + def onboard_scu_storage_support(self): + """ + Gets the onboard_scu_storage_support of this BiosPolicy. + BIOS Token for setting Onboard SCU Storage Support configuration + + :return: The onboard_scu_storage_support of this BiosPolicy. + :rtype: str + """ + return self._onboard_scu_storage_support + + @onboard_scu_storage_support.setter + def onboard_scu_storage_support(self, onboard_scu_storage_support): + """ + Sets the onboard_scu_storage_support of this BiosPolicy. + BIOS Token for setting Onboard SCU Storage Support configuration + + :param onboard_scu_storage_support: The onboard_scu_storage_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if onboard_scu_storage_support not in allowed_values: + raise ValueError( + "Invalid value for `onboard_scu_storage_support` ({0}), must be one of {1}" + .format(onboard_scu_storage_support, allowed_values) + ) + + self._onboard_scu_storage_support = onboard_scu_storage_support + + @property + def onboard_scu_storage_sw_stack(self): + """ + Gets the onboard_scu_storage_sw_stack of this BiosPolicy. + BIOS Token for setting Onboard SCU Storage SW Stack configuration + + :return: The onboard_scu_storage_sw_stack of this BiosPolicy. + :rtype: str + """ + return self._onboard_scu_storage_sw_stack + + @onboard_scu_storage_sw_stack.setter + def onboard_scu_storage_sw_stack(self, onboard_scu_storage_sw_stack): + """ + Sets the onboard_scu_storage_sw_stack of this BiosPolicy. + BIOS Token for setting Onboard SCU Storage SW Stack configuration + + :param onboard_scu_storage_sw_stack: The onboard_scu_storage_sw_stack of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Intel RSTe", "LSI SW RAID"] + if onboard_scu_storage_sw_stack not in allowed_values: + raise ValueError( + "Invalid value for `onboard_scu_storage_sw_stack` ({0}), must be one of {1}" + .format(onboard_scu_storage_sw_stack, allowed_values) + ) + + self._onboard_scu_storage_sw_stack = onboard_scu_storage_sw_stack + + @property + def organization(self): + """ + Gets the organization of this BiosPolicy. + Organization + + :return: The organization of this BiosPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this BiosPolicy. + Organization + + :param organization: The organization of this BiosPolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def os_boot_watchdog_timer(self): + """ + Gets the os_boot_watchdog_timer of this BiosPolicy. + BIOS Token for setting OS Watchdog Timer configuration + + :return: The os_boot_watchdog_timer of this BiosPolicy. + :rtype: str + """ + return self._os_boot_watchdog_timer + + @os_boot_watchdog_timer.setter + def os_boot_watchdog_timer(self, os_boot_watchdog_timer): + """ + Sets the os_boot_watchdog_timer of this BiosPolicy. + BIOS Token for setting OS Watchdog Timer configuration + + :param os_boot_watchdog_timer: The os_boot_watchdog_timer of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if os_boot_watchdog_timer not in allowed_values: + raise ValueError( + "Invalid value for `os_boot_watchdog_timer` ({0}), must be one of {1}" + .format(os_boot_watchdog_timer, allowed_values) + ) + + self._os_boot_watchdog_timer = os_boot_watchdog_timer + + @property + def os_boot_watchdog_timer_policy(self): + """ + Gets the os_boot_watchdog_timer_policy of this BiosPolicy. + BIOS Token for setting OS Watchdog Timer Policy configuration + + :return: The os_boot_watchdog_timer_policy of this BiosPolicy. + :rtype: str + """ + return self._os_boot_watchdog_timer_policy + + @os_boot_watchdog_timer_policy.setter + def os_boot_watchdog_timer_policy(self, os_boot_watchdog_timer_policy): + """ + Sets the os_boot_watchdog_timer_policy of this BiosPolicy. + BIOS Token for setting OS Watchdog Timer Policy configuration + + :param os_boot_watchdog_timer_policy: The os_boot_watchdog_timer_policy of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "do-nothing", "power-off", "reset"] + if os_boot_watchdog_timer_policy not in allowed_values: + raise ValueError( + "Invalid value for `os_boot_watchdog_timer_policy` ({0}), must be one of {1}" + .format(os_boot_watchdog_timer_policy, allowed_values) + ) + + self._os_boot_watchdog_timer_policy = os_boot_watchdog_timer_policy + + @property + def os_boot_watchdog_timer_timeout(self): + """ + Gets the os_boot_watchdog_timer_timeout of this BiosPolicy. + BIOS Token for setting OS Watchdog Timer Timeout configuration + + :return: The os_boot_watchdog_timer_timeout of this BiosPolicy. + :rtype: str + """ + return self._os_boot_watchdog_timer_timeout + + @os_boot_watchdog_timer_timeout.setter + def os_boot_watchdog_timer_timeout(self, os_boot_watchdog_timer_timeout): + """ + Sets the os_boot_watchdog_timer_timeout of this BiosPolicy. + BIOS Token for setting OS Watchdog Timer Timeout configuration + + :param os_boot_watchdog_timer_timeout: The os_boot_watchdog_timer_timeout of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "10-minutes", "15-minutes", "20-minutes", "5-minutes"] + if os_boot_watchdog_timer_timeout not in allowed_values: + raise ValueError( + "Invalid value for `os_boot_watchdog_timer_timeout` ({0}), must be one of {1}" + .format(os_boot_watchdog_timer_timeout, allowed_values) + ) + + self._os_boot_watchdog_timer_timeout = os_boot_watchdog_timer_timeout + + @property + def out_of_band_mgmt_port(self): + """ + Gets the out_of_band_mgmt_port of this BiosPolicy. + BIOS Token for setting Out-of-Band Mgmt Port configuration + + :return: The out_of_band_mgmt_port of this BiosPolicy. + :rtype: str + """ + return self._out_of_band_mgmt_port + + @out_of_band_mgmt_port.setter + def out_of_band_mgmt_port(self, out_of_band_mgmt_port): + """ + Sets the out_of_band_mgmt_port of this BiosPolicy. + BIOS Token for setting Out-of-Band Mgmt Port configuration + + :param out_of_band_mgmt_port: The out_of_band_mgmt_port of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if out_of_band_mgmt_port not in allowed_values: + raise ValueError( + "Invalid value for `out_of_band_mgmt_port` ({0}), must be one of {1}" + .format(out_of_band_mgmt_port, allowed_values) + ) + + self._out_of_band_mgmt_port = out_of_band_mgmt_port + + @property + def package_cstate_limit(self): + """ + Gets the package_cstate_limit of this BiosPolicy. + BIOS Token for setting Package C State Limit configuration + + :return: The package_cstate_limit of this BiosPolicy. + :rtype: str + """ + return self._package_cstate_limit + + @package_cstate_limit.setter + def package_cstate_limit(self, package_cstate_limit): + """ + Sets the package_cstate_limit of this BiosPolicy. + BIOS Token for setting Package C State Limit configuration + + :param package_cstate_limit: The package_cstate_limit of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "C0 C1 State", "C0/C1", "C2", "C6 Non Retention", "C6 Retention", "No Limit"] + if package_cstate_limit not in allowed_values: + raise ValueError( + "Invalid value for `package_cstate_limit` ({0}), must be one of {1}" + .format(package_cstate_limit, allowed_values) + ) + + self._package_cstate_limit = package_cstate_limit + + @property + def patrol_scrub(self): + """ + Gets the patrol_scrub of this BiosPolicy. + BIOS Token for setting Patrol Scrub configuration + + :return: The patrol_scrub of this BiosPolicy. + :rtype: str + """ + return self._patrol_scrub + + @patrol_scrub.setter + def patrol_scrub(self, patrol_scrub): + """ + Sets the patrol_scrub of this BiosPolicy. + BIOS Token for setting Patrol Scrub configuration + + :param patrol_scrub: The patrol_scrub of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if patrol_scrub not in allowed_values: + raise ValueError( + "Invalid value for `patrol_scrub` ({0}), must be one of {1}" + .format(patrol_scrub, allowed_values) + ) + + self._patrol_scrub = patrol_scrub + + @property + def patrol_scrub_duration(self): + """ + Gets the patrol_scrub_duration of this BiosPolicy. + BIOS Token for setting Patrol Scrub Interval configuration + + :return: The patrol_scrub_duration of this BiosPolicy. + :rtype: str + """ + return self._patrol_scrub_duration + + @patrol_scrub_duration.setter + def patrol_scrub_duration(self, patrol_scrub_duration): + """ + Sets the patrol_scrub_duration of this BiosPolicy. + BIOS Token for setting Patrol Scrub Interval configuration + + :param patrol_scrub_duration: The patrol_scrub_duration of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if patrol_scrub_duration not in allowed_values: + raise ValueError( + "Invalid value for `patrol_scrub_duration` ({0}), must be one of {1}" + .format(patrol_scrub_duration, allowed_values) + ) + + self._patrol_scrub_duration = patrol_scrub_duration + + @property + def pc_ie_ssd_hot_plug_support(self): + """ + Gets the pc_ie_ssd_hot_plug_support of this BiosPolicy. + BIOS Token for setting NVMe SSD Hot-Plug Support configuration + + :return: The pc_ie_ssd_hot_plug_support of this BiosPolicy. + :rtype: str + """ + return self._pc_ie_ssd_hot_plug_support + + @pc_ie_ssd_hot_plug_support.setter + def pc_ie_ssd_hot_plug_support(self, pc_ie_ssd_hot_plug_support): + """ + Sets the pc_ie_ssd_hot_plug_support of this BiosPolicy. + BIOS Token for setting NVMe SSD Hot-Plug Support configuration + + :param pc_ie_ssd_hot_plug_support: The pc_ie_ssd_hot_plug_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if pc_ie_ssd_hot_plug_support not in allowed_values: + raise ValueError( + "Invalid value for `pc_ie_ssd_hot_plug_support` ({0}), must be one of {1}" + .format(pc_ie_ssd_hot_plug_support, allowed_values) + ) + + self._pc_ie_ssd_hot_plug_support = pc_ie_ssd_hot_plug_support + + @property + def pch_usb30mode(self): + """ + Gets the pch_usb30mode of this BiosPolicy. + BIOS Token for setting xHCI Mode configuration + + :return: The pch_usb30mode of this BiosPolicy. + :rtype: str + """ + return self._pch_usb30mode + + @pch_usb30mode.setter + def pch_usb30mode(self, pch_usb30mode): + """ + Sets the pch_usb30mode of this BiosPolicy. + BIOS Token for setting xHCI Mode configuration + + :param pch_usb30mode: The pch_usb30mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if pch_usb30mode not in allowed_values: + raise ValueError( + "Invalid value for `pch_usb30mode` ({0}), must be one of {1}" + .format(pch_usb30mode, allowed_values) + ) + + self._pch_usb30mode = pch_usb30mode + + @property + def pci_option_ro_ms(self): + """ + Gets the pci_option_ro_ms of this BiosPolicy. + BIOS Token for setting All PCIe Slots OptionROM configuration + + :return: The pci_option_ro_ms of this BiosPolicy. + :rtype: str + """ + return self._pci_option_ro_ms + + @pci_option_ro_ms.setter + def pci_option_ro_ms(self, pci_option_ro_ms): + """ + Sets the pci_option_ro_ms of this BiosPolicy. + BIOS Token for setting All PCIe Slots OptionROM configuration + + :param pci_option_ro_ms: The pci_option_ro_ms of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if pci_option_ro_ms not in allowed_values: + raise ValueError( + "Invalid value for `pci_option_ro_ms` ({0}), must be one of {1}" + .format(pci_option_ro_ms, allowed_values) + ) + + self._pci_option_ro_ms = pci_option_ro_ms + + @property + def pci_rom_clp(self): + """ + Gets the pci_rom_clp of this BiosPolicy. + BIOS Token for setting PCI ROM CLP configuration + + :return: The pci_rom_clp of this BiosPolicy. + :rtype: str + """ + return self._pci_rom_clp + + @pci_rom_clp.setter + def pci_rom_clp(self, pci_rom_clp): + """ + Sets the pci_rom_clp of this BiosPolicy. + BIOS Token for setting PCI ROM CLP configuration + + :param pci_rom_clp: The pci_rom_clp of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if pci_rom_clp not in allowed_values: + raise ValueError( + "Invalid value for `pci_rom_clp` ({0}), must be one of {1}" + .format(pci_rom_clp, allowed_values) + ) + + self._pci_rom_clp = pci_rom_clp + + @property + def pop_support(self): + """ + Gets the pop_support of this BiosPolicy. + BIOS Token for setting Power ON Password Support configuration + + :return: The pop_support of this BiosPolicy. + :rtype: str + """ + return self._pop_support + + @pop_support.setter + def pop_support(self, pop_support): + """ + Sets the pop_support of this BiosPolicy. + BIOS Token for setting Power ON Password Support configuration + + :param pop_support: The pop_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if pop_support not in allowed_values: + raise ValueError( + "Invalid value for `pop_support` ({0}), must be one of {1}" + .format(pop_support, allowed_values) + ) + + self._pop_support = pop_support + + @property + def post_error_pause(self): + """ + Gets the post_error_pause of this BiosPolicy. + BIOS Token for setting POST Error Pause configuration + + :return: The post_error_pause of this BiosPolicy. + :rtype: str + """ + return self._post_error_pause + + @post_error_pause.setter + def post_error_pause(self, post_error_pause): + """ + Sets the post_error_pause of this BiosPolicy. + BIOS Token for setting POST Error Pause configuration + + :param post_error_pause: The post_error_pause of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if post_error_pause not in allowed_values: + raise ValueError( + "Invalid value for `post_error_pause` ({0}), must be one of {1}" + .format(post_error_pause, allowed_values) + ) + + self._post_error_pause = post_error_pause + + @property + def processor_c1e(self): + """ + Gets the processor_c1e of this BiosPolicy. + BIOS Token for setting Processor Power state C1 Enhanced configuration + + :return: The processor_c1e of this BiosPolicy. + :rtype: str + """ + return self._processor_c1e + + @processor_c1e.setter + def processor_c1e(self, processor_c1e): + """ + Sets the processor_c1e of this BiosPolicy. + BIOS Token for setting Processor Power state C1 Enhanced configuration + + :param processor_c1e: The processor_c1e of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if processor_c1e not in allowed_values: + raise ValueError( + "Invalid value for `processor_c1e` ({0}), must be one of {1}" + .format(processor_c1e, allowed_values) + ) + + self._processor_c1e = processor_c1e + + @property + def processor_c3report(self): + """ + Gets the processor_c3report of this BiosPolicy. + BIOS Token for setting Processor C3 Report configuration + + :return: The processor_c3report of this BiosPolicy. + :rtype: str + """ + return self._processor_c3report + + @processor_c3report.setter + def processor_c3report(self, processor_c3report): + """ + Sets the processor_c3report of this BiosPolicy. + BIOS Token for setting Processor C3 Report configuration + + :param processor_c3report: The processor_c3report of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if processor_c3report not in allowed_values: + raise ValueError( + "Invalid value for `processor_c3report` ({0}), must be one of {1}" + .format(processor_c3report, allowed_values) + ) + + self._processor_c3report = processor_c3report + + @property + def processor_c6report(self): + """ + Gets the processor_c6report of this BiosPolicy. + BIOS Token for setting Processor Power state C6 configuration + + :return: The processor_c6report of this BiosPolicy. + :rtype: str + """ + return self._processor_c6report + + @processor_c6report.setter + def processor_c6report(self, processor_c6report): + """ + Sets the processor_c6report of this BiosPolicy. + BIOS Token for setting Processor Power state C6 configuration + + :param processor_c6report: The processor_c6report of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if processor_c6report not in allowed_values: + raise ValueError( + "Invalid value for `processor_c6report` ({0}), must be one of {1}" + .format(processor_c6report, allowed_values) + ) + + self._processor_c6report = processor_c6report + + @property + def processor_cstate(self): + """ + Gets the processor_cstate of this BiosPolicy. + BIOS Token for setting CPU C State configuration + + :return: The processor_cstate of this BiosPolicy. + :rtype: str + """ + return self._processor_cstate + + @processor_cstate.setter + def processor_cstate(self, processor_cstate): + """ + Sets the processor_cstate of this BiosPolicy. + BIOS Token for setting CPU C State configuration + + :param processor_cstate: The processor_cstate of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if processor_cstate not in allowed_values: + raise ValueError( + "Invalid value for `processor_cstate` ({0}), must be one of {1}" + .format(processor_cstate, allowed_values) + ) + + self._processor_cstate = processor_cstate + + @property + def profiles(self): + """ + Gets the profiles of this BiosPolicy. + Relationship to the profile objects + + :return: The profiles of this BiosPolicy. + :rtype: list[PolicyAbstractConfigProfileRef] + """ + return self._profiles + + @profiles.setter + def profiles(self, profiles): + """ + Sets the profiles of this BiosPolicy. + Relationship to the profile objects + + :param profiles: The profiles of this BiosPolicy. + :type: list[PolicyAbstractConfigProfileRef] + """ + + self._profiles = profiles + + @property + def psata(self): + """ + Gets the psata of this BiosPolicy. + BIOS Token for setting P-SATA mode configuration + + :return: The psata of this BiosPolicy. + :rtype: str + """ + return self._psata + + @psata.setter + def psata(self, psata): + """ + Sets the psata of this BiosPolicy. + BIOS Token for setting P-SATA mode configuration + + :param psata: The psata of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "AHCI", "Disabled", "LSI SW RAID"] + if psata not in allowed_values: + raise ValueError( + "Invalid value for `psata` ({0}), must be one of {1}" + .format(psata, allowed_values) + ) + + self._psata = psata + + @property + def pstate_coord_type(self): + """ + Gets the pstate_coord_type of this BiosPolicy. + BIOS Token for setting P-STATE Coordination configuration + + :return: The pstate_coord_type of this BiosPolicy. + :rtype: str + """ + return self._pstate_coord_type + + @pstate_coord_type.setter + def pstate_coord_type(self, pstate_coord_type): + """ + Sets the pstate_coord_type of this BiosPolicy. + BIOS Token for setting P-STATE Coordination configuration + + :param pstate_coord_type: The pstate_coord_type of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "HW ALL", "SW ALL", "SW ANY"] + if pstate_coord_type not in allowed_values: + raise ValueError( + "Invalid value for `pstate_coord_type` ({0}), must be one of {1}" + .format(pstate_coord_type, allowed_values) + ) + + self._pstate_coord_type = pstate_coord_type + + @property + def putty_key_pad(self): + """ + Gets the putty_key_pad of this BiosPolicy. + BIOS Token for setting Putty KeyPad configuration + + :return: The putty_key_pad of this BiosPolicy. + :rtype: str + """ + return self._putty_key_pad + + @putty_key_pad.setter + def putty_key_pad(self, putty_key_pad): + """ + Sets the putty_key_pad of this BiosPolicy. + BIOS Token for setting Putty KeyPad configuration + + :param putty_key_pad: The putty_key_pad of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "ESCN", "LINUX", "SCO", "VT100", "VT400", "XTERMR6"] + if putty_key_pad not in allowed_values: + raise ValueError( + "Invalid value for `putty_key_pad` ({0}), must be one of {1}" + .format(putty_key_pad, allowed_values) + ) + + self._putty_key_pad = putty_key_pad + + @property + def pwr_perf_tuning(self): + """ + Gets the pwr_perf_tuning of this BiosPolicy. + BIOS Token for setting Energy Performance Tuning configuration + + :return: The pwr_perf_tuning of this BiosPolicy. + :rtype: str + """ + return self._pwr_perf_tuning + + @pwr_perf_tuning.setter + def pwr_perf_tuning(self, pwr_perf_tuning): + """ + Sets the pwr_perf_tuning of this BiosPolicy. + BIOS Token for setting Energy Performance Tuning configuration + + :param pwr_perf_tuning: The pwr_perf_tuning of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "bios", "os"] + if pwr_perf_tuning not in allowed_values: + raise ValueError( + "Invalid value for `pwr_perf_tuning` ({0}), must be one of {1}" + .format(pwr_perf_tuning, allowed_values) + ) + + self._pwr_perf_tuning = pwr_perf_tuning + + @property + def qpi_link_frequency(self): + """ + Gets the qpi_link_frequency of this BiosPolicy. + BIOS Token for setting QPI Link Frequency Select configuration + + :return: The qpi_link_frequency of this BiosPolicy. + :rtype: str + """ + return self._qpi_link_frequency + + @qpi_link_frequency.setter + def qpi_link_frequency(self, qpi_link_frequency): + """ + Sets the qpi_link_frequency of this BiosPolicy. + BIOS Token for setting QPI Link Frequency Select configuration + + :param qpi_link_frequency: The qpi_link_frequency of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "6.4-gt/s", "7.2-gt/s", "8.0-gt/s", "auto"] + if qpi_link_frequency not in allowed_values: + raise ValueError( + "Invalid value for `qpi_link_frequency` ({0}), must be one of {1}" + .format(qpi_link_frequency, allowed_values) + ) + + self._qpi_link_frequency = qpi_link_frequency + + @property + def qpi_snoop_mode(self): + """ + Gets the qpi_snoop_mode of this BiosPolicy. + BIOS Token for setting QPI Snoop Mode configuration + + :return: The qpi_snoop_mode of this BiosPolicy. + :rtype: str + """ + return self._qpi_snoop_mode + + @qpi_snoop_mode.setter + def qpi_snoop_mode(self, qpi_snoop_mode): + """ + Sets the qpi_snoop_mode of this BiosPolicy. + BIOS Token for setting QPI Snoop Mode configuration + + :param qpi_snoop_mode: The qpi_snoop_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "auto", "cluster-on-die", "early-snoop", "home-directory-snoop", "home-directory-snoop-with-osb", "home-snoop"] + if qpi_snoop_mode not in allowed_values: + raise ValueError( + "Invalid value for `qpi_snoop_mode` ({0}), must be one of {1}" + .format(qpi_snoop_mode, allowed_values) + ) + + self._qpi_snoop_mode = qpi_snoop_mode + + @property + def rank_inter_leave(self): + """ + Gets the rank_inter_leave of this BiosPolicy. + BIOS Token for setting Rank Interleaving configuration + + :return: The rank_inter_leave of this BiosPolicy. + :rtype: str + """ + return self._rank_inter_leave + + @rank_inter_leave.setter + def rank_inter_leave(self, rank_inter_leave): + """ + Sets the rank_inter_leave of this BiosPolicy. + BIOS Token for setting Rank Interleaving configuration + + :param rank_inter_leave: The rank_inter_leave of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1-way", "2-way", "4-way", "8-way", "auto"] + if rank_inter_leave not in allowed_values: + raise ValueError( + "Invalid value for `rank_inter_leave` ({0}), must be one of {1}" + .format(rank_inter_leave, allowed_values) + ) + + self._rank_inter_leave = rank_inter_leave + + @property + def redirection_after_post(self): + """ + Gets the redirection_after_post of this BiosPolicy. + BIOS Token for setting Redirection After BIOS POST configuration + + :return: The redirection_after_post of this BiosPolicy. + :rtype: str + """ + return self._redirection_after_post + + @redirection_after_post.setter + def redirection_after_post(self, redirection_after_post): + """ + Sets the redirection_after_post of this BiosPolicy. + BIOS Token for setting Redirection After BIOS POST configuration + + :param redirection_after_post: The redirection_after_post of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Always Enable", "Bootloader"] + if redirection_after_post not in allowed_values: + raise ValueError( + "Invalid value for `redirection_after_post` ({0}), must be one of {1}" + .format(redirection_after_post, allowed_values) + ) + + self._redirection_after_post = redirection_after_post + + @property + def sata_mode_select(self): + """ + Gets the sata_mode_select of this BiosPolicy. + BIOS Token for setting PCH SATA Mode configuration + + :return: The sata_mode_select of this BiosPolicy. + :rtype: str + """ + return self._sata_mode_select + + @sata_mode_select.setter + def sata_mode_select(self, sata_mode_select): + """ + Sets the sata_mode_select of this BiosPolicy. + BIOS Token for setting PCH SATA Mode configuration + + :param sata_mode_select: The sata_mode_select of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "AHCI", "Disabled", "LSI SW RAID"] + if sata_mode_select not in allowed_values: + raise ValueError( + "Invalid value for `sata_mode_select` ({0}), must be one of {1}" + .format(sata_mode_select, allowed_values) + ) + + self._sata_mode_select = sata_mode_select + + @property + def select_memory_ras_configuration(self): + """ + Gets the select_memory_ras_configuration of this BiosPolicy. + BIOS Token for setting Select Memory RAS configuration + + :return: The select_memory_ras_configuration of this BiosPolicy. + :rtype: str + """ + return self._select_memory_ras_configuration + + @select_memory_ras_configuration.setter + def select_memory_ras_configuration(self, select_memory_ras_configuration): + """ + Sets the select_memory_ras_configuration of this BiosPolicy. + BIOS Token for setting Select Memory RAS configuration + + :param select_memory_ras_configuration: The select_memory_ras_configuration of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "lockstep", "maximum-performance", "mirror-mode-1lm", "mirroring", "sparing"] + if select_memory_ras_configuration not in allowed_values: + raise ValueError( + "Invalid value for `select_memory_ras_configuration` ({0}), must be one of {1}" + .format(select_memory_ras_configuration, allowed_values) + ) + + self._select_memory_ras_configuration = select_memory_ras_configuration + + @property + def serial_port_aenable(self): + """ + Gets the serial_port_aenable of this BiosPolicy. + BIOS Token for setting Serial A Enable configuration + + :return: The serial_port_aenable of this BiosPolicy. + :rtype: str + """ + return self._serial_port_aenable + + @serial_port_aenable.setter + def serial_port_aenable(self, serial_port_aenable): + """ + Sets the serial_port_aenable of this BiosPolicy. + BIOS Token for setting Serial A Enable configuration + + :param serial_port_aenable: The serial_port_aenable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if serial_port_aenable not in allowed_values: + raise ValueError( + "Invalid value for `serial_port_aenable` ({0}), must be one of {1}" + .format(serial_port_aenable, allowed_values) + ) + + self._serial_port_aenable = serial_port_aenable + + @property + def single_pctl_enable(self): + """ + Gets the single_pctl_enable of this BiosPolicy. + BIOS Token for setting SINGLE_PCTL configuration + + :return: The single_pctl_enable of this BiosPolicy. + :rtype: str + """ + return self._single_pctl_enable + + @single_pctl_enable.setter + def single_pctl_enable(self, single_pctl_enable): + """ + Sets the single_pctl_enable of this BiosPolicy. + BIOS Token for setting SINGLE_PCTL configuration + + :param single_pctl_enable: The single_pctl_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "No", "Yes"] + if single_pctl_enable not in allowed_values: + raise ValueError( + "Invalid value for `single_pctl_enable` ({0}), must be one of {1}" + .format(single_pctl_enable, allowed_values) + ) + + self._single_pctl_enable = single_pctl_enable + + @property + def slot10link_speed(self): + """ + Gets the slot10link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:10 Link Speed configuration + + :return: The slot10link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot10link_speed + + @slot10link_speed.setter + def slot10link_speed(self, slot10link_speed): + """ + Sets the slot10link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:10 Link Speed configuration + + :param slot10link_speed: The slot10link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot10link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot10link_speed` ({0}), must be one of {1}" + .format(slot10link_speed, allowed_values) + ) + + self._slot10link_speed = slot10link_speed + + @property + def slot10state(self): + """ + Gets the slot10state of this BiosPolicy. + BIOS Token for setting PCIe Slot:10 OptionROM configuration + + :return: The slot10state of this BiosPolicy. + :rtype: str + """ + return self._slot10state + + @slot10state.setter + def slot10state(self, slot10state): + """ + Sets the slot10state of this BiosPolicy. + BIOS Token for setting PCIe Slot:10 OptionROM configuration + + :param slot10state: The slot10state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot10state not in allowed_values: + raise ValueError( + "Invalid value for `slot10state` ({0}), must be one of {1}" + .format(slot10state, allowed_values) + ) + + self._slot10state = slot10state + + @property + def slot11link_speed(self): + """ + Gets the slot11link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:11 Link Speed configuration + + :return: The slot11link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot11link_speed + + @slot11link_speed.setter + def slot11link_speed(self, slot11link_speed): + """ + Sets the slot11link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:11 Link Speed configuration + + :param slot11link_speed: The slot11link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot11link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot11link_speed` ({0}), must be one of {1}" + .format(slot11link_speed, allowed_values) + ) + + self._slot11link_speed = slot11link_speed + + @property + def slot11state(self): + """ + Gets the slot11state of this BiosPolicy. + BIOS Token for setting Slot 11 state configuration + + :return: The slot11state of this BiosPolicy. + :rtype: str + """ + return self._slot11state + + @slot11state.setter + def slot11state(self, slot11state): + """ + Sets the slot11state of this BiosPolicy. + BIOS Token for setting Slot 11 state configuration + + :param slot11state: The slot11state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot11state not in allowed_values: + raise ValueError( + "Invalid value for `slot11state` ({0}), must be one of {1}" + .format(slot11state, allowed_values) + ) + + self._slot11state = slot11state + + @property + def slot12link_speed(self): + """ + Gets the slot12link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:12 Link Speed configuration + + :return: The slot12link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot12link_speed + + @slot12link_speed.setter + def slot12link_speed(self, slot12link_speed): + """ + Sets the slot12link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:12 Link Speed configuration + + :param slot12link_speed: The slot12link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot12link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot12link_speed` ({0}), must be one of {1}" + .format(slot12link_speed, allowed_values) + ) + + self._slot12link_speed = slot12link_speed + + @property + def slot12state(self): + """ + Gets the slot12state of this BiosPolicy. + BIOS Token for setting Slot 12 state configuration + + :return: The slot12state of this BiosPolicy. + :rtype: str + """ + return self._slot12state + + @slot12state.setter + def slot12state(self, slot12state): + """ + Sets the slot12state of this BiosPolicy. + BIOS Token for setting Slot 12 state configuration + + :param slot12state: The slot12state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot12state not in allowed_values: + raise ValueError( + "Invalid value for `slot12state` ({0}), must be one of {1}" + .format(slot12state, allowed_values) + ) + + self._slot12state = slot12state + + @property + def slot1link_speed(self): + """ + Gets the slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:1 Link Speed configuration + + :return: The slot1link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot1link_speed + + @slot1link_speed.setter + def slot1link_speed(self, slot1link_speed): + """ + Sets the slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:1 Link Speed configuration + + :param slot1link_speed: The slot1link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot1link_speed` ({0}), must be one of {1}" + .format(slot1link_speed, allowed_values) + ) + + self._slot1link_speed = slot1link_speed + + @property + def slot1state(self): + """ + Gets the slot1state of this BiosPolicy. + BIOS Token for setting PCIe Slot:1 OptionROM configuration + + :return: The slot1state of this BiosPolicy. + :rtype: str + """ + return self._slot1state + + @slot1state.setter + def slot1state(self, slot1state): + """ + Sets the slot1state of this BiosPolicy. + BIOS Token for setting PCIe Slot:1 OptionROM configuration + + :param slot1state: The slot1state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot1state not in allowed_values: + raise ValueError( + "Invalid value for `slot1state` ({0}), must be one of {1}" + .format(slot1state, allowed_values) + ) + + self._slot1state = slot1state + + @property + def slot2link_speed(self): + """ + Gets the slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:2 Link Speed configuration + + :return: The slot2link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot2link_speed + + @slot2link_speed.setter + def slot2link_speed(self, slot2link_speed): + """ + Sets the slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:2 Link Speed configuration + + :param slot2link_speed: The slot2link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot2link_speed` ({0}), must be one of {1}" + .format(slot2link_speed, allowed_values) + ) + + self._slot2link_speed = slot2link_speed + + @property + def slot2state(self): + """ + Gets the slot2state of this BiosPolicy. + BIOS Token for setting PCIe Slot:2 OptionROM configuration + + :return: The slot2state of this BiosPolicy. + :rtype: str + """ + return self._slot2state + + @slot2state.setter + def slot2state(self, slot2state): + """ + Sets the slot2state of this BiosPolicy. + BIOS Token for setting PCIe Slot:2 OptionROM configuration + + :param slot2state: The slot2state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot2state not in allowed_values: + raise ValueError( + "Invalid value for `slot2state` ({0}), must be one of {1}" + .format(slot2state, allowed_values) + ) + + self._slot2state = slot2state + + @property + def slot3link_speed(self): + """ + Gets the slot3link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:3 Link Speed configuration + + :return: The slot3link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot3link_speed + + @slot3link_speed.setter + def slot3link_speed(self, slot3link_speed): + """ + Sets the slot3link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:3 Link Speed configuration + + :param slot3link_speed: The slot3link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot3link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot3link_speed` ({0}), must be one of {1}" + .format(slot3link_speed, allowed_values) + ) + + self._slot3link_speed = slot3link_speed + + @property + def slot3state(self): + """ + Gets the slot3state of this BiosPolicy. + BIOS Token for setting PCIe Slot:3 OptionROM configuration + + :return: The slot3state of this BiosPolicy. + :rtype: str + """ + return self._slot3state + + @slot3state.setter + def slot3state(self, slot3state): + """ + Sets the slot3state of this BiosPolicy. + BIOS Token for setting PCIe Slot:3 OptionROM configuration + + :param slot3state: The slot3state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot3state not in allowed_values: + raise ValueError( + "Invalid value for `slot3state` ({0}), must be one of {1}" + .format(slot3state, allowed_values) + ) + + self._slot3state = slot3state + + @property + def slot4link_speed(self): + """ + Gets the slot4link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:4 Link Speed configuration + + :return: The slot4link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot4link_speed + + @slot4link_speed.setter + def slot4link_speed(self, slot4link_speed): + """ + Sets the slot4link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:4 Link Speed configuration + + :param slot4link_speed: The slot4link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot4link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot4link_speed` ({0}), must be one of {1}" + .format(slot4link_speed, allowed_values) + ) + + self._slot4link_speed = slot4link_speed + + @property + def slot4state(self): + """ + Gets the slot4state of this BiosPolicy. + BIOS Token for setting PCIe Slot:4 OptionROM configuration + + :return: The slot4state of this BiosPolicy. + :rtype: str + """ + return self._slot4state + + @slot4state.setter + def slot4state(self, slot4state): + """ + Sets the slot4state of this BiosPolicy. + BIOS Token for setting PCIe Slot:4 OptionROM configuration + + :param slot4state: The slot4state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot4state not in allowed_values: + raise ValueError( + "Invalid value for `slot4state` ({0}), must be one of {1}" + .format(slot4state, allowed_values) + ) + + self._slot4state = slot4state + + @property + def slot5link_speed(self): + """ + Gets the slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:5 Link Speed configuration + + :return: The slot5link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot5link_speed + + @slot5link_speed.setter + def slot5link_speed(self, slot5link_speed): + """ + Sets the slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:5 Link Speed configuration + + :param slot5link_speed: The slot5link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot5link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot5link_speed` ({0}), must be one of {1}" + .format(slot5link_speed, allowed_values) + ) + + self._slot5link_speed = slot5link_speed + + @property + def slot5state(self): + """ + Gets the slot5state of this BiosPolicy. + BIOS Token for setting PCIe Slot:5 OptionROM configuration + + :return: The slot5state of this BiosPolicy. + :rtype: str + """ + return self._slot5state + + @slot5state.setter + def slot5state(self, slot5state): + """ + Sets the slot5state of this BiosPolicy. + BIOS Token for setting PCIe Slot:5 OptionROM configuration + + :param slot5state: The slot5state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot5state not in allowed_values: + raise ValueError( + "Invalid value for `slot5state` ({0}), must be one of {1}" + .format(slot5state, allowed_values) + ) + + self._slot5state = slot5state + + @property + def slot6link_speed(self): + """ + Gets the slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:6 Link Speed configuration + + :return: The slot6link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot6link_speed + + @slot6link_speed.setter + def slot6link_speed(self, slot6link_speed): + """ + Sets the slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:6 Link Speed configuration + + :param slot6link_speed: The slot6link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot6link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot6link_speed` ({0}), must be one of {1}" + .format(slot6link_speed, allowed_values) + ) + + self._slot6link_speed = slot6link_speed + + @property + def slot6state(self): + """ + Gets the slot6state of this BiosPolicy. + BIOS Token for setting PCIe Slot:6 OptionROM configuration + + :return: The slot6state of this BiosPolicy. + :rtype: str + """ + return self._slot6state + + @slot6state.setter + def slot6state(self, slot6state): + """ + Sets the slot6state of this BiosPolicy. + BIOS Token for setting PCIe Slot:6 OptionROM configuration + + :param slot6state: The slot6state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot6state not in allowed_values: + raise ValueError( + "Invalid value for `slot6state` ({0}), must be one of {1}" + .format(slot6state, allowed_values) + ) + + self._slot6state = slot6state + + @property + def slot7link_speed(self): + """ + Gets the slot7link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:7 Link Speed configuration + + :return: The slot7link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot7link_speed + + @slot7link_speed.setter + def slot7link_speed(self, slot7link_speed): + """ + Sets the slot7link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:7 Link Speed configuration + + :param slot7link_speed: The slot7link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot7link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot7link_speed` ({0}), must be one of {1}" + .format(slot7link_speed, allowed_values) + ) + + self._slot7link_speed = slot7link_speed + + @property + def slot7state(self): + """ + Gets the slot7state of this BiosPolicy. + BIOS Token for setting PCIe Slot:7 OptionROM configuration + + :return: The slot7state of this BiosPolicy. + :rtype: str + """ + return self._slot7state + + @slot7state.setter + def slot7state(self, slot7state): + """ + Sets the slot7state of this BiosPolicy. + BIOS Token for setting PCIe Slot:7 OptionROM configuration + + :param slot7state: The slot7state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot7state not in allowed_values: + raise ValueError( + "Invalid value for `slot7state` ({0}), must be one of {1}" + .format(slot7state, allowed_values) + ) + + self._slot7state = slot7state + + @property + def slot8link_speed(self): + """ + Gets the slot8link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:8 Link Speed configuration + + :return: The slot8link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot8link_speed + + @slot8link_speed.setter + def slot8link_speed(self, slot8link_speed): + """ + Sets the slot8link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:8 Link Speed configuration + + :param slot8link_speed: The slot8link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot8link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot8link_speed` ({0}), must be one of {1}" + .format(slot8link_speed, allowed_values) + ) + + self._slot8link_speed = slot8link_speed + + @property + def slot8state(self): + """ + Gets the slot8state of this BiosPolicy. + BIOS Token for setting PCIe Slot:8 OptionROM configuration + + :return: The slot8state of this BiosPolicy. + :rtype: str + """ + return self._slot8state + + @slot8state.setter + def slot8state(self, slot8state): + """ + Sets the slot8state of this BiosPolicy. + BIOS Token for setting PCIe Slot:8 OptionROM configuration + + :param slot8state: The slot8state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot8state not in allowed_values: + raise ValueError( + "Invalid value for `slot8state` ({0}), must be one of {1}" + .format(slot8state, allowed_values) + ) + + self._slot8state = slot8state + + @property + def slot9link_speed(self): + """ + Gets the slot9link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:9 Link Speed configuration + + :return: The slot9link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot9link_speed + + @slot9link_speed.setter + def slot9link_speed(self, slot9link_speed): + """ + Sets the slot9link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:9 Link Speed configuration + + :param slot9link_speed: The slot9link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot9link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot9link_speed` ({0}), must be one of {1}" + .format(slot9link_speed, allowed_values) + ) + + self._slot9link_speed = slot9link_speed + + @property + def slot9state(self): + """ + Gets the slot9state of this BiosPolicy. + BIOS Token for setting PCIe Slot:9 OptionROM configuration + + :return: The slot9state of this BiosPolicy. + :rtype: str + """ + return self._slot9state + + @slot9state.setter + def slot9state(self, slot9state): + """ + Sets the slot9state of this BiosPolicy. + BIOS Token for setting PCIe Slot:9 OptionROM configuration + + :param slot9state: The slot9state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot9state not in allowed_values: + raise ValueError( + "Invalid value for `slot9state` ({0}), must be one of {1}" + .format(slot9state, allowed_values) + ) + + self._slot9state = slot9state + + @property + def slot_flom_link_speed(self): + """ + Gets the slot_flom_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:MLOM Link Speed configuration + + :return: The slot_flom_link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_flom_link_speed + + @slot_flom_link_speed.setter + def slot_flom_link_speed(self, slot_flom_link_speed): + """ + Sets the slot_flom_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:MLOM Link Speed configuration + + :param slot_flom_link_speed: The slot_flom_link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_flom_link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_flom_link_speed` ({0}), must be one of {1}" + .format(slot_flom_link_speed, allowed_values) + ) + + self._slot_flom_link_speed = slot_flom_link_speed + + @property + def slot_front_nvme1link_speed(self): + """ + Gets the slot_front_nvme1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front Nvme1 Link Speed configuration + + :return: The slot_front_nvme1link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_front_nvme1link_speed + + @slot_front_nvme1link_speed.setter + def slot_front_nvme1link_speed(self, slot_front_nvme1link_speed): + """ + Sets the slot_front_nvme1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front Nvme1 Link Speed configuration + + :param slot_front_nvme1link_speed: The slot_front_nvme1link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_front_nvme1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_front_nvme1link_speed` ({0}), must be one of {1}" + .format(slot_front_nvme1link_speed, allowed_values) + ) + + self._slot_front_nvme1link_speed = slot_front_nvme1link_speed + + @property + def slot_front_nvme2link_speed(self): + """ + Gets the slot_front_nvme2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front Nvme2 Link Speed configuration + + :return: The slot_front_nvme2link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_front_nvme2link_speed + + @slot_front_nvme2link_speed.setter + def slot_front_nvme2link_speed(self, slot_front_nvme2link_speed): + """ + Sets the slot_front_nvme2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front Nvme2 Link Speed configuration + + :param slot_front_nvme2link_speed: The slot_front_nvme2link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_front_nvme2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_front_nvme2link_speed` ({0}), must be one of {1}" + .format(slot_front_nvme2link_speed, allowed_values) + ) + + self._slot_front_nvme2link_speed = slot_front_nvme2link_speed + + @property + def slot_front_slot5link_speed(self): + """ + Gets the slot_front_slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front1 Link Speed configuration + + :return: The slot_front_slot5link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_front_slot5link_speed + + @slot_front_slot5link_speed.setter + def slot_front_slot5link_speed(self, slot_front_slot5link_speed): + """ + Sets the slot_front_slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front1 Link Speed configuration + + :param slot_front_slot5link_speed: The slot_front_slot5link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_front_slot5link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_front_slot5link_speed` ({0}), must be one of {1}" + .format(slot_front_slot5link_speed, allowed_values) + ) + + self._slot_front_slot5link_speed = slot_front_slot5link_speed + + @property + def slot_front_slot6link_speed(self): + """ + Gets the slot_front_slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front2 Link Speed configuration + + :return: The slot_front_slot6link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_front_slot6link_speed + + @slot_front_slot6link_speed.setter + def slot_front_slot6link_speed(self, slot_front_slot6link_speed): + """ + Sets the slot_front_slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front2 Link Speed configuration + + :param slot_front_slot6link_speed: The slot_front_slot6link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_front_slot6link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_front_slot6link_speed` ({0}), must be one of {1}" + .format(slot_front_slot6link_speed, allowed_values) + ) + + self._slot_front_slot6link_speed = slot_front_slot6link_speed + + @property + def slot_hba_link_speed(self): + """ + Gets the slot_hba_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:HBA Link Speed configuration + + :return: The slot_hba_link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_hba_link_speed + + @slot_hba_link_speed.setter + def slot_hba_link_speed(self, slot_hba_link_speed): + """ + Sets the slot_hba_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:HBA Link Speed configuration + + :param slot_hba_link_speed: The slot_hba_link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_hba_link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_hba_link_speed` ({0}), must be one of {1}" + .format(slot_hba_link_speed, allowed_values) + ) + + self._slot_hba_link_speed = slot_hba_link_speed + + @property + def slot_hba_state(self): + """ + Gets the slot_hba_state of this BiosPolicy. + BIOS Token for setting PCIe Slot:HBA OptionROM configuration + + :return: The slot_hba_state of this BiosPolicy. + :rtype: str + """ + return self._slot_hba_state + + @slot_hba_state.setter + def slot_hba_state(self, slot_hba_state): + """ + Sets the slot_hba_state of this BiosPolicy. + BIOS Token for setting PCIe Slot:HBA OptionROM configuration + + :param slot_hba_state: The slot_hba_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_hba_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_hba_state` ({0}), must be one of {1}" + .format(slot_hba_state, allowed_values) + ) + + self._slot_hba_state = slot_hba_state + + @property + def slot_mezz_state(self): + """ + Gets the slot_mezz_state of this BiosPolicy. + BIOS Token for setting PCIe Mezzanine OptionROM configuration + + :return: The slot_mezz_state of this BiosPolicy. + :rtype: str + """ + return self._slot_mezz_state + + @slot_mezz_state.setter + def slot_mezz_state(self, slot_mezz_state): + """ + Sets the slot_mezz_state of this BiosPolicy. + BIOS Token for setting PCIe Mezzanine OptionROM configuration + + :param slot_mezz_state: The slot_mezz_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_mezz_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_mezz_state` ({0}), must be one of {1}" + .format(slot_mezz_state, allowed_values) + ) + + self._slot_mezz_state = slot_mezz_state + + @property + def slot_mlom_link_speed(self): + """ + Gets the slot_mlom_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:MLOM Link Speed configuration + + :return: The slot_mlom_link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_mlom_link_speed + + @slot_mlom_link_speed.setter + def slot_mlom_link_speed(self, slot_mlom_link_speed): + """ + Sets the slot_mlom_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:MLOM Link Speed configuration + + :param slot_mlom_link_speed: The slot_mlom_link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_mlom_link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_mlom_link_speed` ({0}), must be one of {1}" + .format(slot_mlom_link_speed, allowed_values) + ) + + self._slot_mlom_link_speed = slot_mlom_link_speed + + @property + def slot_mlom_state(self): + """ + Gets the slot_mlom_state of this BiosPolicy. + BIOS Token for setting PCIe Slot:MLOM OptionROM configuration + + :return: The slot_mlom_state of this BiosPolicy. + :rtype: str + """ + return self._slot_mlom_state + + @slot_mlom_state.setter + def slot_mlom_state(self, slot_mlom_state): + """ + Sets the slot_mlom_state of this BiosPolicy. + BIOS Token for setting PCIe Slot:MLOM OptionROM configuration + + :param slot_mlom_state: The slot_mlom_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_mlom_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_mlom_state` ({0}), must be one of {1}" + .format(slot_mlom_state, allowed_values) + ) + + self._slot_mlom_state = slot_mlom_state + + @property + def slot_mraid_link_speed(self): + """ + Gets the slot_mraid_link_speed of this BiosPolicy. + BIOS Token for setting MRAID Link Speed configuration + + :return: The slot_mraid_link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_mraid_link_speed + + @slot_mraid_link_speed.setter + def slot_mraid_link_speed(self, slot_mraid_link_speed): + """ + Sets the slot_mraid_link_speed of this BiosPolicy. + BIOS Token for setting MRAID Link Speed configuration + + :param slot_mraid_link_speed: The slot_mraid_link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_mraid_link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_mraid_link_speed` ({0}), must be one of {1}" + .format(slot_mraid_link_speed, allowed_values) + ) + + self._slot_mraid_link_speed = slot_mraid_link_speed + + @property + def slot_mraid_state(self): + """ + Gets the slot_mraid_state of this BiosPolicy. + BIOS Token for setting PCIe Slot MRAID OptionROM configuration + + :return: The slot_mraid_state of this BiosPolicy. + :rtype: str + """ + return self._slot_mraid_state + + @slot_mraid_state.setter + def slot_mraid_state(self, slot_mraid_state): + """ + Sets the slot_mraid_state of this BiosPolicy. + BIOS Token for setting PCIe Slot MRAID OptionROM configuration + + :param slot_mraid_state: The slot_mraid_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_mraid_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_mraid_state` ({0}), must be one of {1}" + .format(slot_mraid_state, allowed_values) + ) + + self._slot_mraid_state = slot_mraid_state + + @property + def slot_n10state(self): + """ + Gets the slot_n10state of this BiosPolicy. + BIOS Token for setting PCIe Slot N10 OptionROM configuration + + :return: The slot_n10state of this BiosPolicy. + :rtype: str + """ + return self._slot_n10state + + @slot_n10state.setter + def slot_n10state(self, slot_n10state): + """ + Sets the slot_n10state of this BiosPolicy. + BIOS Token for setting PCIe Slot N10 OptionROM configuration + + :param slot_n10state: The slot_n10state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n10state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n10state` ({0}), must be one of {1}" + .format(slot_n10state, allowed_values) + ) + + self._slot_n10state = slot_n10state + + @property + def slot_n11state(self): + """ + Gets the slot_n11state of this BiosPolicy. + BIOS Token for setting PCIe Slot N11 OptionROM configuration + + :return: The slot_n11state of this BiosPolicy. + :rtype: str + """ + return self._slot_n11state + + @slot_n11state.setter + def slot_n11state(self, slot_n11state): + """ + Sets the slot_n11state of this BiosPolicy. + BIOS Token for setting PCIe Slot N11 OptionROM configuration + + :param slot_n11state: The slot_n11state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n11state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n11state` ({0}), must be one of {1}" + .format(slot_n11state, allowed_values) + ) + + self._slot_n11state = slot_n11state + + @property + def slot_n12state(self): + """ + Gets the slot_n12state of this BiosPolicy. + BIOS Token for setting PCIe Slot N12 OptionROM configuration + + :return: The slot_n12state of this BiosPolicy. + :rtype: str + """ + return self._slot_n12state + + @slot_n12state.setter + def slot_n12state(self, slot_n12state): + """ + Sets the slot_n12state of this BiosPolicy. + BIOS Token for setting PCIe Slot N12 OptionROM configuration + + :param slot_n12state: The slot_n12state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n12state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n12state` ({0}), must be one of {1}" + .format(slot_n12state, allowed_values) + ) + + self._slot_n12state = slot_n12state + + @property + def slot_n13state(self): + """ + Gets the slot_n13state of this BiosPolicy. + BIOS Token for setting PCIe Slot N13 OptionROM configuration + + :return: The slot_n13state of this BiosPolicy. + :rtype: str + """ + return self._slot_n13state + + @slot_n13state.setter + def slot_n13state(self, slot_n13state): + """ + Sets the slot_n13state of this BiosPolicy. + BIOS Token for setting PCIe Slot N13 OptionROM configuration + + :param slot_n13state: The slot_n13state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n13state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n13state` ({0}), must be one of {1}" + .format(slot_n13state, allowed_values) + ) + + self._slot_n13state = slot_n13state + + @property + def slot_n14state(self): + """ + Gets the slot_n14state of this BiosPolicy. + BIOS Token for setting PCIe Slot N14 OptionROM configuration + + :return: The slot_n14state of this BiosPolicy. + :rtype: str + """ + return self._slot_n14state + + @slot_n14state.setter + def slot_n14state(self, slot_n14state): + """ + Sets the slot_n14state of this BiosPolicy. + BIOS Token for setting PCIe Slot N14 OptionROM configuration + + :param slot_n14state: The slot_n14state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n14state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n14state` ({0}), must be one of {1}" + .format(slot_n14state, allowed_values) + ) + + self._slot_n14state = slot_n14state + + @property + def slot_n15state(self): + """ + Gets the slot_n15state of this BiosPolicy. + BIOS Token for setting PCIe Slot N15 OptionROM configuration + + :return: The slot_n15state of this BiosPolicy. + :rtype: str + """ + return self._slot_n15state + + @slot_n15state.setter + def slot_n15state(self, slot_n15state): + """ + Sets the slot_n15state of this BiosPolicy. + BIOS Token for setting PCIe Slot N15 OptionROM configuration + + :param slot_n15state: The slot_n15state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n15state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n15state` ({0}), must be one of {1}" + .format(slot_n15state, allowed_values) + ) + + self._slot_n15state = slot_n15state + + @property + def slot_n16state(self): + """ + Gets the slot_n16state of this BiosPolicy. + BIOS Token for setting PCIe Slot N16 OptionROM configuration + + :return: The slot_n16state of this BiosPolicy. + :rtype: str + """ + return self._slot_n16state + + @slot_n16state.setter + def slot_n16state(self, slot_n16state): + """ + Sets the slot_n16state of this BiosPolicy. + BIOS Token for setting PCIe Slot N16 OptionROM configuration + + :param slot_n16state: The slot_n16state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n16state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n16state` ({0}), must be one of {1}" + .format(slot_n16state, allowed_values) + ) + + self._slot_n16state = slot_n16state + + @property + def slot_n17state(self): + """ + Gets the slot_n17state of this BiosPolicy. + BIOS Token for setting PCIe Slot N17 OptionROM configuration + + :return: The slot_n17state of this BiosPolicy. + :rtype: str + """ + return self._slot_n17state + + @slot_n17state.setter + def slot_n17state(self, slot_n17state): + """ + Sets the slot_n17state of this BiosPolicy. + BIOS Token for setting PCIe Slot N17 OptionROM configuration + + :param slot_n17state: The slot_n17state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n17state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n17state` ({0}), must be one of {1}" + .format(slot_n17state, allowed_values) + ) + + self._slot_n17state = slot_n17state + + @property + def slot_n18state(self): + """ + Gets the slot_n18state of this BiosPolicy. + BIOS Token for setting PCIe Slot N18 OptionROM configuration + + :return: The slot_n18state of this BiosPolicy. + :rtype: str + """ + return self._slot_n18state + + @slot_n18state.setter + def slot_n18state(self, slot_n18state): + """ + Sets the slot_n18state of this BiosPolicy. + BIOS Token for setting PCIe Slot N18 OptionROM configuration + + :param slot_n18state: The slot_n18state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n18state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n18state` ({0}), must be one of {1}" + .format(slot_n18state, allowed_values) + ) + + self._slot_n18state = slot_n18state + + @property + def slot_n19state(self): + """ + Gets the slot_n19state of this BiosPolicy. + BIOS Token for setting PCIe Slot N19 OptionROM configuration + + :return: The slot_n19state of this BiosPolicy. + :rtype: str + """ + return self._slot_n19state + + @slot_n19state.setter + def slot_n19state(self, slot_n19state): + """ + Sets the slot_n19state of this BiosPolicy. + BIOS Token for setting PCIe Slot N19 OptionROM configuration + + :param slot_n19state: The slot_n19state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n19state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n19state` ({0}), must be one of {1}" + .format(slot_n19state, allowed_values) + ) + + self._slot_n19state = slot_n19state + + @property + def slot_n1state(self): + """ + Gets the slot_n1state of this BiosPolicy. + BIOS Token for setting PCIe Slot:N1 OptionROM configuration + + :return: The slot_n1state of this BiosPolicy. + :rtype: str + """ + return self._slot_n1state + + @slot_n1state.setter + def slot_n1state(self, slot_n1state): + """ + Sets the slot_n1state of this BiosPolicy. + BIOS Token for setting PCIe Slot:N1 OptionROM configuration + + :param slot_n1state: The slot_n1state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_n1state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n1state` ({0}), must be one of {1}" + .format(slot_n1state, allowed_values) + ) + + self._slot_n1state = slot_n1state + + @property + def slot_n20state(self): + """ + Gets the slot_n20state of this BiosPolicy. + BIOS Token for setting PCIe Slot N20 OptionROM configuration + + :return: The slot_n20state of this BiosPolicy. + :rtype: str + """ + return self._slot_n20state + + @slot_n20state.setter + def slot_n20state(self, slot_n20state): + """ + Sets the slot_n20state of this BiosPolicy. + BIOS Token for setting PCIe Slot N20 OptionROM configuration + + :param slot_n20state: The slot_n20state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n20state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n20state` ({0}), must be one of {1}" + .format(slot_n20state, allowed_values) + ) + + self._slot_n20state = slot_n20state + + @property + def slot_n21state(self): + """ + Gets the slot_n21state of this BiosPolicy. + BIOS Token for setting PCIe Slot N21 OptionROM configuration + + :return: The slot_n21state of this BiosPolicy. + :rtype: str + """ + return self._slot_n21state + + @slot_n21state.setter + def slot_n21state(self, slot_n21state): + """ + Sets the slot_n21state of this BiosPolicy. + BIOS Token for setting PCIe Slot N21 OptionROM configuration + + :param slot_n21state: The slot_n21state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n21state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n21state` ({0}), must be one of {1}" + .format(slot_n21state, allowed_values) + ) + + self._slot_n21state = slot_n21state + + @property + def slot_n22state(self): + """ + Gets the slot_n22state of this BiosPolicy. + BIOS Token for setting PCIe Slot N22 OptionROM configuration + + :return: The slot_n22state of this BiosPolicy. + :rtype: str + """ + return self._slot_n22state + + @slot_n22state.setter + def slot_n22state(self, slot_n22state): + """ + Sets the slot_n22state of this BiosPolicy. + BIOS Token for setting PCIe Slot N22 OptionROM configuration + + :param slot_n22state: The slot_n22state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n22state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n22state` ({0}), must be one of {1}" + .format(slot_n22state, allowed_values) + ) + + self._slot_n22state = slot_n22state + + @property + def slot_n23state(self): + """ + Gets the slot_n23state of this BiosPolicy. + BIOS Token for setting PCIe Slot N23 OptionROM configuration + + :return: The slot_n23state of this BiosPolicy. + :rtype: str + """ + return self._slot_n23state + + @slot_n23state.setter + def slot_n23state(self, slot_n23state): + """ + Sets the slot_n23state of this BiosPolicy. + BIOS Token for setting PCIe Slot N23 OptionROM configuration + + :param slot_n23state: The slot_n23state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n23state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n23state` ({0}), must be one of {1}" + .format(slot_n23state, allowed_values) + ) + + self._slot_n23state = slot_n23state + + @property + def slot_n24state(self): + """ + Gets the slot_n24state of this BiosPolicy. + BIOS Token for setting PCIe Slot N24 OptionROM configuration + + :return: The slot_n24state of this BiosPolicy. + :rtype: str + """ + return self._slot_n24state + + @slot_n24state.setter + def slot_n24state(self, slot_n24state): + """ + Sets the slot_n24state of this BiosPolicy. + BIOS Token for setting PCIe Slot N24 OptionROM configuration + + :param slot_n24state: The slot_n24state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n24state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n24state` ({0}), must be one of {1}" + .format(slot_n24state, allowed_values) + ) + + self._slot_n24state = slot_n24state + + @property + def slot_n2state(self): + """ + Gets the slot_n2state of this BiosPolicy. + BIOS Token for setting PCIe Slot:N2 OptionROM configuration + + :return: The slot_n2state of this BiosPolicy. + :rtype: str + """ + return self._slot_n2state + + @slot_n2state.setter + def slot_n2state(self, slot_n2state): + """ + Sets the slot_n2state of this BiosPolicy. + BIOS Token for setting PCIe Slot:N2 OptionROM configuration + + :param slot_n2state: The slot_n2state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_n2state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n2state` ({0}), must be one of {1}" + .format(slot_n2state, allowed_values) + ) + + self._slot_n2state = slot_n2state + + @property + def slot_n3state(self): + """ + Gets the slot_n3state of this BiosPolicy. + BIOS Token for setting PCIe Slot N3 OptionROM configuration + + :return: The slot_n3state of this BiosPolicy. + :rtype: str + """ + return self._slot_n3state + + @slot_n3state.setter + def slot_n3state(self, slot_n3state): + """ + Sets the slot_n3state of this BiosPolicy. + BIOS Token for setting PCIe Slot N3 OptionROM configuration + + :param slot_n3state: The slot_n3state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n3state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n3state` ({0}), must be one of {1}" + .format(slot_n3state, allowed_values) + ) + + self._slot_n3state = slot_n3state + + @property + def slot_n4state(self): + """ + Gets the slot_n4state of this BiosPolicy. + BIOS Token for setting PCIe Slot N4 OptionROM configuration + + :return: The slot_n4state of this BiosPolicy. + :rtype: str + """ + return self._slot_n4state + + @slot_n4state.setter + def slot_n4state(self, slot_n4state): + """ + Sets the slot_n4state of this BiosPolicy. + BIOS Token for setting PCIe Slot N4 OptionROM configuration + + :param slot_n4state: The slot_n4state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n4state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n4state` ({0}), must be one of {1}" + .format(slot_n4state, allowed_values) + ) + + self._slot_n4state = slot_n4state + + @property + def slot_n5state(self): + """ + Gets the slot_n5state of this BiosPolicy. + BIOS Token for setting PCIe Slot N5 OptionROM configuration + + :return: The slot_n5state of this BiosPolicy. + :rtype: str + """ + return self._slot_n5state + + @slot_n5state.setter + def slot_n5state(self, slot_n5state): + """ + Sets the slot_n5state of this BiosPolicy. + BIOS Token for setting PCIe Slot N5 OptionROM configuration + + :param slot_n5state: The slot_n5state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n5state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n5state` ({0}), must be one of {1}" + .format(slot_n5state, allowed_values) + ) + + self._slot_n5state = slot_n5state + + @property + def slot_n6state(self): + """ + Gets the slot_n6state of this BiosPolicy. + BIOS Token for setting PCIe Slot N6 OptionROM configuration + + :return: The slot_n6state of this BiosPolicy. + :rtype: str + """ + return self._slot_n6state + + @slot_n6state.setter + def slot_n6state(self, slot_n6state): + """ + Sets the slot_n6state of this BiosPolicy. + BIOS Token for setting PCIe Slot N6 OptionROM configuration + + :param slot_n6state: The slot_n6state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n6state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n6state` ({0}), must be one of {1}" + .format(slot_n6state, allowed_values) + ) + + self._slot_n6state = slot_n6state + + @property + def slot_n7state(self): + """ + Gets the slot_n7state of this BiosPolicy. + BIOS Token for setting PCIe Slot N7 OptionROM configuration + + :return: The slot_n7state of this BiosPolicy. + :rtype: str + """ + return self._slot_n7state + + @slot_n7state.setter + def slot_n7state(self, slot_n7state): + """ + Sets the slot_n7state of this BiosPolicy. + BIOS Token for setting PCIe Slot N7 OptionROM configuration + + :param slot_n7state: The slot_n7state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n7state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n7state` ({0}), must be one of {1}" + .format(slot_n7state, allowed_values) + ) + + self._slot_n7state = slot_n7state + + @property + def slot_n8state(self): + """ + Gets the slot_n8state of this BiosPolicy. + BIOS Token for setting PCIe Slot N8 OptionROM configuration + + :return: The slot_n8state of this BiosPolicy. + :rtype: str + """ + return self._slot_n8state + + @slot_n8state.setter + def slot_n8state(self, slot_n8state): + """ + Sets the slot_n8state of this BiosPolicy. + BIOS Token for setting PCIe Slot N8 OptionROM configuration + + :param slot_n8state: The slot_n8state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n8state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n8state` ({0}), must be one of {1}" + .format(slot_n8state, allowed_values) + ) + + self._slot_n8state = slot_n8state + + @property + def slot_n9state(self): + """ + Gets the slot_n9state of this BiosPolicy. + BIOS Token for setting PCIe Slot N9 OptionROM configuration + + :return: The slot_n9state of this BiosPolicy. + :rtype: str + """ + return self._slot_n9state + + @slot_n9state.setter + def slot_n9state(self, slot_n9state): + """ + Sets the slot_n9state of this BiosPolicy. + BIOS Token for setting PCIe Slot N9 OptionROM configuration + + :param slot_n9state: The slot_n9state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n9state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n9state` ({0}), must be one of {1}" + .format(slot_n9state, allowed_values) + ) + + self._slot_n9state = slot_n9state + + @property + def slot_raid_link_speed(self): + """ + Gets the slot_raid_link_speed of this BiosPolicy. + BIOS Token for setting RAID Link Speed configuration + + :return: The slot_raid_link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_raid_link_speed + + @slot_raid_link_speed.setter + def slot_raid_link_speed(self, slot_raid_link_speed): + """ + Sets the slot_raid_link_speed of this BiosPolicy. + BIOS Token for setting RAID Link Speed configuration + + :param slot_raid_link_speed: The slot_raid_link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_raid_link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_raid_link_speed` ({0}), must be one of {1}" + .format(slot_raid_link_speed, allowed_values) + ) + + self._slot_raid_link_speed = slot_raid_link_speed + + @property + def slot_raid_state(self): + """ + Gets the slot_raid_state of this BiosPolicy. + BIOS Token for setting PCIe Slot RAID OptionROM configuration + + :return: The slot_raid_state of this BiosPolicy. + :rtype: str + """ + return self._slot_raid_state + + @slot_raid_state.setter + def slot_raid_state(self, slot_raid_state): + """ + Sets the slot_raid_state of this BiosPolicy. + BIOS Token for setting PCIe Slot RAID OptionROM configuration + + :param slot_raid_state: The slot_raid_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_raid_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_raid_state` ({0}), must be one of {1}" + .format(slot_raid_state, allowed_values) + ) + + self._slot_raid_state = slot_raid_state + + @property + def slot_rear_nvme1link_speed(self): + """ + Gets the slot_rear_nvme1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear Nvme1 Link Speed configuration + + :return: The slot_rear_nvme1link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme1link_speed + + @slot_rear_nvme1link_speed.setter + def slot_rear_nvme1link_speed(self, slot_rear_nvme1link_speed): + """ + Sets the slot_rear_nvme1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear Nvme1 Link Speed configuration + + :param slot_rear_nvme1link_speed: The slot_rear_nvme1link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_rear_nvme1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme1link_speed` ({0}), must be one of {1}" + .format(slot_rear_nvme1link_speed, allowed_values) + ) + + self._slot_rear_nvme1link_speed = slot_rear_nvme1link_speed + + @property + def slot_rear_nvme1state(self): + """ + Gets the slot_rear_nvme1state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 1 OptionRom configuration + + :return: The slot_rear_nvme1state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme1state + + @slot_rear_nvme1state.setter + def slot_rear_nvme1state(self, slot_rear_nvme1state): + """ + Sets the slot_rear_nvme1state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 1 OptionRom configuration + + :param slot_rear_nvme1state: The slot_rear_nvme1state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme1state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme1state` ({0}), must be one of {1}" + .format(slot_rear_nvme1state, allowed_values) + ) + + self._slot_rear_nvme1state = slot_rear_nvme1state + + @property + def slot_rear_nvme2link_speed(self): + """ + Gets the slot_rear_nvme2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear Nvme2 Link Speed configuration + + :return: The slot_rear_nvme2link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme2link_speed + + @slot_rear_nvme2link_speed.setter + def slot_rear_nvme2link_speed(self, slot_rear_nvme2link_speed): + """ + Sets the slot_rear_nvme2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear Nvme2 Link Speed configuration + + :param slot_rear_nvme2link_speed: The slot_rear_nvme2link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_rear_nvme2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme2link_speed` ({0}), must be one of {1}" + .format(slot_rear_nvme2link_speed, allowed_values) + ) + + self._slot_rear_nvme2link_speed = slot_rear_nvme2link_speed + + @property + def slot_rear_nvme2state(self): + """ + Gets the slot_rear_nvme2state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 2 OptionRom configuration + + :return: The slot_rear_nvme2state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme2state + + @slot_rear_nvme2state.setter + def slot_rear_nvme2state(self, slot_rear_nvme2state): + """ + Sets the slot_rear_nvme2state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 2 OptionRom configuration + + :param slot_rear_nvme2state: The slot_rear_nvme2state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme2state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme2state` ({0}), must be one of {1}" + .format(slot_rear_nvme2state, allowed_values) + ) + + self._slot_rear_nvme2state = slot_rear_nvme2state + + @property + def slot_rear_nvme3state(self): + """ + Gets the slot_rear_nvme3state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 3 OptionRom configuration + + :return: The slot_rear_nvme3state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme3state + + @slot_rear_nvme3state.setter + def slot_rear_nvme3state(self, slot_rear_nvme3state): + """ + Sets the slot_rear_nvme3state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 3 OptionRom configuration + + :param slot_rear_nvme3state: The slot_rear_nvme3state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme3state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme3state` ({0}), must be one of {1}" + .format(slot_rear_nvme3state, allowed_values) + ) + + self._slot_rear_nvme3state = slot_rear_nvme3state + + @property + def slot_rear_nvme4state(self): + """ + Gets the slot_rear_nvme4state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 4 OptionRom configuration + + :return: The slot_rear_nvme4state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme4state + + @slot_rear_nvme4state.setter + def slot_rear_nvme4state(self, slot_rear_nvme4state): + """ + Sets the slot_rear_nvme4state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 4 OptionRom configuration + + :param slot_rear_nvme4state: The slot_rear_nvme4state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme4state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme4state` ({0}), must be one of {1}" + .format(slot_rear_nvme4state, allowed_values) + ) + + self._slot_rear_nvme4state = slot_rear_nvme4state + + @property + def slot_rear_nvme5state(self): + """ + Gets the slot_rear_nvme5state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 5 OptionRom configuration + + :return: The slot_rear_nvme5state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme5state + + @slot_rear_nvme5state.setter + def slot_rear_nvme5state(self, slot_rear_nvme5state): + """ + Sets the slot_rear_nvme5state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 5 OptionRom configuration + + :param slot_rear_nvme5state: The slot_rear_nvme5state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme5state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme5state` ({0}), must be one of {1}" + .format(slot_rear_nvme5state, allowed_values) + ) + + self._slot_rear_nvme5state = slot_rear_nvme5state + + @property + def slot_rear_nvme6state(self): + """ + Gets the slot_rear_nvme6state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 6 OptionRom configuration + + :return: The slot_rear_nvme6state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme6state + + @slot_rear_nvme6state.setter + def slot_rear_nvme6state(self, slot_rear_nvme6state): + """ + Sets the slot_rear_nvme6state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 6 OptionRom configuration + + :param slot_rear_nvme6state: The slot_rear_nvme6state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme6state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme6state` ({0}), must be one of {1}" + .format(slot_rear_nvme6state, allowed_values) + ) + + self._slot_rear_nvme6state = slot_rear_nvme6state + + @property + def slot_rear_nvme7state(self): + """ + Gets the slot_rear_nvme7state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 7 OptionRom configuration + + :return: The slot_rear_nvme7state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme7state + + @slot_rear_nvme7state.setter + def slot_rear_nvme7state(self, slot_rear_nvme7state): + """ + Sets the slot_rear_nvme7state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 7 OptionRom configuration + + :param slot_rear_nvme7state: The slot_rear_nvme7state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme7state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme7state` ({0}), must be one of {1}" + .format(slot_rear_nvme7state, allowed_values) + ) + + self._slot_rear_nvme7state = slot_rear_nvme7state + + @property + def slot_rear_nvme8state(self): + """ + Gets the slot_rear_nvme8state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 8 OptionRom configuration + + :return: The slot_rear_nvme8state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme8state + + @slot_rear_nvme8state.setter + def slot_rear_nvme8state(self, slot_rear_nvme8state): + """ + Sets the slot_rear_nvme8state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 8 OptionRom configuration + + :param slot_rear_nvme8state: The slot_rear_nvme8state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme8state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme8state` ({0}), must be one of {1}" + .format(slot_rear_nvme8state, allowed_values) + ) + + self._slot_rear_nvme8state = slot_rear_nvme8state + + @property + def slot_riser1link_speed(self): + """ + Gets the slot_riser1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Link Speed configuration + + :return: The slot_riser1link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser1link_speed + + @slot_riser1link_speed.setter + def slot_riser1link_speed(self, slot_riser1link_speed): + """ + Sets the slot_riser1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Link Speed configuration + + :param slot_riser1link_speed: The slot_riser1link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser1link_speed` ({0}), must be one of {1}" + .format(slot_riser1link_speed, allowed_values) + ) + + self._slot_riser1link_speed = slot_riser1link_speed + + @property + def slot_riser1slot1link_speed(self): + """ + Gets the slot_riser1slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot1 Link Speed configuration + + :return: The slot_riser1slot1link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser1slot1link_speed + + @slot_riser1slot1link_speed.setter + def slot_riser1slot1link_speed(self, slot_riser1slot1link_speed): + """ + Sets the slot_riser1slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot1 Link Speed configuration + + :param slot_riser1slot1link_speed: The slot_riser1slot1link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser1slot1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser1slot1link_speed` ({0}), must be one of {1}" + .format(slot_riser1slot1link_speed, allowed_values) + ) + + self._slot_riser1slot1link_speed = slot_riser1slot1link_speed + + @property + def slot_riser1slot2link_speed(self): + """ + Gets the slot_riser1slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot2 Link Speed configuration + + :return: The slot_riser1slot2link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser1slot2link_speed + + @slot_riser1slot2link_speed.setter + def slot_riser1slot2link_speed(self, slot_riser1slot2link_speed): + """ + Sets the slot_riser1slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot2 Link Speed configuration + + :param slot_riser1slot2link_speed: The slot_riser1slot2link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser1slot2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser1slot2link_speed` ({0}), must be one of {1}" + .format(slot_riser1slot2link_speed, allowed_values) + ) + + self._slot_riser1slot2link_speed = slot_riser1slot2link_speed + + @property + def slot_riser1slot3link_speed(self): + """ + Gets the slot_riser1slot3link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot3 Link Speed configuration + + :return: The slot_riser1slot3link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser1slot3link_speed + + @slot_riser1slot3link_speed.setter + def slot_riser1slot3link_speed(self, slot_riser1slot3link_speed): + """ + Sets the slot_riser1slot3link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot3 Link Speed configuration + + :param slot_riser1slot3link_speed: The slot_riser1slot3link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser1slot3link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser1slot3link_speed` ({0}), must be one of {1}" + .format(slot_riser1slot3link_speed, allowed_values) + ) + + self._slot_riser1slot3link_speed = slot_riser1slot3link_speed + + @property + def slot_riser2link_speed(self): """ - return self._input_output + Gets the slot_riser2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Link Speed configuration - @input_output.setter - def input_output(self, input_output): + :return: The slot_riser2link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser2link_speed + + @slot_riser2link_speed.setter + def slot_riser2link_speed(self, slot_riser2link_speed): """ - Sets the input_output of this BiosPolicy. - BIOS Settings for Input-output + Sets the slot_riser2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Link Speed configuration - :param input_output: The input_output of this BiosPolicy. - :type: BiosInputOutput + :param slot_riser2link_speed: The slot_riser2link_speed of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser2link_speed` ({0}), must be one of {1}" + .format(slot_riser2link_speed, allowed_values) + ) - self._input_output = input_output + self._slot_riser2link_speed = slot_riser2link_speed @property - def lom_and_pcie_slots_configuration(self): + def slot_riser2slot4link_speed(self): """ - Gets the lom_and_pcie_slots_configuration of this BiosPolicy. - BIOS Settings for LOM and PCIe Slots Configuration + Gets the slot_riser2slot4link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot4 Link Speed configuration - :return: The lom_and_pcie_slots_configuration of this BiosPolicy. - :rtype: BiosLomAndPcieSlotsConfiguration + :return: The slot_riser2slot4link_speed of this BiosPolicy. + :rtype: str """ - return self._lom_and_pcie_slots_configuration + return self._slot_riser2slot4link_speed - @lom_and_pcie_slots_configuration.setter - def lom_and_pcie_slots_configuration(self, lom_and_pcie_slots_configuration): + @slot_riser2slot4link_speed.setter + def slot_riser2slot4link_speed(self, slot_riser2slot4link_speed): """ - Sets the lom_and_pcie_slots_configuration of this BiosPolicy. - BIOS Settings for LOM and PCIe Slots Configuration + Sets the slot_riser2slot4link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot4 Link Speed configuration - :param lom_and_pcie_slots_configuration: The lom_and_pcie_slots_configuration of this BiosPolicy. - :type: BiosLomAndPcieSlotsConfiguration + :param slot_riser2slot4link_speed: The slot_riser2slot4link_speed of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser2slot4link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser2slot4link_speed` ({0}), must be one of {1}" + .format(slot_riser2slot4link_speed, allowed_values) + ) - self._lom_and_pcie_slots_configuration = lom_and_pcie_slots_configuration + self._slot_riser2slot4link_speed = slot_riser2slot4link_speed @property - def memory(self): + def slot_riser2slot5link_speed(self): """ - Gets the memory of this BiosPolicy. - BIOS Settings for Memory + Gets the slot_riser2slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot5 Link Speed configuration - :return: The memory of this BiosPolicy. - :rtype: BiosMemory + :return: The slot_riser2slot5link_speed of this BiosPolicy. + :rtype: str """ - return self._memory + return self._slot_riser2slot5link_speed - @memory.setter - def memory(self, memory): + @slot_riser2slot5link_speed.setter + def slot_riser2slot5link_speed(self, slot_riser2slot5link_speed): """ - Sets the memory of this BiosPolicy. - BIOS Settings for Memory + Sets the slot_riser2slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot5 Link Speed configuration - :param memory: The memory of this BiosPolicy. - :type: BiosMemory + :param slot_riser2slot5link_speed: The slot_riser2slot5link_speed of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser2slot5link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser2slot5link_speed` ({0}), must be one of {1}" + .format(slot_riser2slot5link_speed, allowed_values) + ) - self._memory = memory + self._slot_riser2slot5link_speed = slot_riser2slot5link_speed @property - def organization(self): + def slot_riser2slot6link_speed(self): """ - Gets the organization of this BiosPolicy. - Organization + Gets the slot_riser2slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot6 Link Speed configuration - :return: The organization of this BiosPolicy. - :rtype: MoMoRef + :return: The slot_riser2slot6link_speed of this BiosPolicy. + :rtype: str """ - return self._organization + return self._slot_riser2slot6link_speed - @organization.setter - def organization(self, organization): + @slot_riser2slot6link_speed.setter + def slot_riser2slot6link_speed(self, slot_riser2slot6link_speed): """ - Sets the organization of this BiosPolicy. - Organization + Sets the slot_riser2slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot6 Link Speed configuration - :param organization: The organization of this BiosPolicy. - :type: MoMoRef + :param slot_riser2slot6link_speed: The slot_riser2slot6link_speed of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser2slot6link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser2slot6link_speed` ({0}), must be one of {1}" + .format(slot_riser2slot6link_speed, allowed_values) + ) - self._organization = organization + self._slot_riser2slot6link_speed = slot_riser2slot6link_speed + + @property + def slot_sas_state(self): + """ + Gets the slot_sas_state of this BiosPolicy. + BIOS Token for setting PCIe Slot:SAS OptionROM configuration + + :return: The slot_sas_state of this BiosPolicy. + :rtype: str + """ + return self._slot_sas_state + + @slot_sas_state.setter + def slot_sas_state(self, slot_sas_state): + """ + Sets the slot_sas_state of this BiosPolicy. + BIOS Token for setting PCIe Slot:SAS OptionROM configuration + + :param slot_sas_state: The slot_sas_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_sas_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_sas_state` ({0}), must be one of {1}" + .format(slot_sas_state, allowed_values) + ) + + self._slot_sas_state = slot_sas_state @property - def power_or_performance(self): + def slot_ssd_slot1link_speed(self): """ - Gets the power_or_performance of this BiosPolicy. - BIOS Settings for Power-or-performance + Gets the slot_ssd_slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:FrontPcie1 Link Speed configuration - :return: The power_or_performance of this BiosPolicy. - :rtype: BiosPowerOrPerformance + :return: The slot_ssd_slot1link_speed of this BiosPolicy. + :rtype: str """ - return self._power_or_performance + return self._slot_ssd_slot1link_speed - @power_or_performance.setter - def power_or_performance(self, power_or_performance): + @slot_ssd_slot1link_speed.setter + def slot_ssd_slot1link_speed(self, slot_ssd_slot1link_speed): """ - Sets the power_or_performance of this BiosPolicy. - BIOS Settings for Power-or-performance + Sets the slot_ssd_slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:FrontPcie1 Link Speed configuration - :param power_or_performance: The power_or_performance of this BiosPolicy. - :type: BiosPowerOrPerformance + :param slot_ssd_slot1link_speed: The slot_ssd_slot1link_speed of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_ssd_slot1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_ssd_slot1link_speed` ({0}), must be one of {1}" + .format(slot_ssd_slot1link_speed, allowed_values) + ) - self._power_or_performance = power_or_performance + self._slot_ssd_slot1link_speed = slot_ssd_slot1link_speed @property - def processor(self): + def slot_ssd_slot2link_speed(self): """ - Gets the processor of this BiosPolicy. - BIOS Settings for Processor + Gets the slot_ssd_slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:FrontPcie2 Link Speed configuration - :return: The processor of this BiosPolicy. - :rtype: BiosProcessor + :return: The slot_ssd_slot2link_speed of this BiosPolicy. + :rtype: str """ - return self._processor + return self._slot_ssd_slot2link_speed - @processor.setter - def processor(self, processor): + @slot_ssd_slot2link_speed.setter + def slot_ssd_slot2link_speed(self, slot_ssd_slot2link_speed): """ - Sets the processor of this BiosPolicy. - BIOS Settings for Processor + Sets the slot_ssd_slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:FrontPcie2 Link Speed configuration - :param processor: The processor of this BiosPolicy. - :type: BiosProcessor + :param slot_ssd_slot2link_speed: The slot_ssd_slot2link_speed of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_ssd_slot2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_ssd_slot2link_speed` ({0}), must be one of {1}" + .format(slot_ssd_slot2link_speed, allowed_values) + ) - self._processor = processor + self._slot_ssd_slot2link_speed = slot_ssd_slot2link_speed @property - def profiles(self): + def snc(self): """ - Gets the profiles of this BiosPolicy. - Relationship to the profile objects + Gets the snc of this BiosPolicy. + BIOS Token for setting Sub Numa Clustering configuration - :return: The profiles of this BiosPolicy. - :rtype: list[MoMoRef] + :return: The snc of this BiosPolicy. + :rtype: str """ - return self._profiles + return self._snc - @profiles.setter - def profiles(self, profiles): + @snc.setter + def snc(self, snc): """ - Sets the profiles of this BiosPolicy. - Relationship to the profile objects + Sets the snc of this BiosPolicy. + BIOS Token for setting Sub Numa Clustering configuration - :param profiles: The profiles of this BiosPolicy. - :type: list[MoMoRef] + :param snc: The snc of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "Auto", "disabled", "enabled"] + if snc not in allowed_values: + raise ValueError( + "Invalid value for `snc` ({0}), must be one of {1}" + .format(snc, allowed_values) + ) - self._profiles = profiles + self._snc = snc + + @property + def sparing_mode(self): + """ + Gets the sparing_mode of this BiosPolicy. + BIOS Token for setting Sparing Mode configuration + + :return: The sparing_mode of this BiosPolicy. + :rtype: str + """ + return self._sparing_mode + + @sparing_mode.setter + def sparing_mode(self, sparing_mode): + """ + Sets the sparing_mode of this BiosPolicy. + BIOS Token for setting Sparing Mode configuration + + :param sparing_mode: The sparing_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "dimm-sparing", "rank-sparing"] + if sparing_mode not in allowed_values: + raise ValueError( + "Invalid value for `sparing_mode` ({0}), must be one of {1}" + .format(sparing_mode, allowed_values) + ) + + self._sparing_mode = sparing_mode + + @property + def sr_iov(self): + """ + Gets the sr_iov of this BiosPolicy. + BIOS Token for setting SR-IOV Support configuration + + :return: The sr_iov of this BiosPolicy. + :rtype: str + """ + return self._sr_iov + + @sr_iov.setter + def sr_iov(self, sr_iov): + """ + Sets the sr_iov of this BiosPolicy. + BIOS Token for setting SR-IOV Support configuration + + :param sr_iov: The sr_iov of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if sr_iov not in allowed_values: + raise ValueError( + "Invalid value for `sr_iov` ({0}), must be one of {1}" + .format(sr_iov, allowed_values) + ) + + self._sr_iov = sr_iov + + @property + def streamer_prefetch(self): + """ + Gets the streamer_prefetch of this BiosPolicy. + BIOS Token for setting DCU Streamer Prefetch configuration + + :return: The streamer_prefetch of this BiosPolicy. + :rtype: str + """ + return self._streamer_prefetch + + @streamer_prefetch.setter + def streamer_prefetch(self, streamer_prefetch): + """ + Sets the streamer_prefetch of this BiosPolicy. + BIOS Token for setting DCU Streamer Prefetch configuration + + :param streamer_prefetch: The streamer_prefetch of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if streamer_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `streamer_prefetch` ({0}), must be one of {1}" + .format(streamer_prefetch, allowed_values) + ) + + self._streamer_prefetch = streamer_prefetch + + @property + def terminal_type(self): + """ + Gets the terminal_type of this BiosPolicy. + BIOS Token for setting Terminal Type configuration + + :return: The terminal_type of this BiosPolicy. + :rtype: str + """ + return self._terminal_type + + @terminal_type.setter + def terminal_type(self, terminal_type): + """ + Sets the terminal_type of this BiosPolicy. + BIOS Token for setting Terminal Type configuration + + :param terminal_type: The terminal_type of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "pc-ansi", "vt-utf8", "vt100", "vt100-plus"] + if terminal_type not in allowed_values: + raise ValueError( + "Invalid value for `terminal_type` ({0}), must be one of {1}" + .format(terminal_type, allowed_values) + ) + + self._terminal_type = terminal_type + + @property + def tpm_control(self): + """ + Gets the tpm_control of this BiosPolicy. + BIOS Token for setting Trusted Platform Module State configuration + + :return: The tpm_control of this BiosPolicy. + :rtype: str + """ + return self._tpm_control + + @tpm_control.setter + def tpm_control(self, tpm_control): + """ + Sets the tpm_control of this BiosPolicy. + BIOS Token for setting Trusted Platform Module State configuration + + :param tpm_control: The tpm_control of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if tpm_control not in allowed_values: + raise ValueError( + "Invalid value for `tpm_control` ({0}), must be one of {1}" + .format(tpm_control, allowed_values) + ) + + self._tpm_control = tpm_control + + @property + def tpm_support(self): + """ + Gets the tpm_support of this BiosPolicy. + BIOS Token for setting TPM Support configuration + + :return: The tpm_support of this BiosPolicy. + :rtype: str + """ + return self._tpm_support + + @tpm_support.setter + def tpm_support(self, tpm_support): + """ + Sets the tpm_support of this BiosPolicy. + BIOS Token for setting TPM Support configuration + + :param tpm_support: The tpm_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if tpm_support not in allowed_values: + raise ValueError( + "Invalid value for `tpm_support` ({0}), must be one of {1}" + .format(tpm_support, allowed_values) + ) + + self._tpm_support = tpm_support + + @property + def txt_support(self): + """ + Gets the txt_support of this BiosPolicy. + BIOS Token for setting Intel Trusted Execution Technology Support configuration + + :return: The txt_support of this BiosPolicy. + :rtype: str + """ + return self._txt_support + + @txt_support.setter + def txt_support(self, txt_support): + """ + Sets the txt_support of this BiosPolicy. + BIOS Token for setting Intel Trusted Execution Technology Support configuration + + :param txt_support: The txt_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if txt_support not in allowed_values: + raise ValueError( + "Invalid value for `txt_support` ({0}), must be one of {1}" + .format(txt_support, allowed_values) + ) + + self._txt_support = txt_support + + @property + def ucsm_boot_order_rule(self): + """ + Gets the ucsm_boot_order_rule of this BiosPolicy. + BIOS Token for setting Boot Order Rules configuration + + :return: The ucsm_boot_order_rule of this BiosPolicy. + :rtype: str + """ + return self._ucsm_boot_order_rule + + @ucsm_boot_order_rule.setter + def ucsm_boot_order_rule(self, ucsm_boot_order_rule): + """ + Sets the ucsm_boot_order_rule of this BiosPolicy. + BIOS Token for setting Boot Order Rules configuration + + :param ucsm_boot_order_rule: The ucsm_boot_order_rule of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Loose", "Strict"] + if ucsm_boot_order_rule not in allowed_values: + raise ValueError( + "Invalid value for `ucsm_boot_order_rule` ({0}), must be one of {1}" + .format(ucsm_boot_order_rule, allowed_values) + ) + + self._ucsm_boot_order_rule = ucsm_boot_order_rule + + @property + def usb_emul6064(self): + """ + Gets the usb_emul6064 of this BiosPolicy. + BIOS Token for setting Port 60/64 Emulation configuration + + :return: The usb_emul6064 of this BiosPolicy. + :rtype: str + """ + return self._usb_emul6064 + + @usb_emul6064.setter + def usb_emul6064(self, usb_emul6064): + """ + Sets the usb_emul6064 of this BiosPolicy. + BIOS Token for setting Port 60/64 Emulation configuration + + :param usb_emul6064: The usb_emul6064 of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_emul6064 not in allowed_values: + raise ValueError( + "Invalid value for `usb_emul6064` ({0}), must be one of {1}" + .format(usb_emul6064, allowed_values) + ) + + self._usb_emul6064 = usb_emul6064 + + @property + def usb_port_front(self): + """ + Gets the usb_port_front of this BiosPolicy. + BIOS Token for setting USB Port:Front configuration + + :return: The usb_port_front of this BiosPolicy. + :rtype: str + """ + return self._usb_port_front + + @usb_port_front.setter + def usb_port_front(self, usb_port_front): + """ + Sets the usb_port_front of this BiosPolicy. + BIOS Token for setting USB Port:Front configuration + + :param usb_port_front: The usb_port_front of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_front not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_front` ({0}), must be one of {1}" + .format(usb_port_front, allowed_values) + ) + + self._usb_port_front = usb_port_front + + @property + def usb_port_internal(self): + """ + Gets the usb_port_internal of this BiosPolicy. + BIOS Token for setting USB Port:Internal configuration + + :return: The usb_port_internal of this BiosPolicy. + :rtype: str + """ + return self._usb_port_internal + + @usb_port_internal.setter + def usb_port_internal(self, usb_port_internal): + """ + Sets the usb_port_internal of this BiosPolicy. + BIOS Token for setting USB Port:Internal configuration + + :param usb_port_internal: The usb_port_internal of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_internal not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_internal` ({0}), must be one of {1}" + .format(usb_port_internal, allowed_values) + ) + + self._usb_port_internal = usb_port_internal + + @property + def usb_port_kvm(self): + """ + Gets the usb_port_kvm of this BiosPolicy. + BIOS Token for setting USB Port:KVM configuration + + :return: The usb_port_kvm of this BiosPolicy. + :rtype: str + """ + return self._usb_port_kvm + + @usb_port_kvm.setter + def usb_port_kvm(self, usb_port_kvm): + """ + Sets the usb_port_kvm of this BiosPolicy. + BIOS Token for setting USB Port:KVM configuration + + :param usb_port_kvm: The usb_port_kvm of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_kvm not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_kvm` ({0}), must be one of {1}" + .format(usb_port_kvm, allowed_values) + ) + + self._usb_port_kvm = usb_port_kvm + + @property + def usb_port_rear(self): + """ + Gets the usb_port_rear of this BiosPolicy. + BIOS Token for setting USB Port:Rear configuration + + :return: The usb_port_rear of this BiosPolicy. + :rtype: str + """ + return self._usb_port_rear + + @usb_port_rear.setter + def usb_port_rear(self, usb_port_rear): + """ + Sets the usb_port_rear of this BiosPolicy. + BIOS Token for setting USB Port:Rear configuration + + :param usb_port_rear: The usb_port_rear of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_rear not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_rear` ({0}), must be one of {1}" + .format(usb_port_rear, allowed_values) + ) + + self._usb_port_rear = usb_port_rear + + @property + def usb_port_sd_card(self): + """ + Gets the usb_port_sd_card of this BiosPolicy. + BIOS Token for setting USB Port:SD Card configuration + + :return: The usb_port_sd_card of this BiosPolicy. + :rtype: str + """ + return self._usb_port_sd_card + + @usb_port_sd_card.setter + def usb_port_sd_card(self, usb_port_sd_card): + """ + Sets the usb_port_sd_card of this BiosPolicy. + BIOS Token for setting USB Port:SD Card configuration + + :param usb_port_sd_card: The usb_port_sd_card of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_sd_card not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_sd_card` ({0}), must be one of {1}" + .format(usb_port_sd_card, allowed_values) + ) + + self._usb_port_sd_card = usb_port_sd_card + + @property + def usb_port_vmedia(self): + """ + Gets the usb_port_vmedia of this BiosPolicy. + BIOS Token for setting USB Port:VMedia configuration + + :return: The usb_port_vmedia of this BiosPolicy. + :rtype: str + """ + return self._usb_port_vmedia + + @usb_port_vmedia.setter + def usb_port_vmedia(self, usb_port_vmedia): + """ + Sets the usb_port_vmedia of this BiosPolicy. + BIOS Token for setting USB Port:VMedia configuration + + :param usb_port_vmedia: The usb_port_vmedia of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_vmedia not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_vmedia` ({0}), must be one of {1}" + .format(usb_port_vmedia, allowed_values) + ) + + self._usb_port_vmedia = usb_port_vmedia + + @property + def usb_xhci_support(self): + """ + Gets the usb_xhci_support of this BiosPolicy. + BIOS Token for setting XHCI Legacy Support configuration + + :return: The usb_xhci_support of this BiosPolicy. + :rtype: str + """ + return self._usb_xhci_support + + @usb_xhci_support.setter + def usb_xhci_support(self, usb_xhci_support): + """ + Sets the usb_xhci_support of this BiosPolicy. + BIOS Token for setting XHCI Legacy Support configuration + + :param usb_xhci_support: The usb_xhci_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_xhci_support not in allowed_values: + raise ValueError( + "Invalid value for `usb_xhci_support` ({0}), must be one of {1}" + .format(usb_xhci_support, allowed_values) + ) + + self._usb_xhci_support = usb_xhci_support @property - def security(self): + def vga_priority(self): """ - Gets the security of this BiosPolicy. - BIOS Settings for Security + Gets the vga_priority of this BiosPolicy. + BIOS Token for setting VGA Priority configuration - :return: The security of this BiosPolicy. - :rtype: BiosSecurity + :return: The vga_priority of this BiosPolicy. + :rtype: str """ - return self._security + return self._vga_priority - @security.setter - def security(self, security): + @vga_priority.setter + def vga_priority(self, vga_priority): """ - Sets the security of this BiosPolicy. - BIOS Settings for Security + Sets the vga_priority of this BiosPolicy. + BIOS Token for setting VGA Priority configuration - :param security: The security of this BiosPolicy. - :type: BiosSecurity + :param vga_priority: The vga_priority of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "Offboard", "Onboard", "Onboard VGA Disabled"] + if vga_priority not in allowed_values: + raise ValueError( + "Invalid value for `vga_priority` ({0}), must be one of {1}" + .format(vga_priority, allowed_values) + ) - self._security = security + self._vga_priority = vga_priority @property - def serial_configuration(self): + def work_load_config(self): """ - Gets the serial_configuration of this BiosPolicy. - BIOS Settings for Serial Configuration + Gets the work_load_config of this BiosPolicy. + BIOS Token for setting Workload Configuration configuration - :return: The serial_configuration of this BiosPolicy. - :rtype: BiosSerialConfiguration + :return: The work_load_config of this BiosPolicy. + :rtype: str """ - return self._serial_configuration + return self._work_load_config - @serial_configuration.setter - def serial_configuration(self, serial_configuration): + @work_load_config.setter + def work_load_config(self, work_load_config): """ - Sets the serial_configuration of this BiosPolicy. - BIOS Settings for Serial Configuration + Sets the work_load_config of this BiosPolicy. + BIOS Token for setting Workload Configuration configuration - :param serial_configuration: The serial_configuration of this BiosPolicy. - :type: BiosSerialConfiguration + :param work_load_config: The work_load_config of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "Balanced", "I/O Sensitive", "NUMA", "UMA"] + if work_load_config not in allowed_values: + raise ValueError( + "Invalid value for `work_load_config` ({0}), must be one of {1}" + .format(work_load_config, allowed_values) + ) - self._serial_configuration = serial_configuration + self._work_load_config = work_load_config @property - def server_management(self): + def xpt_prefetch(self): """ - Gets the server_management of this BiosPolicy. - BIOS Settings for Server Management + Gets the xpt_prefetch of this BiosPolicy. + BIOS Token for setting XPT Prefetch configuration - :return: The server_management of this BiosPolicy. - :rtype: BiosServerManagement + :return: The xpt_prefetch of this BiosPolicy. + :rtype: str """ - return self._server_management + return self._xpt_prefetch - @server_management.setter - def server_management(self, server_management): + @xpt_prefetch.setter + def xpt_prefetch(self, xpt_prefetch): """ - Sets the server_management of this BiosPolicy. - BIOS Settings for Server Management + Sets the xpt_prefetch of this BiosPolicy. + BIOS Token for setting XPT Prefetch configuration - :param server_management: The server_management of this BiosPolicy. - :type: BiosServerManagement + :param xpt_prefetch: The xpt_prefetch of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "enabled", "disabled"] + if xpt_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `xpt_prefetch` ({0}), must be one of {1}" + .format(xpt_prefetch, allowed_values) + ) - self._server_management = server_management + self._xpt_prefetch = xpt_prefetch def to_dict(self): """ diff --git a/intersight/models/bios_policy_list.py b/intersight/models/bios_policy_list.py index 4e3ece6b..0bd2d508 100644 --- a/intersight/models/bios_policy_list.py +++ b/intersight/models/bios_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/bios_policy_ref.py b/intersight/models/bios_policy_ref.py new file mode 100644 index 00000000..055876ba --- /dev/null +++ b/intersight/models/bios_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BiosPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BiosPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BiosPolicyRef. + + :return: The moid of this BiosPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BiosPolicyRef. + + :param moid: The moid of this BiosPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BiosPolicyRef. + + :return: The object_type of this BiosPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BiosPolicyRef. + + :param object_type: The object_type of this BiosPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BiosPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/bios_unit.py b/intersight/models/bios_unit.py index 178e2956..7a32dd49 100644 --- a/intersight/models/bios_unit.py +++ b/intersight/models/bios_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class BiosUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,11 +47,12 @@ class BiosUnit(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_rack_unit': 'MoMoRef', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', 'init_seq': 'str', 'init_ts': 'str', - 'registered_device': 'MoMoRef', - 'running_firmware': 'list[MoMoRef]' + 'registered_device': 'AssetDeviceRegistrationRef', + 'running_firmware': 'list[FirmwareRunningFirmwareRef]' } attribute_map = { @@ -71,6 +72,7 @@ class BiosUnit(object): 'revision': 'Revision', 'serial': 'Serial', 'vendor': 'Vendor', + 'compute_blade': 'ComputeBlade', 'compute_rack_unit': 'ComputeRackUnit', 'init_seq': 'InitSeq', 'init_ts': 'InitTs', @@ -78,7 +80,7 @@ class BiosUnit(object): 'running_firmware': 'RunningFirmware' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_rack_unit=None, init_seq=None, init_ts=None, registered_device=None, running_firmware=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_blade=None, compute_rack_unit=None, init_seq=None, init_ts=None, registered_device=None, running_firmware=None): """ BiosUnit - a model defined in Swagger """ @@ -99,6 +101,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._revision = None self._serial = None self._vendor = None + self._compute_blade = None self._compute_rack_unit = None self._init_seq = None self._init_ts = None @@ -137,6 +140,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.serial = serial if vendor is not None: self.vendor = vendor + if compute_blade is not None: + self.compute_blade = compute_blade if compute_rack_unit is not None: self.compute_rack_unit = compute_rack_unit if init_seq is not None: @@ -178,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this BiosUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this BiosUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this BiosUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this BiosUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -502,13 +507,34 @@ def vendor(self, vendor): self._vendor = vendor + @property + def compute_blade(self): + """ + Gets the compute_blade of this BiosUnit. + + :return: The compute_blade of this BiosUnit. + :rtype: ComputeBladeRef + """ + return self._compute_blade + + @compute_blade.setter + def compute_blade(self, compute_blade): + """ + Sets the compute_blade of this BiosUnit. + + :param compute_blade: The compute_blade of this BiosUnit. + :type: ComputeBladeRef + """ + + self._compute_blade = compute_blade + @property def compute_rack_unit(self): """ Gets the compute_rack_unit of this BiosUnit. :return: The compute_rack_unit of this BiosUnit. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -518,7 +544,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this BiosUnit. :param compute_rack_unit: The compute_rack_unit of this BiosUnit. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -571,7 +597,7 @@ def registered_device(self): Gets the registered_device of this BiosUnit. :return: The registered_device of this BiosUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -581,7 +607,7 @@ def registered_device(self, registered_device): Sets the registered_device of this BiosUnit. :param registered_device: The registered_device of this BiosUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -592,7 +618,7 @@ def running_firmware(self): Gets the running_firmware of this BiosUnit. :return: The running_firmware of this BiosUnit. - :rtype: list[MoMoRef] + :rtype: list[FirmwareRunningFirmwareRef] """ return self._running_firmware @@ -602,7 +628,7 @@ def running_firmware(self, running_firmware): Sets the running_firmware of this BiosUnit. :param running_firmware: The running_firmware of this BiosUnit. - :type: list[MoMoRef] + :type: list[FirmwareRunningFirmwareRef] """ self._running_firmware = running_firmware diff --git a/intersight/models/bios_unit_list.py b/intersight/models/bios_unit_list.py index 4d50a5b8..39ce2a87 100644 --- a/intersight/models/bios_unit_list.py +++ b/intersight/models/bios_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/bios_unit_ref.py b/intersight/models/bios_unit_ref.py new file mode 100644 index 00000000..69e780a7 --- /dev/null +++ b/intersight/models/bios_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BiosUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BiosUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BiosUnitRef. + + :return: The moid of this BiosUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BiosUnitRef. + + :param moid: The moid of this BiosUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BiosUnitRef. + + :return: The object_type of this BiosUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BiosUnitRef. + + :param object_type: The object_type of this BiosUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BiosUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/bios_validation_task_ref.py b/intersight/models/bios_validation_task_ref.py new file mode 100644 index 00000000..96d4cb4b --- /dev/null +++ b/intersight/models/bios_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BiosValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BiosValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BiosValidationTaskRef. + + :return: The moid of this BiosValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BiosValidationTaskRef. + + :param moid: The moid of this BiosValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BiosValidationTaskRef. + + :return: The object_type of this BiosValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BiosValidationTaskRef. + + :param object_type: The object_type of this BiosValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BiosValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_device_base.py b/intersight/models/boot_device_base.py index 30e70134..f7622789 100644 --- a/intersight/models/boot_device_base.py +++ b/intersight/models/boot_device_base.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -57,7 +57,7 @@ def __init__(self, enabled=None, name=None): def enabled(self): """ Gets the enabled of this BootDeviceBase. - Specifies if the boot device is enabled or disabled. + Specifies if the boot device is enabled or disabled :return: The enabled of this BootDeviceBase. :rtype: bool @@ -68,7 +68,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this BootDeviceBase. - Specifies if the boot device is enabled or disabled. + Specifies if the boot device is enabled or disabled :param enabled: The enabled of this BootDeviceBase. :type: bool diff --git a/intersight/models/boot_device_base_ref.py b/intersight/models/boot_device_base_ref.py new file mode 100644 index 00000000..9ee7686d --- /dev/null +++ b/intersight/models/boot_device_base_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootDeviceBaseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootDeviceBaseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootDeviceBaseRef. + + :return: The moid of this BootDeviceBaseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootDeviceBaseRef. + + :param moid: The moid of this BootDeviceBaseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootDeviceBaseRef. + + :return: The object_type of this BootDeviceBaseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootDeviceBaseRef. + + :param object_type: The object_type of this BootDeviceBaseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootDeviceBaseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_iscsi_ref.py b/intersight/models/boot_iscsi_ref.py new file mode 100644 index 00000000..37532874 --- /dev/null +++ b/intersight/models/boot_iscsi_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootIscsiRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootIscsiRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootIscsiRef. + + :return: The moid of this BootIscsiRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootIscsiRef. + + :param moid: The moid of this BootIscsiRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootIscsiRef. + + :return: The object_type of this BootIscsiRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootIscsiRef. + + :param object_type: The object_type of this BootIscsiRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootIscsiRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_local_disk_ref.py b/intersight/models/boot_local_disk_ref.py new file mode 100644 index 00000000..68219a48 --- /dev/null +++ b/intersight/models/boot_local_disk_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootLocalDiskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootLocalDiskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootLocalDiskRef. + + :return: The moid of this BootLocalDiskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootLocalDiskRef. + + :param moid: The moid of this BootLocalDiskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootLocalDiskRef. + + :return: The object_type of this BootLocalDiskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootLocalDiskRef. + + :param object_type: The object_type of this BootLocalDiskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootLocalDiskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_nvme_ref.py b/intersight/models/boot_nvme_ref.py new file mode 100644 index 00000000..00af214f --- /dev/null +++ b/intersight/models/boot_nvme_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootNvmeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootNvmeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootNvmeRef. + + :return: The moid of this BootNvmeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootNvmeRef. + + :param moid: The moid of this BootNvmeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootNvmeRef. + + :return: The object_type of this BootNvmeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootNvmeRef. + + :param object_type: The object_type of this BootNvmeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootNvmeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_pch_storage_ref.py b/intersight/models/boot_pch_storage_ref.py new file mode 100644 index 00000000..87aece67 --- /dev/null +++ b/intersight/models/boot_pch_storage_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootPchStorageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootPchStorageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootPchStorageRef. + + :return: The moid of this BootPchStorageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootPchStorageRef. + + :param moid: The moid of this BootPchStorageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootPchStorageRef. + + :return: The object_type of this BootPchStorageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootPchStorageRef. + + :param object_type: The object_type of this BootPchStorageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootPchStorageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_precision_deploy_task_ref.py b/intersight/models/boot_precision_deploy_task_ref.py new file mode 100644 index 00000000..0b9886e5 --- /dev/null +++ b/intersight/models/boot_precision_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootPrecisionDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootPrecisionDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootPrecisionDeployTaskRef. + + :return: The moid of this BootPrecisionDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootPrecisionDeployTaskRef. + + :param moid: The moid of this BootPrecisionDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootPrecisionDeployTaskRef. + + :return: The object_type of this BootPrecisionDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootPrecisionDeployTaskRef. + + :param object_type: The object_type of this BootPrecisionDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootPrecisionDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_precision_policy.py b/intersight/models/boot_precision_policy.py index 84e04450..40aeca57 100644 --- a/intersight/models/boot_precision_policy.py +++ b/intersight/models/boot_precision_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,21 @@ class BootPrecisionPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', 'boot_devices': 'list[BootDeviceBase]', 'configured_boot_mode': 'str', 'enforce_uefi_secure_boot': 'bool', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]' + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -153,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this BootPrecisionPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this BootPrecisionPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this BootPrecisionPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this BootPrecisionPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -458,7 +458,7 @@ def organization(self): Organization :return: The organization of this BootPrecisionPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -469,7 +469,7 @@ def organization(self, organization): Organization :param organization: The organization of this BootPrecisionPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -481,7 +481,7 @@ def profiles(self): Reference to the profile objects that this policy is a part of :return: The profiles of this BootPrecisionPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -492,7 +492,7 @@ def profiles(self, profiles): Reference to the profile objects that this policy is a part of :param profiles: The profiles of this BootPrecisionPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/boot_precision_policy_list.py b/intersight/models/boot_precision_policy_list.py index 7ae7e147..985f9ad6 100644 --- a/intersight/models/boot_precision_policy_list.py +++ b/intersight/models/boot_precision_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/boot_precision_policy_ref.py b/intersight/models/boot_precision_policy_ref.py new file mode 100644 index 00000000..2c4b510f --- /dev/null +++ b/intersight/models/boot_precision_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootPrecisionPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootPrecisionPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootPrecisionPolicyRef. + + :return: The moid of this BootPrecisionPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootPrecisionPolicyRef. + + :param moid: The moid of this BootPrecisionPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootPrecisionPolicyRef. + + :return: The object_type of this BootPrecisionPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootPrecisionPolicyRef. + + :param object_type: The object_type of this BootPrecisionPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootPrecisionPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_precision_validation_task_ref.py b/intersight/models/boot_precision_validation_task_ref.py new file mode 100644 index 00000000..68b95b25 --- /dev/null +++ b/intersight/models/boot_precision_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootPrecisionValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootPrecisionValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootPrecisionValidationTaskRef. + + :return: The moid of this BootPrecisionValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootPrecisionValidationTaskRef. + + :param moid: The moid of this BootPrecisionValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootPrecisionValidationTaskRef. + + :return: The object_type of this BootPrecisionValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootPrecisionValidationTaskRef. + + :param object_type: The object_type of this BootPrecisionValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootPrecisionValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_pxe_ref.py b/intersight/models/boot_pxe_ref.py new file mode 100644 index 00000000..85d24ae0 --- /dev/null +++ b/intersight/models/boot_pxe_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootPxeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootPxeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootPxeRef. + + :return: The moid of this BootPxeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootPxeRef. + + :param moid: The moid of this BootPxeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootPxeRef. + + :return: The object_type of this BootPxeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootPxeRef. + + :param object_type: The object_type of this BootPxeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootPxeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_san_ref.py b/intersight/models/boot_san_ref.py new file mode 100644 index 00000000..6ef86f88 --- /dev/null +++ b/intersight/models/boot_san_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootSanRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootSanRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootSanRef. + + :return: The moid of this BootSanRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootSanRef. + + :param moid: The moid of this BootSanRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootSanRef. + + :return: The object_type of this BootSanRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootSanRef. + + :param object_type: The object_type of this BootSanRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootSanRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_sd_card_ref.py b/intersight/models/boot_sd_card_ref.py new file mode 100644 index 00000000..752b8256 --- /dev/null +++ b/intersight/models/boot_sd_card_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootSdCardRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootSdCardRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootSdCardRef. + + :return: The moid of this BootSdCardRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootSdCardRef. + + :param moid: The moid of this BootSdCardRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootSdCardRef. + + :return: The object_type of this BootSdCardRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootSdCardRef. + + :param object_type: The object_type of this BootSdCardRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootSdCardRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_uefi_shell_ref.py b/intersight/models/boot_uefi_shell_ref.py new file mode 100644 index 00000000..9ea85ede --- /dev/null +++ b/intersight/models/boot_uefi_shell_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootUefiShellRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootUefiShellRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootUefiShellRef. + + :return: The moid of this BootUefiShellRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootUefiShellRef. + + :param moid: The moid of this BootUefiShellRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootUefiShellRef. + + :return: The object_type of this BootUefiShellRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootUefiShellRef. + + :param object_type: The object_type of this BootUefiShellRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootUefiShellRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_usb_ref.py b/intersight/models/boot_usb_ref.py new file mode 100644 index 00000000..668f320a --- /dev/null +++ b/intersight/models/boot_usb_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootUsbRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootUsbRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootUsbRef. + + :return: The moid of this BootUsbRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootUsbRef. + + :param moid: The moid of this BootUsbRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootUsbRef. + + :return: The object_type of this BootUsbRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootUsbRef. + + :param object_type: The object_type of this BootUsbRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootUsbRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_virtual_media_ref.py b/intersight/models/boot_virtual_media_ref.py new file mode 100644 index 00000000..e2b86935 --- /dev/null +++ b/intersight/models/boot_virtual_media_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootVirtualMediaRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootVirtualMediaRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootVirtualMediaRef. + + :return: The moid of this BootVirtualMediaRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootVirtualMediaRef. + + :param moid: The moid of this BootVirtualMediaRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootVirtualMediaRef. + + :return: The object_type of this BootVirtualMediaRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootVirtualMediaRef. + + :param object_type: The object_type of this BootVirtualMediaRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootVirtualMediaRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_blade.py b/intersight/models/compute_blade.py index 4cfc6310..f36fa544 100644 --- a/intersight/models/compute_blade.py +++ b/intersight/models/compute_blade.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class ComputeBlade(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -48,6 +48,7 @@ class ComputeBlade(object): 'serial': 'str', 'vendor': 'str', 'admin_power_state': 'str', + 'asset_tag': 'str', 'available_memory': 'int', 'fault_summary': 'int', 'kvm_ip_addresses': 'list[ComputeIpAddress]', @@ -66,17 +67,20 @@ class ComputeBlade(object): 'presence': 'str', 'service_profile': 'str', 'total_memory': 'int', + 'user_label': 'str', 'uuid': 'str', - 'adapters': 'list[MoMoRef]', - 'bmc': 'MoMoRef', - 'board': 'MoMoRef', + 'adapters': 'list[AdapterUnitRef]', + 'bios_units': 'list[BiosUnitRef]', + 'bmc': 'ManagementControllerRef', + 'board': 'ComputeBoardRef', 'chassis_id': 'str', - 'equipment_chassis': 'MoMoRef', - 'generic_inventory_holders': 'list[MoMoRef]', - 'locator_led': 'MoMoRef', - 'registered_device': 'MoMoRef', + 'equipment_chassis': 'EquipmentChassisRef', + 'generic_inventory_holders': 'list[InventoryGenericInventoryHolderRef]', + 'locator_led': 'EquipmentLocatorLedRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'slot_id': 'int', - 'top_system': 'MoMoRef' + 'storage_enclosures': 'list[StorageEnclosureRef]', + 'top_system': 'TopSystemRef' } attribute_map = { @@ -97,6 +101,7 @@ class ComputeBlade(object): 'serial': 'Serial', 'vendor': 'Vendor', 'admin_power_state': 'AdminPowerState', + 'asset_tag': 'AssetTag', 'available_memory': 'AvailableMemory', 'fault_summary': 'FaultSummary', 'kvm_ip_addresses': 'KvmIpAddresses', @@ -115,8 +120,10 @@ class ComputeBlade(object): 'presence': 'Presence', 'service_profile': 'ServiceProfile', 'total_memory': 'TotalMemory', + 'user_label': 'UserLabel', 'uuid': 'Uuid', 'adapters': 'Adapters', + 'bios_units': 'BiosUnits', 'bmc': 'Bmc', 'board': 'Board', 'chassis_id': 'ChassisId', @@ -125,10 +132,11 @@ class ComputeBlade(object): 'locator_led': 'LocatorLed', 'registered_device': 'RegisteredDevice', 'slot_id': 'SlotId', + 'storage_enclosures': 'StorageEnclosures', 'top_system': 'TopSystem' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, uuid=None, adapters=None, bmc=None, board=None, chassis_id=None, equipment_chassis=None, generic_inventory_holders=None, locator_led=None, registered_device=None, slot_id=None, top_system=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, asset_tag=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, user_label=None, uuid=None, adapters=None, bios_units=None, bmc=None, board=None, chassis_id=None, equipment_chassis=None, generic_inventory_holders=None, locator_led=None, registered_device=None, slot_id=None, storage_enclosures=None, top_system=None): """ ComputeBlade - a model defined in Swagger """ @@ -150,6 +158,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._serial = None self._vendor = None self._admin_power_state = None + self._asset_tag = None self._available_memory = None self._fault_summary = None self._kvm_ip_addresses = None @@ -168,8 +177,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._presence = None self._service_profile = None self._total_memory = None + self._user_label = None self._uuid = None self._adapters = None + self._bios_units = None self._bmc = None self._board = None self._chassis_id = None @@ -178,6 +189,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._locator_led = None self._registered_device = None self._slot_id = None + self._storage_enclosures = None self._top_system = None if account_moid is not None: @@ -214,6 +226,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.vendor = vendor if admin_power_state is not None: self.admin_power_state = admin_power_state + if asset_tag is not None: + self.asset_tag = asset_tag if available_memory is not None: self.available_memory = available_memory if fault_summary is not None: @@ -250,10 +264,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.service_profile = service_profile if total_memory is not None: self.total_memory = total_memory + if user_label is not None: + self.user_label = user_label if uuid is not None: self.uuid = uuid if adapters is not None: self.adapters = adapters + if bios_units is not None: + self.bios_units = bios_units if bmc is not None: self.bmc = bmc if board is not None: @@ -270,6 +288,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.registered_device = registered_device if slot_id is not None: self.slot_id = slot_id + if storage_enclosures is not None: + self.storage_enclosures = storage_enclosures if top_system is not None: self.top_system = top_system @@ -303,7 +323,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputeBlade. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -314,7 +334,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputeBlade. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -441,7 +461,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputeBlade. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -452,7 +472,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputeBlade. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -648,6 +668,27 @@ def admin_power_state(self, admin_power_state): self._admin_power_state = admin_power_state + @property + def asset_tag(self): + """ + Gets the asset_tag of this ComputeBlade. + + :return: The asset_tag of this ComputeBlade. + :rtype: str + """ + return self._asset_tag + + @asset_tag.setter + def asset_tag(self, asset_tag): + """ + Sets the asset_tag of this ComputeBlade. + + :param asset_tag: The asset_tag of this ComputeBlade. + :type: str + """ + + self._asset_tag = asset_tag + @property def available_memory(self): """ @@ -1026,6 +1067,27 @@ def total_memory(self, total_memory): self._total_memory = total_memory + @property + def user_label(self): + """ + Gets the user_label of this ComputeBlade. + + :return: The user_label of this ComputeBlade. + :rtype: str + """ + return self._user_label + + @user_label.setter + def user_label(self, user_label): + """ + Sets the user_label of this ComputeBlade. + + :param user_label: The user_label of this ComputeBlade. + :type: str + """ + + self._user_label = user_label + @property def uuid(self): """ @@ -1053,7 +1115,7 @@ def adapters(self): Gets the adapters of this ComputeBlade. :return: The adapters of this ComputeBlade. - :rtype: list[MoMoRef] + :rtype: list[AdapterUnitRef] """ return self._adapters @@ -1063,18 +1125,39 @@ def adapters(self, adapters): Sets the adapters of this ComputeBlade. :param adapters: The adapters of this ComputeBlade. - :type: list[MoMoRef] + :type: list[AdapterUnitRef] """ self._adapters = adapters + @property + def bios_units(self): + """ + Gets the bios_units of this ComputeBlade. + + :return: The bios_units of this ComputeBlade. + :rtype: list[BiosUnitRef] + """ + return self._bios_units + + @bios_units.setter + def bios_units(self, bios_units): + """ + Sets the bios_units of this ComputeBlade. + + :param bios_units: The bios_units of this ComputeBlade. + :type: list[BiosUnitRef] + """ + + self._bios_units = bios_units + @property def bmc(self): """ Gets the bmc of this ComputeBlade. :return: The bmc of this ComputeBlade. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._bmc @@ -1084,7 +1167,7 @@ def bmc(self, bmc): Sets the bmc of this ComputeBlade. :param bmc: The bmc of this ComputeBlade. - :type: MoMoRef + :type: ManagementControllerRef """ self._bmc = bmc @@ -1095,7 +1178,7 @@ def board(self): Gets the board of this ComputeBlade. :return: The board of this ComputeBlade. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._board @@ -1105,7 +1188,7 @@ def board(self, board): Sets the board of this ComputeBlade. :param board: The board of this ComputeBlade. - :type: MoMoRef + :type: ComputeBoardRef """ self._board = board @@ -1137,7 +1220,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this ComputeBlade. :return: The equipment_chassis of this ComputeBlade. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -1147,7 +1230,7 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this ComputeBlade. :param equipment_chassis: The equipment_chassis of this ComputeBlade. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis @@ -1158,7 +1241,7 @@ def generic_inventory_holders(self): Gets the generic_inventory_holders of this ComputeBlade. :return: The generic_inventory_holders of this ComputeBlade. - :rtype: list[MoMoRef] + :rtype: list[InventoryGenericInventoryHolderRef] """ return self._generic_inventory_holders @@ -1168,7 +1251,7 @@ def generic_inventory_holders(self, generic_inventory_holders): Sets the generic_inventory_holders of this ComputeBlade. :param generic_inventory_holders: The generic_inventory_holders of this ComputeBlade. - :type: list[MoMoRef] + :type: list[InventoryGenericInventoryHolderRef] """ self._generic_inventory_holders = generic_inventory_holders @@ -1179,7 +1262,7 @@ def locator_led(self): Gets the locator_led of this ComputeBlade. :return: The locator_led of this ComputeBlade. - :rtype: MoMoRef + :rtype: EquipmentLocatorLedRef """ return self._locator_led @@ -1189,7 +1272,7 @@ def locator_led(self, locator_led): Sets the locator_led of this ComputeBlade. :param locator_led: The locator_led of this ComputeBlade. - :type: MoMoRef + :type: EquipmentLocatorLedRef """ self._locator_led = locator_led @@ -1200,7 +1283,7 @@ def registered_device(self): Gets the registered_device of this ComputeBlade. :return: The registered_device of this ComputeBlade. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1210,7 +1293,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ComputeBlade. :param registered_device: The registered_device of this ComputeBlade. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -1236,13 +1319,34 @@ def slot_id(self, slot_id): self._slot_id = slot_id + @property + def storage_enclosures(self): + """ + Gets the storage_enclosures of this ComputeBlade. + + :return: The storage_enclosures of this ComputeBlade. + :rtype: list[StorageEnclosureRef] + """ + return self._storage_enclosures + + @storage_enclosures.setter + def storage_enclosures(self, storage_enclosures): + """ + Sets the storage_enclosures of this ComputeBlade. + + :param storage_enclosures: The storage_enclosures of this ComputeBlade. + :type: list[StorageEnclosureRef] + """ + + self._storage_enclosures = storage_enclosures + @property def top_system(self): """ Gets the top_system of this ComputeBlade. :return: The top_system of this ComputeBlade. - :rtype: MoMoRef + :rtype: TopSystemRef """ return self._top_system @@ -1252,7 +1356,7 @@ def top_system(self, top_system): Sets the top_system of this ComputeBlade. :param top_system: The top_system of this ComputeBlade. - :type: MoMoRef + :type: TopSystemRef """ self._top_system = top_system diff --git a/intersight/models/compute_blade_list.py b/intersight/models/compute_blade_list.py index 92a2db33..0ef619a3 100644 --- a/intersight/models/compute_blade_list.py +++ b/intersight/models/compute_blade_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_blade_ref.py b/intersight/models/compute_blade_ref.py new file mode 100644 index 00000000..7ff749fb --- /dev/null +++ b/intersight/models/compute_blade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeBladeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeBladeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeBladeRef. + + :return: The moid of this ComputeBladeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeBladeRef. + + :param moid: The moid of this ComputeBladeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeBladeRef. + + :return: The object_type of this ComputeBladeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeBladeRef. + + :param object_type: The object_type of this ComputeBladeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeBladeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_board.py b/intersight/models/compute_board.py index f4965805..0b53280b 100644 --- a/intersight/models/compute_board.py +++ b/intersight/models/compute_board.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class ComputeBoard(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -48,19 +48,19 @@ class ComputeBoard(object): 'serial': 'str', 'vendor': 'str', 'board_id': 'int', - 'compute_blade': 'MoMoRef', - 'compute_rack_unit': 'MoMoRef', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', 'cpu_type_controller': 'str', - 'graphics_cards': 'list[MoMoRef]', - 'memory_arrays': 'list[MoMoRef]', + 'graphics_cards': 'list[GraphicsCardRef]', + 'memory_arrays': 'list[MemoryArrayRef]', 'oper_power_state': 'str', 'presence': 'str', - 'processors': 'list[MoMoRef]', - 'registered_device': 'MoMoRef', - 'security_units': 'list[MoMoRef]', - 'storage_controllers': 'list[MoMoRef]', - 'storage_flex_flash_controllers': 'list[MoMoRef]', - 'storage_flex_util_controllers': 'list[MoMoRef]' + 'processors': 'list[ProcessorUnitRef]', + 'registered_device': 'AssetDeviceRegistrationRef', + 'security_units': 'list[SecurityUnitRef]', + 'storage_controllers': 'list[StorageControllerRef]', + 'storage_flex_flash_controllers': 'list[StorageFlexFlashControllerRef]', + 'storage_flex_util_controllers': 'list[StorageFlexUtilControllerRef]' } attribute_map = { @@ -223,7 +223,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -234,7 +234,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputeBoard. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -361,7 +361,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputeBoard. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -372,7 +372,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputeBoard. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -574,7 +574,7 @@ def compute_blade(self): Gets the compute_blade of this ComputeBoard. :return: The compute_blade of this ComputeBoard. - :rtype: MoMoRef + :rtype: ComputeBladeRef """ return self._compute_blade @@ -584,7 +584,7 @@ def compute_blade(self, compute_blade): Sets the compute_blade of this ComputeBoard. :param compute_blade: The compute_blade of this ComputeBoard. - :type: MoMoRef + :type: ComputeBladeRef """ self._compute_blade = compute_blade @@ -595,7 +595,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this ComputeBoard. :return: The compute_rack_unit of this ComputeBoard. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -605,7 +605,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this ComputeBoard. :param compute_rack_unit: The compute_rack_unit of this ComputeBoard. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -637,7 +637,7 @@ def graphics_cards(self): Gets the graphics_cards of this ComputeBoard. :return: The graphics_cards of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[GraphicsCardRef] """ return self._graphics_cards @@ -647,7 +647,7 @@ def graphics_cards(self, graphics_cards): Sets the graphics_cards of this ComputeBoard. :param graphics_cards: The graphics_cards of this ComputeBoard. - :type: list[MoMoRef] + :type: list[GraphicsCardRef] """ self._graphics_cards = graphics_cards @@ -658,7 +658,7 @@ def memory_arrays(self): Gets the memory_arrays of this ComputeBoard. :return: The memory_arrays of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[MemoryArrayRef] """ return self._memory_arrays @@ -668,7 +668,7 @@ def memory_arrays(self, memory_arrays): Sets the memory_arrays of this ComputeBoard. :param memory_arrays: The memory_arrays of this ComputeBoard. - :type: list[MoMoRef] + :type: list[MemoryArrayRef] """ self._memory_arrays = memory_arrays @@ -721,7 +721,7 @@ def processors(self): Gets the processors of this ComputeBoard. :return: The processors of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[ProcessorUnitRef] """ return self._processors @@ -731,7 +731,7 @@ def processors(self, processors): Sets the processors of this ComputeBoard. :param processors: The processors of this ComputeBoard. - :type: list[MoMoRef] + :type: list[ProcessorUnitRef] """ self._processors = processors @@ -742,7 +742,7 @@ def registered_device(self): Gets the registered_device of this ComputeBoard. :return: The registered_device of this ComputeBoard. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -752,7 +752,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ComputeBoard. :param registered_device: The registered_device of this ComputeBoard. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -763,7 +763,7 @@ def security_units(self): Gets the security_units of this ComputeBoard. :return: The security_units of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[SecurityUnitRef] """ return self._security_units @@ -773,7 +773,7 @@ def security_units(self, security_units): Sets the security_units of this ComputeBoard. :param security_units: The security_units of this ComputeBoard. - :type: list[MoMoRef] + :type: list[SecurityUnitRef] """ self._security_units = security_units @@ -784,7 +784,7 @@ def storage_controllers(self): Gets the storage_controllers of this ComputeBoard. :return: The storage_controllers of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[StorageControllerRef] """ return self._storage_controllers @@ -794,7 +794,7 @@ def storage_controllers(self, storage_controllers): Sets the storage_controllers of this ComputeBoard. :param storage_controllers: The storage_controllers of this ComputeBoard. - :type: list[MoMoRef] + :type: list[StorageControllerRef] """ self._storage_controllers = storage_controllers @@ -805,7 +805,7 @@ def storage_flex_flash_controllers(self): Gets the storage_flex_flash_controllers of this ComputeBoard. :return: The storage_flex_flash_controllers of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[StorageFlexFlashControllerRef] """ return self._storage_flex_flash_controllers @@ -815,7 +815,7 @@ def storage_flex_flash_controllers(self, storage_flex_flash_controllers): Sets the storage_flex_flash_controllers of this ComputeBoard. :param storage_flex_flash_controllers: The storage_flex_flash_controllers of this ComputeBoard. - :type: list[MoMoRef] + :type: list[StorageFlexFlashControllerRef] """ self._storage_flex_flash_controllers = storage_flex_flash_controllers @@ -826,7 +826,7 @@ def storage_flex_util_controllers(self): Gets the storage_flex_util_controllers of this ComputeBoard. :return: The storage_flex_util_controllers of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[StorageFlexUtilControllerRef] """ return self._storage_flex_util_controllers @@ -836,7 +836,7 @@ def storage_flex_util_controllers(self, storage_flex_util_controllers): Sets the storage_flex_util_controllers of this ComputeBoard. :param storage_flex_util_controllers: The storage_flex_util_controllers of this ComputeBoard. - :type: list[MoMoRef] + :type: list[StorageFlexUtilControllerRef] """ self._storage_flex_util_controllers = storage_flex_util_controllers diff --git a/intersight/models/compute_board_list.py b/intersight/models/compute_board_list.py index 5c2af8fe..b95ad00d 100644 --- a/intersight/models/compute_board_list.py +++ b/intersight/models/compute_board_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_board_ref.py b/intersight/models/compute_board_ref.py new file mode 100644 index 00000000..1ad0cc34 --- /dev/null +++ b/intersight/models/compute_board_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeBoardRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeBoardRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeBoardRef. + + :return: The moid of this ComputeBoardRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeBoardRef. + + :param moid: The moid of this ComputeBoardRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeBoardRef. + + :return: The object_type of this ComputeBoardRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeBoardRef. + + :param object_type: The object_type of this ComputeBoardRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeBoardRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_ip_address.py b/intersight/models/compute_ip_address.py index 46ab85ca..986227a4 100644 --- a/intersight/models/compute_ip_address.py +++ b/intersight/models/compute_ip_address.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_ip_address_ref.py b/intersight/models/compute_ip_address_ref.py new file mode 100644 index 00000000..b28f4653 --- /dev/null +++ b/intersight/models/compute_ip_address_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeIpAddressRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeIpAddressRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeIpAddressRef. + + :return: The moid of this ComputeIpAddressRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeIpAddressRef. + + :param moid: The moid of this ComputeIpAddressRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeIpAddressRef. + + :return: The object_type of this ComputeIpAddressRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeIpAddressRef. + + :param object_type: The object_type of this ComputeIpAddressRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeIpAddressRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_locator_led_operation_task_ref.py b/intersight/models/compute_locator_led_operation_task_ref.py new file mode 100644 index 00000000..2c576c62 --- /dev/null +++ b/intersight/models/compute_locator_led_operation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeLocatorLedOperationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeLocatorLedOperationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeLocatorLedOperationTaskRef. + + :return: The moid of this ComputeLocatorLedOperationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeLocatorLedOperationTaskRef. + + :param moid: The moid of this ComputeLocatorLedOperationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeLocatorLedOperationTaskRef. + + :return: The object_type of this ComputeLocatorLedOperationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeLocatorLedOperationTaskRef. + + :param object_type: The object_type of this ComputeLocatorLedOperationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeLocatorLedOperationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_operation_result_handler_ref.py b/intersight/models/compute_operation_result_handler_ref.py new file mode 100644 index 00000000..156ba4af --- /dev/null +++ b/intersight/models/compute_operation_result_handler_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeOperationResultHandlerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeOperationResultHandlerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeOperationResultHandlerRef. + + :return: The moid of this ComputeOperationResultHandlerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeOperationResultHandlerRef. + + :param moid: The moid of this ComputeOperationResultHandlerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeOperationResultHandlerRef. + + :return: The object_type of this ComputeOperationResultHandlerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeOperationResultHandlerRef. + + :param object_type: The object_type of this ComputeOperationResultHandlerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeOperationResultHandlerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_physical.py b/intersight/models/compute_physical.py index 43dfef2d..f604abc4 100644 --- a/intersight/models/compute_physical.py +++ b/intersight/models/compute_physical.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class ComputePhysical(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -48,6 +48,7 @@ class ComputePhysical(object): 'serial': 'str', 'vendor': 'str', 'admin_power_state': 'str', + 'asset_tag': 'str', 'available_memory': 'int', 'fault_summary': 'int', 'kvm_ip_addresses': 'list[ComputeIpAddress]', @@ -66,6 +67,7 @@ class ComputePhysical(object): 'presence': 'str', 'service_profile': 'str', 'total_memory': 'int', + 'user_label': 'str', 'uuid': 'str' } @@ -87,6 +89,7 @@ class ComputePhysical(object): 'serial': 'Serial', 'vendor': 'Vendor', 'admin_power_state': 'AdminPowerState', + 'asset_tag': 'AssetTag', 'available_memory': 'AvailableMemory', 'fault_summary': 'FaultSummary', 'kvm_ip_addresses': 'KvmIpAddresses', @@ -105,10 +108,11 @@ class ComputePhysical(object): 'presence': 'Presence', 'service_profile': 'ServiceProfile', 'total_memory': 'TotalMemory', + 'user_label': 'UserLabel', 'uuid': 'Uuid' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, uuid=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, asset_tag=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, user_label=None, uuid=None): """ ComputePhysical - a model defined in Swagger """ @@ -130,6 +134,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._serial = None self._vendor = None self._admin_power_state = None + self._asset_tag = None self._available_memory = None self._fault_summary = None self._kvm_ip_addresses = None @@ -148,6 +153,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._presence = None self._service_profile = None self._total_memory = None + self._user_label = None self._uuid = None if account_moid is not None: @@ -184,6 +190,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.vendor = vendor if admin_power_state is not None: self.admin_power_state = admin_power_state + if asset_tag is not None: + self.asset_tag = asset_tag if available_memory is not None: self.available_memory = available_memory if fault_summary is not None: @@ -220,6 +228,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.service_profile = service_profile if total_memory is not None: self.total_memory = total_memory + if user_label is not None: + self.user_label = user_label if uuid is not None: self.uuid = uuid @@ -253,7 +263,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputePhysical. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -264,7 +274,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputePhysical. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -391,7 +401,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputePhysical. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -402,7 +412,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputePhysical. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -598,6 +608,27 @@ def admin_power_state(self, admin_power_state): self._admin_power_state = admin_power_state + @property + def asset_tag(self): + """ + Gets the asset_tag of this ComputePhysical. + + :return: The asset_tag of this ComputePhysical. + :rtype: str + """ + return self._asset_tag + + @asset_tag.setter + def asset_tag(self, asset_tag): + """ + Sets the asset_tag of this ComputePhysical. + + :param asset_tag: The asset_tag of this ComputePhysical. + :type: str + """ + + self._asset_tag = asset_tag + @property def available_memory(self): """ @@ -976,6 +1007,27 @@ def total_memory(self, total_memory): self._total_memory = total_memory + @property + def user_label(self): + """ + Gets the user_label of this ComputePhysical. + + :return: The user_label of this ComputePhysical. + :rtype: str + """ + return self._user_label + + @user_label.setter + def user_label(self, user_label): + """ + Sets the user_label of this ComputePhysical. + + :param user_label: The user_label of this ComputePhysical. + :type: str + """ + + self._user_label = user_label + @property def uuid(self): """ diff --git a/intersight/models/compute_physical_ref.py b/intersight/models/compute_physical_ref.py new file mode 100644 index 00000000..c3f929cd --- /dev/null +++ b/intersight/models/compute_physical_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputePhysicalRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputePhysicalRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputePhysicalRef. + + :return: The moid of this ComputePhysicalRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputePhysicalRef. + + :param moid: The moid of this ComputePhysicalRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputePhysicalRef. + + :return: The object_type of this ComputePhysicalRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputePhysicalRef. + + :param object_type: The object_type of this ComputePhysicalRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputePhysicalRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_physical_summary.py b/intersight/models/compute_physical_summary.py index 59bec8c9..198f217a 100644 --- a/intersight/models/compute_physical_summary.py +++ b/intersight/models/compute_physical_summary.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,16 @@ class ComputePhysicalSummary(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'admin_power_state': 'str', + 'asset_tag': 'str', 'available_memory': 'int', 'chassis_id': 'str', 'cpu_capacity': 'float', @@ -51,6 +52,7 @@ class ComputePhysicalSummary(object): 'ipv4_address': 'str', 'kvm_ip_addresses': 'list[ComputeIpAddress]', 'memory_speed': 'str', + 'mgmt_ip_address': 'str', 'model': 'str', 'name': 'str', 'num_adaptors': 'int', @@ -65,7 +67,7 @@ class ComputePhysicalSummary(object): 'operability': 'str', 'platform_type': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'revision': 'str', 'rn': 'str', 'serial': 'str', @@ -74,6 +76,7 @@ class ComputePhysicalSummary(object): 'slot_id': 'int', 'source_object_type': 'str', 'total_memory': 'int', + 'user_label': 'str', 'uuid': 'str', 'vendor': 'str' } @@ -89,6 +92,7 @@ class ComputePhysicalSummary(object): 'parent': 'Parent', 'tags': 'Tags', 'admin_power_state': 'AdminPowerState', + 'asset_tag': 'AssetTag', 'available_memory': 'AvailableMemory', 'chassis_id': 'ChassisId', 'cpu_capacity': 'CpuCapacity', @@ -99,6 +103,7 @@ class ComputePhysicalSummary(object): 'ipv4_address': 'Ipv4Address', 'kvm_ip_addresses': 'KvmIpAddresses', 'memory_speed': 'MemorySpeed', + 'mgmt_ip_address': 'MgmtIpAddress', 'model': 'Model', 'name': 'Name', 'num_adaptors': 'NumAdaptors', @@ -122,11 +127,12 @@ class ComputePhysicalSummary(object): 'slot_id': 'SlotId', 'source_object_type': 'SourceObjectType', 'total_memory': 'TotalMemory', + 'user_label': 'UserLabel', 'uuid': 'Uuid', 'vendor': 'Vendor' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, admin_power_state=None, available_memory=None, chassis_id=None, cpu_capacity=None, device_mo_id=None, dn=None, fault_summary=None, firmware=None, ipv4_address=None, kvm_ip_addresses=None, memory_speed=None, model=None, name=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, registered_device=None, revision=None, rn=None, serial=None, server_id=None, service_profile=None, slot_id=None, source_object_type=None, total_memory=None, uuid=None, vendor=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, admin_power_state=None, asset_tag=None, available_memory=None, chassis_id=None, cpu_capacity=None, device_mo_id=None, dn=None, fault_summary=None, firmware=None, ipv4_address=None, kvm_ip_addresses=None, memory_speed=None, mgmt_ip_address=None, model=None, name=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, registered_device=None, revision=None, rn=None, serial=None, server_id=None, service_profile=None, slot_id=None, source_object_type=None, total_memory=None, user_label=None, uuid=None, vendor=None): """ ComputePhysicalSummary - a model defined in Swagger """ @@ -141,6 +147,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._parent = None self._tags = None self._admin_power_state = None + self._asset_tag = None self._available_memory = None self._chassis_id = None self._cpu_capacity = None @@ -151,6 +158,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._ipv4_address = None self._kvm_ip_addresses = None self._memory_speed = None + self._mgmt_ip_address = None self._model = None self._name = None self._num_adaptors = None @@ -174,6 +182,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._slot_id = None self._source_object_type = None self._total_memory = None + self._user_label = None self._uuid = None self._vendor = None @@ -197,6 +206,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.tags = tags if admin_power_state is not None: self.admin_power_state = admin_power_state + if asset_tag is not None: + self.asset_tag = asset_tag if available_memory is not None: self.available_memory = available_memory if chassis_id is not None: @@ -217,6 +228,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.kvm_ip_addresses = kvm_ip_addresses if memory_speed is not None: self.memory_speed = memory_speed + if mgmt_ip_address is not None: + self.mgmt_ip_address = mgmt_ip_address if model is not None: self.model = model if name is not None: @@ -263,6 +276,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.source_object_type = source_object_type if total_memory is not None: self.total_memory = total_memory + if user_label is not None: + self.user_label = user_label if uuid is not None: self.uuid = uuid if vendor is not None: @@ -298,7 +313,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputePhysicalSummary. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -309,7 +324,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputePhysicalSummary. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -436,7 +451,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputePhysicalSummary. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -447,7 +462,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputePhysicalSummary. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -496,6 +511,27 @@ def admin_power_state(self, admin_power_state): self._admin_power_state = admin_power_state + @property + def asset_tag(self): + """ + Gets the asset_tag of this ComputePhysicalSummary. + + :return: The asset_tag of this ComputePhysicalSummary. + :rtype: str + """ + return self._asset_tag + + @asset_tag.setter + def asset_tag(self, asset_tag): + """ + Sets the asset_tag of this ComputePhysicalSummary. + + :param asset_tag: The asset_tag of this ComputePhysicalSummary. + :type: str + """ + + self._asset_tag = asset_tag + @property def available_memory(self): """ @@ -712,6 +748,29 @@ def memory_speed(self, memory_speed): self._memory_speed = memory_speed + @property + def mgmt_ip_address(self): + """ + Gets the mgmt_ip_address of this ComputePhysicalSummary. + The IP address of the manangement IP of the UCSFI or CIMC + + :return: The mgmt_ip_address of this ComputePhysicalSummary. + :rtype: str + """ + return self._mgmt_ip_address + + @mgmt_ip_address.setter + def mgmt_ip_address(self, mgmt_ip_address): + """ + Sets the mgmt_ip_address of this ComputePhysicalSummary. + The IP address of the manangement IP of the UCSFI or CIMC + + :param mgmt_ip_address: The mgmt_ip_address of this ComputePhysicalSummary. + :type: str + """ + + self._mgmt_ip_address = mgmt_ip_address + @property def model(self): """ @@ -1014,7 +1073,7 @@ def registered_device(self): Gets the registered_device of this ComputePhysicalSummary. :return: The registered_device of this ComputePhysicalSummary. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1024,7 +1083,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ComputePhysicalSummary. :param registered_device: The registered_device of this ComputePhysicalSummary. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -1199,6 +1258,27 @@ def total_memory(self, total_memory): self._total_memory = total_memory + @property + def user_label(self): + """ + Gets the user_label of this ComputePhysicalSummary. + + :return: The user_label of this ComputePhysicalSummary. + :rtype: str + """ + return self._user_label + + @user_label.setter + def user_label(self, user_label): + """ + Sets the user_label of this ComputePhysicalSummary. + + :param user_label: The user_label of this ComputePhysicalSummary. + :type: str + """ + + self._user_label = user_label + @property def uuid(self): """ diff --git a/intersight/models/compute_physical_summary_list.py b/intersight/models/compute_physical_summary_list.py index 00613a78..05e6925a 100644 --- a/intersight/models/compute_physical_summary_list.py +++ b/intersight/models/compute_physical_summary_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_physical_summary_ref.py b/intersight/models/compute_physical_summary_ref.py new file mode 100644 index 00000000..7594aae0 --- /dev/null +++ b/intersight/models/compute_physical_summary_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputePhysicalSummaryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputePhysicalSummaryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputePhysicalSummaryRef. + + :return: The moid of this ComputePhysicalSummaryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputePhysicalSummaryRef. + + :param moid: The moid of this ComputePhysicalSummaryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputePhysicalSummaryRef. + + :return: The object_type of this ComputePhysicalSummaryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputePhysicalSummaryRef. + + :param object_type: The object_type of this ComputePhysicalSummaryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputePhysicalSummaryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_rack_unit.py b/intersight/models/compute_rack_unit.py index f672983f..e662e11c 100644 --- a/intersight/models/compute_rack_unit.py +++ b/intersight/models/compute_rack_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class ComputeRackUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -48,6 +48,7 @@ class ComputeRackUnit(object): 'serial': 'str', 'vendor': 'str', 'admin_power_state': 'str', + 'asset_tag': 'str', 'available_memory': 'int', 'fault_summary': 'int', 'kvm_ip_addresses': 'list[ComputeIpAddress]', @@ -66,19 +67,21 @@ class ComputeRackUnit(object): 'presence': 'str', 'service_profile': 'str', 'total_memory': 'int', + 'user_label': 'str', 'uuid': 'str', - 'adapters': 'list[MoMoRef]', - 'biosunits': 'list[MoMoRef]', - 'bmc': 'MoMoRef', - 'board': 'MoMoRef', - 'fanmodules': 'list[MoMoRef]', - 'generic_inventory_holders': 'list[MoMoRef]', - 'locator_led': 'MoMoRef', - 'psus': 'list[MoMoRef]', - 'registered_device': 'MoMoRef', - 'sas_expanders': 'list[MoMoRef]', + 'adapters': 'list[AdapterUnitRef]', + 'biosunits': 'list[BiosUnitRef]', + 'bmc': 'ManagementControllerRef', + 'board': 'ComputeBoardRef', + 'fanmodules': 'list[EquipmentFanModuleRef]', + 'generic_inventory_holders': 'list[InventoryGenericInventoryHolderRef]', + 'locator_led': 'EquipmentLocatorLedRef', + 'psus': 'list[EquipmentPsuRef]', + 'registered_device': 'AssetDeviceRegistrationRef', + 'sas_expanders': 'list[StorageSasExpanderRef]', 'server_id': 'int', - 'top_system': 'MoMoRef' + 'storage_enclosures': 'list[StorageEnclosureRef]', + 'top_system': 'TopSystemRef' } attribute_map = { @@ -99,6 +102,7 @@ class ComputeRackUnit(object): 'serial': 'Serial', 'vendor': 'Vendor', 'admin_power_state': 'AdminPowerState', + 'asset_tag': 'AssetTag', 'available_memory': 'AvailableMemory', 'fault_summary': 'FaultSummary', 'kvm_ip_addresses': 'KvmIpAddresses', @@ -117,6 +121,7 @@ class ComputeRackUnit(object): 'presence': 'Presence', 'service_profile': 'ServiceProfile', 'total_memory': 'TotalMemory', + 'user_label': 'UserLabel', 'uuid': 'Uuid', 'adapters': 'Adapters', 'biosunits': 'Biosunits', @@ -129,10 +134,11 @@ class ComputeRackUnit(object): 'registered_device': 'RegisteredDevice', 'sas_expanders': 'SasExpanders', 'server_id': 'ServerId', + 'storage_enclosures': 'StorageEnclosures', 'top_system': 'TopSystem' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, uuid=None, adapters=None, biosunits=None, bmc=None, board=None, fanmodules=None, generic_inventory_holders=None, locator_led=None, psus=None, registered_device=None, sas_expanders=None, server_id=None, top_system=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, asset_tag=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, user_label=None, uuid=None, adapters=None, biosunits=None, bmc=None, board=None, fanmodules=None, generic_inventory_holders=None, locator_led=None, psus=None, registered_device=None, sas_expanders=None, server_id=None, storage_enclosures=None, top_system=None): """ ComputeRackUnit - a model defined in Swagger """ @@ -154,6 +160,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._serial = None self._vendor = None self._admin_power_state = None + self._asset_tag = None self._available_memory = None self._fault_summary = None self._kvm_ip_addresses = None @@ -172,6 +179,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._presence = None self._service_profile = None self._total_memory = None + self._user_label = None self._uuid = None self._adapters = None self._biosunits = None @@ -184,6 +192,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._registered_device = None self._sas_expanders = None self._server_id = None + self._storage_enclosures = None self._top_system = None if account_moid is not None: @@ -220,6 +229,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.vendor = vendor if admin_power_state is not None: self.admin_power_state = admin_power_state + if asset_tag is not None: + self.asset_tag = asset_tag if available_memory is not None: self.available_memory = available_memory if fault_summary is not None: @@ -256,6 +267,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.service_profile = service_profile if total_memory is not None: self.total_memory = total_memory + if user_label is not None: + self.user_label = user_label if uuid is not None: self.uuid = uuid if adapters is not None: @@ -280,6 +293,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.sas_expanders = sas_expanders if server_id is not None: self.server_id = server_id + if storage_enclosures is not None: + self.storage_enclosures = storage_enclosures if top_system is not None: self.top_system = top_system @@ -313,7 +328,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -324,7 +339,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -451,7 +466,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -462,7 +477,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputeRackUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -658,6 +673,27 @@ def admin_power_state(self, admin_power_state): self._admin_power_state = admin_power_state + @property + def asset_tag(self): + """ + Gets the asset_tag of this ComputeRackUnit. + + :return: The asset_tag of this ComputeRackUnit. + :rtype: str + """ + return self._asset_tag + + @asset_tag.setter + def asset_tag(self, asset_tag): + """ + Sets the asset_tag of this ComputeRackUnit. + + :param asset_tag: The asset_tag of this ComputeRackUnit. + :type: str + """ + + self._asset_tag = asset_tag + @property def available_memory(self): """ @@ -1036,6 +1072,27 @@ def total_memory(self, total_memory): self._total_memory = total_memory + @property + def user_label(self): + """ + Gets the user_label of this ComputeRackUnit. + + :return: The user_label of this ComputeRackUnit. + :rtype: str + """ + return self._user_label + + @user_label.setter + def user_label(self, user_label): + """ + Sets the user_label of this ComputeRackUnit. + + :param user_label: The user_label of this ComputeRackUnit. + :type: str + """ + + self._user_label = user_label + @property def uuid(self): """ @@ -1063,7 +1120,7 @@ def adapters(self): Gets the adapters of this ComputeRackUnit. :return: The adapters of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[AdapterUnitRef] """ return self._adapters @@ -1073,7 +1130,7 @@ def adapters(self, adapters): Sets the adapters of this ComputeRackUnit. :param adapters: The adapters of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[AdapterUnitRef] """ self._adapters = adapters @@ -1084,7 +1141,7 @@ def biosunits(self): Gets the biosunits of this ComputeRackUnit. :return: The biosunits of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[BiosUnitRef] """ return self._biosunits @@ -1094,7 +1151,7 @@ def biosunits(self, biosunits): Sets the biosunits of this ComputeRackUnit. :param biosunits: The biosunits of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[BiosUnitRef] """ self._biosunits = biosunits @@ -1105,7 +1162,7 @@ def bmc(self): Gets the bmc of this ComputeRackUnit. :return: The bmc of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._bmc @@ -1115,7 +1172,7 @@ def bmc(self, bmc): Sets the bmc of this ComputeRackUnit. :param bmc: The bmc of this ComputeRackUnit. - :type: MoMoRef + :type: ManagementControllerRef """ self._bmc = bmc @@ -1126,7 +1183,7 @@ def board(self): Gets the board of this ComputeRackUnit. :return: The board of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._board @@ -1136,7 +1193,7 @@ def board(self, board): Sets the board of this ComputeRackUnit. :param board: The board of this ComputeRackUnit. - :type: MoMoRef + :type: ComputeBoardRef """ self._board = board @@ -1147,7 +1204,7 @@ def fanmodules(self): Gets the fanmodules of this ComputeRackUnit. :return: The fanmodules of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[EquipmentFanModuleRef] """ return self._fanmodules @@ -1157,7 +1214,7 @@ def fanmodules(self, fanmodules): Sets the fanmodules of this ComputeRackUnit. :param fanmodules: The fanmodules of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[EquipmentFanModuleRef] """ self._fanmodules = fanmodules @@ -1168,7 +1225,7 @@ def generic_inventory_holders(self): Gets the generic_inventory_holders of this ComputeRackUnit. :return: The generic_inventory_holders of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[InventoryGenericInventoryHolderRef] """ return self._generic_inventory_holders @@ -1178,7 +1235,7 @@ def generic_inventory_holders(self, generic_inventory_holders): Sets the generic_inventory_holders of this ComputeRackUnit. :param generic_inventory_holders: The generic_inventory_holders of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[InventoryGenericInventoryHolderRef] """ self._generic_inventory_holders = generic_inventory_holders @@ -1189,7 +1246,7 @@ def locator_led(self): Gets the locator_led of this ComputeRackUnit. :return: The locator_led of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: EquipmentLocatorLedRef """ return self._locator_led @@ -1199,7 +1256,7 @@ def locator_led(self, locator_led): Sets the locator_led of this ComputeRackUnit. :param locator_led: The locator_led of this ComputeRackUnit. - :type: MoMoRef + :type: EquipmentLocatorLedRef """ self._locator_led = locator_led @@ -1210,7 +1267,7 @@ def psus(self): Gets the psus of this ComputeRackUnit. :return: The psus of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[EquipmentPsuRef] """ return self._psus @@ -1220,7 +1277,7 @@ def psus(self, psus): Sets the psus of this ComputeRackUnit. :param psus: The psus of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[EquipmentPsuRef] """ self._psus = psus @@ -1231,7 +1288,7 @@ def registered_device(self): Gets the registered_device of this ComputeRackUnit. :return: The registered_device of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1241,7 +1298,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ComputeRackUnit. :param registered_device: The registered_device of this ComputeRackUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -1252,7 +1309,7 @@ def sas_expanders(self): Gets the sas_expanders of this ComputeRackUnit. :return: The sas_expanders of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[StorageSasExpanderRef] """ return self._sas_expanders @@ -1262,7 +1319,7 @@ def sas_expanders(self, sas_expanders): Sets the sas_expanders of this ComputeRackUnit. :param sas_expanders: The sas_expanders of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[StorageSasExpanderRef] """ self._sas_expanders = sas_expanders @@ -1288,13 +1345,34 @@ def server_id(self, server_id): self._server_id = server_id + @property + def storage_enclosures(self): + """ + Gets the storage_enclosures of this ComputeRackUnit. + + :return: The storage_enclosures of this ComputeRackUnit. + :rtype: list[StorageEnclosureRef] + """ + return self._storage_enclosures + + @storage_enclosures.setter + def storage_enclosures(self, storage_enclosures): + """ + Sets the storage_enclosures of this ComputeRackUnit. + + :param storage_enclosures: The storage_enclosures of this ComputeRackUnit. + :type: list[StorageEnclosureRef] + """ + + self._storage_enclosures = storage_enclosures + @property def top_system(self): """ Gets the top_system of this ComputeRackUnit. :return: The top_system of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: TopSystemRef """ return self._top_system @@ -1304,7 +1382,7 @@ def top_system(self, top_system): Sets the top_system of this ComputeRackUnit. :param top_system: The top_system of this ComputeRackUnit. - :type: MoMoRef + :type: TopSystemRef """ self._top_system = top_system diff --git a/intersight/models/compute_rack_unit_list.py b/intersight/models/compute_rack_unit_list.py index 212eec27..d17c1124 100644 --- a/intersight/models/compute_rack_unit_list.py +++ b/intersight/models/compute_rack_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_rack_unit_ref.py b/intersight/models/compute_rack_unit_ref.py new file mode 100644 index 00000000..f764d765 --- /dev/null +++ b/intersight/models/compute_rack_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeRackUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeRackUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeRackUnitRef. + + :return: The moid of this ComputeRackUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeRackUnitRef. + + :param moid: The moid of this ComputeRackUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeRackUnitRef. + + :return: The object_type of this ComputeRackUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeRackUnitRef. + + :param object_type: The object_type of this ComputeRackUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeRackUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_server_config.py b/intersight/models/compute_server_config.py index 72ca5a00..07559753 100644 --- a/intersight/models/compute_server_config.py +++ b/intersight/models/compute_server_config.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_server_config_ref.py b/intersight/models/compute_server_config_ref.py new file mode 100644 index 00000000..9947928a --- /dev/null +++ b/intersight/models/compute_server_config_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeServerConfigRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeServerConfigRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeServerConfigRef. + + :return: The moid of this ComputeServerConfigRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeServerConfigRef. + + :param moid: The moid of this ComputeServerConfigRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeServerConfigRef. + + :return: The object_type of this ComputeServerConfigRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeServerConfigRef. + + :param object_type: The object_type of this ComputeServerConfigRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeServerConfigRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_server_operation_task_ref.py b/intersight/models/compute_server_operation_task_ref.py new file mode 100644 index 00000000..b74ed0f0 --- /dev/null +++ b/intersight/models/compute_server_operation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeServerOperationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeServerOperationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeServerOperationTaskRef. + + :return: The moid of this ComputeServerOperationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeServerOperationTaskRef. + + :param moid: The moid of this ComputeServerOperationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeServerOperationTaskRef. + + :return: The object_type of this ComputeServerOperationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeServerOperationTaskRef. + + :param object_type: The object_type of this ComputeServerOperationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeServerOperationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_server_setting.py b/intersight/models/compute_server_setting.py index 5f83c510..bf523c5e 100644 --- a/intersight/models/compute_server_setting.py +++ b/intersight/models/compute_server_setting.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class ComputeServerSetting(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -46,9 +46,9 @@ class ComputeServerSetting(object): 'admin_locator_led_state': 'str', 'admin_power_state': 'str', 'config_state': 'str', - 'locator_led': 'MoMoRef', - 'registered_device': 'MoMoRef', - 'server': 'MoMoRef', + 'locator_led': 'EquipmentLocatorLedRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'server': 'ComputeRackUnitRef', 'server_config': 'ComputeServerConfig' } @@ -168,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputeServerSetting. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputeServerSetting. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputeServerSetting. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputeServerSetting. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -428,7 +428,7 @@ def admin_locator_led_state(self, admin_locator_led_state): :param admin_locator_led_state: The admin_locator_led_state of this ComputeServerSetting. :type: str """ - allowed_values = ["None"] + allowed_values = ["None", "On", "Off"] if admin_locator_led_state not in allowed_values: raise ValueError( "Invalid value for `admin_locator_led_state` ({0}), must be one of {1}" @@ -502,7 +502,7 @@ def locator_led(self): This relation stores a reference to locator LED MO of this server :return: The locator_led of this ComputeServerSetting. - :rtype: MoMoRef + :rtype: EquipmentLocatorLedRef """ return self._locator_led @@ -513,7 +513,7 @@ def locator_led(self, locator_led): This relation stores a reference to locator LED MO of this server :param locator_led: The locator_led of this ComputeServerSetting. - :type: MoMoRef + :type: EquipmentLocatorLedRef """ self._locator_led = locator_led @@ -525,7 +525,7 @@ def registered_device(self): This relation stores the device end point from which this server was discovered :return: The registered_device of this ComputeServerSetting. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -536,7 +536,7 @@ def registered_device(self, registered_device): This relation stores the device end point from which this server was discovered :param registered_device: The registered_device of this ComputeServerSetting. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -547,7 +547,7 @@ def server(self): Gets the server of this ComputeServerSetting. :return: The server of this ComputeServerSetting. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._server @@ -557,7 +557,7 @@ def server(self, server): Sets the server of this ComputeServerSetting. :param server: The server of this ComputeServerSetting. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._server = server diff --git a/intersight/models/compute_server_setting_list.py b/intersight/models/compute_server_setting_list.py index b6d8fd9b..fbe5cf50 100644 --- a/intersight/models/compute_server_setting_list.py +++ b/intersight/models/compute_server_setting_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_server_setting_ref.py b/intersight/models/compute_server_setting_ref.py new file mode 100644 index 00000000..816b06fe --- /dev/null +++ b/intersight/models/compute_server_setting_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeServerSettingRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeServerSettingRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeServerSettingRef. + + :return: The moid of this ComputeServerSettingRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeServerSettingRef. + + :param moid: The moid of this ComputeServerSettingRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeServerSettingRef. + + :return: The object_type of this ComputeServerSettingRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeServerSettingRef. + + :param object_type: The object_type of this ComputeServerSettingRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeServerSettingRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cond_alarm.py b/intersight/models/cond_alarm.py index 3f63f374..4291165b 100644 --- a/intersight/models/cond_alarm.py +++ b/intersight/models/cond_alarm.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class CondAlarm(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'affected_mo_id': 'str', 'affected_mo_type': 'str', @@ -52,7 +52,7 @@ class CondAlarm(object): 'ms_affected_object': 'str', 'name': 'str', 'orig_severity': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'severity': 'str' } @@ -188,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this CondAlarm. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -199,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this CondAlarm. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -326,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this CondAlarm. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -337,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this CondAlarm. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -648,7 +648,7 @@ def registered_device(self): Relationship to set accountMoid on Alarms. With \"onpeerdelete\" set to \"cascade\", Alarms get deleted when the associated registered device is deleted. :return: The registered_device of this CondAlarm. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -659,7 +659,7 @@ def registered_device(self, registered_device): Relationship to set accountMoid on Alarms. With \"onpeerdelete\" set to \"cascade\", Alarms get deleted when the associated registered device is deleted. :param registered_device: The registered_device of this CondAlarm. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/cond_alarm_list.py b/intersight/models/cond_alarm_list.py index 9ca95cd1..023a9f7b 100644 --- a/intersight/models/cond_alarm_list.py +++ b/intersight/models/cond_alarm_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/cond_alarm_ref.py b/intersight/models/cond_alarm_ref.py new file mode 100644 index 00000000..e2966b9d --- /dev/null +++ b/intersight/models/cond_alarm_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CondAlarmRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CondAlarmRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CondAlarmRef. + + :return: The moid of this CondAlarmRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CondAlarmRef. + + :param moid: The moid of this CondAlarmRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CondAlarmRef. + + :return: The object_type of this CondAlarmRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CondAlarmRef. + + :param object_type: The object_type of this CondAlarmRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CondAlarmRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cond_hcl_status.py b/intersight/models/cond_hcl_status.py index 639f4172..ed4465d4 100644 --- a/intersight/models/cond_hcl_status.py +++ b/intersight/models/cond_hcl_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,26 +32,28 @@ class CondHclStatus(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'details': 'list[MoMoRef]', + 'details': 'list[CondHclStatusDetailRef]', + 'hcl_firmware_version': 'str', 'hcl_model': 'str', 'hcl_os_vendor': 'str', 'hcl_os_version': 'str', 'hcl_processor': 'str', + 'inv_firmware_version': 'str', 'inv_model': 'str', 'inv_os_vendor': 'str', 'inv_os_version': 'str', 'inv_processor': 'str', - 'managed_object': 'MoMoRef', + 'managed_object': 'InventoryBaseRef', 'reason': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'status': 'str' } @@ -66,10 +68,12 @@ class CondHclStatus(object): 'parent': 'Parent', 'tags': 'Tags', 'details': 'Details', + 'hcl_firmware_version': 'HclFirmwareVersion', 'hcl_model': 'HclModel', 'hcl_os_vendor': 'HclOsVendor', 'hcl_os_version': 'HclOsVersion', 'hcl_processor': 'HclProcessor', + 'inv_firmware_version': 'InvFirmwareVersion', 'inv_model': 'InvModel', 'inv_os_vendor': 'InvOsVendor', 'inv_os_version': 'InvOsVersion', @@ -80,7 +84,7 @@ class CondHclStatus(object): 'status': 'Status' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, details=None, hcl_model=None, hcl_os_vendor=None, hcl_os_version=None, hcl_processor=None, inv_model=None, inv_os_vendor=None, inv_os_version=None, inv_processor=None, managed_object=None, reason=None, registered_device=None, status=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, details=None, hcl_firmware_version=None, hcl_model=None, hcl_os_vendor=None, hcl_os_version=None, hcl_processor=None, inv_firmware_version=None, inv_model=None, inv_os_vendor=None, inv_os_version=None, inv_processor=None, managed_object=None, reason='Missing-Os-Info', registered_device=None, status='Incomplete'): """ CondHclStatus - a model defined in Swagger """ @@ -95,10 +99,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._parent = None self._tags = None self._details = None + self._hcl_firmware_version = None self._hcl_model = None self._hcl_os_vendor = None self._hcl_os_version = None self._hcl_processor = None + self._inv_firmware_version = None self._inv_model = None self._inv_os_vendor = None self._inv_os_version = None @@ -128,6 +134,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.tags = tags if details is not None: self.details = details + if hcl_firmware_version is not None: + self.hcl_firmware_version = hcl_firmware_version if hcl_model is not None: self.hcl_model = hcl_model if hcl_os_vendor is not None: @@ -136,6 +144,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.hcl_os_version = hcl_os_version if hcl_processor is not None: self.hcl_processor = hcl_processor + if inv_firmware_version is not None: + self.inv_firmware_version = inv_firmware_version if inv_model is not None: self.inv_model = inv_model if inv_os_vendor is not None: @@ -183,7 +193,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this CondHclStatus. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +204,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this CondHclStatus. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +331,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this CondHclStatus. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +342,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this CondHclStatus. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -367,7 +377,7 @@ def details(self): a collection of all the HclStatusDetails :return: The details of this CondHclStatus. - :rtype: list[MoMoRef] + :rtype: list[CondHclStatusDetailRef] """ return self._details @@ -378,11 +388,34 @@ def details(self, details): a collection of all the HclStatusDetails :param details: The details of this CondHclStatus. - :type: list[MoMoRef] + :type: list[CondHclStatusDetailRef] """ self._details = details + @property + def hcl_firmware_version(self): + """ + Gets the hcl_firmware_version of this CondHclStatus. + the current CIMC version for the server normalized for querying HCL data + + :return: The hcl_firmware_version of this CondHclStatus. + :rtype: str + """ + return self._hcl_firmware_version + + @hcl_firmware_version.setter + def hcl_firmware_version(self, hcl_firmware_version): + """ + Sets the hcl_firmware_version of this CondHclStatus. + the current CIMC version for the server normalized for querying HCL data + + :param hcl_firmware_version: The hcl_firmware_version of this CondHclStatus. + :type: str + """ + + self._hcl_firmware_version = hcl_firmware_version + @property def hcl_model(self): """ @@ -475,6 +508,29 @@ def hcl_processor(self, hcl_processor): self._hcl_processor = hcl_processor + @property + def inv_firmware_version(self): + """ + Gets the inv_firmware_version of this CondHclStatus. + the current CIMC version for the server as received from inventory + + :return: The inv_firmware_version of this CondHclStatus. + :rtype: str + """ + return self._inv_firmware_version + + @inv_firmware_version.setter + def inv_firmware_version(self, inv_firmware_version): + """ + Sets the inv_firmware_version of this CondHclStatus. + the current CIMC version for the server as received from inventory + + :param inv_firmware_version: The inv_firmware_version of this CondHclStatus. + :type: str + """ + + self._inv_firmware_version = inv_firmware_version + @property def inv_model(self): """ @@ -574,7 +630,7 @@ def managed_object(self): specifies the managed object for which this HCLStatus applies :return: The managed_object of this CondHclStatus. - :rtype: MoMoRef + :rtype: InventoryBaseRef """ return self._managed_object @@ -585,7 +641,7 @@ def managed_object(self, managed_object): specifies the managed object for which this HCLStatus applies :param managed_object: The managed_object of this CondHclStatus. - :type: MoMoRef + :type: InventoryBaseRef """ self._managed_object = managed_object @@ -610,6 +666,12 @@ def reason(self, reason): :param reason: The reason of this CondHclStatus. :type: str """ + allowed_values = ["Missing-Os-Info", "Incompatible-Components", "Compatible"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) self._reason = reason @@ -620,7 +682,7 @@ def registered_device(self): Relationship to the registered device. We need this in order to correctly set permissions during device claim :return: The registered_device of this CondHclStatus. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -631,7 +693,7 @@ def registered_device(self, registered_device): Relationship to the registered device. We need this in order to correctly set permissions during device claim :param registered_device: The registered_device of this CondHclStatus. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -656,6 +718,12 @@ def status(self, status): :param status: The status of this CondHclStatus. :type: str """ + allowed_values = ["Incomplete", "Not-Found", "Validated"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) self._status = status diff --git a/intersight/models/cond_hcl_status_detail.py b/intersight/models/cond_hcl_status_detail.py index adbc7483..edb7de98 100644 --- a/intersight/models/cond_hcl_status_detail.py +++ b/intersight/models/cond_hcl_status_detail.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,27 +32,26 @@ class CondHclStatusDetail(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'actions': 'list[MoMoRef]', - 'component': 'MoMoRef', + 'component': 'InventoryBaseRef', + 'hcl_cimc_version': 'str', 'hcl_driver_name': 'str', 'hcl_driver_version': 'str', 'hcl_firmware_version': 'str', 'hcl_model': 'str', - 'hcl_status': 'MoMoRef', - 'hcl_ucs_version': 'str', + 'hcl_status': 'CondHclStatusRef', + 'inv_cimc_version': 'str', 'inv_driver_name': 'str', 'inv_driver_version': 'str', 'inv_firmware_version': 'str', 'inv_model': 'str', - 'inv_ucs_version': 'str', 'reason': 'str', 'status': 'str' } @@ -67,24 +66,23 @@ class CondHclStatusDetail(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', - 'actions': 'Actions', 'component': 'Component', + 'hcl_cimc_version': 'HclCimcVersion', 'hcl_driver_name': 'HclDriverName', 'hcl_driver_version': 'HclDriverVersion', 'hcl_firmware_version': 'HclFirmwareVersion', 'hcl_model': 'HclModel', 'hcl_status': 'HclStatus', - 'hcl_ucs_version': 'HclUcsVersion', + 'inv_cimc_version': 'InvCimcVersion', 'inv_driver_name': 'InvDriverName', 'inv_driver_version': 'InvDriverVersion', 'inv_firmware_version': 'InvFirmwareVersion', 'inv_model': 'InvModel', - 'inv_ucs_version': 'InvUcsVersion', 'reason': 'Reason', 'status': 'Status' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, actions=None, component=None, hcl_driver_name=None, hcl_driver_version=None, hcl_firmware_version=None, hcl_model=None, hcl_status=None, hcl_ucs_version=None, inv_driver_name=None, inv_driver_version=None, inv_firmware_version=None, inv_model=None, inv_ucs_version=None, reason=None, status=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, component=None, hcl_cimc_version=None, hcl_driver_name=None, hcl_driver_version=None, hcl_firmware_version=None, hcl_model=None, hcl_status=None, inv_cimc_version=None, inv_driver_name=None, inv_driver_version=None, inv_firmware_version=None, inv_model=None, reason='Missing-Os-Driver-Info', status='Incomplete'): """ CondHclStatusDetail - a model defined in Swagger """ @@ -98,19 +96,18 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None - self._actions = None self._component = None + self._hcl_cimc_version = None self._hcl_driver_name = None self._hcl_driver_version = None self._hcl_firmware_version = None self._hcl_model = None self._hcl_status = None - self._hcl_ucs_version = None + self._inv_cimc_version = None self._inv_driver_name = None self._inv_driver_version = None self._inv_firmware_version = None self._inv_model = None - self._inv_ucs_version = None self._reason = None self._status = None @@ -132,10 +129,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags - if actions is not None: - self.actions = actions if component is not None: self.component = component + if hcl_cimc_version is not None: + self.hcl_cimc_version = hcl_cimc_version if hcl_driver_name is not None: self.hcl_driver_name = hcl_driver_name if hcl_driver_version is not None: @@ -146,8 +143,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.hcl_model = hcl_model if hcl_status is not None: self.hcl_status = hcl_status - if hcl_ucs_version is not None: - self.hcl_ucs_version = hcl_ucs_version + if inv_cimc_version is not None: + self.inv_cimc_version = inv_cimc_version if inv_driver_name is not None: self.inv_driver_name = inv_driver_name if inv_driver_version is not None: @@ -156,8 +153,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.inv_firmware_version = inv_firmware_version if inv_model is not None: self.inv_model = inv_model - if inv_ucs_version is not None: - self.inv_ucs_version = inv_ucs_version if reason is not None: self.reason = reason if status is not None: @@ -193,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this CondHclStatusDetail. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this CondHclStatusDetail. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this CondHclStatusDetail. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this CondHclStatusDetail. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -370,29 +365,6 @@ def tags(self, tags): self._tags = tags - @property - def actions(self): - """ - Gets the actions of this CondHclStatusDetail. - the HclStatusActions associated with this detail - - :return: The actions of this CondHclStatusDetail. - :rtype: list[MoMoRef] - """ - return self._actions - - @actions.setter - def actions(self, actions): - """ - Sets the actions of this CondHclStatusDetail. - the HclStatusActions associated with this detail - - :param actions: The actions of this CondHclStatusDetail. - :type: list[MoMoRef] - """ - - self._actions = actions - @property def component(self): """ @@ -400,7 +372,7 @@ def component(self): specifies the component associated to this status detail HclStatusDetail (adapter or storage controller) :return: The component of this CondHclStatusDetail. - :rtype: MoMoRef + :rtype: InventoryBaseRef """ return self._component @@ -411,11 +383,34 @@ def component(self, component): specifies the component associated to this status detail HclStatusDetail (adapter or storage controller) :param component: The component of this CondHclStatusDetail. - :type: MoMoRef + :type: InventoryBaseRef """ self._component = component + @property + def hcl_cimc_version(self): + """ + Gets the hcl_cimc_version of this CondHclStatusDetail. + the current CIMC version for the server normalized for querying HCL data + + :return: The hcl_cimc_version of this CondHclStatusDetail. + :rtype: str + """ + return self._hcl_cimc_version + + @hcl_cimc_version.setter + def hcl_cimc_version(self, hcl_cimc_version): + """ + Sets the hcl_cimc_version of this CondHclStatusDetail. + the current CIMC version for the server normalized for querying HCL data + + :param hcl_cimc_version: The hcl_cimc_version of this CondHclStatusDetail. + :type: str + """ + + self._hcl_cimc_version = hcl_cimc_version + @property def hcl_driver_name(self): """ @@ -514,7 +509,7 @@ def hcl_status(self): Gets the hcl_status of this CondHclStatusDetail. :return: The hcl_status of this CondHclStatusDetail. - :rtype: MoMoRef + :rtype: CondHclStatusRef """ return self._hcl_status @@ -524,33 +519,33 @@ def hcl_status(self, hcl_status): Sets the hcl_status of this CondHclStatusDetail. :param hcl_status: The hcl_status of this CondHclStatusDetail. - :type: MoMoRef + :type: CondHclStatusRef """ self._hcl_status = hcl_status @property - def hcl_ucs_version(self): + def inv_cimc_version(self): """ - Gets the hcl_ucs_version of this CondHclStatusDetail. - the current ucs version of the component model normalized for querying HCL data + Gets the inv_cimc_version of this CondHclStatusDetail. + the current CIMC version for the server as received from inventory - :return: The hcl_ucs_version of this CondHclStatusDetail. + :return: The inv_cimc_version of this CondHclStatusDetail. :rtype: str """ - return self._hcl_ucs_version + return self._inv_cimc_version - @hcl_ucs_version.setter - def hcl_ucs_version(self, hcl_ucs_version): + @inv_cimc_version.setter + def inv_cimc_version(self, inv_cimc_version): """ - Sets the hcl_ucs_version of this CondHclStatusDetail. - the current ucs version of the component model normalized for querying HCL data + Sets the inv_cimc_version of this CondHclStatusDetail. + the current CIMC version for the server as received from inventory - :param hcl_ucs_version: The hcl_ucs_version of this CondHclStatusDetail. + :param inv_cimc_version: The inv_cimc_version of this CondHclStatusDetail. :type: str """ - self._hcl_ucs_version = hcl_ucs_version + self._inv_cimc_version = inv_cimc_version @property def inv_driver_name(self): @@ -644,34 +639,11 @@ def inv_model(self, inv_model): self._inv_model = inv_model - @property - def inv_ucs_version(self): - """ - Gets the inv_ucs_version of this CondHclStatusDetail. - the current ucs version of the component model as received from inventory - - :return: The inv_ucs_version of this CondHclStatusDetail. - :rtype: str - """ - return self._inv_ucs_version - - @inv_ucs_version.setter - def inv_ucs_version(self, inv_ucs_version): - """ - Sets the inv_ucs_version of this CondHclStatusDetail. - the current ucs version of the component model as received from inventory - - :param inv_ucs_version: The inv_ucs_version of this CondHclStatusDetail. - :type: str - """ - - self._inv_ucs_version = inv_ucs_version - @property def reason(self): """ Gets the reason of this CondHclStatusDetail. - the reason for the status. The reason can be one of \"Incompatible-Server-Model\" - HCL validation has failed because the server model is not validated with this component \"Incompatible-Processor\" - HCL validation has failed because the processor is not validated with this component \"Incompatible-Os-Info\" - HCL validation has failed because the os vendor and version is not validated with this component \"Incompatible-Component-Model\" - HCL validation has failed because the component model is not validated \"Incompatible-Firmware-Driver\" - HCL validation has failed because the firmware version is not validated with the driver version \"Incompatible-Ucs-Version\" - HCL validation has failed because the UCS version is not validated with this component \"Missing-Os-Driver-Info\" - HCL validation was not performed because we are missing os driver information form device \"Compatible\" - this component's inventory data has \"Validated\" status with the HCL + the reason for the status. The reason can be one of \"Incompatible-Server-With-Component\" - HCL validation has failed because the server model is not validated with this component \"Incompatible-Processor\" - HCL validation has failed because the processor is not validated with this component \"Incompatible-Os-Info\" - HCL validation has failed because the os vendor and version is not validated with this component \"Incompatible-Component-Model\" - HCL validation has failed because the component model is not validated \"Incompatible-Firmware\" - HCL validation has failed because the firmware version is not validated \"Incompatible-Driver\" - HCL validation has failed because the driver version is not validated \"Incompatible-Firmware-Driver\" - HCL validation has failed because the firmware version and driver version is not validated \"Incompatible-Cimc-Version\" - HCL validation has failed because the CIMC version is not validated with this component \"Missing-Os-Driver-Info\" - HCL validation was not performed because we are missing os driver information form device \"Service-Unavailable\" - HCL data service is unavailable at the moment (try again later). This could be due to HCL data updating \"Service-Error\" - HCL data service is available but an error occured when making the request or parsing the response. \"Unrecognized-Protocol\" - HCL service does not recognize the given driver protocol for this component. HCL data may need to be updated \"Compatible\" - this component's inventory data has \"Validated\" status with the HCL :return: The reason of this CondHclStatusDetail. :rtype: str @@ -682,11 +654,17 @@ def reason(self): def reason(self, reason): """ Sets the reason of this CondHclStatusDetail. - the reason for the status. The reason can be one of \"Incompatible-Server-Model\" - HCL validation has failed because the server model is not validated with this component \"Incompatible-Processor\" - HCL validation has failed because the processor is not validated with this component \"Incompatible-Os-Info\" - HCL validation has failed because the os vendor and version is not validated with this component \"Incompatible-Component-Model\" - HCL validation has failed because the component model is not validated \"Incompatible-Firmware-Driver\" - HCL validation has failed because the firmware version is not validated with the driver version \"Incompatible-Ucs-Version\" - HCL validation has failed because the UCS version is not validated with this component \"Missing-Os-Driver-Info\" - HCL validation was not performed because we are missing os driver information form device \"Compatible\" - this component's inventory data has \"Validated\" status with the HCL + the reason for the status. The reason can be one of \"Incompatible-Server-With-Component\" - HCL validation has failed because the server model is not validated with this component \"Incompatible-Processor\" - HCL validation has failed because the processor is not validated with this component \"Incompatible-Os-Info\" - HCL validation has failed because the os vendor and version is not validated with this component \"Incompatible-Component-Model\" - HCL validation has failed because the component model is not validated \"Incompatible-Firmware\" - HCL validation has failed because the firmware version is not validated \"Incompatible-Driver\" - HCL validation has failed because the driver version is not validated \"Incompatible-Firmware-Driver\" - HCL validation has failed because the firmware version and driver version is not validated \"Incompatible-Cimc-Version\" - HCL validation has failed because the CIMC version is not validated with this component \"Missing-Os-Driver-Info\" - HCL validation was not performed because we are missing os driver information form device \"Service-Unavailable\" - HCL data service is unavailable at the moment (try again later). This could be due to HCL data updating \"Service-Error\" - HCL data service is available but an error occured when making the request or parsing the response. \"Unrecognized-Protocol\" - HCL service does not recognize the given driver protocol for this component. HCL data may need to be updated \"Compatible\" - this component's inventory data has \"Validated\" status with the HCL :param reason: The reason of this CondHclStatusDetail. :type: str """ + allowed_values = ["Missing-Os-Driver-Info", "Incompatible-Server-With-Component", "Incompatible-Processor", "Incompatible-Os-Info", "Incompatible-Component-Model", "Incompatible-Firmware", "Incompatible-Driver", "Incompatible-Firmware-Driver", "Incompatible-Cimc-Version", "Service-Unavailable", "Service-Error", "Unrecognized-Protocol", "Compatible"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) self._reason = reason @@ -710,6 +688,12 @@ def status(self, status): :param status: The status of this CondHclStatusDetail. :type: str """ + allowed_values = ["Incomplete", "Not-Found", "Validated"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) self._status = status diff --git a/intersight/models/cond_hcl_status_detail_list.py b/intersight/models/cond_hcl_status_detail_list.py index bb92ded3..dca94e54 100644 --- a/intersight/models/cond_hcl_status_detail_list.py +++ b/intersight/models/cond_hcl_status_detail_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/cond_hcl_status_detail_ref.py b/intersight/models/cond_hcl_status_detail_ref.py new file mode 100644 index 00000000..38111294 --- /dev/null +++ b/intersight/models/cond_hcl_status_detail_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CondHclStatusDetailRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CondHclStatusDetailRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CondHclStatusDetailRef. + + :return: The moid of this CondHclStatusDetailRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CondHclStatusDetailRef. + + :param moid: The moid of this CondHclStatusDetailRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CondHclStatusDetailRef. + + :return: The object_type of this CondHclStatusDetailRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CondHclStatusDetailRef. + + :param object_type: The object_type of this CondHclStatusDetailRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CondHclStatusDetailRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cond_hcl_status_job.py b/intersight/models/cond_hcl_status_job.py index 9ca46967..55986303 100644 --- a/intersight/models/cond_hcl_status_job.py +++ b/intersight/models/cond_hcl_status_job.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,16 @@ class CondHclStatusJob(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'managed_object': 'MoMoRef', - 'registered_device': 'MoMoRef' + 'managed_object': 'InventoryBaseRef', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -128,7 +128,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this CondHclStatusJob. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -139,7 +139,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this CondHclStatusJob. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -266,7 +266,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this CondHclStatusJob. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -277,7 +277,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this CondHclStatusJob. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -312,7 +312,7 @@ def managed_object(self): specifies the managed object for which this HCLStatus applies :return: The managed_object of this CondHclStatusJob. - :rtype: MoMoRef + :rtype: InventoryBaseRef """ return self._managed_object @@ -323,7 +323,7 @@ def managed_object(self, managed_object): specifies the managed object for which this HCLStatus applies :param managed_object: The managed_object of this CondHclStatusJob. - :type: MoMoRef + :type: InventoryBaseRef """ self._managed_object = managed_object @@ -335,7 +335,7 @@ def registered_device(self): Relationship to set to the registered device associated with this job. We also need this to correctly inherit permissions. :return: The registered_device of this CondHclStatusJob. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -346,7 +346,7 @@ def registered_device(self, registered_device): Relationship to set to the registered device associated with this job. We also need this to correctly inherit permissions. :param registered_device: The registered_device of this CondHclStatusJob. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/cond_hcl_status_job_list.py b/intersight/models/cond_hcl_status_job_list.py index 9997cf1e..b1477b45 100644 --- a/intersight/models/cond_hcl_status_job_list.py +++ b/intersight/models/cond_hcl_status_job_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/cond_hcl_status_job_ref.py b/intersight/models/cond_hcl_status_job_ref.py new file mode 100644 index 00000000..a004a8e1 --- /dev/null +++ b/intersight/models/cond_hcl_status_job_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CondHclStatusJobRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CondHclStatusJobRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CondHclStatusJobRef. + + :return: The moid of this CondHclStatusJobRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CondHclStatusJobRef. + + :param moid: The moid of this CondHclStatusJobRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CondHclStatusJobRef. + + :return: The object_type of this CondHclStatusJobRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CondHclStatusJobRef. + + :param object_type: The object_type of this CondHclStatusJobRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CondHclStatusJobRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cond_hcl_status_list.py b/intersight/models/cond_hcl_status_list.py index a015dfb2..12c2d240 100644 --- a/intersight/models/cond_hcl_status_list.py +++ b/intersight/models/cond_hcl_status_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/cond_hcl_status_ref.py b/intersight/models/cond_hcl_status_ref.py new file mode 100644 index 00000000..458154a5 --- /dev/null +++ b/intersight/models/cond_hcl_status_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CondHclStatusRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CondHclStatusRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CondHclStatusRef. + + :return: The moid of this CondHclStatusRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CondHclStatusRef. + + :param moid: The moid of this CondHclStatusRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CondHclStatusRef. + + :return: The object_type of this CondHclStatusRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CondHclStatusRef. + + :param object_type: The object_type of this CondHclStatusRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CondHclStatusRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_auth_message.py b/intersight/models/connector_auth_message.py new file mode 100644 index 00000000..7211823f --- /dev/null +++ b/intersight/models/connector_auth_message.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorAuthMessage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'remote_user_locale': 'str', + 'remote_user_name': 'str', + 'remote_user_roles': 'str', + 'remote_user_session_id': 'str' + } + + attribute_map = { + 'remote_user_locale': 'RemoteUserLocale', + 'remote_user_name': 'RemoteUserName', + 'remote_user_roles': 'RemoteUserRoles', + 'remote_user_session_id': 'RemoteUserSessionId' + } + + def __init__(self, remote_user_locale=None, remote_user_name=None, remote_user_roles=None, remote_user_session_id=None): + """ + ConnectorAuthMessage - a model defined in Swagger + """ + + self._remote_user_locale = None + self._remote_user_name = None + self._remote_user_roles = None + self._remote_user_session_id = None + + if remote_user_locale is not None: + self.remote_user_locale = remote_user_locale + if remote_user_name is not None: + self.remote_user_name = remote_user_name + if remote_user_roles is not None: + self.remote_user_roles = remote_user_roles + if remote_user_session_id is not None: + self.remote_user_session_id = remote_user_session_id + + @property + def remote_user_locale(self): + """ + Gets the remote_user_locale of this ConnectorAuthMessage. + The platform locale to assign user. A locale defines one or more organizations (domains) the user is allowed access, and access is limited to the organizations specified in the locale. + + :return: The remote_user_locale of this ConnectorAuthMessage. + :rtype: str + """ + return self._remote_user_locale + + @remote_user_locale.setter + def remote_user_locale(self, remote_user_locale): + """ + Sets the remote_user_locale of this ConnectorAuthMessage. + The platform locale to assign user. A locale defines one or more organizations (domains) the user is allowed access, and access is limited to the organizations specified in the locale. + + :param remote_user_locale: The remote_user_locale of this ConnectorAuthMessage. + :type: str + """ + + self._remote_user_locale = remote_user_locale + + @property + def remote_user_name(self): + """ + Gets the remote_user_name of this ConnectorAuthMessage. + User name passed to the platform for use in platform audit logs. + + :return: The remote_user_name of this ConnectorAuthMessage. + :rtype: str + """ + return self._remote_user_name + + @remote_user_name.setter + def remote_user_name(self, remote_user_name): + """ + Sets the remote_user_name of this ConnectorAuthMessage. + User name passed to the platform for use in platform audit logs. + + :param remote_user_name: The remote_user_name of this ConnectorAuthMessage. + :type: str + """ + + self._remote_user_name = remote_user_name + + @property + def remote_user_roles(self): + """ + Gets the remote_user_roles of this ConnectorAuthMessage. + List of roles to pass to the platform to validate the action against + + :return: The remote_user_roles of this ConnectorAuthMessage. + :rtype: str + """ + return self._remote_user_roles + + @remote_user_roles.setter + def remote_user_roles(self, remote_user_roles): + """ + Sets the remote_user_roles of this ConnectorAuthMessage. + List of roles to pass to the platform to validate the action against + + :param remote_user_roles: The remote_user_roles of this ConnectorAuthMessage. + :type: str + """ + + self._remote_user_roles = remote_user_roles + + @property + def remote_user_session_id(self): + """ + Gets the remote_user_session_id of this ConnectorAuthMessage. + Session Id passed to the platform for use in platforms auditing. + + :return: The remote_user_session_id of this ConnectorAuthMessage. + :rtype: str + """ + return self._remote_user_session_id + + @remote_user_session_id.setter + def remote_user_session_id(self, remote_user_session_id): + """ + Sets the remote_user_session_id of this ConnectorAuthMessage. + Session Id passed to the platform for use in platforms auditing. + + :param remote_user_session_id: The remote_user_session_id of this ConnectorAuthMessage. + :type: str + """ + + self._remote_user_session_id = remote_user_session_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorAuthMessage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_auth_message_ref.py b/intersight/models/connector_auth_message_ref.py new file mode 100644 index 00000000..36f144e1 --- /dev/null +++ b/intersight/models/connector_auth_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorAuthMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorAuthMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorAuthMessageRef. + + :return: The moid of this ConnectorAuthMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorAuthMessageRef. + + :param moid: The moid of this ConnectorAuthMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorAuthMessageRef. + + :return: The object_type of this ConnectorAuthMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorAuthMessageRef. + + :param object_type: The object_type of this ConnectorAuthMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorAuthMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_command_message_ref.py b/intersight/models/connector_command_message_ref.py new file mode 100644 index 00000000..04e14211 --- /dev/null +++ b/intersight/models/connector_command_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorCommandMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorCommandMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorCommandMessageRef. + + :return: The moid of this ConnectorCommandMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorCommandMessageRef. + + :param moid: The moid of this ConnectorCommandMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorCommandMessageRef. + + :return: The object_type of this ConnectorCommandMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorCommandMessageRef. + + :param object_type: The object_type of this ConnectorCommandMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorCommandMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_event_channel_control_ref.py b/intersight/models/connector_event_channel_control_ref.py new file mode 100644 index 00000000..6f799388 --- /dev/null +++ b/intersight/models/connector_event_channel_control_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorEventChannelControlRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorEventChannelControlRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorEventChannelControlRef. + + :return: The moid of this ConnectorEventChannelControlRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorEventChannelControlRef. + + :param moid: The moid of this ConnectorEventChannelControlRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorEventChannelControlRef. + + :return: The object_type of this ConnectorEventChannelControlRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorEventChannelControlRef. + + :param object_type: The object_type of this ConnectorEventChannelControlRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorEventChannelControlRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_event_ref.py b/intersight/models/connector_event_ref.py new file mode 100644 index 00000000..9b32bcb0 --- /dev/null +++ b/intersight/models/connector_event_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorEventRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorEventRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorEventRef. + + :return: The moid of this ConnectorEventRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorEventRef. + + :param moid: The moid of this ConnectorEventRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorEventRef. + + :return: The object_type of this ConnectorEventRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorEventRef. + + :param object_type: The object_type of this ConnectorEventRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorEventRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_job_async_response_ref.py b/intersight/models/connector_job_async_response_ref.py new file mode 100644 index 00000000..12c3d319 --- /dev/null +++ b/intersight/models/connector_job_async_response_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorJobAsyncResponseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorJobAsyncResponseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorJobAsyncResponseRef. + + :return: The moid of this ConnectorJobAsyncResponseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorJobAsyncResponseRef. + + :param moid: The moid of this ConnectorJobAsyncResponseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorJobAsyncResponseRef. + + :return: The object_type of this ConnectorJobAsyncResponseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorJobAsyncResponseRef. + + :param object_type: The object_type of this ConnectorJobAsyncResponseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorJobAsyncResponseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_job_message_ref.py b/intersight/models/connector_job_message_ref.py new file mode 100644 index 00000000..6c7b576d --- /dev/null +++ b/intersight/models/connector_job_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorJobMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorJobMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorJobMessageRef. + + :return: The moid of this ConnectorJobMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorJobMessageRef. + + :param moid: The moid of this ConnectorJobMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorJobMessageRef. + + :return: The object_type of this ConnectorJobMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorJobMessageRef. + + :param object_type: The object_type of this ConnectorJobMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorJobMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_xml_api_message_ref.py b/intersight/models/connector_xml_api_message_ref.py new file mode 100644 index 00000000..96e6d7bb --- /dev/null +++ b/intersight/models/connector_xml_api_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorXmlApiMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorXmlApiMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorXmlApiMessageRef. + + :return: The moid of this ConnectorXmlApiMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorXmlApiMessageRef. + + :param moid: The moid of this ConnectorXmlApiMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorXmlApiMessageRef. + + :return: The object_type of this ConnectorXmlApiMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorXmlApiMessageRef. + + :param object_type: The object_type of this ConnectorXmlApiMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorXmlApiMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/crypt_account_key_ref.py b/intersight/models/crypt_account_key_ref.py new file mode 100644 index 00000000..b728071e --- /dev/null +++ b/intersight/models/crypt_account_key_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CryptAccountKeyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CryptAccountKeyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CryptAccountKeyRef. + + :return: The moid of this CryptAccountKeyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CryptAccountKeyRef. + + :param moid: The moid of this CryptAccountKeyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CryptAccountKeyRef. + + :return: The object_type of this CryptAccountKeyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CryptAccountKeyRef. + + :param object_type: The object_type of this CryptAccountKeyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CryptAccountKeyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/crypt_decrypt_ref.py b/intersight/models/crypt_decrypt_ref.py new file mode 100644 index 00000000..80225c8d --- /dev/null +++ b/intersight/models/crypt_decrypt_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CryptDecryptRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CryptDecryptRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CryptDecryptRef. + + :return: The moid of this CryptDecryptRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CryptDecryptRef. + + :param moid: The moid of this CryptDecryptRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CryptDecryptRef. + + :return: The object_type of this CryptDecryptRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CryptDecryptRef. + + :param object_type: The object_type of this CryptDecryptRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CryptDecryptRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/crypt_encrypt_ref.py b/intersight/models/crypt_encrypt_ref.py new file mode 100644 index 00000000..0da94749 --- /dev/null +++ b/intersight/models/crypt_encrypt_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CryptEncryptRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CryptEncryptRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CryptEncryptRef. + + :return: The moid of this CryptEncryptRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CryptEncryptRef. + + :param moid: The moid of this CryptEncryptRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CryptEncryptRef. + + :return: The object_type of this CryptEncryptRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CryptEncryptRef. + + :param object_type: The object_type of this CryptEncryptRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CryptEncryptRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/crypt_encryption_key_ref.py b/intersight/models/crypt_encryption_key_ref.py new file mode 100644 index 00000000..8636e24e --- /dev/null +++ b/intersight/models/crypt_encryption_key_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CryptEncryptionKeyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CryptEncryptionKeyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CryptEncryptionKeyRef. + + :return: The moid of this CryptEncryptionKeyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CryptEncryptionKeyRef. + + :param moid: The moid of this CryptEncryptionKeyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CryptEncryptionKeyRef. + + :return: The object_type of this CryptEncryptionKeyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CryptEncryptionKeyRef. + + :param object_type: The object_type of this CryptEncryptionKeyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CryptEncryptionKeyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/crypt_encryption_token.py b/intersight/models/crypt_encryption_token.py index bf45858a..e1ebf898 100644 --- a/intersight/models/crypt_encryption_token.py +++ b/intersight/models/crypt_encryption_token.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,17 @@ class CryptEncryptionToken(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account_key': 'MoMoRef', + 'account_key': 'CryptAccountKeyRef', 'session_id': 'str', + 'session_type': 'int', 'token': 'str', 'token_accessor': 'str', 'wrapped': 'bool' @@ -59,12 +60,13 @@ class CryptEncryptionToken(object): 'tags': 'Tags', 'account_key': 'AccountKey', 'session_id': 'SessionId', + 'session_type': 'SessionType', 'token': 'Token', 'token_accessor': 'TokenAccessor', 'wrapped': 'Wrapped' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account_key=None, session_id=None, token=None, token_accessor=None, wrapped=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account_key=None, session_id=None, session_type=None, token=None, token_accessor=None, wrapped=None): """ CryptEncryptionToken - a model defined in Swagger """ @@ -80,6 +82,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._account_key = None self._session_id = None + self._session_type = None self._token = None self._token_accessor = None self._wrapped = None @@ -106,6 +109,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.account_key = account_key if session_id is not None: self.session_id = session_id + if session_type is not None: + self.session_type = session_type if token is not None: self.token = token if token_accessor is not None: @@ -143,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this CryptEncryptionToken. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this CryptEncryptionToken. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this CryptEncryptionToken. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this CryptEncryptionToken. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +331,7 @@ def account_key(self): Gets the account_key of this CryptEncryptionToken. :return: The account_key of this CryptEncryptionToken. - :rtype: MoMoRef + :rtype: CryptAccountKeyRef """ return self._account_key @@ -336,7 +341,7 @@ def account_key(self, account_key): Sets the account_key of this CryptEncryptionToken. :param account_key: The account_key of this CryptEncryptionToken. - :type: MoMoRef + :type: CryptAccountKeyRef """ self._account_key = account_key @@ -364,6 +369,29 @@ def session_id(self, session_id): self._session_id = session_id + @property + def session_type(self): + """ + Gets the session_type of this CryptEncryptionToken. + The Session Type indicates the type of session the encryption token is created for. Tokens are created for Web, ApiKeys, Workflow, etc + + :return: The session_type of this CryptEncryptionToken. + :rtype: int + """ + return self._session_type + + @session_type.setter + def session_type(self, session_type): + """ + Sets the session_type of this CryptEncryptionToken. + The Session Type indicates the type of session the encryption token is created for. Tokens are created for Web, ApiKeys, Workflow, etc + + :param session_type: The session_type of this CryptEncryptionToken. + :type: int + """ + + self._session_type = session_type + @property def token(self): """ diff --git a/intersight/models/crypt_encryption_token_list.py b/intersight/models/crypt_encryption_token_list.py index d38ba65f..418eca97 100644 --- a/intersight/models/crypt_encryption_token_list.py +++ b/intersight/models/crypt_encryption_token_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/crypt_encryption_token_ref.py b/intersight/models/crypt_encryption_token_ref.py new file mode 100644 index 00000000..b0322edf --- /dev/null +++ b/intersight/models/crypt_encryption_token_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CryptEncryptionTokenRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CryptEncryptionTokenRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CryptEncryptionTokenRef. + + :return: The moid of this CryptEncryptionTokenRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CryptEncryptionTokenRef. + + :param moid: The moid of this CryptEncryptionTokenRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CryptEncryptionTokenRef. + + :return: The object_type of this CryptEncryptionTokenRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CryptEncryptionTokenRef. + + :param object_type: The object_type of this CryptEncryptionTokenRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CryptEncryptionTokenRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/deviceinfo_serial_number_info.py b/intersight/models/deviceinfo_serial_number_info.py index 4bd8b7a8..ee4d35f1 100644 --- a/intersight/models/deviceinfo_serial_number_info.py +++ b/intersight/models/deviceinfo_serial_number_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class DeviceinfoSerialNumberInfo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'covered_product_line_end_date': 'str', 'customer_address': 'str', @@ -49,7 +49,7 @@ class DeviceinfoSerialNumberInfo(object): 'is_valid': 'bool', 'item_description': 'str', 'orderable_pid': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'serial_number': 'str', 'service_contract_number': 'str', 'service_line_descr': 'str', @@ -193,7 +193,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this DeviceinfoSerialNumberInfo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +204,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this DeviceinfoSerialNumberInfo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +331,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this DeviceinfoSerialNumberInfo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +342,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this DeviceinfoSerialNumberInfo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -565,7 +565,7 @@ def registered_device(self): Gets the registered_device of this DeviceinfoSerialNumberInfo. :return: The registered_device of this DeviceinfoSerialNumberInfo. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -575,7 +575,7 @@ def registered_device(self, registered_device): Sets the registered_device of this DeviceinfoSerialNumberInfo. :param registered_device: The registered_device of this DeviceinfoSerialNumberInfo. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/deviceinfo_serial_number_info_list.py b/intersight/models/deviceinfo_serial_number_info_list.py index fe100c12..4e0d15dd 100644 --- a/intersight/models/deviceinfo_serial_number_info_list.py +++ b/intersight/models/deviceinfo_serial_number_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/deviceinfo_serial_number_info_ref.py b/intersight/models/deviceinfo_serial_number_info_ref.py new file mode 100644 index 00000000..a75b2633 --- /dev/null +++ b/intersight/models/deviceinfo_serial_number_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DeviceinfoSerialNumberInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + DeviceinfoSerialNumberInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this DeviceinfoSerialNumberInfoRef. + + :return: The moid of this DeviceinfoSerialNumberInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this DeviceinfoSerialNumberInfoRef. + + :param moid: The moid of this DeviceinfoSerialNumberInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this DeviceinfoSerialNumberInfoRef. + + :return: The object_type of this DeviceinfoSerialNumberInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this DeviceinfoSerialNumberInfoRef. + + :param object_type: The object_type of this DeviceinfoSerialNumberInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DeviceinfoSerialNumberInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_base.py b/intersight/models/equipment_base.py index ea735e66..4cd803ec 100644 --- a/intersight/models/equipment_base.py +++ b/intersight/models/equipment_base.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class EquipmentBase(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -153,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentBase. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentBase. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentBase. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentBase. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/equipment_base_ref.py b/intersight/models/equipment_base_ref.py new file mode 100644 index 00000000..ff93aa84 --- /dev/null +++ b/intersight/models/equipment_base_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentBaseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentBaseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentBaseRef. + + :return: The moid of this EquipmentBaseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentBaseRef. + + :param moid: The moid of this EquipmentBaseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentBaseRef. + + :return: The object_type of this EquipmentBaseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentBaseRef. + + :param object_type: The object_type of this EquipmentBaseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentBaseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_chassis.py b/intersight/models/equipment_chassis.py index e76b9cd9..d7f0ca76 100644 --- a/intersight/models/equipment_chassis.py +++ b/intersight/models/equipment_chassis.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class EquipmentChassis(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,14 +47,15 @@ class EquipmentChassis(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'blades': 'list[MoMoRef]', - 'fanmodules': 'list[MoMoRef]', - 'ioms': 'list[MoMoRef]', + 'blades': 'list[ComputeBladeRef]', + 'fanmodules': 'list[EquipmentFanModuleRef]', + 'ioms': 'list[EquipmentIoCardRef]', 'oper_state': 'str', - 'psus': 'list[MoMoRef]', - 'registered_device': 'MoMoRef', - 'sasexpanders': 'list[MoMoRef]', - 'siocs': 'list[MoMoRef]' + 'psus': 'list[EquipmentPsuRef]', + 'registered_device': 'AssetDeviceRegistrationRef', + 'sasexpanders': 'list[StorageSasExpanderRef]', + 'siocs': 'list[EquipmentSystemIoControllerRef]', + 'storage_enclosures': 'list[StorageEnclosureRef]' } attribute_map = { @@ -81,10 +82,11 @@ class EquipmentChassis(object): 'psus': 'Psus', 'registered_device': 'RegisteredDevice', 'sasexpanders': 'Sasexpanders', - 'siocs': 'Siocs' + 'siocs': 'Siocs', + 'storage_enclosures': 'StorageEnclosures' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, blades=None, fanmodules=None, ioms=None, oper_state=None, psus=None, registered_device=None, sasexpanders=None, siocs=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, blades=None, fanmodules=None, ioms=None, oper_state=None, psus=None, registered_device=None, sasexpanders=None, siocs=None, storage_enclosures=None): """ EquipmentChassis - a model defined in Swagger """ @@ -113,6 +115,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._registered_device = None self._sasexpanders = None self._siocs = None + self._storage_enclosures = None if account_moid is not None: self.account_moid = account_moid @@ -162,6 +165,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.sasexpanders = sasexpanders if siocs is not None: self.siocs = siocs + if storage_enclosures is not None: + self.storage_enclosures = storage_enclosures @property def account_moid(self): @@ -193,7 +198,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +209,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +336,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentChassis. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +347,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentChassis. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -523,7 +528,7 @@ def blades(self): Gets the blades of this EquipmentChassis. :return: The blades of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[ComputeBladeRef] """ return self._blades @@ -533,7 +538,7 @@ def blades(self, blades): Sets the blades of this EquipmentChassis. :param blades: The blades of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[ComputeBladeRef] """ self._blades = blades @@ -544,7 +549,7 @@ def fanmodules(self): Gets the fanmodules of this EquipmentChassis. :return: The fanmodules of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[EquipmentFanModuleRef] """ return self._fanmodules @@ -554,7 +559,7 @@ def fanmodules(self, fanmodules): Sets the fanmodules of this EquipmentChassis. :param fanmodules: The fanmodules of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[EquipmentFanModuleRef] """ self._fanmodules = fanmodules @@ -565,7 +570,7 @@ def ioms(self): Gets the ioms of this EquipmentChassis. :return: The ioms of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[EquipmentIoCardRef] """ return self._ioms @@ -575,7 +580,7 @@ def ioms(self, ioms): Sets the ioms of this EquipmentChassis. :param ioms: The ioms of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[EquipmentIoCardRef] """ self._ioms = ioms @@ -607,7 +612,7 @@ def psus(self): Gets the psus of this EquipmentChassis. :return: The psus of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[EquipmentPsuRef] """ return self._psus @@ -617,7 +622,7 @@ def psus(self, psus): Sets the psus of this EquipmentChassis. :param psus: The psus of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[EquipmentPsuRef] """ self._psus = psus @@ -628,7 +633,7 @@ def registered_device(self): Gets the registered_device of this EquipmentChassis. :return: The registered_device of this EquipmentChassis. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -638,7 +643,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentChassis. :param registered_device: The registered_device of this EquipmentChassis. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -649,7 +654,7 @@ def sasexpanders(self): Gets the sasexpanders of this EquipmentChassis. :return: The sasexpanders of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[StorageSasExpanderRef] """ return self._sasexpanders @@ -659,7 +664,7 @@ def sasexpanders(self, sasexpanders): Sets the sasexpanders of this EquipmentChassis. :param sasexpanders: The sasexpanders of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[StorageSasExpanderRef] """ self._sasexpanders = sasexpanders @@ -670,7 +675,7 @@ def siocs(self): Gets the siocs of this EquipmentChassis. :return: The siocs of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[EquipmentSystemIoControllerRef] """ return self._siocs @@ -680,11 +685,32 @@ def siocs(self, siocs): Sets the siocs of this EquipmentChassis. :param siocs: The siocs of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[EquipmentSystemIoControllerRef] """ self._siocs = siocs + @property + def storage_enclosures(self): + """ + Gets the storage_enclosures of this EquipmentChassis. + + :return: The storage_enclosures of this EquipmentChassis. + :rtype: list[StorageEnclosureRef] + """ + return self._storage_enclosures + + @storage_enclosures.setter + def storage_enclosures(self, storage_enclosures): + """ + Sets the storage_enclosures of this EquipmentChassis. + + :param storage_enclosures: The storage_enclosures of this EquipmentChassis. + :type: list[StorageEnclosureRef] + """ + + self._storage_enclosures = storage_enclosures + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/equipment_chassis_list.py b/intersight/models/equipment_chassis_list.py index 08bfa252..5b8a7bc3 100644 --- a/intersight/models/equipment_chassis_list.py +++ b/intersight/models/equipment_chassis_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_chassis_ref.py b/intersight/models/equipment_chassis_ref.py new file mode 100644 index 00000000..3dddcb5b --- /dev/null +++ b/intersight/models/equipment_chassis_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentChassisRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentChassisRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentChassisRef. + + :return: The moid of this EquipmentChassisRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentChassisRef. + + :param moid: The moid of this EquipmentChassisRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentChassisRef. + + :return: The object_type of this EquipmentChassisRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentChassisRef. + + :param object_type: The object_type of this EquipmentChassisRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentChassisRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_device_summary.py b/intersight/models/equipment_device_summary.py index b3a3858d..15de4804 100644 --- a/intersight/models/equipment_device_summary.py +++ b/intersight/models/equipment_device_summary.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,17 @@ class EquipmentDeviceSummary(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'dn': 'str', 'model': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'serial': 'str', 'source_object_type': 'str' } @@ -143,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentDeviceSummary. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentDeviceSummary. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentDeviceSummary. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentDeviceSummary. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -372,7 +372,7 @@ def registered_device(self): Gets the registered_device of this EquipmentDeviceSummary. :return: The registered_device of this EquipmentDeviceSummary. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -382,7 +382,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentDeviceSummary. :param registered_device: The registered_device of this EquipmentDeviceSummary. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_device_summary_list.py b/intersight/models/equipment_device_summary_list.py index 0a261936..3ea7e5d3 100644 --- a/intersight/models/equipment_device_summary_list.py +++ b/intersight/models/equipment_device_summary_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_device_summary_ref.py b/intersight/models/equipment_device_summary_ref.py new file mode 100644 index 00000000..b37afcf0 --- /dev/null +++ b/intersight/models/equipment_device_summary_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentDeviceSummaryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentDeviceSummaryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentDeviceSummaryRef. + + :return: The moid of this EquipmentDeviceSummaryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentDeviceSummaryRef. + + :param moid: The moid of this EquipmentDeviceSummaryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentDeviceSummaryRef. + + :return: The object_type of this EquipmentDeviceSummaryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentDeviceSummaryRef. + + :param object_type: The object_type of this EquipmentDeviceSummaryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentDeviceSummaryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_fan.py b/intersight/models/equipment_fan.py index 8b9a883f..98ccbbed 100644 --- a/intersight/models/equipment_fan.py +++ b/intersight/models/equipment_fan.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class EquipmentFan(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,10 +47,10 @@ class EquipmentFan(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'equipment_fan_module': 'MoMoRef', + 'equipment_fan_module': 'EquipmentFanModuleRef', 'oper_state': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -173,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentFan. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -184,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentFan. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -311,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentFan. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -322,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentFan. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -503,7 +503,7 @@ def equipment_fan_module(self): Gets the equipment_fan_module of this EquipmentFan. :return: The equipment_fan_module of this EquipmentFan. - :rtype: MoMoRef + :rtype: EquipmentFanModuleRef """ return self._equipment_fan_module @@ -513,7 +513,7 @@ def equipment_fan_module(self, equipment_fan_module): Sets the equipment_fan_module of this EquipmentFan. :param equipment_fan_module: The equipment_fan_module of this EquipmentFan. - :type: MoMoRef + :type: EquipmentFanModuleRef """ self._equipment_fan_module = equipment_fan_module @@ -566,7 +566,7 @@ def registered_device(self): Gets the registered_device of this EquipmentFan. :return: The registered_device of this EquipmentFan. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -576,7 +576,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentFan. :param registered_device: The registered_device of this EquipmentFan. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_fan_list.py b/intersight/models/equipment_fan_list.py index e800abc0..ac3f48a6 100644 --- a/intersight/models/equipment_fan_list.py +++ b/intersight/models/equipment_fan_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_fan_module.py b/intersight/models/equipment_fan_module.py index 1a1f0cb9..6bce006c 100644 --- a/intersight/models/equipment_fan_module.py +++ b/intersight/models/equipment_fan_module.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class EquipmentFanModule(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,13 +47,13 @@ class EquipmentFanModule(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_rack_unit': 'MoMoRef', - 'equipment_chassis': 'MoMoRef', - 'fans': 'list[MoMoRef]', - 'network_element': 'MoMoRef', + 'compute_rack_unit': 'ComputeRackUnitRef', + 'equipment_chassis': 'EquipmentChassisRef', + 'fans': 'list[EquipmentFanRef]', + 'network_element': 'NetworkElementRef', 'oper_state': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -188,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentFanModule. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -199,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentFanModule. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -326,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentFanModule. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -337,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentFanModule. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -518,7 +518,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this EquipmentFanModule. :return: The compute_rack_unit of this EquipmentFanModule. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -528,7 +528,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this EquipmentFanModule. :param compute_rack_unit: The compute_rack_unit of this EquipmentFanModule. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -539,7 +539,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this EquipmentFanModule. :return: The equipment_chassis of this EquipmentFanModule. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -549,7 +549,7 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this EquipmentFanModule. :param equipment_chassis: The equipment_chassis of this EquipmentFanModule. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis @@ -560,7 +560,7 @@ def fans(self): Gets the fans of this EquipmentFanModule. :return: The fans of this EquipmentFanModule. - :rtype: list[MoMoRef] + :rtype: list[EquipmentFanRef] """ return self._fans @@ -570,7 +570,7 @@ def fans(self, fans): Sets the fans of this EquipmentFanModule. :param fans: The fans of this EquipmentFanModule. - :type: list[MoMoRef] + :type: list[EquipmentFanRef] """ self._fans = fans @@ -581,7 +581,7 @@ def network_element(self): Gets the network_element of this EquipmentFanModule. :return: The network_element of this EquipmentFanModule. - :rtype: MoMoRef + :rtype: NetworkElementRef """ return self._network_element @@ -591,7 +591,7 @@ def network_element(self, network_element): Sets the network_element of this EquipmentFanModule. :param network_element: The network_element of this EquipmentFanModule. - :type: MoMoRef + :type: NetworkElementRef """ self._network_element = network_element @@ -644,7 +644,7 @@ def registered_device(self): Gets the registered_device of this EquipmentFanModule. :return: The registered_device of this EquipmentFanModule. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -654,7 +654,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentFanModule. :param registered_device: The registered_device of this EquipmentFanModule. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_fan_module_list.py b/intersight/models/equipment_fan_module_list.py index 44ddb7e5..9719783d 100644 --- a/intersight/models/equipment_fan_module_list.py +++ b/intersight/models/equipment_fan_module_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_fan_module_ref.py b/intersight/models/equipment_fan_module_ref.py new file mode 100644 index 00000000..4cb1d311 --- /dev/null +++ b/intersight/models/equipment_fan_module_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentFanModuleRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentFanModuleRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentFanModuleRef. + + :return: The moid of this EquipmentFanModuleRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentFanModuleRef. + + :param moid: The moid of this EquipmentFanModuleRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentFanModuleRef. + + :return: The object_type of this EquipmentFanModuleRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentFanModuleRef. + + :param object_type: The object_type of this EquipmentFanModuleRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentFanModuleRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_fan_ref.py b/intersight/models/equipment_fan_ref.py new file mode 100644 index 00000000..6795261f --- /dev/null +++ b/intersight/models/equipment_fan_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentFanRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentFanRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentFanRef. + + :return: The moid of this EquipmentFanRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentFanRef. + + :param moid: The moid of this EquipmentFanRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentFanRef. + + :return: The object_type of this EquipmentFanRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentFanRef. + + :param object_type: The object_type of this EquipmentFanRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentFanRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_fex.py b/intersight/models/equipment_fex.py index 7a0b0dc7..5a76e2a3 100644 --- a/intersight/models/equipment_fex.py +++ b/intersight/models/equipment_fex.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class EquipmentFex(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -48,7 +48,7 @@ class EquipmentFex(object): 'serial': 'str', 'vendor': 'str', 'oper_state': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -163,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentFex. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentFex. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentFex. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentFex. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -514,7 +514,7 @@ def registered_device(self): Gets the registered_device of this EquipmentFex. :return: The registered_device of this EquipmentFex. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -524,7 +524,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentFex. :param registered_device: The registered_device of this EquipmentFex. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_fex_list.py b/intersight/models/equipment_fex_list.py index fb597024..291194fc 100644 --- a/intersight/models/equipment_fex_list.py +++ b/intersight/models/equipment_fex_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_fex_ref.py b/intersight/models/equipment_fex_ref.py new file mode 100644 index 00000000..81bca166 --- /dev/null +++ b/intersight/models/equipment_fex_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentFexRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentFexRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentFexRef. + + :return: The moid of this EquipmentFexRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentFexRef. + + :param moid: The moid of this EquipmentFexRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentFexRef. + + :return: The object_type of this EquipmentFexRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentFexRef. + + :param object_type: The object_type of this EquipmentFexRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentFexRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_io_card.py b/intersight/models/equipment_io_card.py index 81c59f66..29388d9f 100644 --- a/intersight/models/equipment_io_card.py +++ b/intersight/models/equipment_io_card.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class EquipmentIoCard(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,9 +47,9 @@ class EquipmentIoCard(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'equipment_chassis': 'MoMoRef', + 'equipment_chassis': 'EquipmentChassisRef', 'oper_state': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -168,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentIoCard. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentIoCard. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentIoCard. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentIoCard. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -498,7 +498,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this EquipmentIoCard. :return: The equipment_chassis of this EquipmentIoCard. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -508,7 +508,7 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this EquipmentIoCard. :param equipment_chassis: The equipment_chassis of this EquipmentIoCard. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis @@ -540,7 +540,7 @@ def registered_device(self): Gets the registered_device of this EquipmentIoCard. :return: The registered_device of this EquipmentIoCard. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -550,7 +550,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentIoCard. :param registered_device: The registered_device of this EquipmentIoCard. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_io_card_list.py b/intersight/models/equipment_io_card_list.py index 284bb36c..dcbed4b0 100644 --- a/intersight/models/equipment_io_card_list.py +++ b/intersight/models/equipment_io_card_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_io_card_ref.py b/intersight/models/equipment_io_card_ref.py new file mode 100644 index 00000000..a3daad86 --- /dev/null +++ b/intersight/models/equipment_io_card_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentIoCardRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentIoCardRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentIoCardRef. + + :return: The moid of this EquipmentIoCardRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentIoCardRef. + + :param moid: The moid of this EquipmentIoCardRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentIoCardRef. + + :return: The object_type of this EquipmentIoCardRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentIoCardRef. + + :param object_type: The object_type of this EquipmentIoCardRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentIoCardRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_locator_led.py b/intersight/models/equipment_locator_led.py index a3955003..e9783011 100644 --- a/intersight/models/equipment_locator_led.py +++ b/intersight/models/equipment_locator_led.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,23 @@ class EquipmentLocatorLed(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'color': 'str', - 'compute_blade': 'MoMoRef', - 'compute_rack_unit': 'MoMoRef', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', 'oper_state': 'str', - 'registered_device': 'MoMoRef', - 'storage_physical_disk': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef', + 'storage_physical_disk': 'StoragePhysicalDiskRef' } attribute_map = { @@ -163,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentLocatorLed. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentLocatorLed. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentLocatorLed. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentLocatorLed. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -430,7 +430,7 @@ def compute_blade(self): Gets the compute_blade of this EquipmentLocatorLed. :return: The compute_blade of this EquipmentLocatorLed. - :rtype: MoMoRef + :rtype: ComputeBladeRef """ return self._compute_blade @@ -440,7 +440,7 @@ def compute_blade(self, compute_blade): Sets the compute_blade of this EquipmentLocatorLed. :param compute_blade: The compute_blade of this EquipmentLocatorLed. - :type: MoMoRef + :type: ComputeBladeRef """ self._compute_blade = compute_blade @@ -451,7 +451,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this EquipmentLocatorLed. :return: The compute_rack_unit of this EquipmentLocatorLed. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -461,7 +461,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this EquipmentLocatorLed. :param compute_rack_unit: The compute_rack_unit of this EquipmentLocatorLed. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -493,7 +493,7 @@ def registered_device(self): Gets the registered_device of this EquipmentLocatorLed. :return: The registered_device of this EquipmentLocatorLed. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -503,7 +503,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentLocatorLed. :param registered_device: The registered_device of this EquipmentLocatorLed. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -514,7 +514,7 @@ def storage_physical_disk(self): Gets the storage_physical_disk of this EquipmentLocatorLed. :return: The storage_physical_disk of this EquipmentLocatorLed. - :rtype: MoMoRef + :rtype: StoragePhysicalDiskRef """ return self._storage_physical_disk @@ -524,7 +524,7 @@ def storage_physical_disk(self, storage_physical_disk): Sets the storage_physical_disk of this EquipmentLocatorLed. :param storage_physical_disk: The storage_physical_disk of this EquipmentLocatorLed. - :type: MoMoRef + :type: StoragePhysicalDiskRef """ self._storage_physical_disk = storage_physical_disk diff --git a/intersight/models/equipment_locator_led_list.py b/intersight/models/equipment_locator_led_list.py index 42d4323e..00059250 100644 --- a/intersight/models/equipment_locator_led_list.py +++ b/intersight/models/equipment_locator_led_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_locator_led_ref.py b/intersight/models/equipment_locator_led_ref.py new file mode 100644 index 00000000..2e1204bc --- /dev/null +++ b/intersight/models/equipment_locator_led_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentLocatorLedRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentLocatorLedRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentLocatorLedRef. + + :return: The moid of this EquipmentLocatorLedRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentLocatorLedRef. + + :param moid: The moid of this EquipmentLocatorLedRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentLocatorLedRef. + + :return: The object_type of this EquipmentLocatorLedRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentLocatorLedRef. + + :param object_type: The object_type of this EquipmentLocatorLedRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentLocatorLedRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_psu.py b/intersight/models/equipment_psu.py index cdac62c3..22d0a9f3 100644 --- a/intersight/models/equipment_psu.py +++ b/intersight/models/equipment_psu.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class EquipmentPsu(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,12 +47,13 @@ class EquipmentPsu(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_rack_unit': 'MoMoRef', - 'equipment_chassis': 'MoMoRef', - 'network_element': 'MoMoRef', + 'compute_rack_unit': 'ComputeRackUnitRef', + 'equipment_chassis': 'EquipmentChassisRef', + 'network_element': 'NetworkElementRef', 'oper_state': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef' + 'psu_id': 'int', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -77,10 +78,11 @@ class EquipmentPsu(object): 'network_element': 'NetworkElement', 'oper_state': 'OperState', 'presence': 'Presence', + 'psu_id': 'PsuId', 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_rack_unit=None, equipment_chassis=None, network_element=None, oper_state=None, presence=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_rack_unit=None, equipment_chassis=None, network_element=None, oper_state=None, presence=None, psu_id=None, registered_device=None): """ EquipmentPsu - a model defined in Swagger """ @@ -106,6 +108,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._network_element = None self._oper_state = None self._presence = None + self._psu_id = None self._registered_device = None if account_moid is not None: @@ -150,6 +153,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.oper_state = oper_state if presence is not None: self.presence = presence + if psu_id is not None: + self.psu_id = psu_id if registered_device is not None: self.registered_device = registered_device @@ -183,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentPsu. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentPsu. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentPsu. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentPsu. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -513,7 +518,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this EquipmentPsu. :return: The compute_rack_unit of this EquipmentPsu. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -523,7 +528,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this EquipmentPsu. :param compute_rack_unit: The compute_rack_unit of this EquipmentPsu. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -534,7 +539,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this EquipmentPsu. :return: The equipment_chassis of this EquipmentPsu. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -544,7 +549,7 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this EquipmentPsu. :param equipment_chassis: The equipment_chassis of this EquipmentPsu. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis @@ -555,7 +560,7 @@ def network_element(self): Gets the network_element of this EquipmentPsu. :return: The network_element of this EquipmentPsu. - :rtype: MoMoRef + :rtype: NetworkElementRef """ return self._network_element @@ -565,7 +570,7 @@ def network_element(self, network_element): Sets the network_element of this EquipmentPsu. :param network_element: The network_element of this EquipmentPsu. - :type: MoMoRef + :type: NetworkElementRef """ self._network_element = network_element @@ -612,13 +617,34 @@ def presence(self, presence): self._presence = presence + @property + def psu_id(self): + """ + Gets the psu_id of this EquipmentPsu. + + :return: The psu_id of this EquipmentPsu. + :rtype: int + """ + return self._psu_id + + @psu_id.setter + def psu_id(self, psu_id): + """ + Sets the psu_id of this EquipmentPsu. + + :param psu_id: The psu_id of this EquipmentPsu. + :type: int + """ + + self._psu_id = psu_id + @property def registered_device(self): """ Gets the registered_device of this EquipmentPsu. :return: The registered_device of this EquipmentPsu. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -628,7 +654,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentPsu. :param registered_device: The registered_device of this EquipmentPsu. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_psu_list.py b/intersight/models/equipment_psu_list.py index bb2ee3b5..7519b806 100644 --- a/intersight/models/equipment_psu_list.py +++ b/intersight/models/equipment_psu_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_psu_ref.py b/intersight/models/equipment_psu_ref.py new file mode 100644 index 00000000..8006e373 --- /dev/null +++ b/intersight/models/equipment_psu_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentPsuRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentPsuRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentPsuRef. + + :return: The moid of this EquipmentPsuRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentPsuRef. + + :param moid: The moid of this EquipmentPsuRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentPsuRef. + + :return: The object_type of this EquipmentPsuRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentPsuRef. + + :param object_type: The object_type of this EquipmentPsuRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentPsuRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_switch_card.py b/intersight/models/equipment_switch_card.py index 6af62696..796c7130 100644 --- a/intersight/models/equipment_switch_card.py +++ b/intersight/models/equipment_switch_card.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class EquipmentSwitchCard(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -48,11 +48,11 @@ class EquipmentSwitchCard(object): 'serial': 'str', 'vendor': 'str', 'description': 'str', - 'network_element': 'MoMoRef', + 'network_element': 'NetworkElementRef', 'num_ports': 'int', - 'port_groups': 'list[MoMoRef]', + 'port_groups': 'list[PortGroupRef]', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'slot_id': 'int', 'state': 'str' } @@ -193,7 +193,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentSwitchCard. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +204,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentSwitchCard. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +331,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentSwitchCard. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +342,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentSwitchCard. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -544,7 +544,7 @@ def network_element(self): Gets the network_element of this EquipmentSwitchCard. :return: The network_element of this EquipmentSwitchCard. - :rtype: MoMoRef + :rtype: NetworkElementRef """ return self._network_element @@ -554,7 +554,7 @@ def network_element(self, network_element): Sets the network_element of this EquipmentSwitchCard. :param network_element: The network_element of this EquipmentSwitchCard. - :type: MoMoRef + :type: NetworkElementRef """ self._network_element = network_element @@ -586,7 +586,7 @@ def port_groups(self): Gets the port_groups of this EquipmentSwitchCard. :return: The port_groups of this EquipmentSwitchCard. - :rtype: list[MoMoRef] + :rtype: list[PortGroupRef] """ return self._port_groups @@ -596,7 +596,7 @@ def port_groups(self, port_groups): Sets the port_groups of this EquipmentSwitchCard. :param port_groups: The port_groups of this EquipmentSwitchCard. - :type: list[MoMoRef] + :type: list[PortGroupRef] """ self._port_groups = port_groups @@ -628,7 +628,7 @@ def registered_device(self): Gets the registered_device of this EquipmentSwitchCard. :return: The registered_device of this EquipmentSwitchCard. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -638,7 +638,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentSwitchCard. :param registered_device: The registered_device of this EquipmentSwitchCard. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_switch_card_list.py b/intersight/models/equipment_switch_card_list.py index c336a387..2eddec81 100644 --- a/intersight/models/equipment_switch_card_list.py +++ b/intersight/models/equipment_switch_card_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_switch_card_ref.py b/intersight/models/equipment_switch_card_ref.py new file mode 100644 index 00000000..1dc02ede --- /dev/null +++ b/intersight/models/equipment_switch_card_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentSwitchCardRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentSwitchCardRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentSwitchCardRef. + + :return: The moid of this EquipmentSwitchCardRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentSwitchCardRef. + + :param moid: The moid of this EquipmentSwitchCardRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentSwitchCardRef. + + :return: The object_type of this EquipmentSwitchCardRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentSwitchCardRef. + + :param object_type: The object_type of this EquipmentSwitchCardRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentSwitchCardRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_system_io_controller.py b/intersight/models/equipment_system_io_controller.py index a10d9394..9ee4fc29 100644 --- a/intersight/models/equipment_system_io_controller.py +++ b/intersight/models/equipment_system_io_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class EquipmentSystemIoController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,9 +47,9 @@ class EquipmentSystemIoController(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'equipment_chassis': 'MoMoRef', + 'equipment_chassis': 'EquipmentChassisRef', 'oper_state': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -168,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentSystemIoController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentSystemIoController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentSystemIoController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentSystemIoController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -498,7 +498,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this EquipmentSystemIoController. :return: The equipment_chassis of this EquipmentSystemIoController. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -508,7 +508,7 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this EquipmentSystemIoController. :param equipment_chassis: The equipment_chassis of this EquipmentSystemIoController. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis @@ -540,7 +540,7 @@ def registered_device(self): Gets the registered_device of this EquipmentSystemIoController. :return: The registered_device of this EquipmentSystemIoController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -550,7 +550,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentSystemIoController. :param registered_device: The registered_device of this EquipmentSystemIoController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_system_io_controller_list.py b/intersight/models/equipment_system_io_controller_list.py index b56972e3..55e1edec 100644 --- a/intersight/models/equipment_system_io_controller_list.py +++ b/intersight/models/equipment_system_io_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_system_io_controller_ref.py b/intersight/models/equipment_system_io_controller_ref.py new file mode 100644 index 00000000..9bb3e678 --- /dev/null +++ b/intersight/models/equipment_system_io_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentSystemIoControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentSystemIoControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentSystemIoControllerRef. + + :return: The moid of this EquipmentSystemIoControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentSystemIoControllerRef. + + :param moid: The moid of this EquipmentSystemIoControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentSystemIoControllerRef. + + :return: The object_type of this EquipmentSystemIoControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentSystemIoControllerRef. + + :param object_type: The object_type of this EquipmentSystemIoControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentSystemIoControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/error.py b/intersight/models/error.py index 004f57d0..3b84592f 100644 --- a/intersight/models/error.py +++ b/intersight/models/error.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/ether_physical_port.py b/intersight/models/ether_physical_port.py index 0e85b972..d50d9eea 100644 --- a/intersight/models/ether_physical_port.py +++ b/intersight/models/ether_physical_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class EtherPhysicalPort(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -46,9 +46,9 @@ class EtherPhysicalPort(object): 'oper_state': 'str', 'role': 'str', 'mac_address': 'str', - 'port_group': 'MoMoRef', - 'port_sub_group': 'MoMoRef', - 'registered_device': 'MoMoRef', + 'port_group': 'PortGroupRef', + 'port_sub_group': 'PortSubGroupRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'transceiver_type': 'str' } @@ -168,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EtherPhysicalPort. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EtherPhysicalPort. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EtherPhysicalPort. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EtherPhysicalPort. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -477,7 +477,7 @@ def port_group(self): Gets the port_group of this EtherPhysicalPort. :return: The port_group of this EtherPhysicalPort. - :rtype: MoMoRef + :rtype: PortGroupRef """ return self._port_group @@ -487,7 +487,7 @@ def port_group(self, port_group): Sets the port_group of this EtherPhysicalPort. :param port_group: The port_group of this EtherPhysicalPort. - :type: MoMoRef + :type: PortGroupRef """ self._port_group = port_group @@ -498,7 +498,7 @@ def port_sub_group(self): Gets the port_sub_group of this EtherPhysicalPort. :return: The port_sub_group of this EtherPhysicalPort. - :rtype: MoMoRef + :rtype: PortSubGroupRef """ return self._port_sub_group @@ -508,7 +508,7 @@ def port_sub_group(self, port_sub_group): Sets the port_sub_group of this EtherPhysicalPort. :param port_sub_group: The port_sub_group of this EtherPhysicalPort. - :type: MoMoRef + :type: PortSubGroupRef """ self._port_sub_group = port_sub_group @@ -519,7 +519,7 @@ def registered_device(self): Gets the registered_device of this EtherPhysicalPort. :return: The registered_device of this EtherPhysicalPort. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -529,7 +529,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EtherPhysicalPort. :param registered_device: The registered_device of this EtherPhysicalPort. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/ether_physical_port_list.py b/intersight/models/ether_physical_port_list.py index 9ced4ca6..4a0a57fc 100644 --- a/intersight/models/ether_physical_port_list.py +++ b/intersight/models/ether_physical_port_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/ether_physical_port_ref.py b/intersight/models/ether_physical_port_ref.py new file mode 100644 index 00000000..e20c43b4 --- /dev/null +++ b/intersight/models/ether_physical_port_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EtherPhysicalPortRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EtherPhysicalPortRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EtherPhysicalPortRef. + + :return: The moid of this EtherPhysicalPortRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EtherPhysicalPortRef. + + :param moid: The moid of this EtherPhysicalPortRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EtherPhysicalPortRef. + + :return: The object_type of this EtherPhysicalPortRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EtherPhysicalPortRef. + + :param object_type: The object_type of this EtherPhysicalPortRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EtherPhysicalPortRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/externalsite_authorization.py b/intersight/models/externalsite_authorization.py new file mode 100644 index 00000000..d9d9a921 --- /dev/null +++ b/intersight/models/externalsite_authorization.py @@ -0,0 +1,519 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExternalsiteAuthorization(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'account': 'IamAccountRef', + 'is_password_set': 'bool', + 'is_user_id_set': 'bool', + 'password': 'str', + 'repository_type': 'str', + 'user_id': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'account': 'Account', + 'is_password_set': 'IsPasswordSet', + 'is_user_id_set': 'IsUserIdSet', + 'password': 'Password', + 'repository_type': 'RepositoryType', + 'user_id': 'UserId' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, is_password_set=None, is_user_id_set=None, password=None, repository_type='cisco', user_id=None): + """ + ExternalsiteAuthorization - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._account = None + self._is_password_set = None + self._is_user_id_set = None + self._password = None + self._repository_type = None + self._user_id = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if account is not None: + self.account = account + if is_password_set is not None: + self.is_password_set = is_password_set + if is_user_id_set is not None: + self.is_user_id_set = is_user_id_set + if password is not None: + self.password = password + if repository_type is not None: + self.repository_type = repository_type + if user_id is not None: + self.user_id = user_id + + @property + def account_moid(self): + """ + Gets the account_moid of this ExternalsiteAuthorization. + The Account ID for this managed object. + + :return: The account_moid of this ExternalsiteAuthorization. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this ExternalsiteAuthorization. + The Account ID for this managed object. + + :param account_moid: The account_moid of this ExternalsiteAuthorization. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this ExternalsiteAuthorization. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this ExternalsiteAuthorization. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this ExternalsiteAuthorization. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this ExternalsiteAuthorization. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this ExternalsiteAuthorization. + The time when this managed object was created. + + :return: The create_time of this ExternalsiteAuthorization. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this ExternalsiteAuthorization. + The time when this managed object was created. + + :param create_time: The create_time of this ExternalsiteAuthorization. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this ExternalsiteAuthorization. + The time when this managed object was last modified. + + :return: The mod_time of this ExternalsiteAuthorization. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this ExternalsiteAuthorization. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this ExternalsiteAuthorization. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this ExternalsiteAuthorization. + A unique identifier of this Managed Object instance. + + :return: The moid of this ExternalsiteAuthorization. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ExternalsiteAuthorization. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this ExternalsiteAuthorization. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ExternalsiteAuthorization. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this ExternalsiteAuthorization. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ExternalsiteAuthorization. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this ExternalsiteAuthorization. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this ExternalsiteAuthorization. + An array of owners which represent effective ownership of this object. + + :return: The owners of this ExternalsiteAuthorization. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this ExternalsiteAuthorization. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this ExternalsiteAuthorization. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this ExternalsiteAuthorization. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this ExternalsiteAuthorization. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this ExternalsiteAuthorization. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this ExternalsiteAuthorization. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this ExternalsiteAuthorization. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this ExternalsiteAuthorization. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this ExternalsiteAuthorization. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this ExternalsiteAuthorization. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def account(self): + """ + Gets the account of this ExternalsiteAuthorization. + Account relation + + :return: The account of this ExternalsiteAuthorization. + :rtype: IamAccountRef + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this ExternalsiteAuthorization. + Account relation + + :param account: The account of this ExternalsiteAuthorization. + :type: IamAccountRef + """ + + self._account = account + + @property + def is_password_set(self): + """ + Gets the is_password_set of this ExternalsiteAuthorization. + + :return: The is_password_set of this ExternalsiteAuthorization. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this ExternalsiteAuthorization. + + :param is_password_set: The is_password_set of this ExternalsiteAuthorization. + :type: bool + """ + + self._is_password_set = is_password_set + + @property + def is_user_id_set(self): + """ + Gets the is_user_id_set of this ExternalsiteAuthorization. + + :return: The is_user_id_set of this ExternalsiteAuthorization. + :rtype: bool + """ + return self._is_user_id_set + + @is_user_id_set.setter + def is_user_id_set(self, is_user_id_set): + """ + Sets the is_user_id_set of this ExternalsiteAuthorization. + + :param is_user_id_set: The is_user_id_set of this ExternalsiteAuthorization. + :type: bool + """ + + self._is_user_id_set = is_user_id_set + + @property + def password(self): + """ + Gets the password of this ExternalsiteAuthorization. + User password for the external site + + :return: The password of this ExternalsiteAuthorization. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this ExternalsiteAuthorization. + User password for the external site + + :param password: The password of this ExternalsiteAuthorization. + :type: str + """ + + self._password = password + + @property + def repository_type(self): + """ + Gets the repository_type of this ExternalsiteAuthorization. + Repositry the user credentials are for + + :return: The repository_type of this ExternalsiteAuthorization. + :rtype: str + """ + return self._repository_type + + @repository_type.setter + def repository_type(self, repository_type): + """ + Sets the repository_type of this ExternalsiteAuthorization. + Repositry the user credentials are for + + :param repository_type: The repository_type of this ExternalsiteAuthorization. + :type: str + """ + allowed_values = ["cisco"] + if repository_type not in allowed_values: + raise ValueError( + "Invalid value for `repository_type` ({0}), must be one of {1}" + .format(repository_type, allowed_values) + ) + + self._repository_type = repository_type + + @property + def user_id(self): + """ + Gets the user_id of this ExternalsiteAuthorization. + User id for the external site + + :return: The user_id of this ExternalsiteAuthorization. + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """ + Sets the user_id of this ExternalsiteAuthorization. + User id for the external site + + :param user_id: The user_id of this ExternalsiteAuthorization. + :type: str + """ + + self._user_id = user_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ExternalsiteAuthorization): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/externalsite_authorization_list.py b/intersight/models/externalsite_authorization_list.py new file mode 100644 index 00000000..16eaaba2 --- /dev/null +++ b/intersight/models/externalsite_authorization_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExternalsiteAuthorizationList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[ExternalsiteAuthorization]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + ExternalsiteAuthorizationList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this ExternalsiteAuthorizationList. + The number of externalsiteAuthorizations matching your request in total for all pages. + + :return: The count of this ExternalsiteAuthorizationList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this ExternalsiteAuthorizationList. + The number of externalsiteAuthorizations matching your request in total for all pages. + + :param count: The count of this ExternalsiteAuthorizationList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this ExternalsiteAuthorizationList. + The array of externalsiteAuthorizations matching your request. + + :return: The results of this ExternalsiteAuthorizationList. + :rtype: list[ExternalsiteAuthorization] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this ExternalsiteAuthorizationList. + The array of externalsiteAuthorizations matching your request. + + :param results: The results of this ExternalsiteAuthorizationList. + :type: list[ExternalsiteAuthorization] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ExternalsiteAuthorizationList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/externalsite_authorization_ref.py b/intersight/models/externalsite_authorization_ref.py new file mode 100644 index 00000000..487ce030 --- /dev/null +++ b/intersight/models/externalsite_authorization_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExternalsiteAuthorizationRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ExternalsiteAuthorizationRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ExternalsiteAuthorizationRef. + + :return: The moid of this ExternalsiteAuthorizationRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ExternalsiteAuthorizationRef. + + :param moid: The moid of this ExternalsiteAuthorizationRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ExternalsiteAuthorizationRef. + + :return: The object_type of this ExternalsiteAuthorizationRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ExternalsiteAuthorizationRef. + + :param object_type: The object_type of this ExternalsiteAuthorizationRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ExternalsiteAuthorizationRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/extsearch_app_config_ref.py b/intersight/models/extsearch_app_config_ref.py new file mode 100644 index 00000000..d834b9ab --- /dev/null +++ b/intersight/models/extsearch_app_config_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExtsearchAppConfigRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ExtsearchAppConfigRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ExtsearchAppConfigRef. + + :return: The moid of this ExtsearchAppConfigRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ExtsearchAppConfigRef. + + :param moid: The moid of this ExtsearchAppConfigRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ExtsearchAppConfigRef. + + :return: The object_type of this ExtsearchAppConfigRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ExtsearchAppConfigRef. + + :param object_type: The object_type of this ExtsearchAppConfigRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ExtsearchAppConfigRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/extsearch_import_ref.py b/intersight/models/extsearch_import_ref.py new file mode 100644 index 00000000..a3834743 --- /dev/null +++ b/intersight/models/extsearch_import_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExtsearchImportRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ExtsearchImportRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ExtsearchImportRef. + + :return: The moid of this ExtsearchImportRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ExtsearchImportRef. + + :param moid: The moid of this ExtsearchImportRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ExtsearchImportRef. + + :return: The object_type of this ExtsearchImportRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ExtsearchImportRef. + + :param object_type: The object_type of this ExtsearchImportRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ExtsearchImportRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/fault_instance.py b/intersight/models/fault_instance.py index eea07fae..fc0881e3 100644 --- a/intersight/models/fault_instance.py +++ b/intersight/models/fault_instance.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class FaultInstance(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -56,7 +56,7 @@ class FaultInstance(object): 'num_occurrences': 'int', 'original_severity': 'str', 'previous_severity': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'rule': 'str', 'severity': 'str' } @@ -213,7 +213,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FaultInstance. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -224,7 +224,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FaultInstance. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -351,7 +351,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FaultInstance. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -362,7 +362,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FaultInstance. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -732,7 +732,7 @@ def registered_device(self): Gets the registered_device of this FaultInstance. :return: The registered_device of this FaultInstance. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -742,7 +742,7 @@ def registered_device(self, registered_device): Sets the registered_device of this FaultInstance. :param registered_device: The registered_device of this FaultInstance. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/fault_instance_list.py b/intersight/models/fault_instance_list.py index 46c12df9..602eda78 100644 --- a/intersight/models/fault_instance_list.py +++ b/intersight/models/fault_instance_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/fault_instance_ref.py b/intersight/models/fault_instance_ref.py new file mode 100644 index 00000000..2c68c82a --- /dev/null +++ b/intersight/models/fault_instance_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FaultInstanceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FaultInstanceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FaultInstanceRef. + + :return: The moid of this FaultInstanceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FaultInstanceRef. + + :param moid: The moid of this FaultInstanceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FaultInstanceRef. + + :return: The object_type of this FaultInstanceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FaultInstanceRef. + + :param object_type: The object_type of this FaultInstanceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FaultInstanceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/fc_physical_port.py b/intersight/models/fc_physical_port.py index 74b00702..fdcdd3f7 100644 --- a/intersight/models/fc_physical_port.py +++ b/intersight/models/fc_physical_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,21 @@ class FcPhysicalPort(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'oper_state': 'str', 'role': 'str', - 'port_group': 'MoMoRef', - 'registered_device': 'MoMoRef', + 'port_group': 'PortGroupRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'transceiver_type': 'str', 'wwn': 'str' } @@ -163,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FcPhysicalPort. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FcPhysicalPort. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FcPhysicalPort. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FcPhysicalPort. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -451,7 +451,7 @@ def port_group(self): Gets the port_group of this FcPhysicalPort. :return: The port_group of this FcPhysicalPort. - :rtype: MoMoRef + :rtype: PortGroupRef """ return self._port_group @@ -461,7 +461,7 @@ def port_group(self, port_group): Sets the port_group of this FcPhysicalPort. :param port_group: The port_group of this FcPhysicalPort. - :type: MoMoRef + :type: PortGroupRef """ self._port_group = port_group @@ -472,7 +472,7 @@ def registered_device(self): Gets the registered_device of this FcPhysicalPort. :return: The registered_device of this FcPhysicalPort. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -482,7 +482,7 @@ def registered_device(self, registered_device): Sets the registered_device of this FcPhysicalPort. :param registered_device: The registered_device of this FcPhysicalPort. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/fc_physical_port_list.py b/intersight/models/fc_physical_port_list.py index a138547f..3c5cbc04 100644 --- a/intersight/models/fc_physical_port_list.py +++ b/intersight/models/fc_physical_port_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/fc_physical_port_ref.py b/intersight/models/fc_physical_port_ref.py new file mode 100644 index 00000000..0e3b699a --- /dev/null +++ b/intersight/models/fc_physical_port_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FcPhysicalPortRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FcPhysicalPortRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FcPhysicalPortRef. + + :return: The moid of this FcPhysicalPortRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FcPhysicalPortRef. + + :param moid: The moid of this FcPhysicalPortRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FcPhysicalPortRef. + + :return: The object_type of this FcPhysicalPortRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FcPhysicalPortRef. + + :param object_type: The object_type of this FcPhysicalPortRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FcPhysicalPortRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_data.py b/intersight/models/feedback_feedback_data.py new file mode 100644 index 00000000..2ebc033e --- /dev/null +++ b/intersight/models/feedback_feedback_data.py @@ -0,0 +1,277 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackData(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'comment': 'str', + 'email': 'str', + 'evaluation': 'str', + 'follow_up': 'bool', + 'trace_ids': 'object', + 'type': 'str' + } + + attribute_map = { + 'comment': 'Comment', + 'email': 'Email', + 'evaluation': 'Evaluation', + 'follow_up': 'FollowUp', + 'trace_ids': 'TraceIds', + 'type': 'Type' + } + + def __init__(self, comment=None, email=None, evaluation='Excellent', follow_up=None, trace_ids=None, type='Evaluation'): + """ + FeedbackFeedbackData - a model defined in Swagger + """ + + self._comment = None + self._email = None + self._evaluation = None + self._follow_up = None + self._trace_ids = None + self._type = None + + if comment is not None: + self.comment = comment + if email is not None: + self.email = email + if evaluation is not None: + self.evaluation = evaluation + if follow_up is not None: + self.follow_up = follow_up + if trace_ids is not None: + self.trace_ids = trace_ids + if type is not None: + self.type = type + + @property + def comment(self): + """ + Gets the comment of this FeedbackFeedbackData. + Text of the feedback + + :return: The comment of this FeedbackFeedbackData. + :rtype: str + """ + return self._comment + + @comment.setter + def comment(self, comment): + """ + Sets the comment of this FeedbackFeedbackData. + Text of the feedback + + :param comment: The comment of this FeedbackFeedbackData. + :type: str + """ + + self._comment = comment + + @property + def email(self): + """ + Gets the email of this FeedbackFeedbackData. + user email + + :return: The email of this FeedbackFeedbackData. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this FeedbackFeedbackData. + user email + + :param email: The email of this FeedbackFeedbackData. + :type: str + """ + + self._email = email + + @property + def evaluation(self): + """ + Gets the evaluation of this FeedbackFeedbackData. + evaluation type + + :return: The evaluation of this FeedbackFeedbackData. + :rtype: str + """ + return self._evaluation + + @evaluation.setter + def evaluation(self, evaluation): + """ + Sets the evaluation of this FeedbackFeedbackData. + evaluation type + + :param evaluation: The evaluation of this FeedbackFeedbackData. + :type: str + """ + allowed_values = ["Excellent", "Poor", "Fair", "Good"] + if evaluation not in allowed_values: + raise ValueError( + "Invalid value for `evaluation` ({0}), must be one of {1}" + .format(evaluation, allowed_values) + ) + + self._evaluation = evaluation + + @property + def follow_up(self): + """ + Gets the follow_up of this FeedbackFeedbackData. + if user open for follow-up or not + + :return: The follow_up of this FeedbackFeedbackData. + :rtype: bool + """ + return self._follow_up + + @follow_up.setter + def follow_up(self, follow_up): + """ + Sets the follow_up of this FeedbackFeedbackData. + if user open for follow-up or not + + :param follow_up: The follow_up of this FeedbackFeedbackData. + :type: bool + """ + + self._follow_up = follow_up + + @property + def trace_ids(self): + """ + Gets the trace_ids of this FeedbackFeedbackData. + Bunch of last traceId for reproducing user last activity + + :return: The trace_ids of this FeedbackFeedbackData. + :rtype: object + """ + return self._trace_ids + + @trace_ids.setter + def trace_ids(self, trace_ids): + """ + Sets the trace_ids of this FeedbackFeedbackData. + Bunch of last traceId for reproducing user last activity + + :param trace_ids: The trace_ids of this FeedbackFeedbackData. + :type: object + """ + + self._trace_ids = trace_ids + + @property + def type(self): + """ + Gets the type of this FeedbackFeedbackData. + Type from user + + :return: The type of this FeedbackFeedbackData. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this FeedbackFeedbackData. + Type from user + + :param type: The type of this FeedbackFeedbackData. + :type: str + """ + allowed_values = ["Evaluation", "Bug"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_data_ref.py b/intersight/models/feedback_feedback_data_ref.py new file mode 100644 index 00000000..d796b31c --- /dev/null +++ b/intersight/models/feedback_feedback_data_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackDataRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FeedbackFeedbackDataRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FeedbackFeedbackDataRef. + + :return: The moid of this FeedbackFeedbackDataRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackFeedbackDataRef. + + :param moid: The moid of this FeedbackFeedbackDataRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackFeedbackDataRef. + + :return: The object_type of this FeedbackFeedbackDataRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackFeedbackDataRef. + + :param object_type: The object_type of this FeedbackFeedbackDataRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackDataRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_post.py b/intersight/models/feedback_feedback_post.py new file mode 100644 index 00000000..683214c5 --- /dev/null +++ b/intersight/models/feedback_feedback_post.py @@ -0,0 +1,401 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackPost(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'account': 'IamAccountRef', + 'feedback_data': 'FeedbackFeedbackData' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'account': 'Account', + 'feedback_data': 'FeedbackData' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, feedback_data=None): + """ + FeedbackFeedbackPost - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._account = None + self._feedback_data = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if account is not None: + self.account = account + if feedback_data is not None: + self.feedback_data = feedback_data + + @property + def account_moid(self): + """ + Gets the account_moid of this FeedbackFeedbackPost. + The Account ID for this managed object. + + :return: The account_moid of this FeedbackFeedbackPost. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this FeedbackFeedbackPost. + The Account ID for this managed object. + + :param account_moid: The account_moid of this FeedbackFeedbackPost. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this FeedbackFeedbackPost. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this FeedbackFeedbackPost. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this FeedbackFeedbackPost. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this FeedbackFeedbackPost. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this FeedbackFeedbackPost. + The time when this managed object was created. + + :return: The create_time of this FeedbackFeedbackPost. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this FeedbackFeedbackPost. + The time when this managed object was created. + + :param create_time: The create_time of this FeedbackFeedbackPost. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this FeedbackFeedbackPost. + The time when this managed object was last modified. + + :return: The mod_time of this FeedbackFeedbackPost. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this FeedbackFeedbackPost. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this FeedbackFeedbackPost. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this FeedbackFeedbackPost. + A unique identifier of this Managed Object instance. + + :return: The moid of this FeedbackFeedbackPost. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackFeedbackPost. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this FeedbackFeedbackPost. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackFeedbackPost. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this FeedbackFeedbackPost. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackFeedbackPost. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this FeedbackFeedbackPost. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this FeedbackFeedbackPost. + An array of owners which represent effective ownership of this object. + + :return: The owners of this FeedbackFeedbackPost. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this FeedbackFeedbackPost. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this FeedbackFeedbackPost. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this FeedbackFeedbackPost. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this FeedbackFeedbackPost. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this FeedbackFeedbackPost. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this FeedbackFeedbackPost. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this FeedbackFeedbackPost. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this FeedbackFeedbackPost. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this FeedbackFeedbackPost. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this FeedbackFeedbackPost. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def account(self): + """ + Gets the account of this FeedbackFeedbackPost. + + :return: The account of this FeedbackFeedbackPost. + :rtype: IamAccountRef + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this FeedbackFeedbackPost. + + :param account: The account of this FeedbackFeedbackPost. + :type: IamAccountRef + """ + + self._account = account + + @property + def feedback_data(self): + """ + Gets the feedback_data of this FeedbackFeedbackPost. + + :return: The feedback_data of this FeedbackFeedbackPost. + :rtype: FeedbackFeedbackData + """ + return self._feedback_data + + @feedback_data.setter + def feedback_data(self, feedback_data): + """ + Sets the feedback_data of this FeedbackFeedbackPost. + + :param feedback_data: The feedback_data of this FeedbackFeedbackPost. + :type: FeedbackFeedbackData + """ + + self._feedback_data = feedback_data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackPost): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_post_ref.py b/intersight/models/feedback_feedback_post_ref.py new file mode 100644 index 00000000..38efcd64 --- /dev/null +++ b/intersight/models/feedback_feedback_post_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackPostRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FeedbackFeedbackPostRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FeedbackFeedbackPostRef. + + :return: The moid of this FeedbackFeedbackPostRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackFeedbackPostRef. + + :param moid: The moid of this FeedbackFeedbackPostRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackFeedbackPostRef. + + :return: The object_type of this FeedbackFeedbackPostRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackFeedbackPostRef. + + :param object_type: The object_type of this FeedbackFeedbackPostRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackPostRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_ref.py b/intersight/models/feedback_feedback_ref.py new file mode 100644 index 00000000..2f0fd797 --- /dev/null +++ b/intersight/models/feedback_feedback_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FeedbackFeedbackRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FeedbackFeedbackRef. + + :return: The moid of this FeedbackFeedbackRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackFeedbackRef. + + :param moid: The moid of this FeedbackFeedbackRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackFeedbackRef. + + :return: The object_type of this FeedbackFeedbackRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackFeedbackRef. + + :param object_type: The object_type of this FeedbackFeedbackRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_settings_ref.py b/intersight/models/feedback_feedback_settings_ref.py new file mode 100644 index 00000000..e2fd1609 --- /dev/null +++ b/intersight/models/feedback_feedback_settings_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackSettingsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FeedbackFeedbackSettingsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FeedbackFeedbackSettingsRef. + + :return: The moid of this FeedbackFeedbackSettingsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackFeedbackSettingsRef. + + :param moid: The moid of this FeedbackFeedbackSettingsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackFeedbackSettingsRef. + + :return: The object_type of this FeedbackFeedbackSettingsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackFeedbackSettingsRef. + + :param object_type: The object_type of this FeedbackFeedbackSettingsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackSettingsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_history_item_ref.py b/intersight/models/feedback_history_item_ref.py new file mode 100644 index 00000000..6dd71b83 --- /dev/null +++ b/intersight/models/feedback_history_item_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackHistoryItemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FeedbackHistoryItemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FeedbackHistoryItemRef. + + :return: The moid of this FeedbackHistoryItemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackHistoryItemRef. + + :param moid: The moid of this FeedbackHistoryItemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackHistoryItemRef. + + :return: The object_type of this FeedbackHistoryItemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackHistoryItemRef. + + :param object_type: The object_type of this FeedbackHistoryItemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackHistoryItemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_cifs_server.py b/intersight/models/firmware_cifs_server.py index f31ff428..b764416a 100644 --- a/intersight/models/firmware_cifs_server.py +++ b/intersight/models/firmware_cifs_server.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -67,7 +67,7 @@ def __init__(self, mount_options='none', remote_file=None, remote_ip=None, remot def mount_options(self): """ Gets the mount_options of this FirmwareCifsServer. - Mount options of this image in the nfs server + Mount option (Authentication Protocol) as configured on the CIFS Server. Example:ntlmv2. :return: The mount_options of this FirmwareCifsServer. :rtype: str @@ -78,7 +78,7 @@ def mount_options(self): def mount_options(self, mount_options): """ Sets the mount_options of this FirmwareCifsServer. - Mount options of this image in the nfs server + Mount option (Authentication Protocol) as configured on the CIFS Server. Example:ntlmv2. :param mount_options: The mount_options of this FirmwareCifsServer. :type: str @@ -96,7 +96,7 @@ def mount_options(self, mount_options): def remote_file(self): """ Gets the remote_file of this FirmwareCifsServer. - The filename of the image + Filename of the image in the remote share location. Example:ucs-c220m5-huu-3.1.2c.iso. :return: The remote_file of this FirmwareCifsServer. :rtype: str @@ -107,7 +107,7 @@ def remote_file(self): def remote_file(self, remote_file): """ Sets the remote_file of this FirmwareCifsServer. - The filename of the image + Filename of the image in the remote share location. Example:ucs-c220m5-huu-3.1.2c.iso. :param remote_file: The remote_file of this FirmwareCifsServer. :type: str @@ -119,7 +119,7 @@ def remote_file(self, remote_file): def remote_ip(self): """ Gets the remote_ip of this FirmwareCifsServer. - The IP of a host (in the network) that has the image download thta can be mounted in BMC + CIFS Server IP Address. Example:10.10.8.7. :return: The remote_ip of this FirmwareCifsServer. :rtype: str @@ -130,7 +130,7 @@ def remote_ip(self): def remote_ip(self, remote_ip): """ Sets the remote_ip of this FirmwareCifsServer. - The IP of a host (in the network) that has the image download thta can be mounted in BMC + CIFS Server IP Address. Example:10.10.8.7. :param remote_ip: The remote_ip of this FirmwareCifsServer. :type: str @@ -142,7 +142,7 @@ def remote_ip(self, remote_ip): def remote_share(self): """ Gets the remote_share of this FirmwareCifsServer. - The directory where the image is stored + Directory where the image is stored. Example:share/subfolder. :return: The remote_share of this FirmwareCifsServer. :rtype: str @@ -153,7 +153,7 @@ def remote_share(self): def remote_share(self, remote_share): """ Sets the remote_share of this FirmwareCifsServer. - The directory where the image is stored + Directory where the image is stored. Example:share/subfolder. :param remote_share: The remote_share of this FirmwareCifsServer. :type: str diff --git a/intersight/models/firmware_cifs_server_ref.py b/intersight/models/firmware_cifs_server_ref.py new file mode 100644 index 00000000..b8778507 --- /dev/null +++ b/intersight/models/firmware_cifs_server_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareCifsServerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareCifsServerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareCifsServerRef. + + :return: The moid of this FirmwareCifsServerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareCifsServerRef. + + :param moid: The moid of this FirmwareCifsServerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareCifsServerRef. + + :return: The object_type of this FirmwareCifsServerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareCifsServerRef. + + :param object_type: The object_type of this FirmwareCifsServerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareCifsServerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_direct_download.py b/intersight/models/firmware_direct_download.py index 7ed13ef5..240b5291 100644 --- a/intersight/models/firmware_direct_download.py +++ b/intersight/models/firmware_direct_download.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,28 +31,149 @@ class FirmwareDirectDownload(object): and the value is json key in definition. """ swagger_types = { - 'upgradeoption': 'str' + 'http_server': 'FirmwareHttpServer', + 'image_source': 'str', + 'is_password_set': 'bool', + 'password': 'str', + 'upgradeoption': 'str', + 'username': 'str' } attribute_map = { - 'upgradeoption': 'Upgradeoption' + 'http_server': 'HttpServer', + 'image_source': 'ImageSource', + 'is_password_set': 'IsPasswordSet', + 'password': 'Password', + 'upgradeoption': 'Upgradeoption', + 'username': 'Username' } - def __init__(self, upgradeoption='sd_upgrade_full'): + def __init__(self, http_server=None, image_source='cco', is_password_set=None, password=None, upgradeoption='sd_upgrade_mount_only', username=None): """ FirmwareDirectDownload - a model defined in Swagger """ + self._http_server = None + self._image_source = None + self._is_password_set = None + self._password = None self._upgradeoption = None + self._username = None + if http_server is not None: + self.http_server = http_server + if image_source is not None: + self.image_source = image_source + if is_password_set is not None: + self.is_password_set = is_password_set + if password is not None: + self.password = password if upgradeoption is not None: self.upgradeoption = upgradeoption + if username is not None: + self.username = username + + @property + def http_server(self): + """ + Gets the http_server of this FirmwareDirectDownload. + HTTP Server option when the image source is a local https server + + :return: The http_server of this FirmwareDirectDownload. + :rtype: FirmwareHttpServer + """ + return self._http_server + + @http_server.setter + def http_server(self, http_server): + """ + Sets the http_server of this FirmwareDirectDownload. + HTTP Server option when the image source is a local https server + + :param http_server: The http_server of this FirmwareDirectDownload. + :type: FirmwareHttpServer + """ + + self._http_server = http_server + + @property + def image_source(self): + """ + Gets the image_source of this FirmwareDirectDownload. + Source type referring the image to be downloaded from CCO or from a local https server + + :return: The image_source of this FirmwareDirectDownload. + :rtype: str + """ + return self._image_source + + @image_source.setter + def image_source(self, image_source): + """ + Sets the image_source of this FirmwareDirectDownload. + Source type referring the image to be downloaded from CCO or from a local https server + + :param image_source: The image_source of this FirmwareDirectDownload. + :type: str + """ + allowed_values = ["cco", "localHttp"] + if image_source not in allowed_values: + raise ValueError( + "Invalid value for `image_source` ({0}), must be one of {1}" + .format(image_source, allowed_values) + ) + + self._image_source = image_source + + @property + def is_password_set(self): + """ + Gets the is_password_set of this FirmwareDirectDownload. + + :return: The is_password_set of this FirmwareDirectDownload. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this FirmwareDirectDownload. + + :param is_password_set: The is_password_set of this FirmwareDirectDownload. + :type: bool + """ + + self._is_password_set = is_password_set + + @property + def password(self): + """ + Gets the password of this FirmwareDirectDownload. + Password as configured on the local https server + + :return: The password of this FirmwareDirectDownload. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this FirmwareDirectDownload. + Password as configured on the local https server + + :param password: The password of this FirmwareDirectDownload. + :type: str + """ + + self._password = password @property def upgradeoption(self): """ Gets the upgradeoption of this FirmwareDirectDownload. - Customer can download the image on the microsd of the server from Cisco.com and upgrade later or do the download, upgrade in a single window + Option to control the upgrade, e.g., sd_upgrade_mount_only - download the image into sd and upgrade wait for the server on-next boot :return: The upgradeoption of this FirmwareDirectDownload. :rtype: str @@ -63,12 +184,12 @@ def upgradeoption(self): def upgradeoption(self, upgradeoption): """ Sets the upgradeoption of this FirmwareDirectDownload. - Customer can download the image on the microsd of the server from Cisco.com and upgrade later or do the download, upgrade in a single window + Option to control the upgrade, e.g., sd_upgrade_mount_only - download the image into sd and upgrade wait for the server on-next boot :param upgradeoption: The upgradeoption of this FirmwareDirectDownload. :type: str """ - allowed_values = ["sd_upgrade_full", "sd_download_only", "sd_upgrade_only"] + allowed_values = ["sd_upgrade_mount_only", "sd_download_only", "sd_upgrade_only", "sd_upgrade_full"] if upgradeoption not in allowed_values: raise ValueError( "Invalid value for `upgradeoption` ({0}), must be one of {1}" @@ -77,6 +198,29 @@ def upgradeoption(self, upgradeoption): self._upgradeoption = upgradeoption + @property + def username(self): + """ + Gets the username of this FirmwareDirectDownload. + Username as configured on the local https server + + :return: The username of this FirmwareDirectDownload. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this FirmwareDirectDownload. + Username as configured on the local https server + + :param username: The username of this FirmwareDirectDownload. + :type: str + """ + + self._username = username + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/firmware_direct_download_ref.py b/intersight/models/firmware_direct_download_ref.py new file mode 100644 index 00000000..02feab1c --- /dev/null +++ b/intersight/models/firmware_direct_download_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareDirectDownloadRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareDirectDownloadRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareDirectDownloadRef. + + :return: The moid of this FirmwareDirectDownloadRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareDirectDownloadRef. + + :param moid: The moid of this FirmwareDirectDownloadRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareDirectDownloadRef. + + :return: The object_type of this FirmwareDirectDownloadRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareDirectDownloadRef. + + :param object_type: The object_type of this FirmwareDirectDownloadRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareDirectDownloadRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_distributable.py b/intersight/models/firmware_distributable.py index 92d0ef61..07d3cae7 100644 --- a/intersight/models/firmware_distributable.py +++ b/intersight/models/firmware_distributable.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class FirmwareDistributable(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'bundle_type': 'str', 'description': 'str', @@ -47,6 +47,7 @@ class FirmwareDistributable(object): 'mdfid': 'str', 'model': 'str', 'name': 'str', + 'page_index': 'str', 'platform_type': 'str', 'release_date': 'str', 'size': 'str', @@ -74,6 +75,7 @@ class FirmwareDistributable(object): 'mdfid': 'Mdfid', 'model': 'Model', 'name': 'Name', + 'page_index': 'PageIndex', 'platform_type': 'PlatformType', 'release_date': 'ReleaseDate', 'size': 'Size', @@ -84,7 +86,7 @@ class FirmwareDistributable(object): 'version': 'Version' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, bundle_type=None, description=None, guid=None, md5sum=None, mdfid=None, model=None, name=None, platform_type=None, release_date=None, size=None, software_type_id=None, source='CCO', supported_models=None, vendor=None, version=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, bundle_type=None, description=None, guid=None, md5sum=None, mdfid=None, model=None, name=None, page_index=None, platform_type=None, release_date=None, size=None, software_type_id=None, source='CCO', supported_models=None, vendor=None, version=None): """ FirmwareDistributable - a model defined in Swagger """ @@ -105,6 +107,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._mdfid = None self._model = None self._name = None + self._page_index = None self._platform_type = None self._release_date = None self._size = None @@ -146,6 +149,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.model = model if name is not None: self.name = name + if page_index is not None: + self.page_index = page_index if platform_type is not None: self.platform_type = platform_type if release_date is not None: @@ -193,7 +198,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FirmwareDistributable. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +209,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FirmwareDistributable. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +336,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FirmwareDistributable. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +347,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FirmwareDistributable. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -531,6 +536,29 @@ def name(self, name): self._name = name + @property + def page_index(self): + """ + Gets the page_index of this FirmwareDistributable. + Page number where firmware image is present in Cisco Software Repository + + :return: The page_index of this FirmwareDistributable. + :rtype: str + """ + return self._page_index + + @page_index.setter + def page_index(self, page_index): + """ + Sets the page_index of this FirmwareDistributable. + Page number where firmware image is present in Cisco Software Repository + + :param page_index: The page_index of this FirmwareDistributable. + :type: str + """ + + self._page_index = page_index + @property def platform_type(self): """ diff --git a/intersight/models/firmware_distributable_list.py b/intersight/models/firmware_distributable_list.py index 764c980a..8a7a6145 100644 --- a/intersight/models/firmware_distributable_list.py +++ b/intersight/models/firmware_distributable_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/firmware_distributable_ref.py b/intersight/models/firmware_distributable_ref.py new file mode 100644 index 00000000..3155a9cb --- /dev/null +++ b/intersight/models/firmware_distributable_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareDistributableRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareDistributableRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareDistributableRef. + + :return: The moid of this FirmwareDistributableRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareDistributableRef. + + :param moid: The moid of this FirmwareDistributableRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareDistributableRef. + + :return: The object_type of this FirmwareDistributableRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareDistributableRef. + + :param object_type: The object_type of this FirmwareDistributableRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareDistributableRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_download_spec_ref.py b/intersight/models/firmware_download_spec_ref.py new file mode 100644 index 00000000..3a33a606 --- /dev/null +++ b/intersight/models/firmware_download_spec_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareDownloadSpecRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareDownloadSpecRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareDownloadSpecRef. + + :return: The moid of this FirmwareDownloadSpecRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareDownloadSpecRef. + + :param moid: The moid of this FirmwareDownloadSpecRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareDownloadSpecRef. + + :return: The object_type of this FirmwareDownloadSpecRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareDownloadSpecRef. + + :param object_type: The object_type of this FirmwareDownloadSpecRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareDownloadSpecRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_eula.py b/intersight/models/firmware_eula.py index eef305e0..3d44540a 100644 --- a/intersight/models/firmware_eula.py +++ b/intersight/models/firmware_eula.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,16 @@ class FirmwareEula(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'accepted': 'bool', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'content': 'str' } @@ -133,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FirmwareEula. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FirmwareEula. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FirmwareEula. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FirmwareEula. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -340,7 +340,7 @@ def account(self): Account relation :return: The account of this FirmwareEula. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -351,7 +351,7 @@ def account(self, account): Account relation :param account: The account of this FirmwareEula. - :type: MoMoRef + :type: IamAccountRef """ self._account = account diff --git a/intersight/models/firmware_eula_list.py b/intersight/models/firmware_eula_list.py index 5c81b5f9..df94daa4 100644 --- a/intersight/models/firmware_eula_list.py +++ b/intersight/models/firmware_eula_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/firmware_eula_ref.py b/intersight/models/firmware_eula_ref.py new file mode 100644 index 00000000..4ecf40d6 --- /dev/null +++ b/intersight/models/firmware_eula_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareEulaRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareEulaRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareEulaRef. + + :return: The moid of this FirmwareEulaRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareEulaRef. + + :param moid: The moid of this FirmwareEulaRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareEulaRef. + + :return: The object_type of this FirmwareEulaRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareEulaRef. + + :param object_type: The object_type of this FirmwareEulaRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareEulaRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_http_server.py b/intersight/models/firmware_http_server.py index 55335a65..b2d15fa9 100644 --- a/intersight/models/firmware_http_server.py +++ b/intersight/models/firmware_http_server.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -57,7 +57,7 @@ def __init__(self, location_link=None, mount_options=None): def location_link(self): """ Gets the location_link of this FirmwareHttpServer. - An HTTP/HTTPS link for the image location + HTTP/HTTPS link to the image. Accepted format http[s]://serverip/share/image. :return: The location_link of this FirmwareHttpServer. :rtype: str @@ -68,7 +68,7 @@ def location_link(self): def location_link(self, location_link): """ Sets the location_link of this FirmwareHttpServer. - An HTTP/HTTPS link for the image location + HTTP/HTTPS link to the image. Accepted format http[s]://serverip/share/image. :param location_link: The location_link of this FirmwareHttpServer. :type: str @@ -80,7 +80,7 @@ def location_link(self, location_link): def mount_options(self): """ Gets the mount_options of this FirmwareHttpServer. - Mount options of this image in the http server + Mount option as configured on the HTTP server. Empty if nothing is configured. :return: The mount_options of this FirmwareHttpServer. :rtype: str @@ -91,7 +91,7 @@ def mount_options(self): def mount_options(self, mount_options): """ Sets the mount_options of this FirmwareHttpServer. - Mount options of this image in the http server + Mount option as configured on the HTTP server. Empty if nothing is configured. :param mount_options: The mount_options of this FirmwareHttpServer. :type: str diff --git a/intersight/models/firmware_http_server_ref.py b/intersight/models/firmware_http_server_ref.py new file mode 100644 index 00000000..c2e891ca --- /dev/null +++ b/intersight/models/firmware_http_server_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareHttpServerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareHttpServerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareHttpServerRef. + + :return: The moid of this FirmwareHttpServerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareHttpServerRef. + + :param moid: The moid of this FirmwareHttpServerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareHttpServerRef. + + :return: The object_type of this FirmwareHttpServerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareHttpServerRef. + + :param object_type: The object_type of this FirmwareHttpServerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareHttpServerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_network_share.py b/intersight/models/firmware_network_share.py index 15e5a32d..da7140e5 100644 --- a/intersight/models/firmware_network_share.py +++ b/intersight/models/firmware_network_share.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,6 +33,7 @@ class FirmwareNetworkShare(object): swagger_types = { 'cifs_server': 'FirmwareCifsServer', 'http_server': 'FirmwareHttpServer', + 'is_password_set': 'bool', 'map_type': 'str', 'nfs_server': 'FirmwareNfsServer', 'password': 'str', @@ -43,6 +44,7 @@ class FirmwareNetworkShare(object): attribute_map = { 'cifs_server': 'CifsServer', 'http_server': 'HttpServer', + 'is_password_set': 'IsPasswordSet', 'map_type': 'MapType', 'nfs_server': 'NfsServer', 'password': 'Password', @@ -50,13 +52,14 @@ class FirmwareNetworkShare(object): 'username': 'Username' } - def __init__(self, cifs_server=None, http_server=None, map_type='nfs', nfs_server=None, password=None, upgradeoption='nw_upgrade_full', username=None): + def __init__(self, cifs_server=None, http_server=None, is_password_set=None, map_type='nfs', nfs_server=None, password=None, upgradeoption='nw_upgrade_full', username=None): """ FirmwareNetworkShare - a model defined in Swagger """ self._cifs_server = None self._http_server = None + self._is_password_set = None self._map_type = None self._nfs_server = None self._password = None @@ -67,6 +70,8 @@ def __init__(self, cifs_server=None, http_server=None, map_type='nfs', nfs_serve self.cifs_server = cifs_server if http_server is not None: self.http_server = http_server + if is_password_set is not None: + self.is_password_set = is_password_set if map_type is not None: self.map_type = map_type if nfs_server is not None: @@ -82,7 +87,7 @@ def __init__(self, cifs_server=None, http_server=None, map_type='nfs', nfs_serve def cifs_server(self): """ Gets the cifs_server of this FirmwareNetworkShare. - Cifs server access details that holds the image + CIFS file server option :return: The cifs_server of this FirmwareNetworkShare. :rtype: FirmwareCifsServer @@ -93,7 +98,7 @@ def cifs_server(self): def cifs_server(self, cifs_server): """ Sets the cifs_server of this FirmwareNetworkShare. - Cifs server access details that holds the image + CIFS file server option :param cifs_server: The cifs_server of this FirmwareNetworkShare. :type: FirmwareCifsServer @@ -105,7 +110,7 @@ def cifs_server(self, cifs_server): def http_server(self): """ Gets the http_server of this FirmwareNetworkShare. - Http server access details that holds the image + HTTP(for WWW) file server option :return: The http_server of this FirmwareNetworkShare. :rtype: FirmwareHttpServer @@ -116,7 +121,7 @@ def http_server(self): def http_server(self, http_server): """ Sets the http_server of this FirmwareNetworkShare. - Http server access details that holds the image + HTTP(for WWW) file server option :param http_server: The http_server of this FirmwareNetworkShare. :type: FirmwareHttpServer @@ -124,11 +129,32 @@ def http_server(self, http_server): self._http_server = http_server + @property + def is_password_set(self): + """ + Gets the is_password_set of this FirmwareNetworkShare. + + :return: The is_password_set of this FirmwareNetworkShare. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this FirmwareNetworkShare. + + :param is_password_set: The is_password_set of this FirmwareNetworkShare. + :type: bool + """ + + self._is_password_set = is_password_set + @property def map_type(self): """ Gets the map_type of this FirmwareNetworkShare. - User can have the image already downloaded in a local network in customer premises and initiate the upgrade via Intersight with that network-share information. The image can be in a different mount protocol like cifs,nfs and over http(www). Once this configured, Intersight will configure the mount point in BMC. + File server protocols like CIFS, NFS, WWW for HTTP(S) that hosts the image :return: The map_type of this FirmwareNetworkShare. :rtype: str @@ -139,7 +165,7 @@ def map_type(self): def map_type(self, map_type): """ Sets the map_type of this FirmwareNetworkShare. - User can have the image already downloaded in a local network in customer premises and initiate the upgrade via Intersight with that network-share information. The image can be in a different mount protocol like cifs,nfs and over http(www). Once this configured, Intersight will configure the mount point in BMC. + File server protocols like CIFS, NFS, WWW for HTTP(S) that hosts the image :param map_type: The map_type of this FirmwareNetworkShare. :type: str @@ -157,7 +183,7 @@ def map_type(self, map_type): def nfs_server(self): """ Gets the nfs_server of this FirmwareNetworkShare. - Nfs server accessdetails that holds the image + NFS file server option :return: The nfs_server of this FirmwareNetworkShare. :rtype: FirmwareNfsServer @@ -168,7 +194,7 @@ def nfs_server(self): def nfs_server(self, nfs_server): """ Sets the nfs_server of this FirmwareNetworkShare. - Nfs server accessdetails that holds the image + NFS file server option :param nfs_server: The nfs_server of this FirmwareNetworkShare. :type: FirmwareNfsServer @@ -180,7 +206,7 @@ def nfs_server(self, nfs_server): def password(self): """ Gets the password of this FirmwareNetworkShare. - Based on the mount configurations, credential is required by BMC to mount the image from the network + Password as configured on the file server :return: The password of this FirmwareNetworkShare. :rtype: str @@ -191,7 +217,7 @@ def password(self): def password(self, password): """ Sets the password of this FirmwareNetworkShare. - Based on the mount configurations, credential is required by BMC to mount the image from the network + Password as configured on the file server :param password: The password of this FirmwareNetworkShare. :type: str @@ -203,7 +229,7 @@ def password(self, password): def upgradeoption(self): """ Gets the upgradeoption of this FirmwareNetworkShare. - Customer can mount a locally downloaded image on the setup and upgrade later or do both the mount, upgrade in a single window + Option to control the upgrade, e.g., 1) nw_upgrade_mount_only - mount the image from a file server and run upgrade on-next server boot 2) nw_upgrade_full - mount the image and run upgrade immediately :return: The upgradeoption of this FirmwareNetworkShare. :rtype: str @@ -214,12 +240,12 @@ def upgradeoption(self): def upgradeoption(self, upgradeoption): """ Sets the upgradeoption of this FirmwareNetworkShare. - Customer can mount a locally downloaded image on the setup and upgrade later or do both the mount, upgrade in a single window + Option to control the upgrade, e.g., 1) nw_upgrade_mount_only - mount the image from a file server and run upgrade on-next server boot 2) nw_upgrade_full - mount the image and run upgrade immediately :param upgradeoption: The upgradeoption of this FirmwareNetworkShare. :type: str """ - allowed_values = ["nw_upgrade_full"] + allowed_values = ["nw_upgrade_full", "nw_upgrade_mount_only"] if upgradeoption not in allowed_values: raise ValueError( "Invalid value for `upgradeoption` ({0}), must be one of {1}" @@ -232,7 +258,7 @@ def upgradeoption(self, upgradeoption): def username(self): """ Gets the username of this FirmwareNetworkShare. - Based on the mount configurations, credential is required by BMC to mount the image from the network + Username as configured on the file server :return: The username of this FirmwareNetworkShare. :rtype: str @@ -243,7 +269,7 @@ def username(self): def username(self, username): """ Sets the username of this FirmwareNetworkShare. - Based on the mount configurations, credential is required by BMC to mount the image from the network + Username as configured on the file server :param username: The username of this FirmwareNetworkShare. :type: str diff --git a/intersight/models/firmware_network_share_ref.py b/intersight/models/firmware_network_share_ref.py new file mode 100644 index 00000000..185d5557 --- /dev/null +++ b/intersight/models/firmware_network_share_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareNetworkShareRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareNetworkShareRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareNetworkShareRef. + + :return: The moid of this FirmwareNetworkShareRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareNetworkShareRef. + + :param moid: The moid of this FirmwareNetworkShareRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareNetworkShareRef. + + :return: The object_type of this FirmwareNetworkShareRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareNetworkShareRef. + + :param object_type: The object_type of this FirmwareNetworkShareRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareNetworkShareRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_nfs_server.py b/intersight/models/firmware_nfs_server.py index 99a1cd27..cabe0010 100644 --- a/intersight/models/firmware_nfs_server.py +++ b/intersight/models/firmware_nfs_server.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -67,7 +67,7 @@ def __init__(self, mount_options=None, remote_file=None, remote_ip=None, remote_ def mount_options(self): """ Gets the mount_options of this FirmwareNfsServer. - Mount options of this image in the nfs server + Mount option as configured on the NFS Server. Example:nolock. :return: The mount_options of this FirmwareNfsServer. :rtype: str @@ -78,7 +78,7 @@ def mount_options(self): def mount_options(self, mount_options): """ Sets the mount_options of this FirmwareNfsServer. - Mount options of this image in the nfs server + Mount option as configured on the NFS Server. Example:nolock. :param mount_options: The mount_options of this FirmwareNfsServer. :type: str @@ -90,7 +90,7 @@ def mount_options(self, mount_options): def remote_file(self): """ Gets the remote_file of this FirmwareNfsServer. - The filename of the image + Filename of the image in the remote share location. Example:ucs-c220m5-huu-3.1.2c.iso. :return: The remote_file of this FirmwareNfsServer. :rtype: str @@ -101,7 +101,7 @@ def remote_file(self): def remote_file(self, remote_file): """ Sets the remote_file of this FirmwareNfsServer. - The filename of the image + Filename of the image in the remote share location. Example:ucs-c220m5-huu-3.1.2c.iso. :param remote_file: The remote_file of this FirmwareNfsServer. :type: str @@ -113,7 +113,7 @@ def remote_file(self, remote_file): def remote_ip(self): """ Gets the remote_ip of this FirmwareNfsServer. - The IP of a host (in the network) that has the image download thta can be mounted in BMC + NFS Server IP Address. Example:10.10.8.7. :return: The remote_ip of this FirmwareNfsServer. :rtype: str @@ -124,7 +124,7 @@ def remote_ip(self): def remote_ip(self, remote_ip): """ Sets the remote_ip of this FirmwareNfsServer. - The IP of a host (in the network) that has the image download thta can be mounted in BMC + NFS Server IP Address. Example:10.10.8.7. :param remote_ip: The remote_ip of this FirmwareNfsServer. :type: str @@ -136,7 +136,7 @@ def remote_ip(self, remote_ip): def remote_share(self): """ Gets the remote_share of this FirmwareNfsServer. - The directory where the image is stored + Directory where the image is stored. Example:/share/subfolder. :return: The remote_share of this FirmwareNfsServer. :rtype: str @@ -147,7 +147,7 @@ def remote_share(self): def remote_share(self, remote_share): """ Sets the remote_share of this FirmwareNfsServer. - The directory where the image is stored + Directory where the image is stored. Example:/share/subfolder. :param remote_share: The remote_share of this FirmwareNfsServer. :type: str diff --git a/intersight/models/firmware_nfs_server_ref.py b/intersight/models/firmware_nfs_server_ref.py new file mode 100644 index 00000000..beea2c9a --- /dev/null +++ b/intersight/models/firmware_nfs_server_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareNfsServerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareNfsServerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareNfsServerRef. + + :return: The moid of this FirmwareNfsServerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareNfsServerRef. + + :param moid: The moid of this FirmwareNfsServerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareNfsServerRef. + + :return: The object_type of this FirmwareNfsServerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareNfsServerRef. + + :param object_type: The object_type of this FirmwareNfsServerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareNfsServerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_running_firmware.py b/intersight/models/firmware_running_firmware.py index bc3c0482..4e682b50 100644 --- a/intersight/models/firmware_running_firmware.py +++ b/intersight/models/firmware_running_firmware.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,24 +32,25 @@ class FirmwareRunningFirmware(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'bios_unit': 'MoMoRef', + 'bios_unit': 'BiosUnitRef', 'component': 'str', - 'management_controller': 'MoMoRef', - 'network_elements': 'list[MoMoRef]', + 'management_controller': 'ManagementControllerRef', + 'network_elements': 'list[NetworkElementRef]', 'package_version': 'str', - 'registered_device': 'MoMoRef', - 'storage_controller': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'storage_controller': 'StorageControllerRef', + 'storage_physical_disk': 'StoragePhysicalDiskRef', 'type': 'str', 'version': 'str' } @@ -74,11 +75,12 @@ class FirmwareRunningFirmware(object): 'package_version': 'PackageVersion', 'registered_device': 'RegisteredDevice', 'storage_controller': 'StorageController', + 'storage_physical_disk': 'StoragePhysicalDisk', 'type': 'Type', 'version': 'Version' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, bios_unit=None, component=None, management_controller=None, network_elements=None, package_version=None, registered_device=None, storage_controller=None, type=None, version=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, bios_unit=None, component=None, management_controller=None, network_elements=None, package_version=None, registered_device=None, storage_controller=None, storage_physical_disk=None, type=None, version=None): """ FirmwareRunningFirmware - a model defined in Swagger """ @@ -102,6 +104,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._package_version = None self._registered_device = None self._storage_controller = None + self._storage_physical_disk = None self._type = None self._version = None @@ -143,6 +146,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.registered_device = registered_device if storage_controller is not None: self.storage_controller = storage_controller + if storage_physical_disk is not None: + self.storage_physical_disk = storage_physical_disk if type is not None: self.type = type if version is not None: @@ -178,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FirmwareRunningFirmware. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FirmwareRunningFirmware. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FirmwareRunningFirmware. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FirmwareRunningFirmware. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -424,7 +429,7 @@ def bios_unit(self): Gets the bios_unit of this FirmwareRunningFirmware. :return: The bios_unit of this FirmwareRunningFirmware. - :rtype: MoMoRef + :rtype: BiosUnitRef """ return self._bios_unit @@ -434,7 +439,7 @@ def bios_unit(self, bios_unit): Sets the bios_unit of this FirmwareRunningFirmware. :param bios_unit: The bios_unit of this FirmwareRunningFirmware. - :type: MoMoRef + :type: BiosUnitRef """ self._bios_unit = bios_unit @@ -468,7 +473,7 @@ def management_controller(self): Gets the management_controller of this FirmwareRunningFirmware. :return: The management_controller of this FirmwareRunningFirmware. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._management_controller @@ -478,7 +483,7 @@ def management_controller(self, management_controller): Sets the management_controller of this FirmwareRunningFirmware. :param management_controller: The management_controller of this FirmwareRunningFirmware. - :type: MoMoRef + :type: ManagementControllerRef """ self._management_controller = management_controller @@ -489,7 +494,7 @@ def network_elements(self): Gets the network_elements of this FirmwareRunningFirmware. :return: The network_elements of this FirmwareRunningFirmware. - :rtype: list[MoMoRef] + :rtype: list[NetworkElementRef] """ return self._network_elements @@ -499,7 +504,7 @@ def network_elements(self, network_elements): Sets the network_elements of this FirmwareRunningFirmware. :param network_elements: The network_elements of this FirmwareRunningFirmware. - :type: list[MoMoRef] + :type: list[NetworkElementRef] """ self._network_elements = network_elements @@ -533,7 +538,7 @@ def registered_device(self): Gets the registered_device of this FirmwareRunningFirmware. :return: The registered_device of this FirmwareRunningFirmware. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -543,7 +548,7 @@ def registered_device(self, registered_device): Sets the registered_device of this FirmwareRunningFirmware. :param registered_device: The registered_device of this FirmwareRunningFirmware. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -554,7 +559,7 @@ def storage_controller(self): Gets the storage_controller of this FirmwareRunningFirmware. :return: The storage_controller of this FirmwareRunningFirmware. - :rtype: MoMoRef + :rtype: StorageControllerRef """ return self._storage_controller @@ -564,11 +569,32 @@ def storage_controller(self, storage_controller): Sets the storage_controller of this FirmwareRunningFirmware. :param storage_controller: The storage_controller of this FirmwareRunningFirmware. - :type: MoMoRef + :type: StorageControllerRef """ self._storage_controller = storage_controller + @property + def storage_physical_disk(self): + """ + Gets the storage_physical_disk of this FirmwareRunningFirmware. + + :return: The storage_physical_disk of this FirmwareRunningFirmware. + :rtype: StoragePhysicalDiskRef + """ + return self._storage_physical_disk + + @storage_physical_disk.setter + def storage_physical_disk(self, storage_physical_disk): + """ + Sets the storage_physical_disk of this FirmwareRunningFirmware. + + :param storage_physical_disk: The storage_physical_disk of this FirmwareRunningFirmware. + :type: StoragePhysicalDiskRef + """ + + self._storage_physical_disk = storage_physical_disk + @property def type(self): """ diff --git a/intersight/models/firmware_running_firmware_list.py b/intersight/models/firmware_running_firmware_list.py index af70d39c..f51c69e3 100644 --- a/intersight/models/firmware_running_firmware_list.py +++ b/intersight/models/firmware_running_firmware_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/firmware_running_firmware_ref.py b/intersight/models/firmware_running_firmware_ref.py new file mode 100644 index 00000000..82f0be7d --- /dev/null +++ b/intersight/models/firmware_running_firmware_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareRunningFirmwareRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareRunningFirmwareRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareRunningFirmwareRef. + + :return: The moid of this FirmwareRunningFirmwareRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareRunningFirmwareRef. + + :param moid: The moid of this FirmwareRunningFirmwareRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareRunningFirmwareRef. + + :return: The object_type of this FirmwareRunningFirmwareRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareRunningFirmwareRef. + + :param object_type: The object_type of this FirmwareRunningFirmwareRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareRunningFirmwareRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_upgrade.py b/intersight/models/firmware_upgrade.py index 5df1eea2..a64d6550 100644 --- a/intersight/models/firmware_upgrade.py +++ b/intersight/models/firmware_upgrade.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class FirmwareUpgrade(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'device': 'MoMoRef', + 'device': 'AssetDeviceRegistrationRef', 'direct_download': 'FirmwareDirectDownload', - 'distributable': 'MoMoRef', + 'distributable': 'FirmwareDistributableRef', 'network_share': 'FirmwareNetworkShare', - 'server': 'MoMoRef', - 'upgrade_status': 'MoMoRef', + 'server': 'ComputeRackUnitRef', + 'upgrade_status': 'FirmwareUpgradeStatusRef', 'upgrade_type': 'str' } @@ -153,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FirmwareUpgrade. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FirmwareUpgrade. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FirmwareUpgrade. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FirmwareUpgrade. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -336,7 +336,7 @@ def device(self): Gets the device of this FirmwareUpgrade. :return: The device of this FirmwareUpgrade. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._device @@ -346,7 +346,7 @@ def device(self, device): Sets the device of this FirmwareUpgrade. :param device: The device of this FirmwareUpgrade. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._device = device @@ -355,7 +355,7 @@ def device(self, device): def direct_download(self): """ Gets the direct_download of this FirmwareUpgrade. - Customer can upgrade the setup using the image directly from Cisco.com. + Direct download options in case the upgradeType is direct download based upgrade :return: The direct_download of this FirmwareUpgrade. :rtype: FirmwareDirectDownload @@ -366,7 +366,7 @@ def direct_download(self): def direct_download(self, direct_download): """ Sets the direct_download of this FirmwareUpgrade. - Customer can upgrade the setup using the image directly from Cisco.com. + Direct download options in case the upgradeType is direct download based upgrade :param direct_download: The direct_download of this FirmwareUpgrade. :type: FirmwareDirectDownload @@ -380,7 +380,7 @@ def distributable(self): Gets the distributable of this FirmwareUpgrade. :return: The distributable of this FirmwareUpgrade. - :rtype: MoMoRef + :rtype: FirmwareDistributableRef """ return self._distributable @@ -390,7 +390,7 @@ def distributable(self, distributable): Sets the distributable of this FirmwareUpgrade. :param distributable: The distributable of this FirmwareUpgrade. - :type: MoMoRef + :type: FirmwareDistributableRef """ self._distributable = distributable @@ -399,7 +399,7 @@ def distributable(self, distributable): def network_share(self): """ Gets the network_share of this FirmwareUpgrade. - Customer can upgrade the setup using the already downloaded image in customer's network. + Network share options in case of the upgradeType is network share based upgrade :return: The network_share of this FirmwareUpgrade. :rtype: FirmwareNetworkShare @@ -410,7 +410,7 @@ def network_share(self): def network_share(self, network_share): """ Sets the network_share of this FirmwareUpgrade. - Customer can upgrade the setup using the already downloaded image in customer's network. + Network share options in case of the upgradeType is network share based upgrade :param network_share: The network_share of this FirmwareUpgrade. :type: FirmwareNetworkShare @@ -424,7 +424,7 @@ def server(self): Gets the server of this FirmwareUpgrade. :return: The server of this FirmwareUpgrade. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._server @@ -434,7 +434,7 @@ def server(self, server): Sets the server of this FirmwareUpgrade. :param server: The server of this FirmwareUpgrade. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._server = server @@ -445,7 +445,7 @@ def upgrade_status(self): Gets the upgrade_status of this FirmwareUpgrade. :return: The upgrade_status of this FirmwareUpgrade. - :rtype: MoMoRef + :rtype: FirmwareUpgradeStatusRef """ return self._upgrade_status @@ -455,7 +455,7 @@ def upgrade_status(self, upgrade_status): Sets the upgrade_status of this FirmwareUpgrade. :param upgrade_status: The upgrade_status of this FirmwareUpgrade. - :type: MoMoRef + :type: FirmwareUpgradeStatusRef """ self._upgrade_status = upgrade_status @@ -464,7 +464,7 @@ def upgrade_status(self, upgrade_status): def upgrade_type(self): """ Gets the upgrade_type of this FirmwareUpgrade. - User can upgrade a server in two ways. Either can have the image locally in customer network itself and upgrade. Or can upgrade against the image directly from cisco.com. + Desired upgrade mode to choose either direct download based upgrade or network share upgrade :return: The upgrade_type of this FirmwareUpgrade. :rtype: str @@ -475,7 +475,7 @@ def upgrade_type(self): def upgrade_type(self, upgrade_type): """ Sets the upgrade_type of this FirmwareUpgrade. - User can upgrade a server in two ways. Either can have the image locally in customer network itself and upgrade. Or can upgrade against the image directly from cisco.com. + Desired upgrade mode to choose either direct download based upgrade or network share upgrade :param upgrade_type: The upgrade_type of this FirmwareUpgrade. :type: str diff --git a/intersight/models/firmware_upgrade_list.py b/intersight/models/firmware_upgrade_list.py index 4b048f95..1c9e533f 100644 --- a/intersight/models/firmware_upgrade_list.py +++ b/intersight/models/firmware_upgrade_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/firmware_upgrade_ref.py b/intersight/models/firmware_upgrade_ref.py new file mode 100644 index 00000000..9d4fe208 --- /dev/null +++ b/intersight/models/firmware_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareUpgradeRef. + + :return: The moid of this FirmwareUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareUpgradeRef. + + :param moid: The moid of this FirmwareUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareUpgradeRef. + + :return: The object_type of this FirmwareUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareUpgradeRef. + + :param object_type: The object_type of this FirmwareUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_upgrade_status.py b/intersight/models/firmware_upgrade_status.py index ee73e19b..4136210b 100644 --- a/intersight/models/firmware_upgrade_status.py +++ b/intersight/models/firmware_upgrade_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,24 @@ class FirmwareUpgradeStatus(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'download_error': 'str', 'download_percentage': 'int', 'download_stage': 'str', 'download_status': 'str', + 'ep_power_status': 'str', 'overall_error': 'str', 'overall_percentage': 'int', 'overallstatus': 'str', - 'upgrade': 'MoMoRef' + 'pending_type': 'str', + 'upgrade': 'FirmwareUpgradeRef' } attribute_map = { @@ -64,13 +66,15 @@ class FirmwareUpgradeStatus(object): 'download_percentage': 'DownloadPercentage', 'download_stage': 'DownloadStage', 'download_status': 'DownloadStatus', + 'ep_power_status': 'EpPowerStatus', 'overall_error': 'OverallError', 'overall_percentage': 'OverallPercentage', 'overallstatus': 'Overallstatus', + 'pending_type': 'PendingType', 'upgrade': 'Upgrade' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, download_error=None, download_percentage=None, download_stage=None, download_status=None, overall_error=None, overall_percentage=None, overallstatus=None, upgrade=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, download_error=None, download_percentage=None, download_stage=None, download_status=None, ep_power_status='none', overall_error=None, overall_percentage=None, overallstatus='none', pending_type='none', upgrade=None): """ FirmwareUpgradeStatus - a model defined in Swagger """ @@ -88,9 +92,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._download_percentage = None self._download_stage = None self._download_status = None + self._ep_power_status = None self._overall_error = None self._overall_percentage = None self._overallstatus = None + self._pending_type = None self._upgrade = None if account_moid is not None: @@ -119,12 +125,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.download_stage = download_stage if download_status is not None: self.download_status = download_status + if ep_power_status is not None: + self.ep_power_status = ep_power_status if overall_error is not None: self.overall_error = overall_error if overall_percentage is not None: self.overall_percentage = overall_percentage if overallstatus is not None: self.overallstatus = overallstatus + if pending_type is not None: + self.pending_type = pending_type if upgrade is not None: self.upgrade = upgrade @@ -158,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FirmwareUpgradeStatus. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FirmwareUpgradeStatus. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FirmwareUpgradeStatus. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FirmwareUpgradeStatus. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -339,7 +349,7 @@ def tags(self, tags): def download_error(self): """ Gets the download_error of this FirmwareUpgradeStatus. - Download error describes about the nature of the failure that helps in fixing it further + Provides the download failure message :return: The download_error of this FirmwareUpgradeStatus. :rtype: str @@ -350,7 +360,7 @@ def download_error(self): def download_error(self, download_error): """ Sets the download_error of this FirmwareUpgradeStatus. - Download error describes about the nature of the failure that helps in fixing it further + Provides the download failure message :param download_error: The download_error of this FirmwareUpgradeStatus. :type: str @@ -362,7 +372,7 @@ def download_error(self, download_error): def download_percentage(self): """ Gets the download_percentage of this FirmwareUpgradeStatus. - The percentage of image has been downloaded from cisco.com to BMC + Provides the image downloaded percentage from image source :return: The download_percentage of this FirmwareUpgradeStatus. :rtype: int @@ -373,7 +383,7 @@ def download_percentage(self): def download_percentage(self, download_percentage): """ Sets the download_percentage of this FirmwareUpgradeStatus. - The percentage of image has been downloaded from cisco.com to BMC + Provides the image downloaded percentage from image source :param download_percentage: The download_percentage of this FirmwareUpgradeStatus. :type: int @@ -385,7 +395,7 @@ def download_percentage(self, download_percentage): def download_stage(self): """ Gets the download_stage of this FirmwareUpgradeStatus. - A download can have various stages like BEGIN, DOWNLOADING, FLASHING, etc., + Provides the latest download phase like downloading, flashing, downloaded :return: The download_stage of this FirmwareUpgradeStatus. :rtype: str @@ -396,7 +406,7 @@ def download_stage(self): def download_stage(self, download_stage): """ Sets the download_stage of this FirmwareUpgradeStatus. - A download can have various stages like BEGIN, DOWNLOADING, FLASHING, etc., + Provides the latest download phase like downloading, flashing, downloaded :param download_stage: The download_stage of this FirmwareUpgradeStatus. :type: str @@ -408,7 +418,7 @@ def download_stage(self, download_stage): def download_status(self): """ Gets the download_status of this FirmwareUpgradeStatus. - The status of the download like COMPLETED, FAILED or ERRORED. + Provides the download status like downloading, downloaded or failed :return: The download_status of this FirmwareUpgradeStatus. :rtype: str @@ -419,7 +429,7 @@ def download_status(self): def download_status(self, download_status): """ Sets the download_status of this FirmwareUpgradeStatus. - The status of the download like COMPLETED, FAILED or ERRORED. + Provides the download status like downloading, downloaded or failed :param download_status: The download_status of this FirmwareUpgradeStatus. :type: str @@ -427,11 +437,40 @@ def download_status(self, download_status): self._download_status = download_status + @property + def ep_power_status(self): + """ + Gets the ep_power_status of this FirmwareUpgradeStatus. + Provides the server power status at the end of upgrade + + :return: The ep_power_status of this FirmwareUpgradeStatus. + :rtype: str + """ + return self._ep_power_status + + @ep_power_status.setter + def ep_power_status(self, ep_power_status): + """ + Sets the ep_power_status of this FirmwareUpgradeStatus. + Provides the server power status at the end of upgrade + + :param ep_power_status: The ep_power_status of this FirmwareUpgradeStatus. + :type: str + """ + allowed_values = ["none", "powered on", "powered off"] + if ep_power_status not in allowed_values: + raise ValueError( + "Invalid value for `ep_power_status` ({0}), must be one of {1}" + .format(ep_power_status, allowed_values) + ) + + self._ep_power_status = ep_power_status + @property def overall_error(self): """ Gets the overall_error of this FirmwareUpgradeStatus. - Upgrade failure messages holds not only the download error but also the workflow recommended fix. + Provides the failure message when download or upgrade fails :return: The overall_error of this FirmwareUpgradeStatus. :rtype: str @@ -442,7 +481,7 @@ def overall_error(self): def overall_error(self, overall_error): """ Sets the overall_error of this FirmwareUpgradeStatus. - Upgrade failure messages holds not only the download error but also the workflow recommended fix. + Provides the failure message when download or upgrade fails :param overall_error: The overall_error of this FirmwareUpgradeStatus. :type: str @@ -454,7 +493,7 @@ def overall_error(self, overall_error): def overall_percentage(self): """ Gets the overall_percentage of this FirmwareUpgradeStatus. - This gives the overall percentage of the upgrade that is passed + Provides the overall percentage of the upgrade inclusive of download :return: The overall_percentage of this FirmwareUpgradeStatus. :rtype: int @@ -465,7 +504,7 @@ def overall_percentage(self): def overall_percentage(self, overall_percentage): """ Sets the overall_percentage of this FirmwareUpgradeStatus. - This gives the overall percentage of the upgrade that is passed + Provides the overall percentage of the upgrade inclusive of download :param overall_percentage: The overall_percentage of this FirmwareUpgradeStatus. :type: int @@ -477,7 +516,7 @@ def overall_percentage(self, overall_percentage): def overallstatus(self): """ Gets the overallstatus of this FirmwareUpgradeStatus. - An upgrade workflow typically will pass through the stages like download of image, flashing, updating, activating and reboot. This actually will hold the last value of stages + Provides the overall status, e.g., downloading, upgrading, successful, failure and pending-for-reboot :return: The overallstatus of this FirmwareUpgradeStatus. :rtype: str @@ -488,21 +527,56 @@ def overallstatus(self): def overallstatus(self, overallstatus): """ Sets the overallstatus of this FirmwareUpgradeStatus. - An upgrade workflow typically will pass through the stages like download of image, flashing, updating, activating and reboot. This actually will hold the last value of stages + Provides the overall status, e.g., downloading, upgrading, successful, failure and pending-for-reboot :param overallstatus: The overallstatus of this FirmwareUpgradeStatus. :type: str """ + allowed_values = ["none", "started", "download initiating", "download initiated", "downloading", "downloaded", "upgrade initiating", "upgrade initiated", "upgrading", "upgraded", "success", "failed", "pending"] + if overallstatus not in allowed_values: + raise ValueError( + "Invalid value for `overallstatus` ({0}), must be one of {1}" + .format(overallstatus, allowed_values) + ) self._overallstatus = overallstatus + @property + def pending_type(self): + """ + Gets the pending_type of this FirmwareUpgradeStatus. + Provides the current pending upgrade status for the on-next boot based upgrades + + :return: The pending_type of this FirmwareUpgradeStatus. + :rtype: str + """ + return self._pending_type + + @pending_type.setter + def pending_type(self, pending_type): + """ + Sets the pending_type of this FirmwareUpgradeStatus. + Provides the current pending upgrade status for the on-next boot based upgrades + + :param pending_type: The pending_type of this FirmwareUpgradeStatus. + :type: str + """ + allowed_values = ["none", "pending for next reboot"] + if pending_type not in allowed_values: + raise ValueError( + "Invalid value for `pending_type` ({0}), must be one of {1}" + .format(pending_type, allowed_values) + ) + + self._pending_type = pending_type + @property def upgrade(self): """ Gets the upgrade of this FirmwareUpgradeStatus. :return: The upgrade of this FirmwareUpgradeStatus. - :rtype: MoMoRef + :rtype: FirmwareUpgradeRef """ return self._upgrade @@ -512,7 +586,7 @@ def upgrade(self, upgrade): Sets the upgrade of this FirmwareUpgradeStatus. :param upgrade: The upgrade of this FirmwareUpgradeStatus. - :type: MoMoRef + :type: FirmwareUpgradeRef """ self._upgrade = upgrade diff --git a/intersight/models/firmware_upgrade_status_list.py b/intersight/models/firmware_upgrade_status_list.py index cd83e5b8..d1d07c53 100644 --- a/intersight/models/firmware_upgrade_status_list.py +++ b/intersight/models/firmware_upgrade_status_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/firmware_upgrade_status_ref.py b/intersight/models/firmware_upgrade_status_ref.py new file mode 100644 index 00000000..83f0da5f --- /dev/null +++ b/intersight/models/firmware_upgrade_status_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareUpgradeStatusRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareUpgradeStatusRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareUpgradeStatusRef. + + :return: The moid of this FirmwareUpgradeStatusRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareUpgradeStatusRef. + + :param moid: The moid of this FirmwareUpgradeStatusRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareUpgradeStatusRef. + + :return: The object_type of this FirmwareUpgradeStatusRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareUpgradeStatusRef. + + :param object_type: The object_type of this FirmwareUpgradeStatusRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareUpgradeStatusRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_cancel_pending_firmware_upgrade_ref.py b/intersight/models/firmwareimc_cancel_pending_firmware_upgrade_ref.py new file mode 100644 index 00000000..15327fd6 --- /dev/null +++ b/intersight/models/firmwareimc_cancel_pending_firmware_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcCancelPendingFirmwareUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcCancelPendingFirmwareUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcCancelPendingFirmwareUpgradeRef. + + :return: The moid of this FirmwareimcCancelPendingFirmwareUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcCancelPendingFirmwareUpgradeRef. + + :param moid: The moid of this FirmwareimcCancelPendingFirmwareUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcCancelPendingFirmwareUpgradeRef. + + :return: The object_type of this FirmwareimcCancelPendingFirmwareUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcCancelPendingFirmwareUpgradeRef. + + :param object_type: The object_type of this FirmwareimcCancelPendingFirmwareUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcCancelPendingFirmwareUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_check_for_existing_upgrade_ref.py b/intersight/models/firmwareimc_check_for_existing_upgrade_ref.py new file mode 100644 index 00000000..7c783003 --- /dev/null +++ b/intersight/models/firmwareimc_check_for_existing_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcCheckForExistingUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcCheckForExistingUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcCheckForExistingUpgradeRef. + + :return: The moid of this FirmwareimcCheckForExistingUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcCheckForExistingUpgradeRef. + + :param moid: The moid of this FirmwareimcCheckForExistingUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcCheckForExistingUpgradeRef. + + :return: The object_type of this FirmwareimcCheckForExistingUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcCheckForExistingUpgradeRef. + + :param object_type: The object_type of this FirmwareimcCheckForExistingUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcCheckForExistingUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_firmware_upgrade_result_handler_ref.py b/intersight/models/firmwareimc_firmware_upgrade_result_handler_ref.py new file mode 100644 index 00000000..dac281cc --- /dev/null +++ b/intersight/models/firmwareimc_firmware_upgrade_result_handler_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcFirmwareUpgradeResultHandlerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcFirmwareUpgradeResultHandlerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcFirmwareUpgradeResultHandlerRef. + + :return: The moid of this FirmwareimcFirmwareUpgradeResultHandlerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcFirmwareUpgradeResultHandlerRef. + + :param moid: The moid of this FirmwareimcFirmwareUpgradeResultHandlerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcFirmwareUpgradeResultHandlerRef. + + :return: The object_type of this FirmwareimcFirmwareUpgradeResultHandlerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcFirmwareUpgradeResultHandlerRef. + + :param object_type: The object_type of this FirmwareimcFirmwareUpgradeResultHandlerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcFirmwareUpgradeResultHandlerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_huu_firmware_upgrade_ref.py b/intersight/models/firmwareimc_huu_firmware_upgrade_ref.py new file mode 100644 index 00000000..0b2896aa --- /dev/null +++ b/intersight/models/firmwareimc_huu_firmware_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcHuuFirmwareUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcHuuFirmwareUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcHuuFirmwareUpgradeRef. + + :return: The moid of this FirmwareimcHuuFirmwareUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcHuuFirmwareUpgradeRef. + + :param moid: The moid of this FirmwareimcHuuFirmwareUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcHuuFirmwareUpgradeRef. + + :return: The object_type of this FirmwareimcHuuFirmwareUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcHuuFirmwareUpgradeRef. + + :param object_type: The object_type of this FirmwareimcHuuFirmwareUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcHuuFirmwareUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_initiate_download_ref.py b/intersight/models/firmwareimc_initiate_download_ref.py new file mode 100644 index 00000000..2a7437dc --- /dev/null +++ b/intersight/models/firmwareimc_initiate_download_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcInitiateDownloadRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcInitiateDownloadRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcInitiateDownloadRef. + + :return: The moid of this FirmwareimcInitiateDownloadRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcInitiateDownloadRef. + + :param moid: The moid of this FirmwareimcInitiateDownloadRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcInitiateDownloadRef. + + :return: The object_type of this FirmwareimcInitiateDownloadRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcInitiateDownloadRef. + + :param object_type: The object_type of this FirmwareimcInitiateDownloadRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcInitiateDownloadRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_wait_for_download_ref.py b/intersight/models/firmwareimc_wait_for_download_ref.py new file mode 100644 index 00000000..8f9cf7d7 --- /dev/null +++ b/intersight/models/firmwareimc_wait_for_download_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcWaitForDownloadRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcWaitForDownloadRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcWaitForDownloadRef. + + :return: The moid of this FirmwareimcWaitForDownloadRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcWaitForDownloadRef. + + :param moid: The moid of this FirmwareimcWaitForDownloadRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcWaitForDownloadRef. + + :return: The object_type of this FirmwareimcWaitForDownloadRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcWaitForDownloadRef. + + :param object_type: The object_type of this FirmwareimcWaitForDownloadRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcWaitForDownloadRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_wait_for_firmware_upgrade_ref.py b/intersight/models/firmwareimc_wait_for_firmware_upgrade_ref.py new file mode 100644 index 00000000..7aa29e21 --- /dev/null +++ b/intersight/models/firmwareimc_wait_for_firmware_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcWaitForFirmwareUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcWaitForFirmwareUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcWaitForFirmwareUpgradeRef. + + :return: The moid of this FirmwareimcWaitForFirmwareUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcWaitForFirmwareUpgradeRef. + + :param moid: The moid of this FirmwareimcWaitForFirmwareUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcWaitForFirmwareUpgradeRef. + + :return: The object_type of this FirmwareimcWaitForFirmwareUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcWaitForFirmwareUpgradeRef. + + :param object_type: The object_type of this FirmwareimcWaitForFirmwareUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcWaitForFirmwareUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/graphics_card.py b/intersight/models/graphics_card.py index c31195e3..04164d9e 100644 --- a/intersight/models/graphics_card.py +++ b/intersight/models/graphics_card.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class GraphicsCard(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -48,17 +48,17 @@ class GraphicsCard(object): 'serial': 'str', 'vendor': 'str', 'card_id': 'int', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'device_id': 'int', 'expander_slot': 'str', 'firmware_version': 'str', - 'graphics_controllers': 'list[MoMoRef]', + 'graphics_controllers': 'list[GraphicsControllerRef]', 'mode': 'str', 'oper_state': 'str', 'pci_addr': 'str', 'pci_addr_list': 'str', 'pci_slot': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -213,7 +213,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this GraphicsCard. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -224,7 +224,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this GraphicsCard. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -351,7 +351,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this GraphicsCard. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -362,7 +362,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this GraphicsCard. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -564,7 +564,7 @@ def compute_board(self): Gets the compute_board of this GraphicsCard. :return: The compute_board of this GraphicsCard. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -574,7 +574,7 @@ def compute_board(self, compute_board): Sets the compute_board of this GraphicsCard. :param compute_board: The compute_board of this GraphicsCard. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -648,7 +648,7 @@ def graphics_controllers(self): Gets the graphics_controllers of this GraphicsCard. :return: The graphics_controllers of this GraphicsCard. - :rtype: list[MoMoRef] + :rtype: list[GraphicsControllerRef] """ return self._graphics_controllers @@ -658,7 +658,7 @@ def graphics_controllers(self, graphics_controllers): Sets the graphics_controllers of this GraphicsCard. :param graphics_controllers: The graphics_controllers of this GraphicsCard. - :type: list[MoMoRef] + :type: list[GraphicsControllerRef] """ self._graphics_controllers = graphics_controllers @@ -774,7 +774,7 @@ def registered_device(self): Gets the registered_device of this GraphicsCard. :return: The registered_device of this GraphicsCard. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -784,7 +784,7 @@ def registered_device(self, registered_device): Sets the registered_device of this GraphicsCard. :param registered_device: The registered_device of this GraphicsCard. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/graphics_card_list.py b/intersight/models/graphics_card_list.py index f6cb2922..cc7be9c7 100644 --- a/intersight/models/graphics_card_list.py +++ b/intersight/models/graphics_card_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/graphics_card_ref.py b/intersight/models/graphics_card_ref.py new file mode 100644 index 00000000..455bda52 --- /dev/null +++ b/intersight/models/graphics_card_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class GraphicsCardRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + GraphicsCardRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this GraphicsCardRef. + + :return: The moid of this GraphicsCardRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this GraphicsCardRef. + + :param moid: The moid of this GraphicsCardRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this GraphicsCardRef. + + :return: The object_type of this GraphicsCardRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this GraphicsCardRef. + + :param object_type: The object_type of this GraphicsCardRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, GraphicsCardRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/graphics_controller.py b/intersight/models/graphics_controller.py index 5fa89371..4e597a19 100644 --- a/intersight/models/graphics_controller.py +++ b/intersight/models/graphics_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class GraphicsController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -48,10 +48,10 @@ class GraphicsController(object): 'serial': 'str', 'vendor': 'str', 'controller_id': 'int', - 'graphics_card': 'MoMoRef', + 'graphics_card': 'GraphicsCardRef', 'pci_addr': 'str', 'pci_slot': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -178,7 +178,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this GraphicsController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +189,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this GraphicsController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +316,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this GraphicsController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +327,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this GraphicsController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -529,7 +529,7 @@ def graphics_card(self): Gets the graphics_card of this GraphicsController. :return: The graphics_card of this GraphicsController. - :rtype: MoMoRef + :rtype: GraphicsCardRef """ return self._graphics_card @@ -539,7 +539,7 @@ def graphics_card(self, graphics_card): Sets the graphics_card of this GraphicsController. :param graphics_card: The graphics_card of this GraphicsController. - :type: MoMoRef + :type: GraphicsCardRef """ self._graphics_card = graphics_card @@ -592,7 +592,7 @@ def registered_device(self): Gets the registered_device of this GraphicsController. :return: The registered_device of this GraphicsController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -602,7 +602,7 @@ def registered_device(self, registered_device): Sets the registered_device of this GraphicsController. :param registered_device: The registered_device of this GraphicsController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/graphics_controller_list.py b/intersight/models/graphics_controller_list.py index 07ad6380..9c39ddf7 100644 --- a/intersight/models/graphics_controller_list.py +++ b/intersight/models/graphics_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/graphics_controller_ref.py b/intersight/models/graphics_controller_ref.py new file mode 100644 index 00000000..17e936d4 --- /dev/null +++ b/intersight/models/graphics_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class GraphicsControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + GraphicsControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this GraphicsControllerRef. + + :return: The moid of this GraphicsControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this GraphicsControllerRef. + + :param moid: The moid of this GraphicsControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this GraphicsControllerRef. + + :return: The object_type of this GraphicsControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this GraphicsControllerRef. + + :param object_type: The object_type of this GraphicsControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, GraphicsControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_active_collection_node_ref.py b/intersight/models/hcl_active_collection_node_ref.py new file mode 100644 index 00000000..4824a789 --- /dev/null +++ b/intersight/models/hcl_active_collection_node_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclActiveCollectionNodeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclActiveCollectionNodeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclActiveCollectionNodeRef. + + :return: The moid of this HclActiveCollectionNodeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclActiveCollectionNodeRef. + + :param moid: The moid of this HclActiveCollectionNodeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclActiveCollectionNodeRef. + + :return: The object_type of this HclActiveCollectionNodeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclActiveCollectionNodeRef. + + :param object_type: The object_type of this HclActiveCollectionNodeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclActiveCollectionNodeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_compatibility_info.py b/intersight/models/hcl_compatibility_info.py index a86873e4..a6dc6235 100644 --- a/intersight/models/hcl_compatibility_info.py +++ b/intersight/models/hcl_compatibility_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class HclCompatibilityInfo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'adapter_bios': 'str', 'driver_protocol': 'str', 'driver_vendor': 'str', 'driver_version': 'str', 'firmware': 'str', - 'notes': 'list[MoMoRef]', + 'notes': 'list[HclNoteRef]', 'os_vendor': 'str', 'os_version': 'str', 'processor_name': 'str', @@ -193,7 +193,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HclCompatibilityInfo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +204,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HclCompatibilityInfo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +331,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HclCompatibilityInfo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +342,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HclCompatibilityInfo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -490,7 +490,7 @@ def notes(self): a relation to the notes collection :return: The notes of this HclCompatibilityInfo. - :rtype: list[MoMoRef] + :rtype: list[HclNoteRef] """ return self._notes @@ -501,7 +501,7 @@ def notes(self, notes): a relation to the notes collection :param notes: The notes of this HclCompatibilityInfo. - :type: list[MoMoRef] + :type: list[HclNoteRef] """ self._notes = notes diff --git a/intersight/models/hcl_compatibility_info_list.py b/intersight/models/hcl_compatibility_info_list.py index 9d7b1028..43cfec1b 100644 --- a/intersight/models/hcl_compatibility_info_list.py +++ b/intersight/models/hcl_compatibility_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hcl_compatibility_info_ref.py b/intersight/models/hcl_compatibility_info_ref.py new file mode 100644 index 00000000..4f8f3b13 --- /dev/null +++ b/intersight/models/hcl_compatibility_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclCompatibilityInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclCompatibilityInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclCompatibilityInfoRef. + + :return: The moid of this HclCompatibilityInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclCompatibilityInfoRef. + + :param moid: The moid of this HclCompatibilityInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclCompatibilityInfoRef. + + :return: The object_type of this HclCompatibilityInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclCompatibilityInfoRef. + + :param object_type: The object_type of this HclCompatibilityInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclCompatibilityInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_data_import_log.py b/intersight/models/hcl_data_import_log.py index fa77a59c..286edc63 100644 --- a/intersight/models/hcl_data_import_log.py +++ b/intersight/models/hcl_data_import_log.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class HclDataImportLog(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'catalog_name': 'str', 'catalog_updated_date': 'str', @@ -158,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HclDataImportLog. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HclDataImportLog. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HclDataImportLog. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HclDataImportLog. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/hcl_data_import_log_list.py b/intersight/models/hcl_data_import_log_list.py index 09b87751..8ab0d9e6 100644 --- a/intersight/models/hcl_data_import_log_list.py +++ b/intersight/models/hcl_data_import_log_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hcl_data_import_log_ref.py b/intersight/models/hcl_data_import_log_ref.py new file mode 100644 index 00000000..078061b4 --- /dev/null +++ b/intersight/models/hcl_data_import_log_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclDataImportLogRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclDataImportLogRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclDataImportLogRef. + + :return: The moid of this HclDataImportLogRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclDataImportLogRef. + + :param moid: The moid of this HclDataImportLogRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclDataImportLogRef. + + :return: The object_type of this HclDataImportLogRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclDataImportLogRef. + + :param object_type: The object_type of this HclDataImportLogRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclDataImportLogRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_firmware.py b/intersight/models/hcl_firmware.py index 1bb18d49..0e37b48b 100644 --- a/intersight/models/hcl_firmware.py +++ b/intersight/models/hcl_firmware.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hcl_firmware_ref.py b/intersight/models/hcl_firmware_ref.py new file mode 100644 index 00000000..33c773a7 --- /dev/null +++ b/intersight/models/hcl_firmware_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclFirmwareRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclFirmwareRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclFirmwareRef. + + :return: The moid of this HclFirmwareRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclFirmwareRef. + + :param moid: The moid of this HclFirmwareRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclFirmwareRef. + + :return: The object_type of this HclFirmwareRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclFirmwareRef. + + :param object_type: The object_type of this HclFirmwareRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclFirmwareRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_hardware_compatibility_profile_ref.py b/intersight/models/hcl_hardware_compatibility_profile_ref.py new file mode 100644 index 00000000..850aa54e --- /dev/null +++ b/intersight/models/hcl_hardware_compatibility_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclHardwareCompatibilityProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclHardwareCompatibilityProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclHardwareCompatibilityProfileRef. + + :return: The moid of this HclHardwareCompatibilityProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclHardwareCompatibilityProfileRef. + + :param moid: The moid of this HclHardwareCompatibilityProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclHardwareCompatibilityProfileRef. + + :return: The object_type of this HclHardwareCompatibilityProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclHardwareCompatibilityProfileRef. + + :param object_type: The object_type of this HclHardwareCompatibilityProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclHardwareCompatibilityProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_note.py b/intersight/models/hcl_note.py index 6918c4ff..8184f9a3 100644 --- a/intersight/models/hcl_note.py +++ b/intersight/models/hcl_note.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class HclNote(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'note': 'str' } @@ -123,7 +123,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HclNote. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -134,7 +134,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HclNote. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -261,7 +261,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HclNote. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -272,7 +272,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HclNote. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/hcl_note_list.py b/intersight/models/hcl_note_list.py index 45fe5e6e..9198536b 100644 --- a/intersight/models/hcl_note_list.py +++ b/intersight/models/hcl_note_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hcl_note_ref.py b/intersight/models/hcl_note_ref.py new file mode 100644 index 00000000..720cdf5f --- /dev/null +++ b/intersight/models/hcl_note_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclNoteRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclNoteRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclNoteRef. + + :return: The moid of this HclNoteRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclNoteRef. + + :param moid: The moid of this HclNoteRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclNoteRef. + + :return: The object_type of this HclNoteRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclNoteRef. + + :param object_type: The object_type of this HclNoteRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclNoteRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_product.py b/intersight/models/hcl_product.py index 8bab9bcf..f1f25983 100644 --- a/intersight/models/hcl_product.py +++ b/intersight/models/hcl_product.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hcl_product_ref.py b/intersight/models/hcl_product_ref.py new file mode 100644 index 00000000..bb7a6cc2 --- /dev/null +++ b/intersight/models/hcl_product_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclProductRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclProductRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclProductRef. + + :return: The moid of this HclProductRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclProductRef. + + :param moid: The moid of this HclProductRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclProductRef. + + :return: The object_type of this HclProductRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclProductRef. + + :param object_type: The object_type of this HclProductRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclProductRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_service_status_ref.py b/intersight/models/hcl_service_status_ref.py new file mode 100644 index 00000000..a4a31e17 --- /dev/null +++ b/intersight/models/hcl_service_status_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclServiceStatusRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclServiceStatusRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclServiceStatusRef. + + :return: The moid of this HclServiceStatusRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclServiceStatusRef. + + :param moid: The moid of this HclServiceStatusRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclServiceStatusRef. + + :return: The object_type of this HclServiceStatusRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclServiceStatusRef. + + :param object_type: The object_type of this HclServiceStatusRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclServiceStatusRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hxdpconnector_hx_inventory_msg_ref.py b/intersight/models/hxdpconnector_hx_inventory_msg_ref.py new file mode 100644 index 00000000..f506d8a2 --- /dev/null +++ b/intersight/models/hxdpconnector_hx_inventory_msg_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HxdpconnectorHxInventoryMsgRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HxdpconnectorHxInventoryMsgRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HxdpconnectorHxInventoryMsgRef. + + :return: The moid of this HxdpconnectorHxInventoryMsgRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HxdpconnectorHxInventoryMsgRef. + + :param moid: The moid of this HxdpconnectorHxInventoryMsgRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HxdpconnectorHxInventoryMsgRef. + + :return: The object_type of this HxdpconnectorHxInventoryMsgRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HxdpconnectorHxInventoryMsgRef. + + :param object_type: The object_type of this HxdpconnectorHxInventoryMsgRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HxdpconnectorHxInventoryMsgRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_alarm.py b/intersight/models/hyperflex_alarm.py index 4bb3da7e..1c0def07 100644 --- a/intersight/models/hyperflex_alarm.py +++ b/intersight/models/hyperflex_alarm.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,16 @@ class HyperflexAlarm(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'acknowledged': 'bool', - 'cluster': 'MoMoRef', + 'cluster': 'HyperflexClusterRef', 'description': 'str', 'entity': 'HyperflexManagedObjectReference', 'entity_name': 'str', @@ -163,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexAlarm. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexAlarm. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexAlarm. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexAlarm. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -367,7 +367,7 @@ def cluster(self): Gets the cluster of this HyperflexAlarm. :return: The cluster of this HyperflexAlarm. - :rtype: MoMoRef + :rtype: HyperflexClusterRef """ return self._cluster @@ -377,7 +377,7 @@ def cluster(self, cluster): Sets the cluster of this HyperflexAlarm. :param cluster: The cluster of this HyperflexAlarm. - :type: MoMoRef + :type: HyperflexClusterRef """ self._cluster = cluster diff --git a/intersight/models/hyperflex_alarm_list.py b/intersight/models/hyperflex_alarm_list.py index 3a97a74a..a78d0b14 100644 --- a/intersight/models/hyperflex_alarm_list.py +++ b/intersight/models/hyperflex_alarm_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_alarm_ref.py b/intersight/models/hyperflex_alarm_ref.py new file mode 100644 index 00000000..a3df5640 --- /dev/null +++ b/intersight/models/hyperflex_alarm_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexAlarmRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexAlarmRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexAlarmRef. + + :return: The moid of this HyperflexAlarmRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexAlarmRef. + + :param moid: The moid of this HyperflexAlarmRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexAlarmRef. + + :return: The object_type of this HyperflexAlarmRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexAlarmRef. + + :param object_type: The object_type of this HyperflexAlarmRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexAlarmRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_auto_support_policy.py b/intersight/models/hyperflex_auto_support_policy.py index e5d5837b..ee21ad18 100644 --- a/intersight/models/hyperflex_auto_support_policy.py +++ b/intersight/models/hyperflex_auto_support_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,19 @@ class HyperflexAutoSupportPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', 'admin_state': 'bool', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', + 'organization': 'IamAccountRef', 'service_ticket_receipient': 'str' } @@ -60,13 +60,13 @@ class HyperflexAutoSupportPolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'admin_state': 'AdminState', 'cluster_profiles': 'ClusterProfiles', + 'organization': 'Organization', 'service_ticket_receipient': 'ServiceTicketReceipient' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, admin_state=None, cluster_profiles=None, service_ticket_receipient=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, admin_state=None, cluster_profiles=None, organization=None, service_ticket_receipient=None): """ HyperflexAutoSupportPolicy - a model defined in Swagger """ @@ -82,9 +82,9 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._account = None self._admin_state = None self._cluster_profiles = None + self._organization = None self._service_ticket_receipient = None if account_moid is not None: @@ -109,12 +109,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if admin_state is not None: self.admin_state = admin_state if cluster_profiles is not None: self.cluster_profiles = cluster_profiles + if organization is not None: + self.organization = organization if service_ticket_receipient is not None: self.service_ticket_receipient = service_ticket_receipient @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexAutoSupportPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexAutoSupportPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexAutoSupportPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexAutoSupportPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -371,32 +371,11 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexAutoSupportPolicy. - - :return: The account of this HyperflexAutoSupportPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexAutoSupportPolicy. - - :param account: The account of this HyperflexAutoSupportPolicy. - :type: MoMoRef - """ - - self._account = account - @property def admin_state(self): """ Gets the admin_state of this HyperflexAutoSupportPolicy. - Flag to determine whether Auto Support is enabled or disabled + Enable or disable Auto Support :return: The admin_state of this HyperflexAutoSupportPolicy. :rtype: bool @@ -407,7 +386,7 @@ def admin_state(self): def admin_state(self, admin_state): """ Sets the admin_state of this HyperflexAutoSupportPolicy. - Flag to determine whether Auto Support is enabled or disabled + Enable or disable Auto Support :param admin_state: The admin_state of this HyperflexAutoSupportPolicy. :type: bool @@ -419,9 +398,10 @@ def admin_state(self, admin_state): def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexAutoSupportPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexAutoSupportPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -429,18 +409,42 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexAutoSupportPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexAutoSupportPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles + @property + def organization(self): + """ + Gets the organization of this HyperflexAutoSupportPolicy. + Organization + + :return: The organization of this HyperflexAutoSupportPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexAutoSupportPolicy. + Organization + + :param organization: The organization of this HyperflexAutoSupportPolicy. + :type: IamAccountRef + """ + + self._organization = organization + @property def service_ticket_receipient(self): """ Gets the service_ticket_receipient of this HyperflexAutoSupportPolicy. - Designated E-mail Address or E-mail alias to which notifications are sent from HX Data Platform + Email address recipient for support tickets :return: The service_ticket_receipient of this HyperflexAutoSupportPolicy. :rtype: str @@ -451,7 +455,7 @@ def service_ticket_receipient(self): def service_ticket_receipient(self, service_ticket_receipient): """ Sets the service_ticket_receipient of this HyperflexAutoSupportPolicy. - Designated E-mail Address or E-mail alias to which notifications are sent from HX Data Platform + Email address recipient for support tickets :param service_ticket_receipient: The service_ticket_receipient of this HyperflexAutoSupportPolicy. :type: str diff --git a/intersight/models/hyperflex_auto_support_policy_list.py b/intersight/models/hyperflex_auto_support_policy_list.py index 31b8029e..98a04060 100644 --- a/intersight/models/hyperflex_auto_support_policy_list.py +++ b/intersight/models/hyperflex_auto_support_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_auto_support_policy_ref.py b/intersight/models/hyperflex_auto_support_policy_ref.py new file mode 100644 index 00000000..e91d2717 --- /dev/null +++ b/intersight/models/hyperflex_auto_support_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexAutoSupportPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexAutoSupportPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexAutoSupportPolicyRef. + + :return: The moid of this HyperflexAutoSupportPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexAutoSupportPolicyRef. + + :param moid: The moid of this HyperflexAutoSupportPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexAutoSupportPolicyRef. + + :return: The object_type of this HyperflexAutoSupportPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexAutoSupportPolicyRef. + + :param object_type: The object_type of this HyperflexAutoSupportPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexAutoSupportPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_cluster.py b/intersight/models/hyperflex_cluster.py index 03fb701d..d91a6ba5 100644 --- a/intersight/models/hyperflex_cluster.py +++ b/intersight/models/hyperflex_cluster.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class HyperflexCluster(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'alarm': 'list[MoMoRef]', + 'alarm': 'list[HyperflexAlarmRef]', 'cluster_name': 'str', 'cluster_type': 'int', 'cluster_uuid': 'str', @@ -50,7 +50,7 @@ class HyperflexCluster(object): 'flt_aggr': 'int', 'hx_version': 'str', 'hypervisor_version': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'summary': 'HyperflexSummary', 'vm_count': 'int' } @@ -183,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexCluster. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexCluster. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexCluster. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexCluster. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -366,7 +366,7 @@ def alarm(self): Gets the alarm of this HyperflexCluster. :return: The alarm of this HyperflexCluster. - :rtype: list[MoMoRef] + :rtype: list[HyperflexAlarmRef] """ return self._alarm @@ -376,7 +376,7 @@ def alarm(self, alarm): Sets the alarm of this HyperflexCluster. :param alarm: The alarm of this HyperflexCluster. - :type: list[MoMoRef] + :type: list[HyperflexAlarmRef] """ self._alarm = alarm @@ -576,7 +576,7 @@ def registered_device(self): Gets the registered_device of this HyperflexCluster. :return: The registered_device of this HyperflexCluster. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -586,7 +586,7 @@ def registered_device(self, registered_device): Sets the registered_device of this HyperflexCluster. :param registered_device: The registered_device of this HyperflexCluster. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/hyperflex_cluster_list.py b/intersight/models/hyperflex_cluster_list.py index 70294b3f..e11a4d56 100644 --- a/intersight/models/hyperflex_cluster_list.py +++ b/intersight/models/hyperflex_cluster_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_cluster_network_policy.py b/intersight/models/hyperflex_cluster_network_policy.py index 3a1e90d6..c61d2962 100644 --- a/intersight/models/hyperflex_cluster_network_policy.py +++ b/intersight/models/hyperflex_cluster_network_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class HyperflexClusterNetworkPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'jumbo_frame': 'bool', 'mgmt_vlan': 'HyperflexNamedVlan', + 'organization': 'IamAccountRef', 'vm_migration_vlan': 'HyperflexNamedVlan', 'vm_network_vlans': 'list[HyperflexNamedVlan]' } @@ -62,15 +62,15 @@ class HyperflexClusterNetworkPolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'jumbo_frame': 'JumboFrame', 'mgmt_vlan': 'MgmtVlan', + 'organization': 'Organization', 'vm_migration_vlan': 'VmMigrationVlan', 'vm_network_vlans': 'VmNetworkVlans' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, jumbo_frame=None, mgmt_vlan=None, vm_migration_vlan=None, vm_network_vlans=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, cluster_profiles=None, jumbo_frame=None, mgmt_vlan=None, organization=None, vm_migration_vlan=None, vm_network_vlans=None): """ HyperflexClusterNetworkPolicy - a model defined in Swagger """ @@ -86,10 +86,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._jumbo_frame = None self._mgmt_vlan = None + self._organization = None self._vm_migration_vlan = None self._vm_network_vlans = None @@ -115,14 +115,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if jumbo_frame is not None: self.jumbo_frame = jumbo_frame if mgmt_vlan is not None: self.mgmt_vlan = mgmt_vlan + if organization is not None: + self.organization = organization if vm_migration_vlan is not None: self.vm_migration_vlan = vm_migration_vlan if vm_network_vlans is not None: @@ -158,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexClusterNetworkPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexClusterNetworkPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexClusterNetworkPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexClusterNetworkPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -381,34 +381,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexClusterNetworkPolicy. - - :return: The account of this HyperflexClusterNetworkPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexClusterNetworkPolicy. - - :param account: The account of this HyperflexClusterNetworkPolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexClusterNetworkPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexClusterNetworkPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -416,9 +396,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexClusterNetworkPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexClusterNetworkPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -427,7 +408,7 @@ def cluster_profiles(self, cluster_profiles): def jumbo_frame(self): """ Gets the jumbo_frame of this HyperflexClusterNetworkPolicy. - Flag to indicate whether Jumbo Frames are enabled or disabled + Enable or disable Jumbo frames :return: The jumbo_frame of this HyperflexClusterNetworkPolicy. :rtype: bool @@ -438,7 +419,7 @@ def jumbo_frame(self): def jumbo_frame(self, jumbo_frame): """ Sets the jumbo_frame of this HyperflexClusterNetworkPolicy. - Flag to indicate whether Jumbo Frames are enabled or disabled + Enable or disable Jumbo frames :param jumbo_frame: The jumbo_frame of this HyperflexClusterNetworkPolicy. :type: bool @@ -450,7 +431,7 @@ def jumbo_frame(self, jumbo_frame): def mgmt_vlan(self): """ Gets the mgmt_vlan of this HyperflexClusterNetworkPolicy. - Represents the VLAN for Management traffic + Management VLAN :return: The mgmt_vlan of this HyperflexClusterNetworkPolicy. :rtype: HyperflexNamedVlan @@ -461,7 +442,7 @@ def mgmt_vlan(self): def mgmt_vlan(self, mgmt_vlan): """ Sets the mgmt_vlan of this HyperflexClusterNetworkPolicy. - Represents the VLAN for Management traffic + Management VLAN :param mgmt_vlan: The mgmt_vlan of this HyperflexClusterNetworkPolicy. :type: HyperflexNamedVlan @@ -469,11 +450,34 @@ def mgmt_vlan(self, mgmt_vlan): self._mgmt_vlan = mgmt_vlan + @property + def organization(self): + """ + Gets the organization of this HyperflexClusterNetworkPolicy. + Organization + + :return: The organization of this HyperflexClusterNetworkPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexClusterNetworkPolicy. + Organization + + :param organization: The organization of this HyperflexClusterNetworkPolicy. + :type: IamAccountRef + """ + + self._organization = organization + @property def vm_migration_vlan(self): """ Gets the vm_migration_vlan of this HyperflexClusterNetworkPolicy. - Represents the VLAN for VM migration traffic + VM migration VLAN :return: The vm_migration_vlan of this HyperflexClusterNetworkPolicy. :rtype: HyperflexNamedVlan @@ -484,7 +488,7 @@ def vm_migration_vlan(self): def vm_migration_vlan(self, vm_migration_vlan): """ Sets the vm_migration_vlan of this HyperflexClusterNetworkPolicy. - Represents the VLAN for VM migration traffic + VM migration VLAN :param vm_migration_vlan: The vm_migration_vlan of this HyperflexClusterNetworkPolicy. :type: HyperflexNamedVlan @@ -496,7 +500,7 @@ def vm_migration_vlan(self, vm_migration_vlan): def vm_network_vlans(self): """ Gets the vm_network_vlans of this HyperflexClusterNetworkPolicy. - List of VLANs for VM traffic + VM traffic VLANs :return: The vm_network_vlans of this HyperflexClusterNetworkPolicy. :rtype: list[HyperflexNamedVlan] @@ -507,7 +511,7 @@ def vm_network_vlans(self): def vm_network_vlans(self, vm_network_vlans): """ Sets the vm_network_vlans of this HyperflexClusterNetworkPolicy. - List of VLANs for VM traffic + VM traffic VLANs :param vm_network_vlans: The vm_network_vlans of this HyperflexClusterNetworkPolicy. :type: list[HyperflexNamedVlan] diff --git a/intersight/models/hyperflex_cluster_network_policy_list.py b/intersight/models/hyperflex_cluster_network_policy_list.py index 9030541b..24ebdc4c 100644 --- a/intersight/models/hyperflex_cluster_network_policy_list.py +++ b/intersight/models/hyperflex_cluster_network_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_cluster_network_policy_ref.py b/intersight/models/hyperflex_cluster_network_policy_ref.py new file mode 100644 index 00000000..d758c35d --- /dev/null +++ b/intersight/models/hyperflex_cluster_network_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexClusterNetworkPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexClusterNetworkPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexClusterNetworkPolicyRef. + + :return: The moid of this HyperflexClusterNetworkPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexClusterNetworkPolicyRef. + + :param moid: The moid of this HyperflexClusterNetworkPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexClusterNetworkPolicyRef. + + :return: The object_type of this HyperflexClusterNetworkPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexClusterNetworkPolicyRef. + + :param object_type: The object_type of this HyperflexClusterNetworkPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexClusterNetworkPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_cluster_profile.py b/intersight/models/hyperflex_cluster_profile.py index 0d8f8687..30fca144 100644 --- a/intersight/models/hyperflex_cluster_profile.py +++ b/intersight/models/hyperflex_cluster_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,40 +32,42 @@ class HyperflexClusterProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'src_template': 'MoMoRef', + 'src_template': 'PolicyAbstractProfileRef', 'type': 'str', 'action': 'str', 'config_context': 'PolicyConfigContext', - 'account': 'MoMoRef', - 'auto_support': 'MoMoRef', - 'cluster_network': 'MoMoRef', - 'cluster_storage': 'MoMoRef', - 'config_result': 'MoMoRef', + 'auto_support': 'HyperflexAutoSupportPolicyRef', + 'cluster_network': 'HyperflexClusterNetworkPolicyRef', + 'cluster_storage': 'HyperflexClusterStoragePolicyRef', + 'config_result': 'HyperflexConfigResultRef', 'data_ip_address': 'str', - 'ext_fc_storage': 'MoMoRef', - 'ext_iscsi_storage': 'MoMoRef', + 'ext_fc_storage': 'HyperflexExtFcStoragePolicyRef', + 'ext_iscsi_storage': 'HyperflexExtIscsiStoragePolicyRef', 'hypervisor_type': 'str', - 'local_credential': 'MoMoRef', + 'local_credential': 'HyperflexLocalCredentialPolicyRef', 'mac_address_prefix': 'str', 'mgmt_ip_address': 'str', 'mgmt_platform': 'str', - 'node_config': 'MoMoRef', - 'node_profile_config': 'list[MoMoRef]', + 'node_config': 'HyperflexNodeConfigPolicyRef', + 'node_profile_config': 'list[HyperflexNodeProfileRef]', + 'organization': 'IamAccountRef', + 'proxy_setting': 'HyperflexProxySettingPolicyRef', 'replication': 'int', 'storage_data_vlan': 'HyperflexNamedVlan', - 'sys_config': 'MoMoRef', - 'ucsm_config': 'MoMoRef', - 'vcenter_config': 'MoMoRef' + 'sys_config': 'HyperflexSysConfigPolicyRef', + 'ucsm_config': 'HyperflexUcsmConfigPolicyRef', + 'vcenter_config': 'HyperflexVcenterConfigPolicyRef', + 'wwxn_prefix': 'str' } attribute_map = { @@ -84,7 +86,6 @@ class HyperflexClusterProfile(object): 'type': 'Type', 'action': 'Action', 'config_context': 'ConfigContext', - 'account': 'Account', 'auto_support': 'AutoSupport', 'cluster_network': 'ClusterNetwork', 'cluster_storage': 'ClusterStorage', @@ -99,14 +100,17 @@ class HyperflexClusterProfile(object): 'mgmt_platform': 'MgmtPlatform', 'node_config': 'NodeConfig', 'node_profile_config': 'NodeProfileConfig', + 'organization': 'Organization', + 'proxy_setting': 'ProxySetting', 'replication': 'Replication', 'storage_data_vlan': 'StorageDataVlan', 'sys_config': 'SysConfig', 'ucsm_config': 'UcsmConfig', - 'vcenter_config': 'VcenterConfig' + 'vcenter_config': 'VcenterConfig', + 'wwxn_prefix': 'WwxnPrefix' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, src_template=None, type='instance', action=None, config_context=None, account=None, auto_support=None, cluster_network=None, cluster_storage=None, config_result=None, data_ip_address=None, ext_fc_storage=None, ext_iscsi_storage=None, hypervisor_type='ESXi', local_credential=None, mac_address_prefix=None, mgmt_ip_address=None, mgmt_platform='FI', node_config=None, node_profile_config=None, replication=None, storage_data_vlan=None, sys_config=None, ucsm_config=None, vcenter_config=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, src_template=None, type='instance', action=None, config_context=None, auto_support=None, cluster_network=None, cluster_storage=None, config_result=None, data_ip_address=None, ext_fc_storage=None, ext_iscsi_storage=None, hypervisor_type='ESXi', local_credential=None, mac_address_prefix=None, mgmt_ip_address=None, mgmt_platform='FI', node_config=None, node_profile_config=None, organization=None, proxy_setting=None, replication=None, storage_data_vlan=None, sys_config=None, ucsm_config=None, vcenter_config=None, wwxn_prefix=None): """ HyperflexClusterProfile - a model defined in Swagger """ @@ -126,7 +130,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._type = None self._action = None self._config_context = None - self._account = None self._auto_support = None self._cluster_network = None self._cluster_storage = None @@ -141,11 +144,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._mgmt_platform = None self._node_config = None self._node_profile_config = None + self._organization = None + self._proxy_setting = None self._replication = None self._storage_data_vlan = None self._sys_config = None self._ucsm_config = None self._vcenter_config = None + self._wwxn_prefix = None if account_moid is not None: self.account_moid = account_moid @@ -177,8 +183,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.action = action if config_context is not None: self.config_context = config_context - if account is not None: - self.account = account if auto_support is not None: self.auto_support = auto_support if cluster_network is not None: @@ -207,6 +211,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.node_config = node_config if node_profile_config is not None: self.node_profile_config = node_profile_config + if organization is not None: + self.organization = organization + if proxy_setting is not None: + self.proxy_setting = proxy_setting if replication is not None: self.replication = replication if storage_data_vlan is not None: @@ -217,6 +225,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.ucsm_config = ucsm_config if vcenter_config is not None: self.vcenter_config = vcenter_config + if wwxn_prefix is not None: + self.wwxn_prefix = wwxn_prefix @property def account_moid(self): @@ -248,7 +258,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexClusterProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -259,7 +269,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexClusterProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -386,7 +396,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -397,7 +407,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexClusterProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -477,7 +487,7 @@ def src_template(self): Gets the src_template of this HyperflexClusterProfile. :return: The src_template of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: PolicyAbstractProfileRef """ return self._src_template @@ -487,7 +497,7 @@ def src_template(self, src_template): Sets the src_template of this HyperflexClusterProfile. :param src_template: The src_template of this HyperflexClusterProfile. - :type: MoMoRef + :type: PolicyAbstractProfileRef """ self._src_template = src_template @@ -525,7 +535,7 @@ def type(self, type): def action(self): """ Gets the action of this HyperflexClusterProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :return: The action of this HyperflexClusterProfile. :rtype: str @@ -536,7 +546,7 @@ def action(self): def action(self, action): """ Sets the action of this HyperflexClusterProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :param action: The action of this HyperflexClusterProfile. :type: str @@ -565,34 +575,13 @@ def config_context(self, config_context): self._config_context = config_context - @property - def account(self): - """ - Gets the account of this HyperflexClusterProfile. - - :return: The account of this HyperflexClusterProfile. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexClusterProfile. - - :param account: The account of this HyperflexClusterProfile. - :type: MoMoRef - """ - - self._account = account - @property def auto_support(self): """ Gets the auto_support of this HyperflexClusterProfile. :return: The auto_support of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexAutoSupportPolicyRef """ return self._auto_support @@ -602,7 +591,7 @@ def auto_support(self, auto_support): Sets the auto_support of this HyperflexClusterProfile. :param auto_support: The auto_support of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexAutoSupportPolicyRef """ self._auto_support = auto_support @@ -613,7 +602,7 @@ def cluster_network(self): Gets the cluster_network of this HyperflexClusterProfile. :return: The cluster_network of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexClusterNetworkPolicyRef """ return self._cluster_network @@ -623,7 +612,7 @@ def cluster_network(self, cluster_network): Sets the cluster_network of this HyperflexClusterProfile. :param cluster_network: The cluster_network of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexClusterNetworkPolicyRef """ self._cluster_network = cluster_network @@ -634,7 +623,7 @@ def cluster_storage(self): Gets the cluster_storage of this HyperflexClusterProfile. :return: The cluster_storage of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexClusterStoragePolicyRef """ return self._cluster_storage @@ -644,7 +633,7 @@ def cluster_storage(self, cluster_storage): Sets the cluster_storage of this HyperflexClusterProfile. :param cluster_storage: The cluster_storage of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexClusterStoragePolicyRef """ self._cluster_storage = cluster_storage @@ -653,9 +642,10 @@ def cluster_storage(self, cluster_storage): def config_result(self): """ Gets the config_result of this HyperflexClusterProfile. + The profile configuration (deploy, validation) results with the overall state and detailed result messages. :return: The config_result of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexConfigResultRef """ return self._config_result @@ -663,9 +653,10 @@ def config_result(self): def config_result(self, config_result): """ Sets the config_result of this HyperflexClusterProfile. + The profile configuration (deploy, validation) results with the overall state and detailed result messages. :param config_result: The config_result of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexConfigResultRef """ self._config_result = config_result @@ -674,7 +665,7 @@ def config_result(self, config_result): def data_ip_address(self): """ Gets the data_ip_address of this HyperflexClusterProfile. - Data IP address for the HyperFlex cluster + Storage data IP address for the HyperFlex cluster :return: The data_ip_address of this HyperflexClusterProfile. :rtype: str @@ -685,7 +676,7 @@ def data_ip_address(self): def data_ip_address(self, data_ip_address): """ Sets the data_ip_address of this HyperflexClusterProfile. - Data IP address for the HyperFlex cluster + Storage data IP address for the HyperFlex cluster :param data_ip_address: The data_ip_address of this HyperflexClusterProfile. :type: str @@ -699,7 +690,7 @@ def ext_fc_storage(self): Gets the ext_fc_storage of this HyperflexClusterProfile. :return: The ext_fc_storage of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexExtFcStoragePolicyRef """ return self._ext_fc_storage @@ -709,7 +700,7 @@ def ext_fc_storage(self, ext_fc_storage): Sets the ext_fc_storage of this HyperflexClusterProfile. :param ext_fc_storage: The ext_fc_storage of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexExtFcStoragePolicyRef """ self._ext_fc_storage = ext_fc_storage @@ -720,7 +711,7 @@ def ext_iscsi_storage(self): Gets the ext_iscsi_storage of this HyperflexClusterProfile. :return: The ext_iscsi_storage of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexExtIscsiStoragePolicyRef """ return self._ext_iscsi_storage @@ -730,7 +721,7 @@ def ext_iscsi_storage(self, ext_iscsi_storage): Sets the ext_iscsi_storage of this HyperflexClusterProfile. :param ext_iscsi_storage: The ext_iscsi_storage of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexExtIscsiStoragePolicyRef """ self._ext_iscsi_storage = ext_iscsi_storage @@ -739,7 +730,7 @@ def ext_iscsi_storage(self, ext_iscsi_storage): def hypervisor_type(self): """ Gets the hypervisor_type of this HyperflexClusterProfile. - Hypervisor Type for HyperFlex cluster + Hypervisor type for the HyperFlex cluster :return: The hypervisor_type of this HyperflexClusterProfile. :rtype: str @@ -750,7 +741,7 @@ def hypervisor_type(self): def hypervisor_type(self, hypervisor_type): """ Sets the hypervisor_type of this HyperflexClusterProfile. - Hypervisor Type for HyperFlex cluster + Hypervisor type for the HyperFlex cluster :param hypervisor_type: The hypervisor_type of this HyperflexClusterProfile. :type: str @@ -770,7 +761,7 @@ def local_credential(self): Gets the local_credential of this HyperflexClusterProfile. :return: The local_credential of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexLocalCredentialPolicyRef """ return self._local_credential @@ -780,7 +771,7 @@ def local_credential(self, local_credential): Sets the local_credential of this HyperflexClusterProfile. :param local_credential: The local_credential of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexLocalCredentialPolicyRef """ self._local_credential = local_credential @@ -789,6 +780,7 @@ def local_credential(self, local_credential): def mac_address_prefix(self): """ Gets the mac_address_prefix of this HyperflexClusterProfile. + MAC address prefix 00:25:B5:XX :return: The mac_address_prefix of this HyperflexClusterProfile. :rtype: str @@ -799,6 +791,7 @@ def mac_address_prefix(self): def mac_address_prefix(self, mac_address_prefix): """ Sets the mac_address_prefix of this HyperflexClusterProfile. + MAC address prefix 00:25:B5:XX :param mac_address_prefix: The mac_address_prefix of this HyperflexClusterProfile. :type: str @@ -833,7 +826,7 @@ def mgmt_ip_address(self, mgmt_ip_address): def mgmt_platform(self): """ Gets the mgmt_platform of this HyperflexClusterProfile. - Management platform for HyperFlex cluster + Management platform for the HyperFlex cluster :return: The mgmt_platform of this HyperflexClusterProfile. :rtype: str @@ -844,7 +837,7 @@ def mgmt_platform(self): def mgmt_platform(self, mgmt_platform): """ Sets the mgmt_platform of this HyperflexClusterProfile. - Management platform for HyperFlex cluster + Management platform for the HyperFlex cluster :param mgmt_platform: The mgmt_platform of this HyperflexClusterProfile. :type: str @@ -864,7 +857,7 @@ def node_config(self): Gets the node_config of this HyperflexClusterProfile. :return: The node_config of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexNodeConfigPolicyRef """ return self._node_config @@ -874,7 +867,7 @@ def node_config(self, node_config): Sets the node_config of this HyperflexClusterProfile. :param node_config: The node_config of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexNodeConfigPolicyRef """ self._node_config = node_config @@ -883,9 +876,10 @@ def node_config(self, node_config): def node_profile_config(self): """ Gets the node_profile_config of this HyperflexClusterProfile. + List of node profiles representing the configuraion of the corresponding HX cluster nodes :return: The node_profile_config of this HyperflexClusterProfile. - :rtype: list[MoMoRef] + :rtype: list[HyperflexNodeProfileRef] """ return self._node_profile_config @@ -893,18 +887,63 @@ def node_profile_config(self): def node_profile_config(self, node_profile_config): """ Sets the node_profile_config of this HyperflexClusterProfile. + List of node profiles representing the configuraion of the corresponding HX cluster nodes :param node_profile_config: The node_profile_config of this HyperflexClusterProfile. - :type: list[MoMoRef] + :type: list[HyperflexNodeProfileRef] """ self._node_profile_config = node_profile_config + @property + def organization(self): + """ + Gets the organization of this HyperflexClusterProfile. + Organization + + :return: The organization of this HyperflexClusterProfile. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexClusterProfile. + Organization + + :param organization: The organization of this HyperflexClusterProfile. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def proxy_setting(self): + """ + Gets the proxy_setting of this HyperflexClusterProfile. + + :return: The proxy_setting of this HyperflexClusterProfile. + :rtype: HyperflexProxySettingPolicyRef + """ + return self._proxy_setting + + @proxy_setting.setter + def proxy_setting(self, proxy_setting): + """ + Sets the proxy_setting of this HyperflexClusterProfile. + + :param proxy_setting: The proxy_setting of this HyperflexClusterProfile. + :type: HyperflexProxySettingPolicyRef + """ + + self._proxy_setting = proxy_setting + @property def replication(self): """ Gets the replication of this HyperflexClusterProfile. - Defines the number of redundant replicas of data across the cluster + Specifies the number of copies of each data block written :return: The replication of this HyperflexClusterProfile. :rtype: int @@ -915,7 +954,7 @@ def replication(self): def replication(self, replication): """ Sets the replication of this HyperflexClusterProfile. - Defines the number of redundant replicas of data across the cluster + Specifies the number of copies of each data block written :param replication: The replication of this HyperflexClusterProfile. :type: int @@ -927,7 +966,7 @@ def replication(self, replication): def storage_data_vlan(self): """ Gets the storage_data_vlan of this HyperflexClusterProfile. - VLAN for HyperFlex storage data traffic + VLAN for the HyperFlex storage data traffic :return: The storage_data_vlan of this HyperflexClusterProfile. :rtype: HyperflexNamedVlan @@ -938,7 +977,7 @@ def storage_data_vlan(self): def storage_data_vlan(self, storage_data_vlan): """ Sets the storage_data_vlan of this HyperflexClusterProfile. - VLAN for HyperFlex storage data traffic + VLAN for the HyperFlex storage data traffic :param storage_data_vlan: The storage_data_vlan of this HyperflexClusterProfile. :type: HyperflexNamedVlan @@ -952,7 +991,7 @@ def sys_config(self): Gets the sys_config of this HyperflexClusterProfile. :return: The sys_config of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexSysConfigPolicyRef """ return self._sys_config @@ -962,7 +1001,7 @@ def sys_config(self, sys_config): Sets the sys_config of this HyperflexClusterProfile. :param sys_config: The sys_config of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexSysConfigPolicyRef """ self._sys_config = sys_config @@ -973,7 +1012,7 @@ def ucsm_config(self): Gets the ucsm_config of this HyperflexClusterProfile. :return: The ucsm_config of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexUcsmConfigPolicyRef """ return self._ucsm_config @@ -983,7 +1022,7 @@ def ucsm_config(self, ucsm_config): Sets the ucsm_config of this HyperflexClusterProfile. :param ucsm_config: The ucsm_config of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexUcsmConfigPolicyRef """ self._ucsm_config = ucsm_config @@ -994,7 +1033,7 @@ def vcenter_config(self): Gets the vcenter_config of this HyperflexClusterProfile. :return: The vcenter_config of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexVcenterConfigPolicyRef """ return self._vcenter_config @@ -1004,11 +1043,34 @@ def vcenter_config(self, vcenter_config): Sets the vcenter_config of this HyperflexClusterProfile. :param vcenter_config: The vcenter_config of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexVcenterConfigPolicyRef """ self._vcenter_config = vcenter_config + @property + def wwxn_prefix(self): + """ + Gets the wwxn_prefix of this HyperflexClusterProfile. + WWxN prefix 20:00:00:25:B5:XX + + :return: The wwxn_prefix of this HyperflexClusterProfile. + :rtype: str + """ + return self._wwxn_prefix + + @wwxn_prefix.setter + def wwxn_prefix(self, wwxn_prefix): + """ + Sets the wwxn_prefix of this HyperflexClusterProfile. + WWxN prefix 20:00:00:25:B5:XX + + :param wwxn_prefix: The wwxn_prefix of this HyperflexClusterProfile. + :type: str + """ + + self._wwxn_prefix = wwxn_prefix + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/hyperflex_cluster_profile_list.py b/intersight/models/hyperflex_cluster_profile_list.py index 10da5d62..412c102a 100644 --- a/intersight/models/hyperflex_cluster_profile_list.py +++ b/intersight/models/hyperflex_cluster_profile_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_cluster_profile_ref.py b/intersight/models/hyperflex_cluster_profile_ref.py new file mode 100644 index 00000000..e460c559 --- /dev/null +++ b/intersight/models/hyperflex_cluster_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexClusterProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexClusterProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexClusterProfileRef. + + :return: The moid of this HyperflexClusterProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexClusterProfileRef. + + :param moid: The moid of this HyperflexClusterProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexClusterProfileRef. + + :return: The object_type of this HyperflexClusterProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexClusterProfileRef. + + :param object_type: The object_type of this HyperflexClusterProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexClusterProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_cluster_ref.py b/intersight/models/hyperflex_cluster_ref.py new file mode 100644 index 00000000..8e6881ab --- /dev/null +++ b/intersight/models/hyperflex_cluster_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexClusterRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexClusterRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexClusterRef. + + :return: The moid of this HyperflexClusterRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexClusterRef. + + :param moid: The moid of this HyperflexClusterRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexClusterRef. + + :return: The object_type of this HyperflexClusterRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexClusterRef. + + :param object_type: The object_type of this HyperflexClusterRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexClusterRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_cluster_storage_policy.py b/intersight/models/hyperflex_cluster_storage_policy.py index 0ea688bf..11d33eba 100644 --- a/intersight/models/hyperflex_cluster_storage_policy.py +++ b/intersight/models/hyperflex_cluster_storage_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,19 @@ class HyperflexClusterStoragePolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'disk_partition_cleanup': 'bool', + 'organization': 'IamAccountRef', 'vdi_optimization': 'bool' } @@ -60,13 +60,13 @@ class HyperflexClusterStoragePolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'disk_partition_cleanup': 'DiskPartitionCleanup', + 'organization': 'Organization', 'vdi_optimization': 'VdiOptimization' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, disk_partition_cleanup=None, vdi_optimization=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, cluster_profiles=None, disk_partition_cleanup=None, organization=None, vdi_optimization=None): """ HyperflexClusterStoragePolicy - a model defined in Swagger """ @@ -82,9 +82,9 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._disk_partition_cleanup = None + self._organization = None self._vdi_optimization = None if account_moid is not None: @@ -109,12 +109,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if disk_partition_cleanup is not None: self.disk_partition_cleanup = disk_partition_cleanup + if organization is not None: + self.organization = organization if vdi_optimization is not None: self.vdi_optimization = vdi_optimization @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexClusterStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexClusterStoragePolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexClusterStoragePolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexClusterStoragePolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -371,34 +371,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexClusterStoragePolicy. - - :return: The account of this HyperflexClusterStoragePolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexClusterStoragePolicy. - - :param account: The account of this HyperflexClusterStoragePolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexClusterStoragePolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexClusterStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -406,9 +386,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexClusterStoragePolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexClusterStoragePolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -417,7 +398,7 @@ def cluster_profiles(self, cluster_profiles): def disk_partition_cleanup(self): """ Gets the disk_partition_cleanup of this HyperflexClusterStoragePolicy. - Flag to determine if the existing disk partitions need to be cleaned up + If enabled, formats existing disk partitions (destroys all user data) :return: The disk_partition_cleanup of this HyperflexClusterStoragePolicy. :rtype: bool @@ -428,7 +409,7 @@ def disk_partition_cleanup(self): def disk_partition_cleanup(self, disk_partition_cleanup): """ Sets the disk_partition_cleanup of this HyperflexClusterStoragePolicy. - Flag to determine if the existing disk partitions need to be cleaned up + If enabled, formats existing disk partitions (destroys all user data) :param disk_partition_cleanup: The disk_partition_cleanup of this HyperflexClusterStoragePolicy. :type: bool @@ -436,11 +417,34 @@ def disk_partition_cleanup(self, disk_partition_cleanup): self._disk_partition_cleanup = disk_partition_cleanup + @property + def organization(self): + """ + Gets the organization of this HyperflexClusterStoragePolicy. + Organization + + :return: The organization of this HyperflexClusterStoragePolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexClusterStoragePolicy. + Organization + + :param organization: The organization of this HyperflexClusterStoragePolicy. + :type: IamAccountRef + """ + + self._organization = organization + @property def vdi_optimization(self): """ Gets the vdi_optimization of this HyperflexClusterStoragePolicy. - Flag to determine if VDI Optimization needs to be enabled or disabled + Enable or disable VDI optimization (hybrid HX systems only) :return: The vdi_optimization of this HyperflexClusterStoragePolicy. :rtype: bool @@ -451,7 +455,7 @@ def vdi_optimization(self): def vdi_optimization(self, vdi_optimization): """ Sets the vdi_optimization of this HyperflexClusterStoragePolicy. - Flag to determine if VDI Optimization needs to be enabled or disabled + Enable or disable VDI optimization (hybrid HX systems only) :param vdi_optimization: The vdi_optimization of this HyperflexClusterStoragePolicy. :type: bool diff --git a/intersight/models/hyperflex_cluster_storage_policy_list.py b/intersight/models/hyperflex_cluster_storage_policy_list.py index 99fc24ab..ed8c1806 100644 --- a/intersight/models/hyperflex_cluster_storage_policy_list.py +++ b/intersight/models/hyperflex_cluster_storage_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_cluster_storage_policy_ref.py b/intersight/models/hyperflex_cluster_storage_policy_ref.py new file mode 100644 index 00000000..0eb43d00 --- /dev/null +++ b/intersight/models/hyperflex_cluster_storage_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexClusterStoragePolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexClusterStoragePolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexClusterStoragePolicyRef. + + :return: The moid of this HyperflexClusterStoragePolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexClusterStoragePolicyRef. + + :param moid: The moid of this HyperflexClusterStoragePolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexClusterStoragePolicyRef. + + :return: The object_type of this HyperflexClusterStoragePolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexClusterStoragePolicyRef. + + :param object_type: The object_type of this HyperflexClusterStoragePolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexClusterStoragePolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_config_result.py b/intersight/models/hyperflex_config_result.py index 387d168e..5ed7e9a5 100644 --- a/intersight/models/hyperflex_config_result.py +++ b/intersight/models/hyperflex_config_result.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,22 @@ class HyperflexConfigResult(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'config_stage': 'str', 'config_state': 'str', - 'result_entries': 'list[PolicyConfigResultEntry]', 'validation_state': 'str', - 'cluster_profile': 'MoMoRef' + 'cluster_profile': 'HyperflexClusterProfileRef', + 'config_progress': 'str', + 'duration': 'str', + 'result_entries': 'list[HyperflexConfigResultEntryRef]', + 'start_time': 'str' } attribute_map = { @@ -59,12 +62,15 @@ class HyperflexConfigResult(object): 'tags': 'Tags', 'config_stage': 'ConfigStage', 'config_state': 'ConfigState', - 'result_entries': 'ResultEntries', 'validation_state': 'ValidationState', - 'cluster_profile': 'ClusterProfile' + 'cluster_profile': 'ClusterProfile', + 'config_progress': 'ConfigProgress', + 'duration': 'Duration', + 'result_entries': 'ResultEntries', + 'start_time': 'StartTime' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, config_stage=None, config_state=None, result_entries=None, validation_state=None, cluster_profile=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, config_stage=None, config_state=None, validation_state=None, cluster_profile=None, config_progress=None, duration=None, result_entries=None, start_time=None): """ HyperflexConfigResult - a model defined in Swagger """ @@ -80,9 +86,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._config_stage = None self._config_state = None - self._result_entries = None self._validation_state = None self._cluster_profile = None + self._config_progress = None + self._duration = None + self._result_entries = None + self._start_time = None if account_moid is not None: self.account_moid = account_moid @@ -106,12 +115,18 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.config_stage = config_stage if config_state is not None: self.config_state = config_state - if result_entries is not None: - self.result_entries = result_entries if validation_state is not None: self.validation_state = validation_state if cluster_profile is not None: self.cluster_profile = cluster_profile + if config_progress is not None: + self.config_progress = config_progress + if duration is not None: + self.duration = duration + if result_entries is not None: + self.result_entries = result_entries + if start_time is not None: + self.start_time = start_time @property def account_moid(self): @@ -143,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexConfigResult. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexConfigResult. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexConfigResult. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexConfigResult. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -366,29 +381,6 @@ def config_state(self, config_state): self._config_state = config_state - @property - def result_entries(self): - """ - Gets the result_entries of this HyperflexConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :return: The result_entries of this HyperflexConfigResult. - :rtype: list[PolicyConfigResultEntry] - """ - return self._result_entries - - @result_entries.setter - def result_entries(self, result_entries): - """ - Sets the result_entries of this HyperflexConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :param result_entries: The result_entries of this HyperflexConfigResult. - :type: list[PolicyConfigResultEntry] - """ - - self._result_entries = result_entries - @property def validation_state(self): """ @@ -418,7 +410,7 @@ def cluster_profile(self): Gets the cluster_profile of this HyperflexConfigResult. :return: The cluster_profile of this HyperflexConfigResult. - :rtype: MoMoRef + :rtype: HyperflexClusterProfileRef """ return self._cluster_profile @@ -428,11 +420,103 @@ def cluster_profile(self, cluster_profile): Sets the cluster_profile of this HyperflexConfigResult. :param cluster_profile: The cluster_profile of this HyperflexConfigResult. - :type: MoMoRef + :type: HyperflexClusterProfileRef """ self._cluster_profile = cluster_profile + @property + def config_progress(self): + """ + Gets the config_progress of this HyperflexConfigResult. + The progress percentage of the running configuration or workflow + + :return: The config_progress of this HyperflexConfigResult. + :rtype: str + """ + return self._config_progress + + @config_progress.setter + def config_progress(self, config_progress): + """ + Sets the config_progress of this HyperflexConfigResult. + The progress percentage of the running configuration or workflow + + :param config_progress: The config_progress of this HyperflexConfigResult. + :type: str + """ + + self._config_progress = config_progress + + @property + def duration(self): + """ + Gets the duration of this HyperflexConfigResult. + The duration of the running configuration or workflow + + :return: The duration of this HyperflexConfigResult. + :rtype: str + """ + return self._duration + + @duration.setter + def duration(self, duration): + """ + Sets the duration of this HyperflexConfigResult. + The duration of the running configuration or workflow + + :param duration: The duration of this HyperflexConfigResult. + :type: str + """ + + self._duration = duration + + @property + def result_entries(self): + """ + Gets the result_entries of this HyperflexConfigResult. + Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. + + :return: The result_entries of this HyperflexConfigResult. + :rtype: list[HyperflexConfigResultEntryRef] + """ + return self._result_entries + + @result_entries.setter + def result_entries(self, result_entries): + """ + Sets the result_entries of this HyperflexConfigResult. + Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. + + :param result_entries: The result_entries of this HyperflexConfigResult. + :type: list[HyperflexConfigResultEntryRef] + """ + + self._result_entries = result_entries + + @property + def start_time(self): + """ + Gets the start_time of this HyperflexConfigResult. + The start time of the configuration or workflow + + :return: The start_time of this HyperflexConfigResult. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this HyperflexConfigResult. + The start time of the configuration or workflow + + :param start_time: The start_time of this HyperflexConfigResult. + :type: str + """ + + self._start_time = start_time + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/hyperflex_config_result_entry.py b/intersight/models/hyperflex_config_result_entry.py new file mode 100644 index 00000000..841f23c0 --- /dev/null +++ b/intersight/models/hyperflex_config_result_entry.py @@ -0,0 +1,539 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexConfigResultEntry(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'completed_time': 'str', + 'context': 'PolicyConfigResultContext', + 'message': 'str', + 'owner_id': 'str', + 'state': 'str', + 'type': 'str', + 'config_result': 'HyperflexConfigResultRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'completed_time': 'CompletedTime', + 'context': 'Context', + 'message': 'Message', + 'owner_id': 'OwnerId', + 'state': 'State', + 'type': 'Type', + 'config_result': 'ConfigResult' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, completed_time=None, context=None, message=None, owner_id=None, state=None, type=None, config_result=None): + """ + HyperflexConfigResultEntry - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._completed_time = None + self._context = None + self._message = None + self._owner_id = None + self._state = None + self._type = None + self._config_result = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if completed_time is not None: + self.completed_time = completed_time + if context is not None: + self.context = context + if message is not None: + self.message = message + if owner_id is not None: + self.owner_id = owner_id + if state is not None: + self.state = state + if type is not None: + self.type = type + if config_result is not None: + self.config_result = config_result + + @property + def account_moid(self): + """ + Gets the account_moid of this HyperflexConfigResultEntry. + The Account ID for this managed object. + + :return: The account_moid of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HyperflexConfigResultEntry. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HyperflexConfigResultEntry. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HyperflexConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HyperflexConfigResultEntry. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HyperflexConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HyperflexConfigResultEntry. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HyperflexConfigResultEntry. + The time when this managed object was created. + + :return: The create_time of this HyperflexConfigResultEntry. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HyperflexConfigResultEntry. + The time when this managed object was created. + + :param create_time: The create_time of this HyperflexConfigResultEntry. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HyperflexConfigResultEntry. + The time when this managed object was last modified. + + :return: The mod_time of this HyperflexConfigResultEntry. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HyperflexConfigResultEntry. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HyperflexConfigResultEntry. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HyperflexConfigResultEntry. + A unique identifier of this Managed Object instance. + + :return: The moid of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexConfigResultEntry. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HyperflexConfigResultEntry. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HyperflexConfigResultEntry. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HyperflexConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HyperflexConfigResultEntry. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HyperflexConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HyperflexConfigResultEntry. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HyperflexConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HyperflexConfigResultEntry. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HyperflexConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HyperflexConfigResultEntry. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HyperflexConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HyperflexConfigResultEntry. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HyperflexConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HyperflexConfigResultEntry. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def completed_time(self): + """ + Gets the completed_time of this HyperflexConfigResultEntry. + The completed time of the task in installer + + :return: The completed_time of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._completed_time + + @completed_time.setter + def completed_time(self, completed_time): + """ + Sets the completed_time of this HyperflexConfigResultEntry. + The completed time of the task in installer + + :param completed_time: The completed_time of this HyperflexConfigResultEntry. + :type: str + """ + + self._completed_time = completed_time + + @property + def context(self): + """ + Gets the context of this HyperflexConfigResultEntry. + + :return: The context of this HyperflexConfigResultEntry. + :rtype: PolicyConfigResultContext + """ + return self._context + + @context.setter + def context(self, context): + """ + Sets the context of this HyperflexConfigResultEntry. + + :param context: The context of this HyperflexConfigResultEntry. + :type: PolicyConfigResultContext + """ + + self._context = context + + @property + def message(self): + """ + Gets the message of this HyperflexConfigResultEntry. + Localized message based on the locale setting of the user's context + + :return: The message of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this HyperflexConfigResultEntry. + Localized message based on the locale setting of the user's context + + :param message: The message of this HyperflexConfigResultEntry. + :type: str + """ + + self._message = message + + @property + def owner_id(self): + """ + Gets the owner_id of this HyperflexConfigResultEntry. + + :return: The owner_id of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._owner_id + + @owner_id.setter + def owner_id(self, owner_id): + """ + Sets the owner_id of this HyperflexConfigResultEntry. + + :param owner_id: The owner_id of this HyperflexConfigResultEntry. + :type: str + """ + + self._owner_id = owner_id + + @property + def state(self): + """ + Gets the state of this HyperflexConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :return: The state of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this HyperflexConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :param state: The state of this HyperflexConfigResultEntry. + :type: str + """ + + self._state = state + + @property + def type(self): + """ + Gets the type of this HyperflexConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :return: The type of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this HyperflexConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :param type: The type of this HyperflexConfigResultEntry. + :type: str + """ + + self._type = type + + @property + def config_result(self): + """ + Gets the config_result of this HyperflexConfigResultEntry. + + :return: The config_result of this HyperflexConfigResultEntry. + :rtype: HyperflexConfigResultRef + """ + return self._config_result + + @config_result.setter + def config_result(self, config_result): + """ + Sets the config_result of this HyperflexConfigResultEntry. + + :param config_result: The config_result of this HyperflexConfigResultEntry. + :type: HyperflexConfigResultRef + """ + + self._config_result = config_result + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexConfigResultEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_config_result_entry_list.py b/intersight/models/hyperflex_config_result_entry_list.py new file mode 100644 index 00000000..b2530c95 --- /dev/null +++ b/intersight/models/hyperflex_config_result_entry_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexConfigResultEntryList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HyperflexConfigResultEntry]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HyperflexConfigResultEntryList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HyperflexConfigResultEntryList. + The number of hyperflexConfigResultEntries matching your request in total for all pages. + + :return: The count of this HyperflexConfigResultEntryList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HyperflexConfigResultEntryList. + The number of hyperflexConfigResultEntries matching your request in total for all pages. + + :param count: The count of this HyperflexConfigResultEntryList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HyperflexConfigResultEntryList. + The array of hyperflexConfigResultEntries matching your request. + + :return: The results of this HyperflexConfigResultEntryList. + :rtype: list[HyperflexConfigResultEntry] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HyperflexConfigResultEntryList. + The array of hyperflexConfigResultEntries matching your request. + + :param results: The results of this HyperflexConfigResultEntryList. + :type: list[HyperflexConfigResultEntry] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexConfigResultEntryList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_config_result_entry_ref.py b/intersight/models/hyperflex_config_result_entry_ref.py new file mode 100644 index 00000000..b355f8fd --- /dev/null +++ b/intersight/models/hyperflex_config_result_entry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexConfigResultEntryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexConfigResultEntryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexConfigResultEntryRef. + + :return: The moid of this HyperflexConfigResultEntryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexConfigResultEntryRef. + + :param moid: The moid of this HyperflexConfigResultEntryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexConfigResultEntryRef. + + :return: The object_type of this HyperflexConfigResultEntryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexConfigResultEntryRef. + + :param object_type: The object_type of this HyperflexConfigResultEntryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexConfigResultEntryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_config_result_list.py b/intersight/models/hyperflex_config_result_list.py index 1a19c038..aaedc803 100644 --- a/intersight/models/hyperflex_config_result_list.py +++ b/intersight/models/hyperflex_config_result_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_config_result_ref.py b/intersight/models/hyperflex_config_result_ref.py new file mode 100644 index 00000000..9afc5379 --- /dev/null +++ b/intersight/models/hyperflex_config_result_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexConfigResultRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexConfigResultRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexConfigResultRef. + + :return: The moid of this HyperflexConfigResultRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexConfigResultRef. + + :param moid: The moid of this HyperflexConfigResultRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexConfigResultRef. + + :return: The object_type of this HyperflexConfigResultRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexConfigResultRef. + + :param object_type: The object_type of this HyperflexConfigResultRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexConfigResultRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_credentials_ref.py b/intersight/models/hyperflex_credentials_ref.py new file mode 100644 index 00000000..91c98bd1 --- /dev/null +++ b/intersight/models/hyperflex_credentials_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexCredentialsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexCredentialsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexCredentialsRef. + + :return: The moid of this HyperflexCredentialsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexCredentialsRef. + + :param moid: The moid of this HyperflexCredentialsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexCredentialsRef. + + :return: The object_type of this HyperflexCredentialsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexCredentialsRef. + + :param object_type: The object_type of this HyperflexCredentialsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexCredentialsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_ext_fc_storage_policy.py b/intersight/models/hyperflex_ext_fc_storage_policy.py index fc098b5b..9c2a1a6b 100644 --- a/intersight/models/hyperflex_ext_fc_storage_policy.py +++ b/intersight/models/hyperflex_ext_fc_storage_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,22 @@ class HyperflexExtFcStoragePolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', 'admin_state': 'bool', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'exta_traffic': 'HyperflexNamedVsan', 'extb_traffic': 'HyperflexNamedVsan', - 'wwxn_range': 'HyperflexWwxnRange' + 'organization': 'IamAccountRef', + 'wwxn_prefix_range': 'HyperflexWwxnPrefixRange' } attribute_map = { @@ -62,15 +62,15 @@ class HyperflexExtFcStoragePolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'admin_state': 'AdminState', 'cluster_profiles': 'ClusterProfiles', 'exta_traffic': 'ExtaTraffic', 'extb_traffic': 'ExtbTraffic', - 'wwxn_range': 'WwxnRange' + 'organization': 'Organization', + 'wwxn_prefix_range': 'WwxnPrefixRange' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, admin_state=None, cluster_profiles=None, exta_traffic=None, extb_traffic=None, wwxn_range=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, admin_state=None, cluster_profiles=None, exta_traffic=None, extb_traffic=None, organization=None, wwxn_prefix_range=None): """ HyperflexExtFcStoragePolicy - a model defined in Swagger """ @@ -86,12 +86,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._account = None self._admin_state = None self._cluster_profiles = None self._exta_traffic = None self._extb_traffic = None - self._wwxn_range = None + self._organization = None + self._wwxn_prefix_range = None if account_moid is not None: self.account_moid = account_moid @@ -115,8 +115,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if admin_state is not None: self.admin_state = admin_state if cluster_profiles is not None: @@ -125,8 +123,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.exta_traffic = exta_traffic if extb_traffic is not None: self.extb_traffic = extb_traffic - if wwxn_range is not None: - self.wwxn_range = wwxn_range + if organization is not None: + self.organization = organization + if wwxn_prefix_range is not None: + self.wwxn_prefix_range = wwxn_prefix_range @property def account_moid(self): @@ -158,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexExtFcStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexExtFcStoragePolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexExtFcStoragePolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexExtFcStoragePolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -381,32 +381,11 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexExtFcStoragePolicy. - - :return: The account of this HyperflexExtFcStoragePolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexExtFcStoragePolicy. - - :param account: The account of this HyperflexExtFcStoragePolicy. - :type: MoMoRef - """ - - self._account = account - @property def admin_state(self): """ Gets the admin_state of this HyperflexExtFcStoragePolicy. - Flag to determine if external FC storage configuration is enabled or disabled + Enables or disables external FC storage configuration :return: The admin_state of this HyperflexExtFcStoragePolicy. :rtype: bool @@ -417,7 +396,7 @@ def admin_state(self): def admin_state(self, admin_state): """ Sets the admin_state of this HyperflexExtFcStoragePolicy. - Flag to determine if external FC storage configuration is enabled or disabled + Enables or disables external FC storage configuration :param admin_state: The admin_state of this HyperflexExtFcStoragePolicy. :type: bool @@ -429,9 +408,10 @@ def admin_state(self, admin_state): def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexExtFcStoragePolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexExtFcStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -439,9 +419,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexExtFcStoragePolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexExtFcStoragePolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -450,7 +431,7 @@ def cluster_profiles(self, cluster_profiles): def exta_traffic(self): """ Gets the exta_traffic of this HyperflexExtFcStoragePolicy. - VSAN for Primary Fabric Interconnect external FC storage traffic + VSAN for the primary Fabric Interconnect external FC storage traffic :return: The exta_traffic of this HyperflexExtFcStoragePolicy. :rtype: HyperflexNamedVsan @@ -461,7 +442,7 @@ def exta_traffic(self): def exta_traffic(self, exta_traffic): """ Sets the exta_traffic of this HyperflexExtFcStoragePolicy. - VSAN for Primary Fabric Interconnect external FC storage traffic + VSAN for the primary Fabric Interconnect external FC storage traffic :param exta_traffic: The exta_traffic of this HyperflexExtFcStoragePolicy. :type: HyperflexNamedVsan @@ -473,7 +454,7 @@ def exta_traffic(self, exta_traffic): def extb_traffic(self): """ Gets the extb_traffic of this HyperflexExtFcStoragePolicy. - VSAN for Secondary Fabric Interconnect external FC storage traffic + VSAN for the secondary Fabric Interconnect external FC storage traffic :return: The extb_traffic of this HyperflexExtFcStoragePolicy. :rtype: HyperflexNamedVsan @@ -484,7 +465,7 @@ def extb_traffic(self): def extb_traffic(self, extb_traffic): """ Sets the extb_traffic of this HyperflexExtFcStoragePolicy. - VSAN for Secondary Fabric Interconnect external FC storage traffic + VSAN for the secondary Fabric Interconnect external FC storage traffic :param extb_traffic: The extb_traffic of this HyperflexExtFcStoragePolicy. :type: HyperflexNamedVsan @@ -493,25 +474,50 @@ def extb_traffic(self, extb_traffic): self._extb_traffic = extb_traffic @property - def wwxn_range(self): + def organization(self): + """ + Gets the organization of this HyperflexExtFcStoragePolicy. + Organization + + :return: The organization of this HyperflexExtFcStoragePolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexExtFcStoragePolicy. + Organization + + :param organization: The organization of this HyperflexExtFcStoragePolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def wwxn_prefix_range(self): """ - Gets the wwxn_range of this HyperflexExtFcStoragePolicy. + Gets the wwxn_prefix_range of this HyperflexExtFcStoragePolicy. + WWxN range - :return: The wwxn_range of this HyperflexExtFcStoragePolicy. - :rtype: HyperflexWwxnRange + :return: The wwxn_prefix_range of this HyperflexExtFcStoragePolicy. + :rtype: HyperflexWwxnPrefixRange """ - return self._wwxn_range + return self._wwxn_prefix_range - @wwxn_range.setter - def wwxn_range(self, wwxn_range): + @wwxn_prefix_range.setter + def wwxn_prefix_range(self, wwxn_prefix_range): """ - Sets the wwxn_range of this HyperflexExtFcStoragePolicy. + Sets the wwxn_prefix_range of this HyperflexExtFcStoragePolicy. + WWxN range - :param wwxn_range: The wwxn_range of this HyperflexExtFcStoragePolicy. - :type: HyperflexWwxnRange + :param wwxn_prefix_range: The wwxn_prefix_range of this HyperflexExtFcStoragePolicy. + :type: HyperflexWwxnPrefixRange """ - self._wwxn_range = wwxn_range + self._wwxn_prefix_range = wwxn_prefix_range def to_dict(self): """ diff --git a/intersight/models/hyperflex_ext_fc_storage_policy_list.py b/intersight/models/hyperflex_ext_fc_storage_policy_list.py index 8b03e86d..a276ca03 100644 --- a/intersight/models/hyperflex_ext_fc_storage_policy_list.py +++ b/intersight/models/hyperflex_ext_fc_storage_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_ext_fc_storage_policy_ref.py b/intersight/models/hyperflex_ext_fc_storage_policy_ref.py new file mode 100644 index 00000000..4fae1f64 --- /dev/null +++ b/intersight/models/hyperflex_ext_fc_storage_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexExtFcStoragePolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexExtFcStoragePolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexExtFcStoragePolicyRef. + + :return: The moid of this HyperflexExtFcStoragePolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexExtFcStoragePolicyRef. + + :param moid: The moid of this HyperflexExtFcStoragePolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexExtFcStoragePolicyRef. + + :return: The object_type of this HyperflexExtFcStoragePolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexExtFcStoragePolicyRef. + + :param object_type: The object_type of this HyperflexExtFcStoragePolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexExtFcStoragePolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_ext_iscsi_storage_policy.py b/intersight/models/hyperflex_ext_iscsi_storage_policy.py index d5acb356..9159b316 100644 --- a/intersight/models/hyperflex_ext_iscsi_storage_policy.py +++ b/intersight/models/hyperflex_ext_iscsi_storage_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,21 @@ class HyperflexExtIscsiStoragePolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', 'admin_state': 'bool', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'exta_traffic': 'HyperflexNamedVlan', - 'extb_traffic': 'HyperflexNamedVlan' + 'extb_traffic': 'HyperflexNamedVlan', + 'organization': 'IamAccountRef' } attribute_map = { @@ -61,14 +61,14 @@ class HyperflexExtIscsiStoragePolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'admin_state': 'AdminState', 'cluster_profiles': 'ClusterProfiles', 'exta_traffic': 'ExtaTraffic', - 'extb_traffic': 'ExtbTraffic' + 'extb_traffic': 'ExtbTraffic', + 'organization': 'Organization' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, admin_state=None, cluster_profiles=None, exta_traffic=None, extb_traffic=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, admin_state=None, cluster_profiles=None, exta_traffic=None, extb_traffic=None, organization=None): """ HyperflexExtIscsiStoragePolicy - a model defined in Swagger """ @@ -84,11 +84,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._account = None self._admin_state = None self._cluster_profiles = None self._exta_traffic = None self._extb_traffic = None + self._organization = None if account_moid is not None: self.account_moid = account_moid @@ -112,8 +112,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if admin_state is not None: self.admin_state = admin_state if cluster_profiles is not None: @@ -122,6 +120,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.exta_traffic = exta_traffic if extb_traffic is not None: self.extb_traffic = extb_traffic + if organization is not None: + self.organization = organization @property def account_moid(self): @@ -153,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexExtIscsiStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexExtIscsiStoragePolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexExtIscsiStoragePolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexExtIscsiStoragePolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -376,32 +376,11 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexExtIscsiStoragePolicy. - - :return: The account of this HyperflexExtIscsiStoragePolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexExtIscsiStoragePolicy. - - :param account: The account of this HyperflexExtIscsiStoragePolicy. - :type: MoMoRef - """ - - self._account = account - @property def admin_state(self): """ Gets the admin_state of this HyperflexExtIscsiStoragePolicy. - Flag to determine if external FCoE storage configuration is enabled or disabled + Enable or disable external FCoE storage configuration :return: The admin_state of this HyperflexExtIscsiStoragePolicy. :rtype: bool @@ -412,7 +391,7 @@ def admin_state(self): def admin_state(self, admin_state): """ Sets the admin_state of this HyperflexExtIscsiStoragePolicy. - Flag to determine if external FCoE storage configuration is enabled or disabled + Enable or disable external FCoE storage configuration :param admin_state: The admin_state of this HyperflexExtIscsiStoragePolicy. :type: bool @@ -424,9 +403,10 @@ def admin_state(self, admin_state): def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexExtIscsiStoragePolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexExtIscsiStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -434,9 +414,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexExtIscsiStoragePolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexExtIscsiStoragePolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -445,7 +426,7 @@ def cluster_profiles(self, cluster_profiles): def exta_traffic(self): """ Gets the exta_traffic of this HyperflexExtIscsiStoragePolicy. - VLAN for Primary Fabric Interconnect external FCoE storage traffic + VLAN for the primary Fabric Interconnect external FCoE storage traffic :return: The exta_traffic of this HyperflexExtIscsiStoragePolicy. :rtype: HyperflexNamedVlan @@ -456,7 +437,7 @@ def exta_traffic(self): def exta_traffic(self, exta_traffic): """ Sets the exta_traffic of this HyperflexExtIscsiStoragePolicy. - VLAN for Primary Fabric Interconnect external FCoE storage traffic + VLAN for the primary Fabric Interconnect external FCoE storage traffic :param exta_traffic: The exta_traffic of this HyperflexExtIscsiStoragePolicy. :type: HyperflexNamedVlan @@ -468,7 +449,7 @@ def exta_traffic(self, exta_traffic): def extb_traffic(self): """ Gets the extb_traffic of this HyperflexExtIscsiStoragePolicy. - VLAN for Secondary Fabric Interconnect external FCoE storage traffic + VLAN for the secondary Fabric Interconnect external FCoE storage traffic :return: The extb_traffic of this HyperflexExtIscsiStoragePolicy. :rtype: HyperflexNamedVlan @@ -479,7 +460,7 @@ def extb_traffic(self): def extb_traffic(self, extb_traffic): """ Sets the extb_traffic of this HyperflexExtIscsiStoragePolicy. - VLAN for Secondary Fabric Interconnect external FCoE storage traffic + VLAN for the secondary Fabric Interconnect external FCoE storage traffic :param extb_traffic: The extb_traffic of this HyperflexExtIscsiStoragePolicy. :type: HyperflexNamedVlan @@ -487,6 +468,29 @@ def extb_traffic(self, extb_traffic): self._extb_traffic = extb_traffic + @property + def organization(self): + """ + Gets the organization of this HyperflexExtIscsiStoragePolicy. + Organization + + :return: The organization of this HyperflexExtIscsiStoragePolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexExtIscsiStoragePolicy. + Organization + + :param organization: The organization of this HyperflexExtIscsiStoragePolicy. + :type: IamAccountRef + """ + + self._organization = organization + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/hyperflex_ext_iscsi_storage_policy_list.py b/intersight/models/hyperflex_ext_iscsi_storage_policy_list.py index db1493b3..27a5632f 100644 --- a/intersight/models/hyperflex_ext_iscsi_storage_policy_list.py +++ b/intersight/models/hyperflex_ext_iscsi_storage_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_ext_iscsi_storage_policy_ref.py b/intersight/models/hyperflex_ext_iscsi_storage_policy_ref.py new file mode 100644 index 00000000..974fc297 --- /dev/null +++ b/intersight/models/hyperflex_ext_iscsi_storage_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexExtIscsiStoragePolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexExtIscsiStoragePolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexExtIscsiStoragePolicyRef. + + :return: The moid of this HyperflexExtIscsiStoragePolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexExtIscsiStoragePolicyRef. + + :param moid: The moid of this HyperflexExtIscsiStoragePolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexExtIscsiStoragePolicyRef. + + :return: The object_type of this HyperflexExtIscsiStoragePolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexExtIscsiStoragePolicyRef. + + :param object_type: The object_type of this HyperflexExtIscsiStoragePolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexExtIscsiStoragePolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_ip_addr_range.py b/intersight/models/hyperflex_ip_addr_range.py index c9725f14..91f7600c 100644 --- a/intersight/models/hyperflex_ip_addr_range.py +++ b/intersight/models/hyperflex_ip_addr_range.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -67,6 +67,7 @@ def __init__(self, end_addr=None, gateway=None, netmask=None, start_addr=None): def end_addr(self): """ Gets the end_addr of this HyperflexIpAddrRange. + End address :return: The end_addr of this HyperflexIpAddrRange. :rtype: str @@ -77,6 +78,7 @@ def end_addr(self): def end_addr(self, end_addr): """ Sets the end_addr of this HyperflexIpAddrRange. + End address :param end_addr: The end_addr of this HyperflexIpAddrRange. :type: str @@ -88,6 +90,7 @@ def end_addr(self, end_addr): def gateway(self): """ Gets the gateway of this HyperflexIpAddrRange. + Gateway :return: The gateway of this HyperflexIpAddrRange. :rtype: str @@ -98,6 +101,7 @@ def gateway(self): def gateway(self, gateway): """ Sets the gateway of this HyperflexIpAddrRange. + Gateway :param gateway: The gateway of this HyperflexIpAddrRange. :type: str @@ -109,6 +113,7 @@ def gateway(self, gateway): def netmask(self): """ Gets the netmask of this HyperflexIpAddrRange. + Netmask :return: The netmask of this HyperflexIpAddrRange. :rtype: str @@ -119,6 +124,7 @@ def netmask(self): def netmask(self, netmask): """ Sets the netmask of this HyperflexIpAddrRange. + Netmask :param netmask: The netmask of this HyperflexIpAddrRange. :type: str @@ -130,6 +136,7 @@ def netmask(self, netmask): def start_addr(self): """ Gets the start_addr of this HyperflexIpAddrRange. + Start address :return: The start_addr of this HyperflexIpAddrRange. :rtype: str @@ -140,6 +147,7 @@ def start_addr(self): def start_addr(self, start_addr): """ Sets the start_addr of this HyperflexIpAddrRange. + Start address :param start_addr: The start_addr of this HyperflexIpAddrRange. :type: str diff --git a/intersight/models/hyperflex_ip_addr_range_ref.py b/intersight/models/hyperflex_ip_addr_range_ref.py new file mode 100644 index 00000000..53cd082c --- /dev/null +++ b/intersight/models/hyperflex_ip_addr_range_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexIpAddrRangeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexIpAddrRangeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexIpAddrRangeRef. + + :return: The moid of this HyperflexIpAddrRangeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexIpAddrRangeRef. + + :param moid: The moid of this HyperflexIpAddrRangeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexIpAddrRangeRef. + + :return: The object_type of this HyperflexIpAddrRangeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexIpAddrRangeRef. + + :param object_type: The object_type of this HyperflexIpAddrRangeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexIpAddrRangeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_iterator_string.py b/intersight/models/hyperflex_iterator_string.py index fa2483d0..f5be563e 100644 --- a/intersight/models/hyperflex_iterator_string.py +++ b/intersight/models/hyperflex_iterator_string.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_iterator_string_ref.py b/intersight/models/hyperflex_iterator_string_ref.py new file mode 100644 index 00000000..e07d25d5 --- /dev/null +++ b/intersight/models/hyperflex_iterator_string_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexIteratorStringRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexIteratorStringRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexIteratorStringRef. + + :return: The moid of this HyperflexIteratorStringRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexIteratorStringRef. + + :param moid: The moid of this HyperflexIteratorStringRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexIteratorStringRef. + + :return: The object_type of this HyperflexIteratorStringRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexIteratorStringRef. + + :param object_type: The object_type of this HyperflexIteratorStringRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexIteratorStringRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_local_credential_policy.py b/intersight/models/hyperflex_local_credential_policy.py index 5c61bfb7..10661fbe 100644 --- a/intersight/models/hyperflex_local_credential_policy.py +++ b/intersight/models/hyperflex_local_credential_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,23 @@ class HyperflexLocalCredentialPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'hxdp_root_pwd': 'str', 'hypervisor_admin': 'str', - 'hypervisor_admin_pwd': 'str' + 'hypervisor_admin_pwd': 'str', + 'is_hxdp_root_pwd_set': 'bool', + 'is_hypervisor_admin_pwd_set': 'bool', + 'organization': 'IamAccountRef' } attribute_map = { @@ -61,14 +63,16 @@ class HyperflexLocalCredentialPolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'hxdp_root_pwd': 'HxdpRootPwd', 'hypervisor_admin': 'HypervisorAdmin', - 'hypervisor_admin_pwd': 'HypervisorAdminPwd' + 'hypervisor_admin_pwd': 'HypervisorAdminPwd', + 'is_hxdp_root_pwd_set': 'IsHxdpRootPwdSet', + 'is_hypervisor_admin_pwd_set': 'IsHypervisorAdminPwdSet', + 'organization': 'Organization' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, hxdp_root_pwd=None, hypervisor_admin=None, hypervisor_admin_pwd=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, cluster_profiles=None, hxdp_root_pwd=None, hypervisor_admin=None, hypervisor_admin_pwd=None, is_hxdp_root_pwd_set=None, is_hypervisor_admin_pwd_set=None, organization=None): """ HyperflexLocalCredentialPolicy - a model defined in Swagger """ @@ -84,11 +88,13 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._hxdp_root_pwd = None self._hypervisor_admin = None self._hypervisor_admin_pwd = None + self._is_hxdp_root_pwd_set = None + self._is_hypervisor_admin_pwd_set = None + self._organization = None if account_moid is not None: self.account_moid = account_moid @@ -112,8 +118,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if hxdp_root_pwd is not None: @@ -122,6 +126,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.hypervisor_admin = hypervisor_admin if hypervisor_admin_pwd is not None: self.hypervisor_admin_pwd = hypervisor_admin_pwd + if is_hxdp_root_pwd_set is not None: + self.is_hxdp_root_pwd_set = is_hxdp_root_pwd_set + if is_hypervisor_admin_pwd_set is not None: + self.is_hypervisor_admin_pwd_set = is_hypervisor_admin_pwd_set + if organization is not None: + self.organization = organization @property def account_moid(self): @@ -153,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexLocalCredentialPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexLocalCredentialPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexLocalCredentialPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexLocalCredentialPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -376,34 +386,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexLocalCredentialPolicy. - - :return: The account of this HyperflexLocalCredentialPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexLocalCredentialPolicy. - - :param account: The account of this HyperflexLocalCredentialPolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexLocalCredentialPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexLocalCredentialPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -411,9 +401,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexLocalCredentialPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexLocalCredentialPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -422,7 +413,7 @@ def cluster_profiles(self, cluster_profiles): def hxdp_root_pwd(self): """ Gets the hxdp_root_pwd of this HyperflexLocalCredentialPolicy. - HX Storage Controller VM Password Must contain a minimum of 10 characters with at least 1 lower-case, 1 upper-case, 1 numeric, and 1 special character - !@#$%^&* + HX storage controller VM password Must contain a minimum of 10 characters with at least 1 lowercase, 1 uppercase, 1 numeric, and 1 special character - !@#$%^&* :return: The hxdp_root_pwd of this HyperflexLocalCredentialPolicy. :rtype: str @@ -433,7 +424,7 @@ def hxdp_root_pwd(self): def hxdp_root_pwd(self, hxdp_root_pwd): """ Sets the hxdp_root_pwd of this HyperflexLocalCredentialPolicy. - HX Storage Controller VM Password Must contain a minimum of 10 characters with at least 1 lower-case, 1 upper-case, 1 numeric, and 1 special character - !@#$%^&* + HX storage controller VM password Must contain a minimum of 10 characters with at least 1 lowercase, 1 uppercase, 1 numeric, and 1 special character - !@#$%^&* :param hxdp_root_pwd: The hxdp_root_pwd of this HyperflexLocalCredentialPolicy. :type: str @@ -445,7 +436,7 @@ def hxdp_root_pwd(self, hxdp_root_pwd): def hypervisor_admin(self): """ Gets the hypervisor_admin of this HyperflexLocalCredentialPolicy. - Hypervisor administrator username Must contain only alphanumeric characters + Hypervisor administrator username Must contain only alphanumeric characters Use the root account for ESXi deployments :return: The hypervisor_admin of this HyperflexLocalCredentialPolicy. :rtype: str @@ -456,7 +447,7 @@ def hypervisor_admin(self): def hypervisor_admin(self, hypervisor_admin): """ Sets the hypervisor_admin of this HyperflexLocalCredentialPolicy. - Hypervisor administrator username Must contain only alphanumeric characters + Hypervisor administrator username Must contain only alphanumeric characters Use the root account for ESXi deployments :param hypervisor_admin: The hypervisor_admin of this HyperflexLocalCredentialPolicy. :type: str @@ -468,7 +459,7 @@ def hypervisor_admin(self, hypervisor_admin): def hypervisor_admin_pwd(self): """ Gets the hypervisor_admin_pwd of this HyperflexLocalCredentialPolicy. - Hypervisor administrator password Password must be a minimum length of 6 characters. Follow the corresponding password policy governed by the hypervisor. + Enter the ESXi root password. Use the default password \"Cisco123\" for newly manufactured HX servers. A custom password should only be used if ESXi credentials were manually changed prior to deployment. :return: The hypervisor_admin_pwd of this HyperflexLocalCredentialPolicy. :rtype: str @@ -479,7 +470,7 @@ def hypervisor_admin_pwd(self): def hypervisor_admin_pwd(self, hypervisor_admin_pwd): """ Sets the hypervisor_admin_pwd of this HyperflexLocalCredentialPolicy. - Hypervisor administrator password Password must be a minimum length of 6 characters. Follow the corresponding password policy governed by the hypervisor. + Enter the ESXi root password. Use the default password \"Cisco123\" for newly manufactured HX servers. A custom password should only be used if ESXi credentials were manually changed prior to deployment. :param hypervisor_admin_pwd: The hypervisor_admin_pwd of this HyperflexLocalCredentialPolicy. :type: str @@ -487,6 +478,71 @@ def hypervisor_admin_pwd(self, hypervisor_admin_pwd): self._hypervisor_admin_pwd = hypervisor_admin_pwd + @property + def is_hxdp_root_pwd_set(self): + """ + Gets the is_hxdp_root_pwd_set of this HyperflexLocalCredentialPolicy. + + :return: The is_hxdp_root_pwd_set of this HyperflexLocalCredentialPolicy. + :rtype: bool + """ + return self._is_hxdp_root_pwd_set + + @is_hxdp_root_pwd_set.setter + def is_hxdp_root_pwd_set(self, is_hxdp_root_pwd_set): + """ + Sets the is_hxdp_root_pwd_set of this HyperflexLocalCredentialPolicy. + + :param is_hxdp_root_pwd_set: The is_hxdp_root_pwd_set of this HyperflexLocalCredentialPolicy. + :type: bool + """ + + self._is_hxdp_root_pwd_set = is_hxdp_root_pwd_set + + @property + def is_hypervisor_admin_pwd_set(self): + """ + Gets the is_hypervisor_admin_pwd_set of this HyperflexLocalCredentialPolicy. + + :return: The is_hypervisor_admin_pwd_set of this HyperflexLocalCredentialPolicy. + :rtype: bool + """ + return self._is_hypervisor_admin_pwd_set + + @is_hypervisor_admin_pwd_set.setter + def is_hypervisor_admin_pwd_set(self, is_hypervisor_admin_pwd_set): + """ + Sets the is_hypervisor_admin_pwd_set of this HyperflexLocalCredentialPolicy. + + :param is_hypervisor_admin_pwd_set: The is_hypervisor_admin_pwd_set of this HyperflexLocalCredentialPolicy. + :type: bool + """ + + self._is_hypervisor_admin_pwd_set = is_hypervisor_admin_pwd_set + + @property + def organization(self): + """ + Gets the organization of this HyperflexLocalCredentialPolicy. + Organization + + :return: The organization of this HyperflexLocalCredentialPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexLocalCredentialPolicy. + Organization + + :param organization: The organization of this HyperflexLocalCredentialPolicy. + :type: IamAccountRef + """ + + self._organization = organization + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/hyperflex_local_credential_policy_list.py b/intersight/models/hyperflex_local_credential_policy_list.py index f3f79441..407666bb 100644 --- a/intersight/models/hyperflex_local_credential_policy_list.py +++ b/intersight/models/hyperflex_local_credential_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_local_credential_policy_ref.py b/intersight/models/hyperflex_local_credential_policy_ref.py new file mode 100644 index 00000000..c08e23da --- /dev/null +++ b/intersight/models/hyperflex_local_credential_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexLocalCredentialPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexLocalCredentialPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexLocalCredentialPolicyRef. + + :return: The moid of this HyperflexLocalCredentialPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexLocalCredentialPolicyRef. + + :param moid: The moid of this HyperflexLocalCredentialPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexLocalCredentialPolicyRef. + + :return: The object_type of this HyperflexLocalCredentialPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexLocalCredentialPolicyRef. + + :param object_type: The object_type of this HyperflexLocalCredentialPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexLocalCredentialPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_mac_addr_prefix_range.py b/intersight/models/hyperflex_mac_addr_prefix_range.py index d9743711..13ee82e7 100644 --- a/intersight/models/hyperflex_mac_addr_prefix_range.py +++ b/intersight/models/hyperflex_mac_addr_prefix_range.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -57,6 +57,7 @@ def __init__(self, end_addr=None, start_addr=None): def end_addr(self): """ Gets the end_addr of this HyperflexMacAddrPrefixRange. + End address of a MAC address prefix range in the form of 00:25:B5:XX :return: The end_addr of this HyperflexMacAddrPrefixRange. :rtype: str @@ -67,6 +68,7 @@ def end_addr(self): def end_addr(self, end_addr): """ Sets the end_addr of this HyperflexMacAddrPrefixRange. + End address of a MAC address prefix range in the form of 00:25:B5:XX :param end_addr: The end_addr of this HyperflexMacAddrPrefixRange. :type: str @@ -78,6 +80,7 @@ def end_addr(self, end_addr): def start_addr(self): """ Gets the start_addr of this HyperflexMacAddrPrefixRange. + Start address of a MAC address prefix range in the form of 00:25:B5:XX :return: The start_addr of this HyperflexMacAddrPrefixRange. :rtype: str @@ -88,6 +91,7 @@ def start_addr(self): def start_addr(self, start_addr): """ Sets the start_addr of this HyperflexMacAddrPrefixRange. + Start address of a MAC address prefix range in the form of 00:25:B5:XX :param start_addr: The start_addr of this HyperflexMacAddrPrefixRange. :type: str diff --git a/intersight/models/hyperflex_mac_addr_prefix_range_ref.py b/intersight/models/hyperflex_mac_addr_prefix_range_ref.py new file mode 100644 index 00000000..b7473a07 --- /dev/null +++ b/intersight/models/hyperflex_mac_addr_prefix_range_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexMacAddrPrefixRangeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexMacAddrPrefixRangeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexMacAddrPrefixRangeRef. + + :return: The moid of this HyperflexMacAddrPrefixRangeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexMacAddrPrefixRangeRef. + + :param moid: The moid of this HyperflexMacAddrPrefixRangeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexMacAddrPrefixRangeRef. + + :return: The object_type of this HyperflexMacAddrPrefixRangeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexMacAddrPrefixRangeRef. + + :param object_type: The object_type of this HyperflexMacAddrPrefixRangeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexMacAddrPrefixRangeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_managed_object_reference.py b/intersight/models/hyperflex_managed_object_reference.py index 5f57d371..7ef4ede0 100644 --- a/intersight/models/hyperflex_managed_object_reference.py +++ b/intersight/models/hyperflex_managed_object_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_managed_object_reference_ref.py b/intersight/models/hyperflex_managed_object_reference_ref.py new file mode 100644 index 00000000..cd148eea --- /dev/null +++ b/intersight/models/hyperflex_managed_object_reference_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexManagedObjectReferenceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexManagedObjectReferenceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexManagedObjectReferenceRef. + + :return: The moid of this HyperflexManagedObjectReferenceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexManagedObjectReferenceRef. + + :param moid: The moid of this HyperflexManagedObjectReferenceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexManagedObjectReferenceRef. + + :return: The object_type of this HyperflexManagedObjectReferenceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexManagedObjectReferenceRef. + + :param object_type: The object_type of this HyperflexManagedObjectReferenceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexManagedObjectReferenceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_named_vlan.py b/intersight/models/hyperflex_named_vlan.py index 672d9ea1..b12ae56e 100644 --- a/intersight/models/hyperflex_named_vlan.py +++ b/intersight/models/hyperflex_named_vlan.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -57,6 +57,7 @@ def __init__(self, name=None, vlan_id=None): def name(self): """ Gets the name of this HyperflexNamedVlan. + VLAN name :return: The name of this HyperflexNamedVlan. :rtype: str @@ -67,6 +68,7 @@ def name(self): def name(self, name): """ Sets the name of this HyperflexNamedVlan. + VLAN name :param name: The name of this HyperflexNamedVlan. :type: str @@ -78,6 +80,7 @@ def name(self, name): def vlan_id(self): """ Gets the vlan_id of this HyperflexNamedVlan. + VLAN ID :return: The vlan_id of this HyperflexNamedVlan. :rtype: int @@ -88,6 +91,7 @@ def vlan_id(self): def vlan_id(self, vlan_id): """ Sets the vlan_id of this HyperflexNamedVlan. + VLAN ID :param vlan_id: The vlan_id of this HyperflexNamedVlan. :type: int diff --git a/intersight/models/hyperflex_named_vlan_ref.py b/intersight/models/hyperflex_named_vlan_ref.py new file mode 100644 index 00000000..b18c7d73 --- /dev/null +++ b/intersight/models/hyperflex_named_vlan_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexNamedVlanRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexNamedVlanRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexNamedVlanRef. + + :return: The moid of this HyperflexNamedVlanRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexNamedVlanRef. + + :param moid: The moid of this HyperflexNamedVlanRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexNamedVlanRef. + + :return: The object_type of this HyperflexNamedVlanRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexNamedVlanRef. + + :param object_type: The object_type of this HyperflexNamedVlanRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexNamedVlanRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_named_vsan.py b/intersight/models/hyperflex_named_vsan.py index 16ce6828..70371908 100644 --- a/intersight/models/hyperflex_named_vsan.py +++ b/intersight/models/hyperflex_named_vsan.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -57,6 +57,7 @@ def __init__(self, name=None, vsan_id=None): def name(self): """ Gets the name of this HyperflexNamedVsan. + VSAN name :return: The name of this HyperflexNamedVsan. :rtype: str @@ -67,6 +68,7 @@ def name(self): def name(self, name): """ Sets the name of this HyperflexNamedVsan. + VSAN name :param name: The name of this HyperflexNamedVsan. :type: str @@ -78,6 +80,7 @@ def name(self, name): def vsan_id(self): """ Gets the vsan_id of this HyperflexNamedVsan. + VSAN ID :return: The vsan_id of this HyperflexNamedVsan. :rtype: int @@ -88,6 +91,7 @@ def vsan_id(self): def vsan_id(self, vsan_id): """ Sets the vsan_id of this HyperflexNamedVsan. + VSAN ID :param vsan_id: The vsan_id of this HyperflexNamedVsan. :type: int diff --git a/intersight/models/hyperflex_named_vsan_ref.py b/intersight/models/hyperflex_named_vsan_ref.py new file mode 100644 index 00000000..ff5d7aa1 --- /dev/null +++ b/intersight/models/hyperflex_named_vsan_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexNamedVsanRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexNamedVsanRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexNamedVsanRef. + + :return: The moid of this HyperflexNamedVsanRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexNamedVsanRef. + + :param moid: The moid of this HyperflexNamedVsanRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexNamedVsanRef. + + :return: The object_type of this HyperflexNamedVsanRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexNamedVsanRef. + + :param object_type: The object_type of this HyperflexNamedVsanRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexNamedVsanRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_node_config_policy.py b/intersight/models/hyperflex_node_config_policy.py index a8248610..e47d4939 100644 --- a/intersight/models/hyperflex_node_config_policy.py +++ b/intersight/models/hyperflex_node_config_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,22 @@ class HyperflexNodeConfigPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'data_ip_range': 'HyperflexIpAddrRange', 'hxdp_ip_range': 'HyperflexIpAddrRange', 'mgmt_ip_range': 'HyperflexIpAddrRange', - 'node_name_prefix': 'str' + 'node_name_prefix': 'str', + 'organization': 'IamAccountRef' } attribute_map = { @@ -62,15 +62,15 @@ class HyperflexNodeConfigPolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'data_ip_range': 'DataIpRange', 'hxdp_ip_range': 'HxdpIpRange', 'mgmt_ip_range': 'MgmtIpRange', - 'node_name_prefix': 'NodeNamePrefix' + 'node_name_prefix': 'NodeNamePrefix', + 'organization': 'Organization' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, data_ip_range=None, hxdp_ip_range=None, mgmt_ip_range=None, node_name_prefix=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, cluster_profiles=None, data_ip_range=None, hxdp_ip_range=None, mgmt_ip_range=None, node_name_prefix=None, organization=None): """ HyperflexNodeConfigPolicy - a model defined in Swagger """ @@ -86,12 +86,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._data_ip_range = None self._hxdp_ip_range = None self._mgmt_ip_range = None self._node_name_prefix = None + self._organization = None if account_moid is not None: self.account_moid = account_moid @@ -115,8 +115,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if data_ip_range is not None: @@ -127,6 +125,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.mgmt_ip_range = mgmt_ip_range if node_name_prefix is not None: self.node_name_prefix = node_name_prefix + if organization is not None: + self.organization = organization @property def account_moid(self): @@ -158,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexNodeConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexNodeConfigPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexNodeConfigPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexNodeConfigPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -381,34 +381,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexNodeConfigPolicy. - - :return: The account of this HyperflexNodeConfigPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexNodeConfigPolicy. - - :param account: The account of this HyperflexNodeConfigPolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexNodeConfigPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexNodeConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -416,9 +396,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexNodeConfigPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexNodeConfigPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -427,6 +408,7 @@ def cluster_profiles(self, cluster_profiles): def data_ip_range(self): """ Gets the data_ip_range of this HyperflexNodeConfigPolicy. + Storage data IP range :return: The data_ip_range of this HyperflexNodeConfigPolicy. :rtype: HyperflexIpAddrRange @@ -437,6 +419,7 @@ def data_ip_range(self): def data_ip_range(self, data_ip_range): """ Sets the data_ip_range of this HyperflexNodeConfigPolicy. + Storage data IP range :param data_ip_range: The data_ip_range of this HyperflexNodeConfigPolicy. :type: HyperflexIpAddrRange @@ -448,6 +431,7 @@ def data_ip_range(self, data_ip_range): def hxdp_ip_range(self): """ Gets the hxdp_ip_range of this HyperflexNodeConfigPolicy. + HX storage management IP range :return: The hxdp_ip_range of this HyperflexNodeConfigPolicy. :rtype: HyperflexIpAddrRange @@ -458,6 +442,7 @@ def hxdp_ip_range(self): def hxdp_ip_range(self, hxdp_ip_range): """ Sets the hxdp_ip_range of this HyperflexNodeConfigPolicy. + HX storage management IP range :param hxdp_ip_range: The hxdp_ip_range of this HyperflexNodeConfigPolicy. :type: HyperflexIpAddrRange @@ -469,6 +454,7 @@ def hxdp_ip_range(self, hxdp_ip_range): def mgmt_ip_range(self): """ Gets the mgmt_ip_range of this HyperflexNodeConfigPolicy. + Management IP range :return: The mgmt_ip_range of this HyperflexNodeConfigPolicy. :rtype: HyperflexIpAddrRange @@ -479,6 +465,7 @@ def mgmt_ip_range(self): def mgmt_ip_range(self, mgmt_ip_range): """ Sets the mgmt_ip_range of this HyperflexNodeConfigPolicy. + Management IP range :param mgmt_ip_range: The mgmt_ip_range of this HyperflexNodeConfigPolicy. :type: HyperflexIpAddrRange @@ -490,6 +477,7 @@ def mgmt_ip_range(self, mgmt_ip_range): def node_name_prefix(self): """ Gets the node_name_prefix of this HyperflexNodeConfigPolicy. + Specifies a 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 and must only contain alphanumeric characters or dash (-). :return: The node_name_prefix of this HyperflexNodeConfigPolicy. :rtype: str @@ -500,6 +488,7 @@ def node_name_prefix(self): def node_name_prefix(self, node_name_prefix): """ Sets the node_name_prefix of this HyperflexNodeConfigPolicy. + Specifies a 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 and must only contain alphanumeric characters or dash (-). :param node_name_prefix: The node_name_prefix of this HyperflexNodeConfigPolicy. :type: str @@ -507,6 +496,29 @@ def node_name_prefix(self, node_name_prefix): self._node_name_prefix = node_name_prefix + @property + def organization(self): + """ + Gets the organization of this HyperflexNodeConfigPolicy. + Organization + + :return: The organization of this HyperflexNodeConfigPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexNodeConfigPolicy. + Organization + + :param organization: The organization of this HyperflexNodeConfigPolicy. + :type: IamAccountRef + """ + + self._organization = organization + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/hyperflex_node_config_policy_list.py b/intersight/models/hyperflex_node_config_policy_list.py index b5b97d1a..4d2f1706 100644 --- a/intersight/models/hyperflex_node_config_policy_list.py +++ b/intersight/models/hyperflex_node_config_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_node_config_policy_ref.py b/intersight/models/hyperflex_node_config_policy_ref.py new file mode 100644 index 00000000..9247940a --- /dev/null +++ b/intersight/models/hyperflex_node_config_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexNodeConfigPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexNodeConfigPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexNodeConfigPolicyRef. + + :return: The moid of this HyperflexNodeConfigPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexNodeConfigPolicyRef. + + :param moid: The moid of this HyperflexNodeConfigPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexNodeConfigPolicyRef. + + :return: The object_type of this HyperflexNodeConfigPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexNodeConfigPolicyRef. + + :param object_type: The object_type of this HyperflexNodeConfigPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexNodeConfigPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_node_profile.py b/intersight/models/hyperflex_node_profile.py index b75862a3..6bbcdc40 100644 --- a/intersight/models/hyperflex_node_profile.py +++ b/intersight/models/hyperflex_node_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,24 +32,24 @@ class HyperflexNodeProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'src_template': 'MoMoRef', + 'src_template': 'PolicyAbstractProfileRef', 'type': 'str', - 'assigned_server': 'MoMoRef', - 'cluster_profile': 'MoMoRef', - 'esx_data_ip': 'str', - 'esx_mgmt_ip': 'str', + 'assigned_server': 'ComputeRackUnitRef', + 'cluster_profile': 'HyperflexClusterProfileRef', 'hxdp_data_ip': 'str', - 'hxdp_mgmt_ip': 'str' + 'hxdp_mgmt_ip': 'str', + 'hypervisor_data_ip': 'str', + 'hypervisor_mgmt_ip': 'str' } attribute_map = { @@ -68,13 +68,13 @@ class HyperflexNodeProfile(object): 'type': 'Type', 'assigned_server': 'AssignedServer', 'cluster_profile': 'ClusterProfile', - 'esx_data_ip': 'EsxDataIp', - 'esx_mgmt_ip': 'EsxMgmtIp', 'hxdp_data_ip': 'HxdpDataIp', - 'hxdp_mgmt_ip': 'HxdpMgmtIp' + 'hxdp_mgmt_ip': 'HxdpMgmtIp', + 'hypervisor_data_ip': 'HypervisorDataIp', + 'hypervisor_mgmt_ip': 'HypervisorMgmtIp' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, src_template=None, type='instance', assigned_server=None, cluster_profile=None, esx_data_ip=None, esx_mgmt_ip=None, hxdp_data_ip=None, hxdp_mgmt_ip=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, src_template=None, type='instance', assigned_server=None, cluster_profile=None, hxdp_data_ip=None, hxdp_mgmt_ip=None, hypervisor_data_ip=None, hypervisor_mgmt_ip=None): """ HyperflexNodeProfile - a model defined in Swagger """ @@ -94,10 +94,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._type = None self._assigned_server = None self._cluster_profile = None - self._esx_data_ip = None - self._esx_mgmt_ip = None self._hxdp_data_ip = None self._hxdp_mgmt_ip = None + self._hypervisor_data_ip = None + self._hypervisor_mgmt_ip = None if account_moid is not None: self.account_moid = account_moid @@ -129,14 +129,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.assigned_server = assigned_server if cluster_profile is not None: self.cluster_profile = cluster_profile - if esx_data_ip is not None: - self.esx_data_ip = esx_data_ip - if esx_mgmt_ip is not None: - self.esx_mgmt_ip = esx_mgmt_ip if hxdp_data_ip is not None: self.hxdp_data_ip = hxdp_data_ip if hxdp_mgmt_ip is not None: self.hxdp_mgmt_ip = hxdp_mgmt_ip + if hypervisor_data_ip is not None: + self.hypervisor_data_ip = hypervisor_data_ip + if hypervisor_mgmt_ip is not None: + self.hypervisor_mgmt_ip = hypervisor_mgmt_ip @property def account_moid(self): @@ -168,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexNodeProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexNodeProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexNodeProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexNodeProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -397,7 +397,7 @@ def src_template(self): Gets the src_template of this HyperflexNodeProfile. :return: The src_template of this HyperflexNodeProfile. - :rtype: MoMoRef + :rtype: PolicyAbstractProfileRef """ return self._src_template @@ -407,7 +407,7 @@ def src_template(self, src_template): Sets the src_template of this HyperflexNodeProfile. :param src_template: The src_template of this HyperflexNodeProfile. - :type: MoMoRef + :type: PolicyAbstractProfileRef """ self._src_template = src_template @@ -445,9 +445,10 @@ def type(self, type): def assigned_server(self): """ Gets the assigned_server of this HyperflexNodeProfile. + The physical server assigned to this node profile :return: The assigned_server of this HyperflexNodeProfile. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._assigned_server @@ -455,9 +456,10 @@ def assigned_server(self): def assigned_server(self, assigned_server): """ Sets the assigned_server of this HyperflexNodeProfile. + The physical server assigned to this node profile :param assigned_server: The assigned_server of this HyperflexNodeProfile. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._assigned_server = assigned_server @@ -468,7 +470,7 @@ def cluster_profile(self): Gets the cluster_profile of this HyperflexNodeProfile. :return: The cluster_profile of this HyperflexNodeProfile. - :rtype: MoMoRef + :rtype: HyperflexClusterProfileRef """ return self._cluster_profile @@ -478,102 +480,102 @@ def cluster_profile(self, cluster_profile): Sets the cluster_profile of this HyperflexNodeProfile. :param cluster_profile: The cluster_profile of this HyperflexNodeProfile. - :type: MoMoRef + :type: HyperflexClusterProfileRef """ self._cluster_profile = cluster_profile @property - def esx_data_ip(self): + def hxdp_data_ip(self): """ - Gets the esx_data_ip of this HyperflexNodeProfile. - IP address for Hypervisor Data Network + Gets the hxdp_data_ip of this HyperflexNodeProfile. + IP address for storage data network (Controller VM interface) - :return: The esx_data_ip of this HyperflexNodeProfile. + :return: The hxdp_data_ip of this HyperflexNodeProfile. :rtype: str """ - return self._esx_data_ip + return self._hxdp_data_ip - @esx_data_ip.setter - def esx_data_ip(self, esx_data_ip): + @hxdp_data_ip.setter + def hxdp_data_ip(self, hxdp_data_ip): """ - Sets the esx_data_ip of this HyperflexNodeProfile. - IP address for Hypervisor Data Network + Sets the hxdp_data_ip of this HyperflexNodeProfile. + IP address for storage data network (Controller VM interface) - :param esx_data_ip: The esx_data_ip of this HyperflexNodeProfile. + :param hxdp_data_ip: The hxdp_data_ip of this HyperflexNodeProfile. :type: str """ - self._esx_data_ip = esx_data_ip + self._hxdp_data_ip = hxdp_data_ip @property - def esx_mgmt_ip(self): + def hxdp_mgmt_ip(self): """ - Gets the esx_mgmt_ip of this HyperflexNodeProfile. - IP address for Hypervisor Management + Gets the hxdp_mgmt_ip of this HyperflexNodeProfile. + IP address for HyperFlex management network - :return: The esx_mgmt_ip of this HyperflexNodeProfile. + :return: The hxdp_mgmt_ip of this HyperflexNodeProfile. :rtype: str """ - return self._esx_mgmt_ip + return self._hxdp_mgmt_ip - @esx_mgmt_ip.setter - def esx_mgmt_ip(self, esx_mgmt_ip): + @hxdp_mgmt_ip.setter + def hxdp_mgmt_ip(self, hxdp_mgmt_ip): """ - Sets the esx_mgmt_ip of this HyperflexNodeProfile. - IP address for Hypervisor Management + Sets the hxdp_mgmt_ip of this HyperflexNodeProfile. + IP address for HyperFlex management network - :param esx_mgmt_ip: The esx_mgmt_ip of this HyperflexNodeProfile. + :param hxdp_mgmt_ip: The hxdp_mgmt_ip of this HyperflexNodeProfile. :type: str """ - self._esx_mgmt_ip = esx_mgmt_ip + self._hxdp_mgmt_ip = hxdp_mgmt_ip @property - def hxdp_data_ip(self): + def hypervisor_data_ip(self): """ - Gets the hxdp_data_ip of this HyperflexNodeProfile. - IP address for HX Data Platform Data Network + Gets the hypervisor_data_ip of this HyperflexNodeProfile. + IP address for storage data network (Hypervisor interface) - :return: The hxdp_data_ip of this HyperflexNodeProfile. + :return: The hypervisor_data_ip of this HyperflexNodeProfile. :rtype: str """ - return self._hxdp_data_ip + return self._hypervisor_data_ip - @hxdp_data_ip.setter - def hxdp_data_ip(self, hxdp_data_ip): + @hypervisor_data_ip.setter + def hypervisor_data_ip(self, hypervisor_data_ip): """ - Sets the hxdp_data_ip of this HyperflexNodeProfile. - IP address for HX Data Platform Data Network + Sets the hypervisor_data_ip of this HyperflexNodeProfile. + IP address for storage data network (Hypervisor interface) - :param hxdp_data_ip: The hxdp_data_ip of this HyperflexNodeProfile. + :param hypervisor_data_ip: The hypervisor_data_ip of this HyperflexNodeProfile. :type: str """ - self._hxdp_data_ip = hxdp_data_ip + self._hypervisor_data_ip = hypervisor_data_ip @property - def hxdp_mgmt_ip(self): + def hypervisor_mgmt_ip(self): """ - Gets the hxdp_mgmt_ip of this HyperflexNodeProfile. - IP address for HX Data Platform Management + Gets the hypervisor_mgmt_ip of this HyperflexNodeProfile. + IP address for Hypervisor management network - :return: The hxdp_mgmt_ip of this HyperflexNodeProfile. + :return: The hypervisor_mgmt_ip of this HyperflexNodeProfile. :rtype: str """ - return self._hxdp_mgmt_ip + return self._hypervisor_mgmt_ip - @hxdp_mgmt_ip.setter - def hxdp_mgmt_ip(self, hxdp_mgmt_ip): + @hypervisor_mgmt_ip.setter + def hypervisor_mgmt_ip(self, hypervisor_mgmt_ip): """ - Sets the hxdp_mgmt_ip of this HyperflexNodeProfile. - IP address for HX Data Platform Management + Sets the hypervisor_mgmt_ip of this HyperflexNodeProfile. + IP address for Hypervisor management network - :param hxdp_mgmt_ip: The hxdp_mgmt_ip of this HyperflexNodeProfile. + :param hypervisor_mgmt_ip: The hypervisor_mgmt_ip of this HyperflexNodeProfile. :type: str """ - self._hxdp_mgmt_ip = hxdp_mgmt_ip + self._hypervisor_mgmt_ip = hypervisor_mgmt_ip def to_dict(self): """ diff --git a/intersight/models/hyperflex_node_profile_list.py b/intersight/models/hyperflex_node_profile_list.py index c1b177dd..f483a28d 100644 --- a/intersight/models/hyperflex_node_profile_list.py +++ b/intersight/models/hyperflex_node_profile_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_node_profile_ref.py b/intersight/models/hyperflex_node_profile_ref.py new file mode 100644 index 00000000..95a2f5fb --- /dev/null +++ b/intersight/models/hyperflex_node_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexNodeProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexNodeProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexNodeProfileRef. + + :return: The moid of this HyperflexNodeProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexNodeProfileRef. + + :param moid: The moid of this HyperflexNodeProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexNodeProfileRef. + + :return: The object_type of this HyperflexNodeProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexNodeProfileRef. + + :param object_type: The object_type of this HyperflexNodeProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexNodeProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_proxy_setting_policy.py b/intersight/models/hyperflex_proxy_setting_policy.py new file mode 100644 index 00000000..aa0d2efc --- /dev/null +++ b/intersight/models/hyperflex_proxy_setting_policy.py @@ -0,0 +1,599 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexProxySettingPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'description': 'str', + 'name': 'str', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', + 'hostname': 'str', + 'is_password_set': 'bool', + 'organization': 'IamAccountRef', + 'password': 'str', + 'port': 'int', + 'username': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'description': 'Description', + 'name': 'Name', + 'cluster_profiles': 'ClusterProfiles', + 'hostname': 'Hostname', + 'is_password_set': 'IsPasswordSet', + 'organization': 'Organization', + 'password': 'Password', + 'port': 'Port', + 'username': 'Username' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, cluster_profiles=None, hostname=None, is_password_set=None, organization=None, password=None, port=None, username=None): + """ + HyperflexProxySettingPolicy - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._description = None + self._name = None + self._cluster_profiles = None + self._hostname = None + self._is_password_set = None + self._organization = None + self._password = None + self._port = None + self._username = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if description is not None: + self.description = description + if name is not None: + self.name = name + if cluster_profiles is not None: + self.cluster_profiles = cluster_profiles + if hostname is not None: + self.hostname = hostname + if is_password_set is not None: + self.is_password_set = is_password_set + if organization is not None: + self.organization = organization + if password is not None: + self.password = password + if port is not None: + self.port = port + if username is not None: + self.username = username + + @property + def account_moid(self): + """ + Gets the account_moid of this HyperflexProxySettingPolicy. + The Account ID for this managed object. + + :return: The account_moid of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HyperflexProxySettingPolicy. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HyperflexProxySettingPolicy. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HyperflexProxySettingPolicy. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HyperflexProxySettingPolicy. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HyperflexProxySettingPolicy. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HyperflexProxySettingPolicy. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HyperflexProxySettingPolicy. + The time when this managed object was created. + + :return: The create_time of this HyperflexProxySettingPolicy. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HyperflexProxySettingPolicy. + The time when this managed object was created. + + :param create_time: The create_time of this HyperflexProxySettingPolicy. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HyperflexProxySettingPolicy. + The time when this managed object was last modified. + + :return: The mod_time of this HyperflexProxySettingPolicy. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HyperflexProxySettingPolicy. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HyperflexProxySettingPolicy. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HyperflexProxySettingPolicy. + A unique identifier of this Managed Object instance. + + :return: The moid of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexProxySettingPolicy. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HyperflexProxySettingPolicy. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexProxySettingPolicy. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexProxySettingPolicy. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HyperflexProxySettingPolicy. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HyperflexProxySettingPolicy. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HyperflexProxySettingPolicy. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HyperflexProxySettingPolicy. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HyperflexProxySettingPolicy. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HyperflexProxySettingPolicy. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HyperflexProxySettingPolicy. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HyperflexProxySettingPolicy. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HyperflexProxySettingPolicy. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HyperflexProxySettingPolicy. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HyperflexProxySettingPolicy. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HyperflexProxySettingPolicy. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HyperflexProxySettingPolicy. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def description(self): + """ + Gets the description of this HyperflexProxySettingPolicy. + Description of the policy. + + :return: The description of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this HyperflexProxySettingPolicy. + Description of the policy. + + :param description: The description of this HyperflexProxySettingPolicy. + :type: str + """ + + self._description = description + + @property + def name(self): + """ + Gets the name of this HyperflexProxySettingPolicy. + Name of the policy. + + :return: The name of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this HyperflexProxySettingPolicy. + Name of the policy. + + :param name: The name of this HyperflexProxySettingPolicy. + :type: str + """ + + self._name = name + + @property + def cluster_profiles(self): + """ + Gets the cluster_profiles of this HyperflexProxySettingPolicy. + List of cluster profiles using this policy + + :return: The cluster_profiles of this HyperflexProxySettingPolicy. + :rtype: list[HyperflexClusterProfileRef] + """ + return self._cluster_profiles + + @cluster_profiles.setter + def cluster_profiles(self, cluster_profiles): + """ + Sets the cluster_profiles of this HyperflexProxySettingPolicy. + List of cluster profiles using this policy + + :param cluster_profiles: The cluster_profiles of this HyperflexProxySettingPolicy. + :type: list[HyperflexClusterProfileRef] + """ + + self._cluster_profiles = cluster_profiles + + @property + def hostname(self): + """ + Gets the hostname of this HyperflexProxySettingPolicy. + HTTP Proxy server FQDN or IP + + :return: The hostname of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this HyperflexProxySettingPolicy. + HTTP Proxy server FQDN or IP + + :param hostname: The hostname of this HyperflexProxySettingPolicy. + :type: str + """ + + self._hostname = hostname + + @property + def is_password_set(self): + """ + Gets the is_password_set of this HyperflexProxySettingPolicy. + + :return: The is_password_set of this HyperflexProxySettingPolicy. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this HyperflexProxySettingPolicy. + + :param is_password_set: The is_password_set of this HyperflexProxySettingPolicy. + :type: bool + """ + + self._is_password_set = is_password_set + + @property + def organization(self): + """ + Gets the organization of this HyperflexProxySettingPolicy. + Organization + + :return: The organization of this HyperflexProxySettingPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexProxySettingPolicy. + Organization + + :param organization: The organization of this HyperflexProxySettingPolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def password(self): + """ + Gets the password of this HyperflexProxySettingPolicy. + HTTP Proxy password. It must contain at least 6 characters. + + :return: The password of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this HyperflexProxySettingPolicy. + HTTP Proxy password. It must contain at least 6 characters. + + :param password: The password of this HyperflexProxySettingPolicy. + :type: str + """ + + self._password = password + + @property + def port(self): + """ + Gets the port of this HyperflexProxySettingPolicy. + HTTP Proxy port number + + :return: The port of this HyperflexProxySettingPolicy. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this HyperflexProxySettingPolicy. + HTTP Proxy port number + + :param port: The port of this HyperflexProxySettingPolicy. + :type: int + """ + + self._port = port + + @property + def username(self): + """ + Gets the username of this HyperflexProxySettingPolicy. + HTTP Proxy username + + :return: The username of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this HyperflexProxySettingPolicy. + HTTP Proxy username + + :param username: The username of this HyperflexProxySettingPolicy. + :type: str + """ + + self._username = username + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexProxySettingPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_proxy_setting_policy_list.py b/intersight/models/hyperflex_proxy_setting_policy_list.py new file mode 100644 index 00000000..b285b239 --- /dev/null +++ b/intersight/models/hyperflex_proxy_setting_policy_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexProxySettingPolicyList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HyperflexProxySettingPolicy]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HyperflexProxySettingPolicyList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HyperflexProxySettingPolicyList. + The number of hyperflexProxySettingPolicies matching your request in total for all pages. + + :return: The count of this HyperflexProxySettingPolicyList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HyperflexProxySettingPolicyList. + The number of hyperflexProxySettingPolicies matching your request in total for all pages. + + :param count: The count of this HyperflexProxySettingPolicyList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HyperflexProxySettingPolicyList. + The array of hyperflexProxySettingPolicies matching your request. + + :return: The results of this HyperflexProxySettingPolicyList. + :rtype: list[HyperflexProxySettingPolicy] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HyperflexProxySettingPolicyList. + The array of hyperflexProxySettingPolicies matching your request. + + :param results: The results of this HyperflexProxySettingPolicyList. + :type: list[HyperflexProxySettingPolicy] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexProxySettingPolicyList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_proxy_setting_policy_ref.py b/intersight/models/hyperflex_proxy_setting_policy_ref.py new file mode 100644 index 00000000..9657b7cc --- /dev/null +++ b/intersight/models/hyperflex_proxy_setting_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexProxySettingPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexProxySettingPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexProxySettingPolicyRef. + + :return: The moid of this HyperflexProxySettingPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexProxySettingPolicyRef. + + :param moid: The moid of this HyperflexProxySettingPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexProxySettingPolicyRef. + + :return: The object_type of this HyperflexProxySettingPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexProxySettingPolicyRef. + + :param object_type: The object_type of this HyperflexProxySettingPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexProxySettingPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_st_platform_cluster_healing_info.py b/intersight/models/hyperflex_st_platform_cluster_healing_info.py index 6c6583be..071ec4d6 100644 --- a/intersight/models/hyperflex_st_platform_cluster_healing_info.py +++ b/intersight/models/hyperflex_st_platform_cluster_healing_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_st_platform_cluster_healing_info_ref.py b/intersight/models/hyperflex_st_platform_cluster_healing_info_ref.py new file mode 100644 index 00000000..77fdfa48 --- /dev/null +++ b/intersight/models/hyperflex_st_platform_cluster_healing_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexStPlatformClusterHealingInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexStPlatformClusterHealingInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexStPlatformClusterHealingInfoRef. + + :return: The moid of this HyperflexStPlatformClusterHealingInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexStPlatformClusterHealingInfoRef. + + :param moid: The moid of this HyperflexStPlatformClusterHealingInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexStPlatformClusterHealingInfoRef. + + :return: The object_type of this HyperflexStPlatformClusterHealingInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexStPlatformClusterHealingInfoRef. + + :param object_type: The object_type of this HyperflexStPlatformClusterHealingInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexStPlatformClusterHealingInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_st_platform_cluster_resiliency_info.py b/intersight/models/hyperflex_st_platform_cluster_resiliency_info.py index 52425798..6cc2a874 100644 --- a/intersight/models/hyperflex_st_platform_cluster_resiliency_info.py +++ b/intersight/models/hyperflex_st_platform_cluster_resiliency_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_st_platform_cluster_resiliency_info_ref.py b/intersight/models/hyperflex_st_platform_cluster_resiliency_info_ref.py new file mode 100644 index 00000000..ac819a46 --- /dev/null +++ b/intersight/models/hyperflex_st_platform_cluster_resiliency_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexStPlatformClusterResiliencyInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexStPlatformClusterResiliencyInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexStPlatformClusterResiliencyInfoRef. + + :return: The moid of this HyperflexStPlatformClusterResiliencyInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexStPlatformClusterResiliencyInfoRef. + + :param moid: The moid of this HyperflexStPlatformClusterResiliencyInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexStPlatformClusterResiliencyInfoRef. + + :return: The object_type of this HyperflexStPlatformClusterResiliencyInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexStPlatformClusterResiliencyInfoRef. + + :param object_type: The object_type of this HyperflexStPlatformClusterResiliencyInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexStPlatformClusterResiliencyInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_summary.py b/intersight/models/hyperflex_summary.py index 2107943d..b621318a 100644 --- a/intersight/models/hyperflex_summary.py +++ b/intersight/models/hyperflex_summary.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_summary_ref.py b/intersight/models/hyperflex_summary_ref.py new file mode 100644 index 00000000..9a0fddb2 --- /dev/null +++ b/intersight/models/hyperflex_summary_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexSummaryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexSummaryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexSummaryRef. + + :return: The moid of this HyperflexSummaryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexSummaryRef. + + :param moid: The moid of this HyperflexSummaryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexSummaryRef. + + :return: The object_type of this HyperflexSummaryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexSummaryRef. + + :param object_type: The object_type of this HyperflexSummaryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexSummaryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_sys_config_policy.py b/intersight/models/hyperflex_sys_config_policy.py index 746e3879..612aa789 100644 --- a/intersight/models/hyperflex_sys_config_policy.py +++ b/intersight/models/hyperflex_sys_config_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class HyperflexSysConfigPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'dns_servers': 'list[str]', 'ntp_servers': 'list[str]', + 'organization': 'IamAccountRef', 'timezone': 'str' } @@ -61,14 +61,14 @@ class HyperflexSysConfigPolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'dns_servers': 'DnsServers', 'ntp_servers': 'NtpServers', + 'organization': 'Organization', 'timezone': 'Timezone' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, dns_servers=None, ntp_servers=None, timezone=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, cluster_profiles=None, dns_servers=None, ntp_servers=None, organization=None, timezone=None): """ HyperflexSysConfigPolicy - a model defined in Swagger """ @@ -84,10 +84,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._dns_servers = None self._ntp_servers = None + self._organization = None self._timezone = None if account_moid is not None: @@ -112,14 +112,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if dns_servers is not None: self.dns_servers = dns_servers if ntp_servers is not None: self.ntp_servers = ntp_servers + if organization is not None: + self.organization = organization if timezone is not None: self.timezone = timezone @@ -153,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexSysConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexSysConfigPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexSysConfigPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexSysConfigPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -376,34 +376,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexSysConfigPolicy. - - :return: The account of this HyperflexSysConfigPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexSysConfigPolicy. - - :param account: The account of this HyperflexSysConfigPolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexSysConfigPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexSysConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -411,9 +391,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexSysConfigPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexSysConfigPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -422,6 +403,7 @@ def cluster_profiles(self, cluster_profiles): def dns_servers(self): """ Gets the dns_servers of this HyperflexSysConfigPolicy. + Enter one or more DNS servers. A DNS server that can resolve public domains is required for Intersight management. :return: The dns_servers of this HyperflexSysConfigPolicy. :rtype: list[str] @@ -432,6 +414,7 @@ def dns_servers(self): def dns_servers(self, dns_servers): """ Sets the dns_servers of this HyperflexSysConfigPolicy. + Enter one or more DNS servers. A DNS server that can resolve public domains is required for Intersight management. :param dns_servers: The dns_servers of this HyperflexSysConfigPolicy. :type: list[str] @@ -443,6 +426,7 @@ def dns_servers(self, dns_servers): def ntp_servers(self): """ Gets the ntp_servers of this HyperflexSysConfigPolicy. + Enter one or more NTP servers (IP address or FQDN). A local NTP server is highly recommended. :return: The ntp_servers of this HyperflexSysConfigPolicy. :rtype: list[str] @@ -453,6 +437,7 @@ def ntp_servers(self): def ntp_servers(self, ntp_servers): """ Sets the ntp_servers of this HyperflexSysConfigPolicy. + Enter one or more NTP servers (IP address or FQDN). A local NTP server is highly recommended. :param ntp_servers: The ntp_servers of this HyperflexSysConfigPolicy. :type: list[str] @@ -460,10 +445,34 @@ def ntp_servers(self, ntp_servers): self._ntp_servers = ntp_servers + @property + def organization(self): + """ + Gets the organization of this HyperflexSysConfigPolicy. + Organization + + :return: The organization of this HyperflexSysConfigPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexSysConfigPolicy. + Organization + + :param organization: The organization of this HyperflexSysConfigPolicy. + :type: IamAccountRef + """ + + self._organization = organization + @property def timezone(self): """ Gets the timezone of this HyperflexSysConfigPolicy. + Timezone :return: The timezone of this HyperflexSysConfigPolicy. :rtype: str @@ -474,6 +483,7 @@ def timezone(self): def timezone(self, timezone): """ Sets the timezone of this HyperflexSysConfigPolicy. + Timezone :param timezone: The timezone of this HyperflexSysConfigPolicy. :type: str diff --git a/intersight/models/hyperflex_sys_config_policy_list.py b/intersight/models/hyperflex_sys_config_policy_list.py index 2378e20f..bbc51bc6 100644 --- a/intersight/models/hyperflex_sys_config_policy_list.py +++ b/intersight/models/hyperflex_sys_config_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_sys_config_policy_ref.py b/intersight/models/hyperflex_sys_config_policy_ref.py new file mode 100644 index 00000000..3d74a2ce --- /dev/null +++ b/intersight/models/hyperflex_sys_config_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexSysConfigPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexSysConfigPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexSysConfigPolicyRef. + + :return: The moid of this HyperflexSysConfigPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexSysConfigPolicyRef. + + :param moid: The moid of this HyperflexSysConfigPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexSysConfigPolicyRef. + + :return: The object_type of this HyperflexSysConfigPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexSysConfigPolicyRef. + + :param object_type: The object_type of this HyperflexSysConfigPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexSysConfigPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_ucsm_config_policy.py b/intersight/models/hyperflex_ucsm_config_policy.py index 948588d7..159c7e3a 100644 --- a/intersight/models/hyperflex_ucsm_config_policy.py +++ b/intersight/models/hyperflex_ucsm_config_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,21 @@ class HyperflexUcsmConfigPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'kvm_ip_range': 'HyperflexIpAddrRange', 'mac_prefix_range': 'HyperflexMacAddrPrefixRange', - 'service_profile_org': 'str' + 'organization': 'IamAccountRef', + 'server_firmware_version': 'str' } attribute_map = { @@ -61,14 +61,14 @@ class HyperflexUcsmConfigPolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'kvm_ip_range': 'KvmIpRange', 'mac_prefix_range': 'MacPrefixRange', - 'service_profile_org': 'ServiceProfileOrg' + 'organization': 'Organization', + 'server_firmware_version': 'ServerFirmwareVersion' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, kvm_ip_range=None, mac_prefix_range=None, service_profile_org=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, cluster_profiles=None, kvm_ip_range=None, mac_prefix_range=None, organization=None, server_firmware_version=None): """ HyperflexUcsmConfigPolicy - a model defined in Swagger """ @@ -84,11 +84,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._kvm_ip_range = None self._mac_prefix_range = None - self._service_profile_org = None + self._organization = None + self._server_firmware_version = None if account_moid is not None: self.account_moid = account_moid @@ -112,16 +112,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if kvm_ip_range is not None: self.kvm_ip_range = kvm_ip_range if mac_prefix_range is not None: self.mac_prefix_range = mac_prefix_range - if service_profile_org is not None: - self.service_profile_org = service_profile_org + if organization is not None: + self.organization = organization + if server_firmware_version is not None: + self.server_firmware_version = server_firmware_version @property def account_moid(self): @@ -153,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexUcsmConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexUcsmConfigPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexUcsmConfigPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexUcsmConfigPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -376,34 +376,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexUcsmConfigPolicy. - - :return: The account of this HyperflexUcsmConfigPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexUcsmConfigPolicy. - - :param account: The account of this HyperflexUcsmConfigPolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexUcsmConfigPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexUcsmConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -411,9 +391,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexUcsmConfigPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexUcsmConfigPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -422,6 +403,7 @@ def cluster_profiles(self, cluster_profiles): def kvm_ip_range(self): """ Gets the kvm_ip_range of this HyperflexUcsmConfigPolicy. + Out-of-band KVM IP range :return: The kvm_ip_range of this HyperflexUcsmConfigPolicy. :rtype: HyperflexIpAddrRange @@ -432,6 +414,7 @@ def kvm_ip_range(self): def kvm_ip_range(self, kvm_ip_range): """ Sets the kvm_ip_range of this HyperflexUcsmConfigPolicy. + Out-of-band KVM IP range :param kvm_ip_range: The kvm_ip_range of this HyperflexUcsmConfigPolicy. :type: HyperflexIpAddrRange @@ -443,6 +426,7 @@ def kvm_ip_range(self, kvm_ip_range): def mac_prefix_range(self): """ Gets the mac_prefix_range of this HyperflexUcsmConfigPolicy. + MAC address prefix range :return: The mac_prefix_range of this HyperflexUcsmConfigPolicy. :rtype: HyperflexMacAddrPrefixRange @@ -453,6 +437,7 @@ def mac_prefix_range(self): def mac_prefix_range(self, mac_prefix_range): """ Sets the mac_prefix_range of this HyperflexUcsmConfigPolicy. + MAC address prefix range :param mac_prefix_range: The mac_prefix_range of this HyperflexUcsmConfigPolicy. :type: HyperflexMacAddrPrefixRange @@ -461,25 +446,50 @@ def mac_prefix_range(self, mac_prefix_range): self._mac_prefix_range = mac_prefix_range @property - def service_profile_org(self): + def organization(self): + """ + Gets the organization of this HyperflexUcsmConfigPolicy. + Organization + + :return: The organization of this HyperflexUcsmConfigPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexUcsmConfigPolicy. + Organization + + :param organization: The organization of this HyperflexUcsmConfigPolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def server_firmware_version(self): """ - Gets the service_profile_org of this HyperflexUcsmConfigPolicy. + Gets the server_firmware_version of this HyperflexUcsmConfigPolicy. + Specifies server firmware bundle version used for server components such as CIMC, adapters, BIOS, etc. - :return: The service_profile_org of this HyperflexUcsmConfigPolicy. + :return: The server_firmware_version of this HyperflexUcsmConfigPolicy. :rtype: str """ - return self._service_profile_org + return self._server_firmware_version - @service_profile_org.setter - def service_profile_org(self, service_profile_org): + @server_firmware_version.setter + def server_firmware_version(self, server_firmware_version): """ - Sets the service_profile_org of this HyperflexUcsmConfigPolicy. + Sets the server_firmware_version of this HyperflexUcsmConfigPolicy. + Specifies server firmware bundle version used for server components such as CIMC, adapters, BIOS, etc. - :param service_profile_org: The service_profile_org of this HyperflexUcsmConfigPolicy. + :param server_firmware_version: The server_firmware_version of this HyperflexUcsmConfigPolicy. :type: str """ - self._service_profile_org = service_profile_org + self._server_firmware_version = server_firmware_version def to_dict(self): """ diff --git a/intersight/models/hyperflex_ucsm_config_policy_list.py b/intersight/models/hyperflex_ucsm_config_policy_list.py index 28a608eb..aad6982a 100644 --- a/intersight/models/hyperflex_ucsm_config_policy_list.py +++ b/intersight/models/hyperflex_ucsm_config_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_ucsm_config_policy_ref.py b/intersight/models/hyperflex_ucsm_config_policy_ref.py new file mode 100644 index 00000000..4c29114c --- /dev/null +++ b/intersight/models/hyperflex_ucsm_config_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexUcsmConfigPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexUcsmConfigPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexUcsmConfigPolicyRef. + + :return: The moid of this HyperflexUcsmConfigPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexUcsmConfigPolicyRef. + + :param moid: The moid of this HyperflexUcsmConfigPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexUcsmConfigPolicyRef. + + :return: The object_type of this HyperflexUcsmConfigPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexUcsmConfigPolicyRef. + + :param object_type: The object_type of this HyperflexUcsmConfigPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexUcsmConfigPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_vcenter_config_policy.py b/intersight/models/hyperflex_vcenter_config_policy.py index efac267b..59b6aa31 100644 --- a/intersight/models/hyperflex_vcenter_config_policy.py +++ b/intersight/models/hyperflex_vcenter_config_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,24 @@ class HyperflexVcenterConfigPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'data_center': 'str', 'hostname': 'str', - 'passwd': 'str', + 'is_password_set': 'bool', + 'organization': 'IamAccountRef', + 'password': 'str', 'sso_url': 'str', - 'user_name': 'str' + 'username': 'str' } attribute_map = { @@ -63,16 +64,17 @@ class HyperflexVcenterConfigPolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'data_center': 'DataCenter', 'hostname': 'Hostname', - 'passwd': 'Passwd', + 'is_password_set': 'IsPasswordSet', + 'organization': 'Organization', + 'password': 'Password', 'sso_url': 'SsoUrl', - 'user_name': 'UserName' + 'username': 'Username' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, data_center=None, hostname=None, passwd=None, sso_url=None, user_name=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, cluster_profiles=None, data_center=None, hostname=None, is_password_set=None, organization=None, password=None, sso_url=None, username=None): """ HyperflexVcenterConfigPolicy - a model defined in Swagger """ @@ -88,13 +90,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._data_center = None self._hostname = None - self._passwd = None + self._is_password_set = None + self._organization = None + self._password = None self._sso_url = None - self._user_name = None + self._username = None if account_moid is not None: self.account_moid = account_moid @@ -118,20 +121,22 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if data_center is not None: self.data_center = data_center if hostname is not None: self.hostname = hostname - if passwd is not None: - self.passwd = passwd + if is_password_set is not None: + self.is_password_set = is_password_set + if organization is not None: + self.organization = organization + if password is not None: + self.password = password if sso_url is not None: self.sso_url = sso_url - if user_name is not None: - self.user_name = user_name + if username is not None: + self.username = username @property def account_moid(self): @@ -163,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexVcenterConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexVcenterConfigPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexVcenterConfigPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexVcenterConfigPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -386,34 +391,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexVcenterConfigPolicy. - - :return: The account of this HyperflexVcenterConfigPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexVcenterConfigPolicy. - - :param account: The account of this HyperflexVcenterConfigPolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexVcenterConfigPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexVcenterConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -421,9 +406,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexVcenterConfigPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexVcenterConfigPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -432,7 +418,7 @@ def cluster_profiles(self, cluster_profiles): def data_center(self): """ Gets the data_center of this HyperflexVcenterConfigPolicy. - vCenter Datacenter name for the HyperFlex cluster + vCenter datacenter name :return: The data_center of this HyperflexVcenterConfigPolicy. :rtype: str @@ -443,7 +429,7 @@ def data_center(self): def data_center(self, data_center): """ Sets the data_center of this HyperflexVcenterConfigPolicy. - vCenter Datacenter name for the HyperFlex cluster + vCenter datacenter name :param data_center: The data_center of this HyperflexVcenterConfigPolicy. :type: str @@ -455,6 +441,7 @@ def data_center(self, data_center): def hostname(self): """ Gets the hostname of this HyperflexVcenterConfigPolicy. + vCenter server FQDN or IP :return: The hostname of this HyperflexVcenterConfigPolicy. :rtype: str @@ -465,6 +452,7 @@ def hostname(self): def hostname(self, hostname): """ Sets the hostname of this HyperflexVcenterConfigPolicy. + vCenter server FQDN or IP :param hostname: The hostname of this HyperflexVcenterConfigPolicy. :type: str @@ -473,33 +461,77 @@ def hostname(self, hostname): self._hostname = hostname @property - def passwd(self): + def is_password_set(self): + """ + Gets the is_password_set of this HyperflexVcenterConfigPolicy. + + :return: The is_password_set of this HyperflexVcenterConfigPolicy. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this HyperflexVcenterConfigPolicy. + + :param is_password_set: The is_password_set of this HyperflexVcenterConfigPolicy. + :type: bool + """ + + self._is_password_set = is_password_set + + @property + def organization(self): + """ + Gets the organization of this HyperflexVcenterConfigPolicy. + Organization + + :return: The organization of this HyperflexVcenterConfigPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexVcenterConfigPolicy. + Organization + + :param organization: The organization of this HyperflexVcenterConfigPolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def password(self): """ - Gets the passwd of this HyperflexVcenterConfigPolicy. - vCenter password + Gets the password of this HyperflexVcenterConfigPolicy. + vCenter password Password must be atleast 6 characters. Follow the corresponding password policy governed by vCenter. - :return: The passwd of this HyperflexVcenterConfigPolicy. + :return: The password of this HyperflexVcenterConfigPolicy. :rtype: str """ - return self._passwd + return self._password - @passwd.setter - def passwd(self, passwd): + @password.setter + def password(self, password): """ - Sets the passwd of this HyperflexVcenterConfigPolicy. - vCenter password + Sets the password of this HyperflexVcenterConfigPolicy. + vCenter password Password must be atleast 6 characters. Follow the corresponding password policy governed by vCenter. - :param passwd: The passwd of this HyperflexVcenterConfigPolicy. + :param password: The password of this HyperflexVcenterConfigPolicy. :type: str """ - self._passwd = passwd + self._password = password @property def sso_url(self): """ Gets the sso_url of this HyperflexVcenterConfigPolicy. - vCenter Single-Sign-On URL + Overrides the default vCenter Single Sign-On URL. Do not specify unless instructed by Cisco TAC :return: The sso_url of this HyperflexVcenterConfigPolicy. :rtype: str @@ -510,7 +542,7 @@ def sso_url(self): def sso_url(self, sso_url): """ Sets the sso_url of this HyperflexVcenterConfigPolicy. - vCenter Single-Sign-On URL + Overrides the default vCenter Single Sign-On URL. Do not specify unless instructed by Cisco TAC :param sso_url: The sso_url of this HyperflexVcenterConfigPolicy. :type: str @@ -519,27 +551,27 @@ def sso_url(self, sso_url): self._sso_url = sso_url @property - def user_name(self): + def username(self): """ - Gets the user_name of this HyperflexVcenterConfigPolicy. - vCenter user name + Gets the username of this HyperflexVcenterConfigPolicy. + vCenter username (e.g. administrator@vsphere.local) - :return: The user_name of this HyperflexVcenterConfigPolicy. + :return: The username of this HyperflexVcenterConfigPolicy. :rtype: str """ - return self._user_name + return self._username - @user_name.setter - def user_name(self, user_name): + @username.setter + def username(self, username): """ - Sets the user_name of this HyperflexVcenterConfigPolicy. - vCenter user name + Sets the username of this HyperflexVcenterConfigPolicy. + vCenter username (e.g. administrator@vsphere.local) - :param user_name: The user_name of this HyperflexVcenterConfigPolicy. + :param username: The username of this HyperflexVcenterConfigPolicy. :type: str """ - self._user_name = user_name + self._username = username def to_dict(self): """ diff --git a/intersight/models/hyperflex_vcenter_config_policy_list.py b/intersight/models/hyperflex_vcenter_config_policy_list.py index c8e342ce..2b706938 100644 --- a/intersight/models/hyperflex_vcenter_config_policy_list.py +++ b/intersight/models/hyperflex_vcenter_config_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_vcenter_config_policy_ref.py b/intersight/models/hyperflex_vcenter_config_policy_ref.py new file mode 100644 index 00000000..eb3de265 --- /dev/null +++ b/intersight/models/hyperflex_vcenter_config_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexVcenterConfigPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexVcenterConfigPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexVcenterConfigPolicyRef. + + :return: The moid of this HyperflexVcenterConfigPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexVcenterConfigPolicyRef. + + :param moid: The moid of this HyperflexVcenterConfigPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexVcenterConfigPolicyRef. + + :return: The object_type of this HyperflexVcenterConfigPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexVcenterConfigPolicyRef. + + :param object_type: The object_type of this HyperflexVcenterConfigPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexVcenterConfigPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_wwxn_prefix_range.py b/intersight/models/hyperflex_wwxn_prefix_range.py new file mode 100644 index 00000000..0e6be9a9 --- /dev/null +++ b/intersight/models/hyperflex_wwxn_prefix_range.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexWwxnPrefixRange(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'end_addr': 'str', + 'start_addr': 'str' + } + + attribute_map = { + 'end_addr': 'EndAddr', + 'start_addr': 'StartAddr' + } + + def __init__(self, end_addr=None, start_addr=None): + """ + HyperflexWwxnPrefixRange - a model defined in Swagger + """ + + self._end_addr = None + self._start_addr = None + + if end_addr is not None: + self.end_addr = end_addr + if start_addr is not None: + self.start_addr = start_addr + + @property + def end_addr(self): + """ + Gets the end_addr of this HyperflexWwxnPrefixRange. + End WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX + + :return: The end_addr of this HyperflexWwxnPrefixRange. + :rtype: str + """ + return self._end_addr + + @end_addr.setter + def end_addr(self, end_addr): + """ + Sets the end_addr of this HyperflexWwxnPrefixRange. + End WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX + + :param end_addr: The end_addr of this HyperflexWwxnPrefixRange. + :type: str + """ + + self._end_addr = end_addr + + @property + def start_addr(self): + """ + Gets the start_addr of this HyperflexWwxnPrefixRange. + Start WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX + + :return: The start_addr of this HyperflexWwxnPrefixRange. + :rtype: str + """ + return self._start_addr + + @start_addr.setter + def start_addr(self, start_addr): + """ + Sets the start_addr of this HyperflexWwxnPrefixRange. + Start WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX + + :param start_addr: The start_addr of this HyperflexWwxnPrefixRange. + :type: str + """ + + self._start_addr = start_addr + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexWwxnPrefixRange): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_wwxn_prefix_range_ref.py b/intersight/models/hyperflex_wwxn_prefix_range_ref.py new file mode 100644 index 00000000..33e6a081 --- /dev/null +++ b/intersight/models/hyperflex_wwxn_prefix_range_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexWwxnPrefixRangeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexWwxnPrefixRangeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexWwxnPrefixRangeRef. + + :return: The moid of this HyperflexWwxnPrefixRangeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexWwxnPrefixRangeRef. + + :param moid: The moid of this HyperflexWwxnPrefixRangeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexWwxnPrefixRangeRef. + + :return: The object_type of this HyperflexWwxnPrefixRangeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexWwxnPrefixRangeRef. + + :param object_type: The object_type of this HyperflexWwxnPrefixRangeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexWwxnPrefixRangeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/i18n_message.py b/intersight/models/i18n_message.py new file mode 100644 index 00000000..c9f3770c --- /dev/null +++ b/intersight/models/i18n_message.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class I18nMessage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str', + 'message_id': 'str', + 'message_params': 'list[I18nMessageParam]' + } + + attribute_map = { + 'message': 'Message', + 'message_id': 'MessageId', + 'message_params': 'MessageParams' + } + + def __init__(self, message=None, message_id=None, message_params=None): + """ + I18nMessage - a model defined in Swagger + """ + + self._message = None + self._message_id = None + self._message_params = None + + if message is not None: + self.message = message + if message_id is not None: + self.message_id = message_id + if message_params is not None: + self.message_params = message_params + + @property + def message(self): + """ + Gets the message of this I18nMessage. + The default (en-US) localized message. Default localized message will be stored and directly retrieved when the user's locale setting is en-US. + + :return: The message of this I18nMessage. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this I18nMessage. + The default (en-US) localized message. Default localized message will be stored and directly retrieved when the user's locale setting is en-US. + + :param message: The message of this I18nMessage. + :type: str + """ + + self._message = message + + @property + def message_id(self): + """ + Gets the message_id of this I18nMessage. + The message identitifer that is mapped to localized messages + + :return: The message_id of this I18nMessage. + :rtype: str + """ + return self._message_id + + @message_id.setter + def message_id(self, message_id): + """ + Sets the message_id of this I18nMessage. + The message identitifer that is mapped to localized messages + + :param message_id: The message_id of this I18nMessage. + :type: str + """ + + self._message_id = message_id + + @property + def message_params(self): + """ + Gets the message_params of this I18nMessage. + List of message parameters + + :return: The message_params of this I18nMessage. + :rtype: list[I18nMessageParam] + """ + return self._message_params + + @message_params.setter + def message_params(self, message_params): + """ + Sets the message_params of this I18nMessage. + List of message parameters + + :param message_params: The message_params of this I18nMessage. + :type: list[I18nMessageParam] + """ + + self._message_params = message_params + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, I18nMessage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/i18n_message_param.py b/intersight/models/i18n_message_param.py new file mode 100644 index 00000000..5e971c3c --- /dev/null +++ b/intersight/models/i18n_message_param.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class I18nMessageParam(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'value': 'str' + } + + attribute_map = { + 'name': 'Name', + 'value': 'Value' + } + + def __init__(self, name=None, value=None): + """ + I18nMessageParam - a model defined in Swagger + """ + + self._name = None + self._value = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + + @property + def name(self): + """ + Gets the name of this I18nMessageParam. + Name of the parameter + + :return: The name of this I18nMessageParam. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this I18nMessageParam. + Name of the parameter + + :param name: The name of this I18nMessageParam. + :type: str + """ + + self._name = name + + @property + def value(self): + """ + Gets the value of this I18nMessageParam. + Value of the parameter + + :return: The value of this I18nMessageParam. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this I18nMessageParam. + Value of the parameter + + :param value: The value of this I18nMessageParam. + :type: str + """ + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, I18nMessageParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/i18n_message_param_ref.py b/intersight/models/i18n_message_param_ref.py new file mode 100644 index 00000000..4ecf27cd --- /dev/null +++ b/intersight/models/i18n_message_param_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class I18nMessageParamRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + I18nMessageParamRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this I18nMessageParamRef. + + :return: The moid of this I18nMessageParamRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this I18nMessageParamRef. + + :param moid: The moid of this I18nMessageParamRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this I18nMessageParamRef. + + :return: The object_type of this I18nMessageParamRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this I18nMessageParamRef. + + :param object_type: The object_type of this I18nMessageParamRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, I18nMessageParamRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/i18n_message_ref.py b/intersight/models/i18n_message_ref.py new file mode 100644 index 00000000..2d629c27 --- /dev/null +++ b/intersight/models/i18n_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class I18nMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + I18nMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this I18nMessageRef. + + :return: The moid of this I18nMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this I18nMessageRef. + + :param moid: The moid of this I18nMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this I18nMessageRef. + + :return: The object_type of this I18nMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this I18nMessageRef. + + :param object_type: The object_type of this I18nMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, I18nMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_connector_pack.py b/intersight/models/iaas_connector_pack.py new file mode 100644 index 00000000..c6f6f864 --- /dev/null +++ b/intersight/models/iaas_connector_pack.py @@ -0,0 +1,515 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasConnectorPack(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'dependency_names': 'list[str]', + 'downloaded_version': 'str', + 'guid': 'IaasUcsdInfoRef', + 'name': 'str', + 'state': 'str', + 'version': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'dependency_names': 'DependencyNames', + 'downloaded_version': 'DownloadedVersion', + 'guid': 'Guid', + 'name': 'Name', + 'state': 'State', + 'version': 'Version' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, dependency_names=None, downloaded_version=None, guid=None, name=None, state=None, version=None): + """ + IaasConnectorPack - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._dependency_names = None + self._downloaded_version = None + self._guid = None + self._name = None + self._state = None + self._version = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if dependency_names is not None: + self.dependency_names = dependency_names + if downloaded_version is not None: + self.downloaded_version = downloaded_version + if guid is not None: + self.guid = guid + if name is not None: + self.name = name + if state is not None: + self.state = state + if version is not None: + self.version = version + + @property + def account_moid(self): + """ + Gets the account_moid of this IaasConnectorPack. + The Account ID for this managed object. + + :return: The account_moid of this IaasConnectorPack. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this IaasConnectorPack. + The Account ID for this managed object. + + :param account_moid: The account_moid of this IaasConnectorPack. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this IaasConnectorPack. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this IaasConnectorPack. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this IaasConnectorPack. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this IaasConnectorPack. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this IaasConnectorPack. + The time when this managed object was created. + + :return: The create_time of this IaasConnectorPack. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this IaasConnectorPack. + The time when this managed object was created. + + :param create_time: The create_time of this IaasConnectorPack. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this IaasConnectorPack. + The time when this managed object was last modified. + + :return: The mod_time of this IaasConnectorPack. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this IaasConnectorPack. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this IaasConnectorPack. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this IaasConnectorPack. + A unique identifier of this Managed Object instance. + + :return: The moid of this IaasConnectorPack. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasConnectorPack. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this IaasConnectorPack. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasConnectorPack. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this IaasConnectorPack. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasConnectorPack. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this IaasConnectorPack. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this IaasConnectorPack. + An array of owners which represent effective ownership of this object. + + :return: The owners of this IaasConnectorPack. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this IaasConnectorPack. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this IaasConnectorPack. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this IaasConnectorPack. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this IaasConnectorPack. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this IaasConnectorPack. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this IaasConnectorPack. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this IaasConnectorPack. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this IaasConnectorPack. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this IaasConnectorPack. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this IaasConnectorPack. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def dependency_names(self): + """ + Gets the dependency_names of this IaasConnectorPack. + List of dependent connectors on the UCSD for this connector. For example BigData depends on UCS Connector + + :return: The dependency_names of this IaasConnectorPack. + :rtype: list[str] + """ + return self._dependency_names + + @dependency_names.setter + def dependency_names(self, dependency_names): + """ + Sets the dependency_names of this IaasConnectorPack. + List of dependent connectors on the UCSD for this connector. For example BigData depends on UCS Connector + + :param dependency_names: The dependency_names of this IaasConnectorPack. + :type: list[str] + """ + + self._dependency_names = dependency_names + + @property + def downloaded_version(self): + """ + Gets the downloaded_version of this IaasConnectorPack. + Version of the connector pack that is last downloaded successfully to UCSD + + :return: The downloaded_version of this IaasConnectorPack. + :rtype: str + """ + return self._downloaded_version + + @downloaded_version.setter + def downloaded_version(self, downloaded_version): + """ + Sets the downloaded_version of this IaasConnectorPack. + Version of the connector pack that is last downloaded successfully to UCSD + + :param downloaded_version: The downloaded_version of this IaasConnectorPack. + :type: str + """ + + self._downloaded_version = downloaded_version + + @property + def guid(self): + """ + Gets the guid of this IaasConnectorPack. + + :return: The guid of this IaasConnectorPack. + :rtype: IaasUcsdInfoRef + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this IaasConnectorPack. + + :param guid: The guid of this IaasConnectorPack. + :type: IaasUcsdInfoRef + """ + + self._guid = guid + + @property + def name(self): + """ + Gets the name of this IaasConnectorPack. + Name of the connector pack running on the UCSD + + :return: The name of this IaasConnectorPack. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this IaasConnectorPack. + Name of the connector pack running on the UCSD + + :param name: The name of this IaasConnectorPack. + :type: str + """ + + self._name = name + + @property + def state(self): + """ + Gets the state of this IaasConnectorPack. + State of the connector pack whether it is enabled or disabled + + :return: The state of this IaasConnectorPack. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this IaasConnectorPack. + State of the connector pack whether it is enabled or disabled + + :param state: The state of this IaasConnectorPack. + :type: str + """ + + self._state = state + + @property + def version(self): + """ + Gets the version of this IaasConnectorPack. + Version of the connector pack + + :return: The version of this IaasConnectorPack. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this IaasConnectorPack. + Version of the connector pack + + :param version: The version of this IaasConnectorPack. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasConnectorPack): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_connector_pack_list.py b/intersight/models/iaas_connector_pack_list.py new file mode 100644 index 00000000..926fb2d8 --- /dev/null +++ b/intersight/models/iaas_connector_pack_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasConnectorPackList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[IaasConnectorPack]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + IaasConnectorPackList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this IaasConnectorPackList. + The number of iaasConnectorPacks matching your request in total for all pages. + + :return: The count of this IaasConnectorPackList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IaasConnectorPackList. + The number of iaasConnectorPacks matching your request in total for all pages. + + :param count: The count of this IaasConnectorPackList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this IaasConnectorPackList. + The array of iaasConnectorPacks matching your request. + + :return: The results of this IaasConnectorPackList. + :rtype: list[IaasConnectorPack] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this IaasConnectorPackList. + The array of iaasConnectorPacks matching your request. + + :param results: The results of this IaasConnectorPackList. + :type: list[IaasConnectorPack] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasConnectorPackList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_connector_pack_ref.py b/intersight/models/iaas_connector_pack_ref.py new file mode 100644 index 00000000..84ea8e22 --- /dev/null +++ b/intersight/models/iaas_connector_pack_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasConnectorPackRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasConnectorPackRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasConnectorPackRef. + + :return: The moid of this IaasConnectorPackRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasConnectorPackRef. + + :param moid: The moid of this IaasConnectorPackRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasConnectorPackRef. + + :return: The object_type of this IaasConnectorPackRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasConnectorPackRef. + + :param object_type: The object_type of this IaasConnectorPackRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasConnectorPackRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_device_status.py b/intersight/models/iaas_device_status.py new file mode 100644 index 00000000..b4124106 --- /dev/null +++ b/intersight/models/iaas_device_status.py @@ -0,0 +1,599 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasDeviceStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'account_name': 'str', + 'account_type': 'str', + 'connection_status': 'str', + 'device_model': 'str', + 'device_vendor': 'str', + 'device_version': 'str', + 'guid': 'IaasUcsdInfoRef', + 'ip_address': 'str', + 'pod': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'account_name': 'AccountName', + 'account_type': 'AccountType', + 'connection_status': 'ConnectionStatus', + 'device_model': 'DeviceModel', + 'device_vendor': 'DeviceVendor', + 'device_version': 'DeviceVersion', + 'guid': 'Guid', + 'ip_address': 'IpAddress', + 'pod': 'Pod' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account_name=None, account_type=None, connection_status=None, device_model=None, device_vendor=None, device_version=None, guid=None, ip_address=None, pod=None): + """ + IaasDeviceStatus - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._account_name = None + self._account_type = None + self._connection_status = None + self._device_model = None + self._device_vendor = None + self._device_version = None + self._guid = None + self._ip_address = None + self._pod = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if account_name is not None: + self.account_name = account_name + if account_type is not None: + self.account_type = account_type + if connection_status is not None: + self.connection_status = connection_status + if device_model is not None: + self.device_model = device_model + if device_vendor is not None: + self.device_vendor = device_vendor + if device_version is not None: + self.device_version = device_version + if guid is not None: + self.guid = guid + if ip_address is not None: + self.ip_address = ip_address + if pod is not None: + self.pod = pod + + @property + def account_moid(self): + """ + Gets the account_moid of this IaasDeviceStatus. + The Account ID for this managed object. + + :return: The account_moid of this IaasDeviceStatus. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this IaasDeviceStatus. + The Account ID for this managed object. + + :param account_moid: The account_moid of this IaasDeviceStatus. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this IaasDeviceStatus. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this IaasDeviceStatus. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this IaasDeviceStatus. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this IaasDeviceStatus. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this IaasDeviceStatus. + The time when this managed object was created. + + :return: The create_time of this IaasDeviceStatus. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this IaasDeviceStatus. + The time when this managed object was created. + + :param create_time: The create_time of this IaasDeviceStatus. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this IaasDeviceStatus. + The time when this managed object was last modified. + + :return: The mod_time of this IaasDeviceStatus. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this IaasDeviceStatus. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this IaasDeviceStatus. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this IaasDeviceStatus. + A unique identifier of this Managed Object instance. + + :return: The moid of this IaasDeviceStatus. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasDeviceStatus. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this IaasDeviceStatus. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasDeviceStatus. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this IaasDeviceStatus. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasDeviceStatus. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this IaasDeviceStatus. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this IaasDeviceStatus. + An array of owners which represent effective ownership of this object. + + :return: The owners of this IaasDeviceStatus. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this IaasDeviceStatus. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this IaasDeviceStatus. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this IaasDeviceStatus. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this IaasDeviceStatus. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this IaasDeviceStatus. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this IaasDeviceStatus. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this IaasDeviceStatus. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this IaasDeviceStatus. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this IaasDeviceStatus. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this IaasDeviceStatus. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def account_name(self): + """ + Gets the account_name of this IaasDeviceStatus. + The UCSD infra account name. Account Name is created when UCSD admin adds any new infra account(Physical/Virtual/Compute/Network) to be managed by UCSD + + :return: The account_name of this IaasDeviceStatus. + :rtype: str + """ + return self._account_name + + @account_name.setter + def account_name(self, account_name): + """ + Sets the account_name of this IaasDeviceStatus. + The UCSD infra account name. Account Name is created when UCSD admin adds any new infra account(Physical/Virtual/Compute/Network) to be managed by UCSD + + :param account_name: The account_name of this IaasDeviceStatus. + :type: str + """ + + self._account_name = account_name + + @property + def account_type(self): + """ + Gets the account_type of this IaasDeviceStatus. + The UCSD Infra Account type + + :return: The account_type of this IaasDeviceStatus. + :rtype: str + """ + return self._account_type + + @account_type.setter + def account_type(self, account_type): + """ + Sets the account_type of this IaasDeviceStatus. + The UCSD Infra Account type + + :param account_type: The account_type of this IaasDeviceStatus. + :type: str + """ + + self._account_type = account_type + + @property + def connection_status(self): + """ + Gets the connection_status of this IaasDeviceStatus. + Describes about the connection status between the UCSD and the actual end device + + :return: The connection_status of this IaasDeviceStatus. + :rtype: str + """ + return self._connection_status + + @connection_status.setter + def connection_status(self, connection_status): + """ + Sets the connection_status of this IaasDeviceStatus. + Describes about the connection status between the UCSD and the actual end device + + :param connection_status: The connection_status of this IaasDeviceStatus. + :type: str + """ + + self._connection_status = connection_status + + @property + def device_model(self): + """ + Gets the device_model of this IaasDeviceStatus. + Describes about the device model + + :return: The device_model of this IaasDeviceStatus. + :rtype: str + """ + return self._device_model + + @device_model.setter + def device_model(self, device_model): + """ + Sets the device_model of this IaasDeviceStatus. + Describes about the device model + + :param device_model: The device_model of this IaasDeviceStatus. + :type: str + """ + + self._device_model = device_model + + @property + def device_vendor(self): + """ + Gets the device_vendor of this IaasDeviceStatus. + Describes about the device vendor/manufacturer of the device + + :return: The device_vendor of this IaasDeviceStatus. + :rtype: str + """ + return self._device_vendor + + @device_vendor.setter + def device_vendor(self, device_vendor): + """ + Sets the device_vendor of this IaasDeviceStatus. + Describes about the device vendor/manufacturer of the device + + :param device_vendor: The device_vendor of this IaasDeviceStatus. + :type: str + """ + + self._device_vendor = device_vendor + + @property + def device_version(self): + """ + Gets the device_version of this IaasDeviceStatus. + Describes about the current firmware version running on the device + + :return: The device_version of this IaasDeviceStatus. + :rtype: str + """ + return self._device_version + + @device_version.setter + def device_version(self, device_version): + """ + Sets the device_version of this IaasDeviceStatus. + Describes about the current firmware version running on the device + + :param device_version: The device_version of this IaasDeviceStatus. + :type: str + """ + + self._device_version = device_version + + @property + def guid(self): + """ + Gets the guid of this IaasDeviceStatus. + + :return: The guid of this IaasDeviceStatus. + :rtype: IaasUcsdInfoRef + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this IaasDeviceStatus. + + :param guid: The guid of this IaasDeviceStatus. + :type: IaasUcsdInfoRef + """ + + self._guid = guid + + @property + def ip_address(self): + """ + Gets the ip_address of this IaasDeviceStatus. + The IPAddress of the device + + :return: The ip_address of this IaasDeviceStatus. + :rtype: str + """ + return self._ip_address + + @ip_address.setter + def ip_address(self, ip_address): + """ + Sets the ip_address of this IaasDeviceStatus. + The IPAddress of the device + + :param ip_address: The ip_address of this IaasDeviceStatus. + :type: str + """ + + self._ip_address = ip_address + + @property + def pod(self): + """ + Gets the pod of this IaasDeviceStatus. + Describes about the pod to which this device belongs to in UCSD + + :return: The pod of this IaasDeviceStatus. + :rtype: str + """ + return self._pod + + @pod.setter + def pod(self, pod): + """ + Sets the pod of this IaasDeviceStatus. + Describes about the pod to which this device belongs to in UCSD + + :param pod: The pod of this IaasDeviceStatus. + :type: str + """ + + self._pod = pod + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasDeviceStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_device_status_list.py b/intersight/models/iaas_device_status_list.py new file mode 100644 index 00000000..e75f8624 --- /dev/null +++ b/intersight/models/iaas_device_status_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasDeviceStatusList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[IaasDeviceStatus]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + IaasDeviceStatusList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this IaasDeviceStatusList. + The number of iaasDeviceStatuses matching your request in total for all pages. + + :return: The count of this IaasDeviceStatusList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IaasDeviceStatusList. + The number of iaasDeviceStatuses matching your request in total for all pages. + + :param count: The count of this IaasDeviceStatusList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this IaasDeviceStatusList. + The array of iaasDeviceStatuses matching your request. + + :return: The results of this IaasDeviceStatusList. + :rtype: list[IaasDeviceStatus] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this IaasDeviceStatusList. + The array of iaasDeviceStatuses matching your request. + + :param results: The results of this IaasDeviceStatusList. + :type: list[IaasDeviceStatus] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasDeviceStatusList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_device_status_ref.py b/intersight/models/iaas_device_status_ref.py new file mode 100644 index 00000000..18ac00d0 --- /dev/null +++ b/intersight/models/iaas_device_status_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasDeviceStatusRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasDeviceStatusRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasDeviceStatusRef. + + :return: The moid of this IaasDeviceStatusRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasDeviceStatusRef. + + :param moid: The moid of this IaasDeviceStatusRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasDeviceStatusRef. + + :return: The object_type of this IaasDeviceStatusRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasDeviceStatusRef. + + :param object_type: The object_type of this IaasDeviceStatusRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasDeviceStatusRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_info.py b/intersight/models/iaas_license_info.py new file mode 100644 index 00000000..ea14603d --- /dev/null +++ b/intersight/models/iaas_license_info.py @@ -0,0 +1,487 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'guid': 'IaasUcsdInfoRef', + 'license_expiration_date': 'str', + 'license_keys_info': 'list[IaasLicenseKeysInfo]', + 'license_type': 'str', + 'license_utilization_info': 'list[IaasLicenseUtilizationInfo]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'guid': 'Guid', + 'license_expiration_date': 'LicenseExpirationDate', + 'license_keys_info': 'LicenseKeysInfo', + 'license_type': 'LicenseType', + 'license_utilization_info': 'LicenseUtilizationInfo' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, guid=None, license_expiration_date=None, license_keys_info=None, license_type=None, license_utilization_info=None): + """ + IaasLicenseInfo - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._guid = None + self._license_expiration_date = None + self._license_keys_info = None + self._license_type = None + self._license_utilization_info = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if guid is not None: + self.guid = guid + if license_expiration_date is not None: + self.license_expiration_date = license_expiration_date + if license_keys_info is not None: + self.license_keys_info = license_keys_info + if license_type is not None: + self.license_type = license_type + if license_utilization_info is not None: + self.license_utilization_info = license_utilization_info + + @property + def account_moid(self): + """ + Gets the account_moid of this IaasLicenseInfo. + The Account ID for this managed object. + + :return: The account_moid of this IaasLicenseInfo. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this IaasLicenseInfo. + The Account ID for this managed object. + + :param account_moid: The account_moid of this IaasLicenseInfo. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this IaasLicenseInfo. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this IaasLicenseInfo. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this IaasLicenseInfo. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this IaasLicenseInfo. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this IaasLicenseInfo. + The time when this managed object was created. + + :return: The create_time of this IaasLicenseInfo. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this IaasLicenseInfo. + The time when this managed object was created. + + :param create_time: The create_time of this IaasLicenseInfo. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this IaasLicenseInfo. + The time when this managed object was last modified. + + :return: The mod_time of this IaasLicenseInfo. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this IaasLicenseInfo. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this IaasLicenseInfo. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this IaasLicenseInfo. + A unique identifier of this Managed Object instance. + + :return: The moid of this IaasLicenseInfo. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasLicenseInfo. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this IaasLicenseInfo. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasLicenseInfo. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this IaasLicenseInfo. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasLicenseInfo. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this IaasLicenseInfo. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this IaasLicenseInfo. + An array of owners which represent effective ownership of this object. + + :return: The owners of this IaasLicenseInfo. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this IaasLicenseInfo. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this IaasLicenseInfo. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this IaasLicenseInfo. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this IaasLicenseInfo. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this IaasLicenseInfo. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this IaasLicenseInfo. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this IaasLicenseInfo. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this IaasLicenseInfo. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this IaasLicenseInfo. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this IaasLicenseInfo. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def guid(self): + """ + Gets the guid of this IaasLicenseInfo. + + :return: The guid of this IaasLicenseInfo. + :rtype: IaasUcsdInfoRef + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this IaasLicenseInfo. + + :param guid: The guid of this IaasLicenseInfo. + :type: IaasUcsdInfoRef + """ + + self._guid = guid + + @property + def license_expiration_date(self): + """ + Gets the license_expiration_date of this IaasLicenseInfo. + Licese expiration date + + :return: The license_expiration_date of this IaasLicenseInfo. + :rtype: str + """ + return self._license_expiration_date + + @license_expiration_date.setter + def license_expiration_date(self, license_expiration_date): + """ + Sets the license_expiration_date of this IaasLicenseInfo. + Licese expiration date + + :param license_expiration_date: The license_expiration_date of this IaasLicenseInfo. + :type: str + """ + + self._license_expiration_date = license_expiration_date + + @property + def license_keys_info(self): + """ + Gets the license_keys_info of this IaasLicenseInfo. + License keys info for UCSD + + :return: The license_keys_info of this IaasLicenseInfo. + :rtype: list[IaasLicenseKeysInfo] + """ + return self._license_keys_info + + @license_keys_info.setter + def license_keys_info(self, license_keys_info): + """ + Sets the license_keys_info of this IaasLicenseInfo. + License keys info for UCSD + + :param license_keys_info: The license_keys_info of this IaasLicenseInfo. + :type: list[IaasLicenseKeysInfo] + """ + + self._license_keys_info = license_keys_info + + @property + def license_type(self): + """ + Gets the license_type of this IaasLicenseInfo. + License type of UCSD whether it is EVAL/Permanent/Subscription. + + :return: The license_type of this IaasLicenseInfo. + :rtype: str + """ + return self._license_type + + @license_type.setter + def license_type(self, license_type): + """ + Sets the license_type of this IaasLicenseInfo. + License type of UCSD whether it is EVAL/Permanent/Subscription. + + :param license_type: The license_type of this IaasLicenseInfo. + :type: str + """ + + self._license_type = license_type + + @property + def license_utilization_info(self): + """ + Gets the license_utilization_info of this IaasLicenseInfo. + List of license utilization info for UCSD + + :return: The license_utilization_info of this IaasLicenseInfo. + :rtype: list[IaasLicenseUtilizationInfo] + """ + return self._license_utilization_info + + @license_utilization_info.setter + def license_utilization_info(self, license_utilization_info): + """ + Sets the license_utilization_info of this IaasLicenseInfo. + List of license utilization info for UCSD + + :param license_utilization_info: The license_utilization_info of this IaasLicenseInfo. + :type: list[IaasLicenseUtilizationInfo] + """ + + self._license_utilization_info = license_utilization_info + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_info_list.py b/intersight/models/iaas_license_info_list.py new file mode 100644 index 00000000..1dee985b --- /dev/null +++ b/intersight/models/iaas_license_info_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseInfoList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[IaasLicenseInfo]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + IaasLicenseInfoList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this IaasLicenseInfoList. + The number of iaasLicenseInfos matching your request in total for all pages. + + :return: The count of this IaasLicenseInfoList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IaasLicenseInfoList. + The number of iaasLicenseInfos matching your request in total for all pages. + + :param count: The count of this IaasLicenseInfoList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this IaasLicenseInfoList. + The array of iaasLicenseInfos matching your request. + + :return: The results of this IaasLicenseInfoList. + :rtype: list[IaasLicenseInfo] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this IaasLicenseInfoList. + The array of iaasLicenseInfos matching your request. + + :param results: The results of this IaasLicenseInfoList. + :type: list[IaasLicenseInfo] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseInfoList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_info_ref.py b/intersight/models/iaas_license_info_ref.py new file mode 100644 index 00000000..7b788b84 --- /dev/null +++ b/intersight/models/iaas_license_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasLicenseInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasLicenseInfoRef. + + :return: The moid of this IaasLicenseInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasLicenseInfoRef. + + :param moid: The moid of this IaasLicenseInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasLicenseInfoRef. + + :return: The object_type of this IaasLicenseInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasLicenseInfoRef. + + :param object_type: The object_type of this IaasLicenseInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_keys_info.py b/intersight/models/iaas_license_keys_info.py new file mode 100644 index 00000000..b3909b76 --- /dev/null +++ b/intersight/models/iaas_license_keys_info.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseKeysInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'expiration_date': 'str', + 'license_id': 'str', + 'pid': 'str' + } + + attribute_map = { + 'count': 'Count', + 'expiration_date': 'ExpirationDate', + 'license_id': 'LicenseId', + 'pid': 'Pid' + } + + def __init__(self, count=None, expiration_date=None, license_id=None, pid=None): + """ + IaasLicenseKeysInfo - a model defined in Swagger + """ + + self._count = None + self._expiration_date = None + self._license_id = None + self._pid = None + + if count is not None: + self.count = count + if expiration_date is not None: + self.expiration_date = expiration_date + if license_id is not None: + self.license_id = license_id + if pid is not None: + self.pid = pid + + @property + def count(self): + """ + Gets the count of this IaasLicenseKeysInfo. + Number of licenses available for the UCSD PID(Product ID) + + :return: The count of this IaasLicenseKeysInfo. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IaasLicenseKeysInfo. + Number of licenses available for the UCSD PID(Product ID) + + :param count: The count of this IaasLicenseKeysInfo. + :type: int + """ + + self._count = count + + @property + def expiration_date(self): + """ + Gets the expiration_date of this IaasLicenseKeysInfo. + Expiration date for the license + + :return: The expiration_date of this IaasLicenseKeysInfo. + :rtype: str + """ + return self._expiration_date + + @expiration_date.setter + def expiration_date(self, expiration_date): + """ + Sets the expiration_date of this IaasLicenseKeysInfo. + Expiration date for the license + + :param expiration_date: The expiration_date of this IaasLicenseKeysInfo. + :type: str + """ + + self._expiration_date = expiration_date + + @property + def license_id(self): + """ + Gets the license_id of this IaasLicenseKeysInfo. + Unique license ID + + :return: The license_id of this IaasLicenseKeysInfo. + :rtype: str + """ + return self._license_id + + @license_id.setter + def license_id(self, license_id): + """ + Sets the license_id of this IaasLicenseKeysInfo. + Unique license ID + + :param license_id: The license_id of this IaasLicenseKeysInfo. + :type: str + """ + + self._license_id = license_id + + @property + def pid(self): + """ + Gets the pid of this IaasLicenseKeysInfo. + PID(Product ID) for UCSD License + + :return: The pid of this IaasLicenseKeysInfo. + :rtype: str + """ + return self._pid + + @pid.setter + def pid(self, pid): + """ + Sets the pid of this IaasLicenseKeysInfo. + PID(Product ID) for UCSD License + + :param pid: The pid of this IaasLicenseKeysInfo. + :type: str + """ + + self._pid = pid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseKeysInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_keys_info_ref.py b/intersight/models/iaas_license_keys_info_ref.py new file mode 100644 index 00000000..cbcffa1c --- /dev/null +++ b/intersight/models/iaas_license_keys_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseKeysInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasLicenseKeysInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasLicenseKeysInfoRef. + + :return: The moid of this IaasLicenseKeysInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasLicenseKeysInfoRef. + + :param moid: The moid of this IaasLicenseKeysInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasLicenseKeysInfoRef. + + :return: The object_type of this IaasLicenseKeysInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasLicenseKeysInfoRef. + + :param object_type: The object_type of this IaasLicenseKeysInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseKeysInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_utilization_info.py b/intersight/models/iaas_license_utilization_info.py new file mode 100644 index 00000000..06426fed --- /dev/null +++ b/intersight/models/iaas_license_utilization_info.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseUtilizationInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'actual_used': 'int', + 'label': 'str', + 'licensed_limit': 'str', + 'sku': 'str' + } + + attribute_map = { + 'actual_used': 'ActualUsed', + 'label': 'Label', + 'licensed_limit': 'LicensedLimit', + 'sku': 'Sku' + } + + def __init__(self, actual_used=None, label=None, licensed_limit=None, sku=None): + """ + IaasLicenseUtilizationInfo - a model defined in Swagger + """ + + self._actual_used = None + self._label = None + self._licensed_limit = None + self._sku = None + + if actual_used is not None: + self.actual_used = actual_used + if label is not None: + self.label = label + if licensed_limit is not None: + self.licensed_limit = licensed_limit + if sku is not None: + self.sku = sku + + @property + def actual_used(self): + """ + Gets the actual_used of this IaasLicenseUtilizationInfo. + Number of licenses actually used for this feature + + :return: The actual_used of this IaasLicenseUtilizationInfo. + :rtype: int + """ + return self._actual_used + + @actual_used.setter + def actual_used(self, actual_used): + """ + Sets the actual_used of this IaasLicenseUtilizationInfo. + Number of licenses actually used for this feature + + :param actual_used: The actual_used of this IaasLicenseUtilizationInfo. + :type: int + """ + + self._actual_used = actual_used + + @property + def label(self): + """ + Gets the label of this IaasLicenseUtilizationInfo. + License Label + + :return: The label of this IaasLicenseUtilizationInfo. + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """ + Sets the label of this IaasLicenseUtilizationInfo. + License Label + + :param label: The label of this IaasLicenseUtilizationInfo. + :type: str + """ + + self._label = label + + @property + def licensed_limit(self): + """ + Gets the licensed_limit of this IaasLicenseUtilizationInfo. + License limit for this license feature + + :return: The licensed_limit of this IaasLicenseUtilizationInfo. + :rtype: str + """ + return self._licensed_limit + + @licensed_limit.setter + def licensed_limit(self, licensed_limit): + """ + Sets the licensed_limit of this IaasLicenseUtilizationInfo. + License limit for this license feature + + :param licensed_limit: The licensed_limit of this IaasLicenseUtilizationInfo. + :type: str + """ + + self._licensed_limit = licensed_limit + + @property + def sku(self): + """ + Gets the sku of this IaasLicenseUtilizationInfo. + SKU for the license + + :return: The sku of this IaasLicenseUtilizationInfo. + :rtype: str + """ + return self._sku + + @sku.setter + def sku(self, sku): + """ + Sets the sku of this IaasLicenseUtilizationInfo. + SKU for the license + + :param sku: The sku of this IaasLicenseUtilizationInfo. + :type: str + """ + + self._sku = sku + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseUtilizationInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_utilization_info_ref.py b/intersight/models/iaas_license_utilization_info_ref.py new file mode 100644 index 00000000..6175ac6f --- /dev/null +++ b/intersight/models/iaas_license_utilization_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseUtilizationInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasLicenseUtilizationInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasLicenseUtilizationInfoRef. + + :return: The moid of this IaasLicenseUtilizationInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasLicenseUtilizationInfoRef. + + :param moid: The moid of this IaasLicenseUtilizationInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasLicenseUtilizationInfoRef. + + :return: The object_type of this IaasLicenseUtilizationInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasLicenseUtilizationInfoRef. + + :param object_type: The object_type of this IaasLicenseUtilizationInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseUtilizationInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_ucsd_info.py b/intersight/models/iaas_ucsd_info.py new file mode 100644 index 00000000..ffd4cf4d --- /dev/null +++ b/intersight/models/iaas_ucsd_info.py @@ -0,0 +1,677 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasUcsdInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'connector_pack': 'list[IaasConnectorPackRef]', + 'device_id': 'str', + 'device_status': 'list[IaasDeviceStatusRef]', + 'guid': 'str', + 'host_name': 'str', + 'ip': 'str', + 'license_info': 'IaasLicenseInfoRef', + 'product_name': 'str', + 'product_vendor': 'str', + 'product_version': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'status': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'connector_pack': 'ConnectorPack', + 'device_id': 'DeviceId', + 'device_status': 'DeviceStatus', + 'guid': 'Guid', + 'host_name': 'HostName', + 'ip': 'Ip', + 'license_info': 'LicenseInfo', + 'product_name': 'ProductName', + 'product_vendor': 'ProductVendor', + 'product_version': 'ProductVersion', + 'registered_device': 'RegisteredDevice', + 'status': 'Status' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, connector_pack=None, device_id=None, device_status=None, guid=None, host_name=None, ip=None, license_info=None, product_name=None, product_vendor=None, product_version=None, registered_device=None, status=None): + """ + IaasUcsdInfo - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._connector_pack = None + self._device_id = None + self._device_status = None + self._guid = None + self._host_name = None + self._ip = None + self._license_info = None + self._product_name = None + self._product_vendor = None + self._product_version = None + self._registered_device = None + self._status = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if connector_pack is not None: + self.connector_pack = connector_pack + if device_id is not None: + self.device_id = device_id + if device_status is not None: + self.device_status = device_status + if guid is not None: + self.guid = guid + if host_name is not None: + self.host_name = host_name + if ip is not None: + self.ip = ip + if license_info is not None: + self.license_info = license_info + if product_name is not None: + self.product_name = product_name + if product_vendor is not None: + self.product_vendor = product_vendor + if product_version is not None: + self.product_version = product_version + if registered_device is not None: + self.registered_device = registered_device + if status is not None: + self.status = status + + @property + def account_moid(self): + """ + Gets the account_moid of this IaasUcsdInfo. + The Account ID for this managed object. + + :return: The account_moid of this IaasUcsdInfo. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this IaasUcsdInfo. + The Account ID for this managed object. + + :param account_moid: The account_moid of this IaasUcsdInfo. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this IaasUcsdInfo. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this IaasUcsdInfo. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this IaasUcsdInfo. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this IaasUcsdInfo. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this IaasUcsdInfo. + The time when this managed object was created. + + :return: The create_time of this IaasUcsdInfo. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this IaasUcsdInfo. + The time when this managed object was created. + + :param create_time: The create_time of this IaasUcsdInfo. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this IaasUcsdInfo. + The time when this managed object was last modified. + + :return: The mod_time of this IaasUcsdInfo. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this IaasUcsdInfo. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this IaasUcsdInfo. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this IaasUcsdInfo. + A unique identifier of this Managed Object instance. + + :return: The moid of this IaasUcsdInfo. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasUcsdInfo. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this IaasUcsdInfo. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasUcsdInfo. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this IaasUcsdInfo. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasUcsdInfo. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this IaasUcsdInfo. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this IaasUcsdInfo. + An array of owners which represent effective ownership of this object. + + :return: The owners of this IaasUcsdInfo. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this IaasUcsdInfo. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this IaasUcsdInfo. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this IaasUcsdInfo. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this IaasUcsdInfo. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this IaasUcsdInfo. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this IaasUcsdInfo. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this IaasUcsdInfo. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this IaasUcsdInfo. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this IaasUcsdInfo. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this IaasUcsdInfo. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def connector_pack(self): + """ + Gets the connector_pack of this IaasUcsdInfo. + + :return: The connector_pack of this IaasUcsdInfo. + :rtype: list[IaasConnectorPackRef] + """ + return self._connector_pack + + @connector_pack.setter + def connector_pack(self, connector_pack): + """ + Sets the connector_pack of this IaasUcsdInfo. + + :param connector_pack: The connector_pack of this IaasUcsdInfo. + :type: list[IaasConnectorPackRef] + """ + + self._connector_pack = connector_pack + + @property + def device_id(self): + """ + Gets the device_id of this IaasUcsdInfo. + Moid of the UCSD device connector's asset.DeviceRegistration + + :return: The device_id of this IaasUcsdInfo. + :rtype: str + """ + return self._device_id + + @device_id.setter + def device_id(self, device_id): + """ + Sets the device_id of this IaasUcsdInfo. + Moid of the UCSD device connector's asset.DeviceRegistration + + :param device_id: The device_id of this IaasUcsdInfo. + :type: str + """ + + self._device_id = device_id + + @property + def device_status(self): + """ + Gets the device_status of this IaasUcsdInfo. + + :return: The device_status of this IaasUcsdInfo. + :rtype: list[IaasDeviceStatusRef] + """ + return self._device_status + + @device_status.setter + def device_status(self, device_status): + """ + Sets the device_status of this IaasUcsdInfo. + + :param device_status: The device_status of this IaasUcsdInfo. + :type: list[IaasDeviceStatusRef] + """ + + self._device_status = device_status + + @property + def guid(self): + """ + Gets the guid of this IaasUcsdInfo. + Unique ID of UCSD getting registerd with Intersight + + :return: The guid of this IaasUcsdInfo. + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this IaasUcsdInfo. + Unique ID of UCSD getting registerd with Intersight + + :param guid: The guid of this IaasUcsdInfo. + :type: str + """ + + self._guid = guid + + @property + def host_name(self): + """ + Gets the host_name of this IaasUcsdInfo. + The UCSD host name + + :return: The host_name of this IaasUcsdInfo. + :rtype: str + """ + return self._host_name + + @host_name.setter + def host_name(self, host_name): + """ + Sets the host_name of this IaasUcsdInfo. + The UCSD host name + + :param host_name: The host_name of this IaasUcsdInfo. + :type: str + """ + + self._host_name = host_name + + @property + def ip(self): + """ + Gets the ip of this IaasUcsdInfo. + The UCSD IP address + + :return: The ip of this IaasUcsdInfo. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """ + Sets the ip of this IaasUcsdInfo. + The UCSD IP address + + :param ip: The ip of this IaasUcsdInfo. + :type: str + """ + + self._ip = ip + + @property + def license_info(self): + """ + Gets the license_info of this IaasUcsdInfo. + + :return: The license_info of this IaasUcsdInfo. + :rtype: IaasLicenseInfoRef + """ + return self._license_info + + @license_info.setter + def license_info(self, license_info): + """ + Sets the license_info of this IaasUcsdInfo. + + :param license_info: The license_info of this IaasUcsdInfo. + :type: IaasLicenseInfoRef + """ + + self._license_info = license_info + + @property + def product_name(self): + """ + Gets the product_name of this IaasUcsdInfo. + The UCSD product name + + :return: The product_name of this IaasUcsdInfo. + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """ + Sets the product_name of this IaasUcsdInfo. + The UCSD product name + + :param product_name: The product_name of this IaasUcsdInfo. + :type: str + """ + + self._product_name = product_name + + @property + def product_vendor(self): + """ + Gets the product_vendor of this IaasUcsdInfo. + The UCSD product vendor + + :return: The product_vendor of this IaasUcsdInfo. + :rtype: str + """ + return self._product_vendor + + @product_vendor.setter + def product_vendor(self, product_vendor): + """ + Sets the product_vendor of this IaasUcsdInfo. + The UCSD product vendor + + :param product_vendor: The product_vendor of this IaasUcsdInfo. + :type: str + """ + + self._product_vendor = product_vendor + + @property + def product_version(self): + """ + Gets the product_version of this IaasUcsdInfo. + The UCSD product/platform version + + :return: The product_version of this IaasUcsdInfo. + :rtype: str + """ + return self._product_version + + @product_version.setter + def product_version(self, product_version): + """ + Sets the product_version of this IaasUcsdInfo. + The UCSD product/platform version + + :param product_version: The product_version of this IaasUcsdInfo. + :type: str + """ + + self._product_version = product_version + + @property + def registered_device(self): + """ + Gets the registered_device of this IaasUcsdInfo. + + :return: The registered_device of this IaasUcsdInfo. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this IaasUcsdInfo. + + :param registered_device: The registered_device of this IaasUcsdInfo. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def status(self): + """ + Gets the status of this IaasUcsdInfo. + The UCSD status. Possible values are Active,In-Active,Unknown + + :return: The status of this IaasUcsdInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this IaasUcsdInfo. + The UCSD status. Possible values are Active,In-Active,Unknown + + :param status: The status of this IaasUcsdInfo. + :type: str + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasUcsdInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_ucsd_info_list.py b/intersight/models/iaas_ucsd_info_list.py new file mode 100644 index 00000000..c179579c --- /dev/null +++ b/intersight/models/iaas_ucsd_info_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasUcsdInfoList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[IaasUcsdInfo]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + IaasUcsdInfoList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this IaasUcsdInfoList. + The number of iaasUcsdInfos matching your request in total for all pages. + + :return: The count of this IaasUcsdInfoList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IaasUcsdInfoList. + The number of iaasUcsdInfos matching your request in total for all pages. + + :param count: The count of this IaasUcsdInfoList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this IaasUcsdInfoList. + The array of iaasUcsdInfos matching your request. + + :return: The results of this IaasUcsdInfoList. + :rtype: list[IaasUcsdInfo] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this IaasUcsdInfoList. + The array of iaasUcsdInfos matching your request. + + :param results: The results of this IaasUcsdInfoList. + :type: list[IaasUcsdInfo] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasUcsdInfoList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_ucsd_info_ref.py b/intersight/models/iaas_ucsd_info_ref.py new file mode 100644 index 00000000..67afe90e --- /dev/null +++ b/intersight/models/iaas_ucsd_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasUcsdInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasUcsdInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasUcsdInfoRef. + + :return: The moid of this IaasUcsdInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasUcsdInfoRef. + + :param moid: The moid of this IaasUcsdInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasUcsdInfoRef. + + :return: The object_type of this IaasUcsdInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasUcsdInfoRef. + + :param object_type: The object_type of this IaasUcsdInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasUcsdInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_account.py b/intersight/models/iam_account.py index 63659652..10411213 100644 --- a/intersight/models/iam_account.py +++ b/intersight/models/iam_account.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,27 +32,27 @@ class IamAccount(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'end_point_roles': 'list[MoMoRef]', - 'idpreferences': 'list[MoMoRef]', - 'idps': 'list[MoMoRef]', + 'end_point_roles': 'list[IamEndPointRoleRef]', + 'idpreferences': 'list[IamIdpReferenceRef]', + 'idps': 'list[IamIdpRef]', 'name': 'str', - 'permissions': 'list[MoMoRef]', - 'privilege_sets': 'list[MoMoRef]', - 'privileges': 'list[MoMoRef]', - 'resource_limits': 'MoMoRef', - 'roles': 'list[MoMoRef]', + 'permissions': 'list[IamPermissionRef]', + 'privilege_sets': 'list[IamPrivilegeSetRef]', + 'privileges': 'list[IamPrivilegeRef]', + 'resource_limits': 'IamResourceLimitsRef', + 'roles': 'list[IamRoleRef]', 'root_user_email': 'str', 'root_user_id': 'str', 'root_user_name': 'str', - 'session_limits': 'MoMoRef', + 'session_limits': 'IamSessionLimitsRef', 'status': 'str' } @@ -188,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -199,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamAccount. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -326,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamAccount. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -337,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamAccount. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -371,7 +371,7 @@ def end_point_roles(self): Gets the end_point_roles of this IamAccount. :return: The end_point_roles of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointRoleRef] """ return self._end_point_roles @@ -381,7 +381,7 @@ def end_point_roles(self, end_point_roles): Sets the end_point_roles of this IamAccount. :param end_point_roles: The end_point_roles of this IamAccount. - :type: list[MoMoRef] + :type: list[IamEndPointRoleRef] """ self._end_point_roles = end_point_roles @@ -392,7 +392,7 @@ def idpreferences(self): Gets the idpreferences of this IamAccount. :return: The idpreferences of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamIdpReferenceRef] """ return self._idpreferences @@ -402,7 +402,7 @@ def idpreferences(self, idpreferences): Sets the idpreferences of this IamAccount. :param idpreferences: The idpreferences of this IamAccount. - :type: list[MoMoRef] + :type: list[IamIdpReferenceRef] """ self._idpreferences = idpreferences @@ -413,7 +413,7 @@ def idps(self): Gets the idps of this IamAccount. :return: The idps of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamIdpRef] """ return self._idps @@ -423,7 +423,7 @@ def idps(self, idps): Sets the idps of this IamAccount. :param idps: The idps of this IamAccount. - :type: list[MoMoRef] + :type: list[IamIdpRef] """ self._idps = idps @@ -455,7 +455,7 @@ def permissions(self): Gets the permissions of this IamAccount. :return: The permissions of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamPermissionRef] """ return self._permissions @@ -465,7 +465,7 @@ def permissions(self, permissions): Sets the permissions of this IamAccount. :param permissions: The permissions of this IamAccount. - :type: list[MoMoRef] + :type: list[IamPermissionRef] """ self._permissions = permissions @@ -476,7 +476,7 @@ def privilege_sets(self): Gets the privilege_sets of this IamAccount. :return: The privilege_sets of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeSetRef] """ return self._privilege_sets @@ -486,7 +486,7 @@ def privilege_sets(self, privilege_sets): Sets the privilege_sets of this IamAccount. :param privilege_sets: The privilege_sets of this IamAccount. - :type: list[MoMoRef] + :type: list[IamPrivilegeSetRef] """ self._privilege_sets = privilege_sets @@ -497,7 +497,7 @@ def privileges(self): Gets the privileges of this IamAccount. :return: The privileges of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeRef] """ return self._privileges @@ -507,7 +507,7 @@ def privileges(self, privileges): Sets the privileges of this IamAccount. :param privileges: The privileges of this IamAccount. - :type: list[MoMoRef] + :type: list[IamPrivilegeRef] """ self._privileges = privileges @@ -518,7 +518,7 @@ def resource_limits(self): Gets the resource_limits of this IamAccount. :return: The resource_limits of this IamAccount. - :rtype: MoMoRef + :rtype: IamResourceLimitsRef """ return self._resource_limits @@ -528,7 +528,7 @@ def resource_limits(self, resource_limits): Sets the resource_limits of this IamAccount. :param resource_limits: The resource_limits of this IamAccount. - :type: MoMoRef + :type: IamResourceLimitsRef """ self._resource_limits = resource_limits @@ -539,7 +539,7 @@ def roles(self): Gets the roles of this IamAccount. :return: The roles of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamRoleRef] """ return self._roles @@ -549,7 +549,7 @@ def roles(self, roles): Sets the roles of this IamAccount. :param roles: The roles of this IamAccount. - :type: list[MoMoRef] + :type: list[IamRoleRef] """ self._roles = roles @@ -623,7 +623,7 @@ def session_limits(self): Gets the session_limits of this IamAccount. :return: The session_limits of this IamAccount. - :rtype: MoMoRef + :rtype: IamSessionLimitsRef """ return self._session_limits @@ -633,7 +633,7 @@ def session_limits(self, session_limits): Sets the session_limits of this IamAccount. :param session_limits: The session_limits of this IamAccount. - :type: MoMoRef + :type: IamSessionLimitsRef """ self._session_limits = session_limits diff --git a/intersight/models/iam_account_list.py b/intersight/models/iam_account_list.py index c30ccdae..c02b390c 100644 --- a/intersight/models/iam_account_list.py +++ b/intersight/models/iam_account_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_account_ref.py b/intersight/models/iam_account_ref.py new file mode 100644 index 00000000..4bb974f6 --- /dev/null +++ b/intersight/models/iam_account_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamAccountRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamAccountRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamAccountRef. + + :return: The moid of this IamAccountRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamAccountRef. + + :param moid: The moid of this IamAccountRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamAccountRef. + + :return: The object_type of this IamAccountRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamAccountRef. + + :param object_type: The object_type of this IamAccountRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamAccountRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_api_key.py b/intersight/models/iam_api_key.py index fafff61e..b6f05d95 100644 --- a/intersight/models/iam_api_key.py +++ b/intersight/models/iam_api_key.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,17 @@ class IamApiKey(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'private_key': 'str', 'purpose': 'str', - 'user': 'MoMoRef' + 'user': 'IamUserRef' } attribute_map = { @@ -133,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamApiKey. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamApiKey. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamApiKey. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamApiKey. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -362,7 +362,7 @@ def user(self): Gets the user of this IamApiKey. :return: The user of this IamApiKey. - :rtype: MoMoRef + :rtype: IamUserRef """ return self._user @@ -372,7 +372,7 @@ def user(self, user): Sets the user of this IamApiKey. :param user: The user of this IamApiKey. - :type: MoMoRef + :type: IamUserRef """ self._user = user diff --git a/intersight/models/iam_api_key_list.py b/intersight/models/iam_api_key_list.py index bae059e2..9b234e6e 100644 --- a/intersight/models/iam_api_key_list.py +++ b/intersight/models/iam_api_key_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_api_key_ref.py b/intersight/models/iam_api_key_ref.py new file mode 100644 index 00000000..668cbbf4 --- /dev/null +++ b/intersight/models/iam_api_key_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamApiKeyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamApiKeyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamApiKeyRef. + + :return: The moid of this IamApiKeyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamApiKeyRef. + + :param moid: The moid of this IamApiKeyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamApiKeyRef. + + :return: The object_type of this IamApiKeyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamApiKeyRef. + + :param object_type: The object_type of this IamApiKeyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamApiKeyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_password_properties.py b/intersight/models/iam_end_point_password_properties.py index c69ff093..57883efc 100644 --- a/intersight/models/iam_end_point_password_properties.py +++ b/intersight/models/iam_end_point_password_properties.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -100,7 +100,7 @@ def enable_password_expiry(self, enable_password_expiry): def enforce_strong_password(self): """ Gets the enforce_strong_password of this IamEndPointPasswordProperties. - Enables a strong password policy + Enables a strong password policy Strong password requirements: A. The password must have a minimum of 8 and a maximum of 20 characters. B. The password must not contain the User's Name. C. 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 (!, @, #, $, %, ^, &, *, -, _, +, =). :return: The enforce_strong_password of this IamEndPointPasswordProperties. :rtype: bool @@ -111,7 +111,7 @@ def enforce_strong_password(self): def enforce_strong_password(self, enforce_strong_password): """ Sets the enforce_strong_password of this IamEndPointPasswordProperties. - Enables a strong password policy + Enables a strong password policy Strong password requirements: A. The password must have a minimum of 8 and a maximum of 20 characters. B. The password must not contain the User's Name. C. 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 (!, @, #, $, %, ^, &, *, -, _, +, =). :param enforce_strong_password: The enforce_strong_password of this IamEndPointPasswordProperties. :type: bool @@ -169,7 +169,7 @@ def notification_period(self, notification_period): def password_expiry_duration(self): """ Gets the password_expiry_duration of this IamEndPointPasswordProperties. - Set time period for password expiration + Set time period for password expiration. Value should be greater than notification period and grace period. :return: The password_expiry_duration of this IamEndPointPasswordProperties. :rtype: int @@ -180,7 +180,7 @@ def password_expiry_duration(self): def password_expiry_duration(self, password_expiry_duration): """ Sets the password_expiry_duration of this IamEndPointPasswordProperties. - Set time period for password expiration + Set time period for password expiration. Value should be greater than notification period and grace period. :param password_expiry_duration: The password_expiry_duration of this IamEndPointPasswordProperties. :type: int @@ -192,7 +192,7 @@ def password_expiry_duration(self, password_expiry_duration): def password_history(self): """ Gets the password_history of this IamEndPointPasswordProperties. - Tracks password change history. Specifies in number of instances, that the new password was already used + Tracks password change history. Specifies in number of instances, that the new password was already used. :return: The password_history of this IamEndPointPasswordProperties. :rtype: int @@ -203,7 +203,7 @@ def password_history(self): def password_history(self, password_history): """ Sets the password_history of this IamEndPointPasswordProperties. - Tracks password change history. Specifies in number of instances, that the new password was already used + Tracks password change history. Specifies in number of instances, that the new password was already used. :param password_history: The password_history of this IamEndPointPasswordProperties. :type: int diff --git a/intersight/models/iam_end_point_password_properties_ref.py b/intersight/models/iam_end_point_password_properties_ref.py new file mode 100644 index 00000000..137cc7d4 --- /dev/null +++ b/intersight/models/iam_end_point_password_properties_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointPasswordPropertiesRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointPasswordPropertiesRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointPasswordPropertiesRef. + + :return: The moid of this IamEndPointPasswordPropertiesRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointPasswordPropertiesRef. + + :param moid: The moid of this IamEndPointPasswordPropertiesRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointPasswordPropertiesRef. + + :return: The object_type of this IamEndPointPasswordPropertiesRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointPasswordPropertiesRef. + + :param object_type: The object_type of this IamEndPointPasswordPropertiesRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointPasswordPropertiesRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_privilege.py b/intersight/models/iam_end_point_privilege.py index d494cc5f..26da46e2 100644 --- a/intersight/models/iam_end_point_privilege.py +++ b/intersight/models/iam_end_point_privilege.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,17 @@ class IamEndPointPrivilege(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'system': 'MoMoRef', + 'system': 'IamSystemRef', 'type': 'str' } @@ -62,7 +62,7 @@ class IamEndPointPrivilege(object): 'type': 'Type' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, system=None, type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, system=None, type='null'): """ IamEndPointPrivilege - a model defined in Swagger """ @@ -138,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamEndPointPrivilege. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamEndPointPrivilege. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamEndPointPrivilege. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamEndPointPrivilege. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -367,7 +367,7 @@ def system(self): Gets the system of this IamEndPointPrivilege. :return: The system of this IamEndPointPrivilege. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -377,7 +377,7 @@ def system(self, system): Sets the system of this IamEndPointPrivilege. :param system: The system of this IamEndPointPrivilege. - :type: MoMoRef + :type: IamSystemRef """ self._system = system @@ -402,6 +402,12 @@ def type(self, type): :param type: The type of this IamEndPointPrivilege. :type: str """ + allowed_values = ["", "UCSFI", "IMC", "IMCM4", "IMCM5", "HX", "UCSD"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) self._type = type diff --git a/intersight/models/iam_end_point_privilege_list.py b/intersight/models/iam_end_point_privilege_list.py index 72d2f2c1..b2c682aa 100644 --- a/intersight/models/iam_end_point_privilege_list.py +++ b/intersight/models/iam_end_point_privilege_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_end_point_privilege_ref.py b/intersight/models/iam_end_point_privilege_ref.py new file mode 100644 index 00000000..a7f22d77 --- /dev/null +++ b/intersight/models/iam_end_point_privilege_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointPrivilegeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointPrivilegeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointPrivilegeRef. + + :return: The moid of this IamEndPointPrivilegeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointPrivilegeRef. + + :param moid: The moid of this IamEndPointPrivilegeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointPrivilegeRef. + + :return: The object_type of this IamEndPointPrivilegeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointPrivilegeRef. + + :param object_type: The object_type of this IamEndPointPrivilegeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointPrivilegeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_role.py b/intersight/models/iam_end_point_role.py index 051fa7f2..a7c1854d 100644 --- a/intersight/models/iam_end_point_role.py +++ b/intersight/models/iam_end_point_role.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,19 @@ class IamEndPointRole(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'end_point_privileges': 'list[MoMoRef]', + 'account': 'IamAccountRef', + 'end_point_privileges': 'list[IamEndPointPrivilegeRef]', 'name': 'str', 'role_type': 'str', - 'system': 'MoMoRef', + 'system': 'IamSystemRef', 'type': 'str' } @@ -66,7 +66,7 @@ class IamEndPointRole(object): 'type': 'Type' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, end_point_privileges=None, name=None, role_type=None, system=None, type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, end_point_privileges=None, name=None, role_type=None, system=None, type='null'): """ IamEndPointRole - a model defined in Swagger """ @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamEndPointRole. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamEndPointRole. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamEndPointRole. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamEndPointRole. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -331,7 +331,7 @@ def account(self): Gets the account of this IamEndPointRole. :return: The account of this IamEndPointRole. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -341,7 +341,7 @@ def account(self, account): Sets the account of this IamEndPointRole. :param account: The account of this IamEndPointRole. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -352,7 +352,7 @@ def end_point_privileges(self): Gets the end_point_privileges of this IamEndPointRole. :return: The end_point_privileges of this IamEndPointRole. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointPrivilegeRef] """ return self._end_point_privileges @@ -362,7 +362,7 @@ def end_point_privileges(self, end_point_privileges): Sets the end_point_privileges of this IamEndPointRole. :param end_point_privileges: The end_point_privileges of this IamEndPointRole. - :type: list[MoMoRef] + :type: list[IamEndPointPrivilegeRef] """ self._end_point_privileges = end_point_privileges @@ -419,7 +419,7 @@ def system(self): Gets the system of this IamEndPointRole. :return: The system of this IamEndPointRole. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -429,7 +429,7 @@ def system(self, system): Sets the system of this IamEndPointRole. :param system: The system of this IamEndPointRole. - :type: MoMoRef + :type: IamSystemRef """ self._system = system @@ -454,6 +454,12 @@ def type(self, type): :param type: The type of this IamEndPointRole. :type: str """ + allowed_values = ["", "UCSFI", "IMC", "IMCM4", "IMCM5", "HX", "UCSD"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) self._type = type diff --git a/intersight/models/iam_end_point_role_list.py b/intersight/models/iam_end_point_role_list.py index 148e2730..bdb67465 100644 --- a/intersight/models/iam_end_point_role_list.py +++ b/intersight/models/iam_end_point_role_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_end_point_role_ref.py b/intersight/models/iam_end_point_role_ref.py new file mode 100644 index 00000000..6f4a17d5 --- /dev/null +++ b/intersight/models/iam_end_point_role_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointRoleRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointRoleRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointRoleRef. + + :return: The moid of this IamEndPointRoleRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointRoleRef. + + :param moid: The moid of this IamEndPointRoleRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointRoleRef. + + :return: The object_type of this IamEndPointRoleRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointRoleRef. + + :param object_type: The object_type of this IamEndPointRoleRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointRoleRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_user.py b/intersight/models/iam_end_point_user.py index b4132a45..20ba32db 100644 --- a/intersight/models/iam_end_point_user.py +++ b/intersight/models/iam_end_point_user.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,17 @@ class IamEndPointUser(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'end_point_user_role': 'list[MoMoRef]', + 'end_point_user_role': 'list[IamEndPointUserRoleRef]', 'name': 'str', - 'organization': 'MoMoRef' + 'organization': 'IamAccountRef' } attribute_map = { @@ -133,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamEndPointUser. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamEndPointUser. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamEndPointUser. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamEndPointUser. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +316,7 @@ def end_point_user_role(self): Gets the end_point_user_role of this IamEndPointUser. :return: The end_point_user_role of this IamEndPointUser. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointUserRoleRef] """ return self._end_point_user_role @@ -326,7 +326,7 @@ def end_point_user_role(self, end_point_user_role): Sets the end_point_user_role of this IamEndPointUser. :param end_point_user_role: The end_point_user_role of this IamEndPointUser. - :type: list[MoMoRef] + :type: list[IamEndPointUserRoleRef] """ self._end_point_user_role = end_point_user_role @@ -335,7 +335,7 @@ def end_point_user_role(self, end_point_user_role): def name(self): """ Gets the name of this IamEndPointUser. - Username of the endpoint user + Username :return: The name of this IamEndPointUser. :rtype: str @@ -346,7 +346,7 @@ def name(self): def name(self, name): """ Sets the name of this IamEndPointUser. - Username of the endpoint user + Username :param name: The name of this IamEndPointUser. :type: str @@ -361,7 +361,7 @@ def organization(self): Organization :return: The organization of this IamEndPointUser. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -372,7 +372,7 @@ def organization(self, organization): Organization :param organization: The organization of this IamEndPointUser. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization diff --git a/intersight/models/iam_end_point_user_deploy_task_ref.py b/intersight/models/iam_end_point_user_deploy_task_ref.py new file mode 100644 index 00000000..492286a3 --- /dev/null +++ b/intersight/models/iam_end_point_user_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointUserDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointUserDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointUserDeployTaskRef. + + :return: The moid of this IamEndPointUserDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointUserDeployTaskRef. + + :param moid: The moid of this IamEndPointUserDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointUserDeployTaskRef. + + :return: The object_type of this IamEndPointUserDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointUserDeployTaskRef. + + :param object_type: The object_type of this IamEndPointUserDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointUserDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_user_list.py b/intersight/models/iam_end_point_user_list.py index 0d21c532..c8c11ed1 100644 --- a/intersight/models/iam_end_point_user_list.py +++ b/intersight/models/iam_end_point_user_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_end_point_user_policy.py b/intersight/models/iam_end_point_user_policy.py index 5523d56f..1c7c5ef7 100644 --- a/intersight/models/iam_end_point_user_policy.py +++ b/intersight/models/iam_end_point_user_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class IamEndPointUserPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'end_point_user_roles': 'list[MoMoRef]', - 'organization': 'MoMoRef', + 'end_point_user_roles': 'list[IamEndPointUserRoleRef]', + 'organization': 'IamAccountRef', 'password_properties': 'IamEndPointPasswordProperties', - 'profiles': 'list[MoMoRef]' + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamEndPointUserPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamEndPointUserPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamEndPointUserPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamEndPointUserPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -378,7 +378,7 @@ def end_point_user_roles(self): Relationship to the collection of Endpoint user roles :return: The end_point_user_roles of this IamEndPointUserPolicy. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointUserRoleRef] """ return self._end_point_user_roles @@ -389,7 +389,7 @@ def end_point_user_roles(self, end_point_user_roles): Relationship to the collection of Endpoint user roles :param end_point_user_roles: The end_point_user_roles of this IamEndPointUserPolicy. - :type: list[MoMoRef] + :type: list[IamEndPointUserRoleRef] """ self._end_point_user_roles = end_point_user_roles @@ -401,7 +401,7 @@ def organization(self): Organization :return: The organization of this IamEndPointUserPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -412,7 +412,7 @@ def organization(self, organization): Organization :param organization: The organization of this IamEndPointUserPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -447,7 +447,7 @@ def profiles(self): Relationship to the server profile object :return: The profiles of this IamEndPointUserPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -458,7 +458,7 @@ def profiles(self, profiles): Relationship to the server profile object :param profiles: The profiles of this IamEndPointUserPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/iam_end_point_user_policy_list.py b/intersight/models/iam_end_point_user_policy_list.py index 69a38eab..ed40d7e6 100644 --- a/intersight/models/iam_end_point_user_policy_list.py +++ b/intersight/models/iam_end_point_user_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_end_point_user_policy_ref.py b/intersight/models/iam_end_point_user_policy_ref.py new file mode 100644 index 00000000..09a33092 --- /dev/null +++ b/intersight/models/iam_end_point_user_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointUserPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointUserPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointUserPolicyRef. + + :return: The moid of this IamEndPointUserPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointUserPolicyRef. + + :param moid: The moid of this IamEndPointUserPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointUserPolicyRef. + + :return: The object_type of this IamEndPointUserPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointUserPolicyRef. + + :param object_type: The object_type of this IamEndPointUserPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointUserPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_user_ref.py b/intersight/models/iam_end_point_user_ref.py new file mode 100644 index 00000000..2425cff6 --- /dev/null +++ b/intersight/models/iam_end_point_user_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointUserRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointUserRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointUserRef. + + :return: The moid of this IamEndPointUserRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointUserRef. + + :param moid: The moid of this IamEndPointUserRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointUserRef. + + :return: The object_type of this IamEndPointUserRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointUserRef. + + :param object_type: The object_type of this IamEndPointUserRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointUserRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_user_role.py b/intersight/models/iam_end_point_user_role.py index f029c7fd..8b057c5b 100644 --- a/intersight/models/iam_end_point_user_role.py +++ b/intersight/models/iam_end_point_user_role.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,20 @@ class IamEndPointUserRole(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'change_password': 'bool', 'enabled': 'bool', - 'end_point_role': 'list[MoMoRef]', - 'end_point_user': 'MoMoRef', - 'end_point_user_policy': 'MoMoRef', + 'end_point_role': 'list[IamEndPointRoleRef]', + 'end_point_user': 'IamEndPointUserRef', + 'end_point_user_policy': 'IamEndPointUserPolicyRef', + 'is_password_set': 'bool', 'password': 'str' } @@ -63,10 +64,11 @@ class IamEndPointUserRole(object): 'end_point_role': 'EndPointRole', 'end_point_user': 'EndPointUser', 'end_point_user_policy': 'EndPointUserPolicy', + 'is_password_set': 'IsPasswordSet', 'password': 'Password' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, change_password=None, enabled=None, end_point_role=None, end_point_user=None, end_point_user_policy=None, password=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, change_password=None, enabled=None, end_point_role=None, end_point_user=None, end_point_user_policy=None, is_password_set=None, password=None): """ IamEndPointUserRole - a model defined in Swagger """ @@ -85,6 +87,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._end_point_role = None self._end_point_user = None self._end_point_user_policy = None + self._is_password_set = None self._password = None if account_moid is not None: @@ -115,6 +118,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.end_point_user = end_point_user if end_point_user_policy is not None: self.end_point_user_policy = end_point_user_policy + if is_password_set is not None: + self.is_password_set = is_password_set if password is not None: self.password = password @@ -148,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamEndPointUserRole. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamEndPointUserRole. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamEndPointUserRole. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamEndPointUserRole. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -375,10 +380,10 @@ def enabled(self, enabled): def end_point_role(self): """ Gets the end_point_role of this IamEndPointUserRole. - Relationship to the endpoint roles + Roles :return: The end_point_role of this IamEndPointUserRole. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointRoleRef] """ return self._end_point_role @@ -386,10 +391,10 @@ def end_point_role(self): def end_point_role(self, end_point_role): """ Sets the end_point_role of this IamEndPointUserRole. - Relationship to the endpoint roles + Roles :param end_point_role: The end_point_role of this IamEndPointUserRole. - :type: list[MoMoRef] + :type: list[IamEndPointRoleRef] """ self._end_point_role = end_point_role @@ -398,10 +403,10 @@ def end_point_role(self, end_point_role): def end_point_user(self): """ Gets the end_point_user of this IamEndPointUserRole. - Relationship to the Endpoint user + User :return: The end_point_user of this IamEndPointUserRole. - :rtype: MoMoRef + :rtype: IamEndPointUserRef """ return self._end_point_user @@ -409,10 +414,10 @@ def end_point_user(self): def end_point_user(self, end_point_user): """ Sets the end_point_user of this IamEndPointUserRole. - Relationship to the Endpoint user + User :param end_point_user: The end_point_user of this IamEndPointUserRole. - :type: MoMoRef + :type: IamEndPointUserRef """ self._end_point_user = end_point_user @@ -423,7 +428,7 @@ def end_point_user_policy(self): Gets the end_point_user_policy of this IamEndPointUserRole. :return: The end_point_user_policy of this IamEndPointUserRole. - :rtype: MoMoRef + :rtype: IamEndPointUserPolicyRef """ return self._end_point_user_policy @@ -433,16 +438,37 @@ def end_point_user_policy(self, end_point_user_policy): Sets the end_point_user_policy of this IamEndPointUserRole. :param end_point_user_policy: The end_point_user_policy of this IamEndPointUserRole. - :type: MoMoRef + :type: IamEndPointUserPolicyRef """ self._end_point_user_policy = end_point_user_policy + @property + def is_password_set(self): + """ + Gets the is_password_set of this IamEndPointUserRole. + + :return: The is_password_set of this IamEndPointUserRole. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this IamEndPointUserRole. + + :param is_password_set: The is_password_set of this IamEndPointUserRole. + :type: bool + """ + + self._is_password_set = is_password_set + @property def password(self): """ Gets the password of this IamEndPointUserRole. - Password for the endpoint user + Password for the user :return: The password of this IamEndPointUserRole. :rtype: str @@ -453,7 +479,7 @@ def password(self): def password(self, password): """ Sets the password of this IamEndPointUserRole. - Password for the endpoint user + Password for the user :param password: The password of this IamEndPointUserRole. :type: str diff --git a/intersight/models/iam_end_point_user_role_list.py b/intersight/models/iam_end_point_user_role_list.py index bb5ad030..2c4964f3 100644 --- a/intersight/models/iam_end_point_user_role_list.py +++ b/intersight/models/iam_end_point_user_role_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_end_point_user_role_ref.py b/intersight/models/iam_end_point_user_role_ref.py new file mode 100644 index 00000000..590830bd --- /dev/null +++ b/intersight/models/iam_end_point_user_role_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointUserRoleRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointUserRoleRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointUserRoleRef. + + :return: The moid of this IamEndPointUserRoleRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointUserRoleRef. + + :param moid: The moid of this IamEndPointUserRoleRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointUserRoleRef. + + :return: The object_type of this IamEndPointUserRoleRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointUserRoleRef. + + :param object_type: The object_type of this IamEndPointUserRoleRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointUserRoleRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_user_validation_task_ref.py b/intersight/models/iam_end_point_user_validation_task_ref.py new file mode 100644 index 00000000..e2fe1895 --- /dev/null +++ b/intersight/models/iam_end_point_user_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointUserValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointUserValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointUserValidationTaskRef. + + :return: The moid of this IamEndPointUserValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointUserValidationTaskRef. + + :param moid: The moid of this IamEndPointUserValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointUserValidationTaskRef. + + :return: The object_type of this IamEndPointUserValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointUserValidationTaskRef. + + :param object_type: The object_type of this IamEndPointUserValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointUserValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_idp.py b/intersight/models/iam_idp.py index d9a612f3..86e6337c 100644 --- a/intersight/models/iam_idp.py +++ b/intersight/models/iam_idp.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,21 @@ class IamIdp(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'config_state': 'str', 'idp_connection_name': 'str', 'idp_entity_id': 'str', 'name': 'str', 'sp_adapter_name': 'str', - 'system': 'MoMoRef' + 'system': 'IamSystemRef' } attribute_map = { @@ -153,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamIdp. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamIdp. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamIdp. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamIdp. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -336,7 +336,7 @@ def account(self): Gets the account of this IamIdp. :return: The account of this IamIdp. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -346,7 +346,7 @@ def account(self, account): Sets the account of this IamIdp. :param account: The account of this IamIdp. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -462,7 +462,7 @@ def system(self): Gets the system of this IamIdp. :return: The system of this IamIdp. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -472,7 +472,7 @@ def system(self, system): Sets the system of this IamIdp. :param system: The system of this IamIdp. - :type: MoMoRef + :type: IamSystemRef """ self._system = system diff --git a/intersight/models/iam_idp_list.py b/intersight/models/iam_idp_list.py index 25c6adf6..c1085cdc 100644 --- a/intersight/models/iam_idp_list.py +++ b/intersight/models/iam_idp_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_idp_ref.py b/intersight/models/iam_idp_ref.py new file mode 100644 index 00000000..02a1b442 --- /dev/null +++ b/intersight/models/iam_idp_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamIdpRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamIdpRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamIdpRef. + + :return: The moid of this IamIdpRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamIdpRef. + + :param moid: The moid of this IamIdpRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamIdpRef. + + :return: The object_type of this IamIdpRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamIdpRef. + + :param object_type: The object_type of this IamIdpRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamIdpRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_idp_reference.py b/intersight/models/iam_idp_reference.py index 9d9a711a..0b4e234b 100644 --- a/intersight/models/iam_idp_reference.py +++ b/intersight/models/iam_idp_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,21 @@ class IamIdpReference(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'idp': 'MoMoRef', + 'account': 'IamAccountRef', + 'idp': 'IamIdpRef', 'name': 'str', - 'user_login_time': 'list[MoMoRef]', - 'user_preferences': 'list[MoMoRef]', - 'usergroups': 'list[MoMoRef]', - 'users': 'list[MoMoRef]' + 'user_login_time': 'list[IamUserLoginTimeRef]', + 'user_preferences': 'list[IamUserPreferenceRef]', + 'usergroups': 'list[IamUserGroupRef]', + 'users': 'list[IamUserRef]' } attribute_map = { @@ -153,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamIdpReference. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamIdpReference. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamIdpReference. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamIdpReference. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -336,7 +336,7 @@ def account(self): Gets the account of this IamIdpReference. :return: The account of this IamIdpReference. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -346,7 +346,7 @@ def account(self, account): Sets the account of this IamIdpReference. :param account: The account of this IamIdpReference. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -357,7 +357,7 @@ def idp(self): Gets the idp of this IamIdpReference. :return: The idp of this IamIdpReference. - :rtype: MoMoRef + :rtype: IamIdpRef """ return self._idp @@ -367,7 +367,7 @@ def idp(self, idp): Sets the idp of this IamIdpReference. :param idp: The idp of this IamIdpReference. - :type: MoMoRef + :type: IamIdpRef """ self._idp = idp @@ -399,7 +399,7 @@ def user_login_time(self): Gets the user_login_time of this IamIdpReference. :return: The user_login_time of this IamIdpReference. - :rtype: list[MoMoRef] + :rtype: list[IamUserLoginTimeRef] """ return self._user_login_time @@ -409,7 +409,7 @@ def user_login_time(self, user_login_time): Sets the user_login_time of this IamIdpReference. :param user_login_time: The user_login_time of this IamIdpReference. - :type: list[MoMoRef] + :type: list[IamUserLoginTimeRef] """ self._user_login_time = user_login_time @@ -420,7 +420,7 @@ def user_preferences(self): Gets the user_preferences of this IamIdpReference. :return: The user_preferences of this IamIdpReference. - :rtype: list[MoMoRef] + :rtype: list[IamUserPreferenceRef] """ return self._user_preferences @@ -430,7 +430,7 @@ def user_preferences(self, user_preferences): Sets the user_preferences of this IamIdpReference. :param user_preferences: The user_preferences of this IamIdpReference. - :type: list[MoMoRef] + :type: list[IamUserPreferenceRef] """ self._user_preferences = user_preferences @@ -441,7 +441,7 @@ def usergroups(self): Gets the usergroups of this IamIdpReference. :return: The usergroups of this IamIdpReference. - :rtype: list[MoMoRef] + :rtype: list[IamUserGroupRef] """ return self._usergroups @@ -451,7 +451,7 @@ def usergroups(self, usergroups): Sets the usergroups of this IamIdpReference. :param usergroups: The usergroups of this IamIdpReference. - :type: list[MoMoRef] + :type: list[IamUserGroupRef] """ self._usergroups = usergroups @@ -462,7 +462,7 @@ def users(self): Gets the users of this IamIdpReference. :return: The users of this IamIdpReference. - :rtype: list[MoMoRef] + :rtype: list[IamUserRef] """ return self._users @@ -472,7 +472,7 @@ def users(self, users): Sets the users of this IamIdpReference. :param users: The users of this IamIdpReference. - :type: list[MoMoRef] + :type: list[IamUserRef] """ self._users = users diff --git a/intersight/models/iam_idp_reference_list.py b/intersight/models/iam_idp_reference_list.py index fb041c5d..61f8a489 100644 --- a/intersight/models/iam_idp_reference_list.py +++ b/intersight/models/iam_idp_reference_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_idp_reference_ref.py b/intersight/models/iam_idp_reference_ref.py new file mode 100644 index 00000000..5f08e3f6 --- /dev/null +++ b/intersight/models/iam_idp_reference_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamIdpReferenceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamIdpReferenceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamIdpReferenceRef. + + :return: The moid of this IamIdpReferenceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamIdpReferenceRef. + + :param moid: The moid of this IamIdpReferenceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamIdpReferenceRef. + + :return: The object_type of this IamIdpReferenceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamIdpReferenceRef. + + :param object_type: The object_type of this IamIdpReferenceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamIdpReferenceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_base_properties.py b/intersight/models/iam_ldap_base_properties.py index 990a0958..4a41c0f3 100644 --- a/intersight/models/iam_ldap_base_properties.py +++ b/intersight/models/iam_ldap_base_properties.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -40,6 +40,7 @@ class IamLdapBaseProperties(object): 'enable_group_authorization': 'bool', 'filter': 'str', 'group_attribute': 'str', + 'is_password_set': 'bool', 'nested_group_search_depth': 'int', 'password': 'str', 'timeout': 'int' @@ -55,12 +56,13 @@ class IamLdapBaseProperties(object): 'enable_group_authorization': 'EnableGroupAuthorization', 'filter': 'Filter', 'group_attribute': 'GroupAttribute', + 'is_password_set': 'IsPasswordSet', 'nested_group_search_depth': 'NestedGroupSearchDepth', 'password': 'Password', 'timeout': 'Timeout' } - def __init__(self, attribute=None, base_dn=None, bind_dn=None, bind_method='LoginCredentials', domain=None, enable_encryption=None, enable_group_authorization=None, filter=None, group_attribute=None, nested_group_search_depth=None, password=None, timeout=None): + def __init__(self, attribute=None, base_dn=None, bind_dn=None, bind_method='LoginCredentials', domain=None, enable_encryption=None, enable_group_authorization=None, filter=None, group_attribute=None, is_password_set=None, nested_group_search_depth=None, password=None, timeout=None): """ IamLdapBaseProperties - a model defined in Swagger """ @@ -74,6 +76,7 @@ def __init__(self, attribute=None, base_dn=None, bind_dn=None, bind_method='Logi self._enable_group_authorization = None self._filter = None self._group_attribute = None + self._is_password_set = None self._nested_group_search_depth = None self._password = None self._timeout = None @@ -96,6 +99,8 @@ def __init__(self, attribute=None, base_dn=None, bind_dn=None, bind_method='Logi self.filter = filter if group_attribute is not None: self.group_attribute = group_attribute + if is_password_set is not None: + self.is_password_set = is_password_set if nested_group_search_depth is not None: self.nested_group_search_depth = nested_group_search_depth if password is not None: @@ -107,7 +112,7 @@ def __init__(self, attribute=None, base_dn=None, bind_dn=None, bind_method='Logi def attribute(self): """ Gets the attribute of this IamLdapBaseProperties. - An LDAP attribute that contains the role and locale information for the user. This property is always a name-value pair. The system queries the user record for the value that matches this attribute name. For example, CiscoAvPair + Role and locale information of the user :return: The attribute of this IamLdapBaseProperties. :rtype: str @@ -118,7 +123,7 @@ def attribute(self): def attribute(self, attribute): """ Sets the attribute of this IamLdapBaseProperties. - An LDAP attribute that contains the role and locale information for the user. This property is always a name-value pair. The system queries the user record for the value that matches this attribute name. For example, CiscoAvPair + Role and locale information of the user :param attribute: The attribute of this IamLdapBaseProperties. :type: str @@ -130,7 +135,7 @@ def attribute(self, attribute): def base_dn(self): """ Gets the base_dn of this IamLdapBaseProperties. - Base Distinguished Name(DN). This field describes where to load users and groups from. It must be in the dc=domain,dc=com format for Active Directory servers + Base Distinguished Name(DN). Starting point from where server will search for users and groups :return: The base_dn of this IamLdapBaseProperties. :rtype: str @@ -141,7 +146,7 @@ def base_dn(self): def base_dn(self, base_dn): """ Sets the base_dn of this IamLdapBaseProperties. - Base Distinguished Name(DN). This field describes where to load users and groups from. It must be in the dc=domain,dc=com format for Active Directory servers + Base Distinguished Name(DN). Starting point from where server will search for users and groups :param base_dn: The base_dn of this IamLdapBaseProperties. :type: str @@ -153,7 +158,7 @@ def base_dn(self, base_dn): def bind_dn(self): """ Gets the bind_dn of this IamLdapBaseProperties. - Distinguished Name(DN) of the user, that is used to authenticate against LDAP servers. Applicable only when BindMethod='ConfiguredCredentials' + Distinguished Name(DN) of the user, that is used to authenticate against LDAP servers :return: The bind_dn of this IamLdapBaseProperties. :rtype: str @@ -164,7 +169,7 @@ def bind_dn(self): def bind_dn(self, bind_dn): """ Sets the bind_dn of this IamLdapBaseProperties. - Distinguished Name(DN) of the user, that is used to authenticate against LDAP servers. Applicable only when BindMethod='ConfiguredCredentials' + Distinguished Name(DN) of the user, that is used to authenticate against LDAP servers :param bind_dn: The bind_dn of this IamLdapBaseProperties. :type: str @@ -176,7 +181,7 @@ def bind_dn(self, bind_dn): def bind_method(self): """ Gets the bind_method of this IamLdapBaseProperties. - Authentication method to access LDAP servers. By default, it is 'LoginCredentials' + Authentication method to access LDAP servers :return: The bind_method of this IamLdapBaseProperties. :rtype: str @@ -187,7 +192,7 @@ def bind_method(self): def bind_method(self, bind_method): """ Sets the bind_method of this IamLdapBaseProperties. - Authentication method to access LDAP servers. By default, it is 'LoginCredentials' + Authentication method to access LDAP servers :param bind_method: The bind_method of this IamLdapBaseProperties. :type: str @@ -228,7 +233,7 @@ def domain(self, domain): def enable_encryption(self): """ Gets the enable_encryption of this IamLdapBaseProperties. - Endpoint encrypts all information it sends to the LDAP server + If enabled, the endpoint encrypts all information it sends to the LDAP server :return: The enable_encryption of this IamLdapBaseProperties. :rtype: bool @@ -239,7 +244,7 @@ def enable_encryption(self): def enable_encryption(self, enable_encryption): """ Sets the enable_encryption of this IamLdapBaseProperties. - Endpoint encrypts all information it sends to the LDAP server + If enabled, the endpoint encrypts all information it sends to the LDAP server :param enable_encryption: The enable_encryption of this IamLdapBaseProperties. :type: bool @@ -251,7 +256,7 @@ def enable_encryption(self, enable_encryption): def enable_group_authorization(self): """ Gets the enable_group_authorization of this IamLdapBaseProperties. - User authentication is also done on the group level for LDAP users that are not found in the local user database + If enabled, user authorization is also done at the group level for LDAP users not in the local user database :return: The enable_group_authorization of this IamLdapBaseProperties. :rtype: bool @@ -262,7 +267,7 @@ def enable_group_authorization(self): def enable_group_authorization(self, enable_group_authorization): """ Sets the enable_group_authorization of this IamLdapBaseProperties. - User authentication is also done on the group level for LDAP users that are not found in the local user database + If enabled, user authorization is also done at the group level for LDAP users not in the local user database :param enable_group_authorization: The enable_group_authorization of this IamLdapBaseProperties. :type: bool @@ -274,7 +279,7 @@ def enable_group_authorization(self, enable_group_authorization): def filter(self): """ Gets the filter of this IamLdapBaseProperties. - Filter defines the criteria used to identify entries in search requests. This field must match the configured attribute in the schema on the LDAP server + Criteria to identify entries in search requests :return: The filter of this IamLdapBaseProperties. :rtype: str @@ -285,7 +290,7 @@ def filter(self): def filter(self, filter): """ Sets the filter of this IamLdapBaseProperties. - Filter defines the criteria used to identify entries in search requests. This field must match the configured attribute in the schema on the LDAP server + Criteria to identify entries in search requests :param filter: The filter of this IamLdapBaseProperties. :type: str @@ -297,7 +302,7 @@ def filter(self, filter): def group_attribute(self): """ Gets the group_attribute of this IamLdapBaseProperties. - An LDAP attribute that indicates the groups to which an LDAP entry belongs. For example, memberOf is the name of the membership attribute that is used in Active Directory + Groups to which an LDAP entry belongs :return: The group_attribute of this IamLdapBaseProperties. :rtype: str @@ -308,7 +313,7 @@ def group_attribute(self): def group_attribute(self, group_attribute): """ Sets the group_attribute of this IamLdapBaseProperties. - An LDAP attribute that indicates the groups to which an LDAP entry belongs. For example, memberOf is the name of the membership attribute that is used in Active Directory + Groups to which an LDAP entry belongs :param group_attribute: The group_attribute of this IamLdapBaseProperties. :type: str @@ -316,11 +321,32 @@ def group_attribute(self, group_attribute): self._group_attribute = group_attribute + @property + def is_password_set(self): + """ + Gets the is_password_set of this IamLdapBaseProperties. + + :return: The is_password_set of this IamLdapBaseProperties. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this IamLdapBaseProperties. + + :param is_password_set: The is_password_set of this IamLdapBaseProperties. + :type: bool + """ + + self._is_password_set = is_password_set + @property def nested_group_search_depth(self): """ Gets the nested_group_search_depth of this IamLdapBaseProperties. - Parameter to search for an LDAP group nested within another defined group in an LDAP group map. The parameter defines the depth of a nested group search + Search depth to look for a nested LDAP group in an LDAP group map :return: The nested_group_search_depth of this IamLdapBaseProperties. :rtype: int @@ -331,7 +357,7 @@ def nested_group_search_depth(self): def nested_group_search_depth(self, nested_group_search_depth): """ Sets the nested_group_search_depth of this IamLdapBaseProperties. - Parameter to search for an LDAP group nested within another defined group in an LDAP group map. The parameter defines the depth of a nested group search + Search depth to look for a nested LDAP group in an LDAP group map :param nested_group_search_depth: The nested_group_search_depth of this IamLdapBaseProperties. :type: int @@ -343,7 +369,7 @@ def nested_group_search_depth(self, nested_group_search_depth): def password(self): """ Gets the password of this IamLdapBaseProperties. - Password of the user. Applicable only when BindMethod='ConfiguredCredentials' + Password of the user :return: The password of this IamLdapBaseProperties. :rtype: str @@ -354,7 +380,7 @@ def password(self): def password(self, password): """ Sets the password of this IamLdapBaseProperties. - Password of the user. Applicable only when BindMethod='ConfiguredCredentials' + Password of the user :param password: The password of this IamLdapBaseProperties. :type: str @@ -366,7 +392,7 @@ def password(self, password): def timeout(self): """ Gets the timeout of this IamLdapBaseProperties. - Timeout in seconds for LDAP authentication process + LDAP authentication timeout duration, in seconds :return: The timeout of this IamLdapBaseProperties. :rtype: int @@ -377,7 +403,7 @@ def timeout(self): def timeout(self, timeout): """ Sets the timeout of this IamLdapBaseProperties. - Timeout in seconds for LDAP authentication process + LDAP authentication timeout duration, in seconds :param timeout: The timeout of this IamLdapBaseProperties. :type: int diff --git a/intersight/models/iam_ldap_base_properties_ref.py b/intersight/models/iam_ldap_base_properties_ref.py new file mode 100644 index 00000000..4d6fff90 --- /dev/null +++ b/intersight/models/iam_ldap_base_properties_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapBasePropertiesRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapBasePropertiesRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapBasePropertiesRef. + + :return: The moid of this IamLdapBasePropertiesRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapBasePropertiesRef. + + :param moid: The moid of this IamLdapBasePropertiesRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapBasePropertiesRef. + + :return: The object_type of this IamLdapBasePropertiesRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapBasePropertiesRef. + + :param object_type: The object_type of this IamLdapBasePropertiesRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapBasePropertiesRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_deploy_task_ref.py b/intersight/models/iam_ldap_deploy_task_ref.py new file mode 100644 index 00000000..fbfdfd3e --- /dev/null +++ b/intersight/models/iam_ldap_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapDeployTaskRef. + + :return: The moid of this IamLdapDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapDeployTaskRef. + + :param moid: The moid of this IamLdapDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapDeployTaskRef. + + :return: The object_type of this IamLdapDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapDeployTaskRef. + + :param object_type: The object_type of this IamLdapDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_dns_parameters.py b/intersight/models/iam_ldap_dns_parameters.py index 9fd532b3..dfb25834 100644 --- a/intersight/models/iam_ldap_dns_parameters.py +++ b/intersight/models/iam_ldap_dns_parameters.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -108,7 +108,7 @@ def search_forest(self, search_forest): def source(self): """ Gets the source of this IamLdapDnsParameters. - Specifies how to obtain the domain name used for the DNS SRV request + Specifies the source of the domain name used for the DNS SRV request :return: The source of this IamLdapDnsParameters. :rtype: str @@ -119,7 +119,7 @@ def source(self): def source(self, source): """ Sets the source of this IamLdapDnsParameters. - Specifies how to obtain the domain name used for the DNS SRV request + Specifies the source of the domain name used for the DNS SRV request :param source: The source of this IamLdapDnsParameters. :type: str diff --git a/intersight/models/iam_ldap_dns_parameters_ref.py b/intersight/models/iam_ldap_dns_parameters_ref.py new file mode 100644 index 00000000..64eb03c1 --- /dev/null +++ b/intersight/models/iam_ldap_dns_parameters_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapDnsParametersRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapDnsParametersRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapDnsParametersRef. + + :return: The moid of this IamLdapDnsParametersRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapDnsParametersRef. + + :param moid: The moid of this IamLdapDnsParametersRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapDnsParametersRef. + + :return: The object_type of this IamLdapDnsParametersRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapDnsParametersRef. + + :param object_type: The object_type of this IamLdapDnsParametersRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapDnsParametersRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_group.py b/intersight/models/iam_ldap_group.py index 4c9c4c72..aa25a68a 100644 --- a/intersight/models/iam_ldap_group.py +++ b/intersight/models/iam_ldap_group.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,17 @@ class IamLdapGroup(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'domain': 'str', - 'end_point_role': 'list[MoMoRef]', - 'ldap_policy': 'MoMoRef', + 'end_point_role': 'list[IamEndPointRoleRef]', + 'ldap_policy': 'IamLdapPolicyRef', 'name': 'str' } @@ -138,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamLdapGroup. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamLdapGroup. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamLdapGroup. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamLdapGroup. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -342,10 +342,10 @@ def domain(self, domain): def end_point_role(self): """ Gets the end_point_role of this IamLdapGroup. - Relationship to endpoint roles + Roles :return: The end_point_role of this IamLdapGroup. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointRoleRef] """ return self._end_point_role @@ -353,10 +353,10 @@ def end_point_role(self): def end_point_role(self, end_point_role): """ Sets the end_point_role of this IamLdapGroup. - Relationship to endpoint roles + Roles :param end_point_role: The end_point_role of this IamLdapGroup. - :type: list[MoMoRef] + :type: list[IamEndPointRoleRef] """ self._end_point_role = end_point_role @@ -367,7 +367,7 @@ def ldap_policy(self): Gets the ldap_policy of this IamLdapGroup. :return: The ldap_policy of this IamLdapGroup. - :rtype: MoMoRef + :rtype: IamLdapPolicyRef """ return self._ldap_policy @@ -377,7 +377,7 @@ def ldap_policy(self, ldap_policy): Sets the ldap_policy of this IamLdapGroup. :param ldap_policy: The ldap_policy of this IamLdapGroup. - :type: MoMoRef + :type: IamLdapPolicyRef """ self._ldap_policy = ldap_policy diff --git a/intersight/models/iam_ldap_group_list.py b/intersight/models/iam_ldap_group_list.py index c07cbb03..2f5d27db 100644 --- a/intersight/models/iam_ldap_group_list.py +++ b/intersight/models/iam_ldap_group_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_ldap_group_ref.py b/intersight/models/iam_ldap_group_ref.py new file mode 100644 index 00000000..0cdefeb8 --- /dev/null +++ b/intersight/models/iam_ldap_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapGroupRef. + + :return: The moid of this IamLdapGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapGroupRef. + + :param moid: The moid of this IamLdapGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapGroupRef. + + :return: The object_type of this IamLdapGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapGroupRef. + + :param object_type: The object_type of this IamLdapGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_policy.py b/intersight/models/iam_ldap_policy.py index c9ff5d37..4aaf0981 100644 --- a/intersight/models/iam_ldap_policy.py +++ b/intersight/models/iam_ldap_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class IamLdapPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', @@ -46,10 +46,10 @@ class IamLdapPolicy(object): 'dns_parameters': 'IamLdapDnsParameters', 'enable_dns': 'bool', 'enabled': 'bool', - 'groups': 'list[MoMoRef]', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', - 'providers': 'list[MoMoRef]', + 'groups': 'list[IamLdapGroupRef]', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', + 'providers': 'list[IamLdapProviderRef]', 'user_search_precedence': 'str' } @@ -173,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamLdapPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -184,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamLdapPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -311,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamLdapPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -322,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamLdapPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -446,7 +446,7 @@ def dns_parameters(self, dns_parameters): def enable_dns(self): """ Gets the enable_dns of this IamLdapPolicy. - DNS can be configured to access LDAP servers + If enabled, DNS can be configured to access LDAP servers :return: The enable_dns of this IamLdapPolicy. :rtype: bool @@ -457,7 +457,7 @@ def enable_dns(self): def enable_dns(self, enable_dns): """ Sets the enable_dns of this IamLdapPolicy. - DNS can be configured to access LDAP servers + If enabled, DNS can be configured to access LDAP servers :param enable_dns: The enable_dns of this IamLdapPolicy. :type: bool @@ -469,7 +469,7 @@ def enable_dns(self, enable_dns): def enabled(self): """ Gets the enabled of this IamLdapPolicy. - User authentication is performed by the LDAP servers specified in the LDAP policy + If enabled, authentication is performed by the LDAP servers mentioned in the policy :return: The enabled of this IamLdapPolicy. :rtype: bool @@ -480,7 +480,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this IamLdapPolicy. - User authentication is performed by the LDAP servers specified in the LDAP policy + If enabled, authentication is performed by the LDAP servers mentioned in the policy :param enabled: The enabled of this IamLdapPolicy. :type: bool @@ -495,7 +495,7 @@ def groups(self): Relationship to collection of LDAP Groups :return: The groups of this IamLdapPolicy. - :rtype: list[MoMoRef] + :rtype: list[IamLdapGroupRef] """ return self._groups @@ -506,7 +506,7 @@ def groups(self, groups): Relationship to collection of LDAP Groups :param groups: The groups of this IamLdapPolicy. - :type: list[MoMoRef] + :type: list[IamLdapGroupRef] """ self._groups = groups @@ -518,7 +518,7 @@ def organization(self): Organization :return: The organization of this IamLdapPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -529,7 +529,7 @@ def organization(self, organization): Organization :param organization: The organization of this IamLdapPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -541,7 +541,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this IamLdapPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -552,7 +552,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this IamLdapPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles @@ -564,7 +564,7 @@ def providers(self): Relationship to collection of LDAP Providers :return: The providers of this IamLdapPolicy. - :rtype: list[MoMoRef] + :rtype: list[IamLdapProviderRef] """ return self._providers @@ -575,7 +575,7 @@ def providers(self, providers): Relationship to collection of LDAP Providers :param providers: The providers of this IamLdapPolicy. - :type: list[MoMoRef] + :type: list[IamLdapProviderRef] """ self._providers = providers @@ -584,7 +584,7 @@ def providers(self, providers): def user_search_precedence(self): """ Gets the user_search_precedence of this IamLdapPolicy. - User search precedence between local user database and LDAP user database + Search precedence between local user database and LDAP user database :return: The user_search_precedence of this IamLdapPolicy. :rtype: str @@ -595,12 +595,12 @@ def user_search_precedence(self): def user_search_precedence(self, user_search_precedence): """ Sets the user_search_precedence of this IamLdapPolicy. - User search precedence between local user database and LDAP user database + Search precedence between local user database and LDAP user database :param user_search_precedence: The user_search_precedence of this IamLdapPolicy. :type: str """ - allowed_values = ["LocalUserDb", "LdapUserDb"] + allowed_values = ["LocalUserDb", "LDAPUserDb"] if user_search_precedence not in allowed_values: raise ValueError( "Invalid value for `user_search_precedence` ({0}), must be one of {1}" diff --git a/intersight/models/iam_ldap_policy_list.py b/intersight/models/iam_ldap_policy_list.py index 1456c62b..cc6d5daf 100644 --- a/intersight/models/iam_ldap_policy_list.py +++ b/intersight/models/iam_ldap_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_ldap_policy_ref.py b/intersight/models/iam_ldap_policy_ref.py new file mode 100644 index 00000000..8e684c18 --- /dev/null +++ b/intersight/models/iam_ldap_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapPolicyRef. + + :return: The moid of this IamLdapPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapPolicyRef. + + :param moid: The moid of this IamLdapPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapPolicyRef. + + :return: The object_type of this IamLdapPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapPolicyRef. + + :param object_type: The object_type of this IamLdapPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_provider.py b/intersight/models/iam_ldap_provider.py index 126530ca..213d8041 100644 --- a/intersight/models/iam_ldap_provider.py +++ b/intersight/models/iam_ldap_provider.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class IamLdapProvider(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'ldap_policy': 'MoMoRef', + 'ldap_policy': 'IamLdapPolicyRef', 'port': 'int', 'server': 'str' } @@ -133,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamLdapProvider. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamLdapProvider. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamLdapProvider. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamLdapProvider. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +316,7 @@ def ldap_policy(self): Gets the ldap_policy of this IamLdapProvider. :return: The ldap_policy of this IamLdapProvider. - :rtype: MoMoRef + :rtype: IamLdapPolicyRef """ return self._ldap_policy @@ -326,7 +326,7 @@ def ldap_policy(self, ldap_policy): Sets the ldap_policy of this IamLdapProvider. :param ldap_policy: The ldap_policy of this IamLdapProvider. - :type: MoMoRef + :type: IamLdapPolicyRef """ self._ldap_policy = ldap_policy diff --git a/intersight/models/iam_ldap_provider_list.py b/intersight/models/iam_ldap_provider_list.py index b22314e8..88ad490e 100644 --- a/intersight/models/iam_ldap_provider_list.py +++ b/intersight/models/iam_ldap_provider_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_ldap_provider_ref.py b/intersight/models/iam_ldap_provider_ref.py new file mode 100644 index 00000000..6180b74b --- /dev/null +++ b/intersight/models/iam_ldap_provider_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapProviderRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapProviderRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapProviderRef. + + :return: The moid of this IamLdapProviderRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapProviderRef. + + :param moid: The moid of this IamLdapProviderRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapProviderRef. + + :return: The object_type of this IamLdapProviderRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapProviderRef. + + :param object_type: The object_type of this IamLdapProviderRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapProviderRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_validation_task_ref.py b/intersight/models/iam_ldap_validation_task_ref.py new file mode 100644 index 00000000..e2ffa4cb --- /dev/null +++ b/intersight/models/iam_ldap_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapValidationTaskRef. + + :return: The moid of this IamLdapValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapValidationTaskRef. + + :param moid: The moid of this IamLdapValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapValidationTaskRef. + + :return: The object_type of this IamLdapValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapValidationTaskRef. + + :param object_type: The object_type of this IamLdapValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_permission.py b/intersight/models/iam_permission.py index 3a5afe08..eb452b30 100644 --- a/intersight/models/iam_permission.py +++ b/intersight/models/iam_permission.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,17 @@ class IamPermission(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'end_point_roles': 'list[MoMoRef]', - 'roles': 'list[MoMoRef]', + 'account': 'IamAccountRef', + 'end_point_roles': 'list[IamEndPointRoleRef]', + 'roles': 'list[IamRoleRef]', 'subject': 'str', 'type': 'str' } @@ -143,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamPermission. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamPermission. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamPermission. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamPermission. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +326,7 @@ def account(self): Gets the account of this IamPermission. :return: The account of this IamPermission. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -336,7 +336,7 @@ def account(self, account): Sets the account of this IamPermission. :param account: The account of this IamPermission. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -347,7 +347,7 @@ def end_point_roles(self): Gets the end_point_roles of this IamPermission. :return: The end_point_roles of this IamPermission. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointRoleRef] """ return self._end_point_roles @@ -357,7 +357,7 @@ def end_point_roles(self, end_point_roles): Sets the end_point_roles of this IamPermission. :param end_point_roles: The end_point_roles of this IamPermission. - :type: list[MoMoRef] + :type: list[IamEndPointRoleRef] """ self._end_point_roles = end_point_roles @@ -368,7 +368,7 @@ def roles(self): Gets the roles of this IamPermission. :return: The roles of this IamPermission. - :rtype: list[MoMoRef] + :rtype: list[IamRoleRef] """ return self._roles @@ -378,7 +378,7 @@ def roles(self, roles): Sets the roles of this IamPermission. :param roles: The roles of this IamPermission. - :type: list[MoMoRef] + :type: list[IamRoleRef] """ self._roles = roles diff --git a/intersight/models/iam_permission_list.py b/intersight/models/iam_permission_list.py index 9a73c74d..fa51c332 100644 --- a/intersight/models/iam_permission_list.py +++ b/intersight/models/iam_permission_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_permission_ref.py b/intersight/models/iam_permission_ref.py new file mode 100644 index 00000000..e2f02c94 --- /dev/null +++ b/intersight/models/iam_permission_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamPermissionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamPermissionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamPermissionRef. + + :return: The moid of this IamPermissionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamPermissionRef. + + :param moid: The moid of this IamPermissionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamPermissionRef. + + :return: The object_type of this IamPermissionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamPermissionRef. + + :param object_type: The object_type of this IamPermissionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamPermissionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_privilege.py b/intersight/models/iam_privilege.py index 611abfc7..2bcd4b2a 100644 --- a/intersight/models/iam_privilege.py +++ b/intersight/models/iam_privilege.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,21 @@ class IamPrivilege(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'app': 'str', 'method': 'str', 'name': 'str', 'namespace': 'str', 'rest_path': 'str', - 'system': 'MoMoRef', + 'system': 'IamSystemRef', 'version': 'str' } @@ -158,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamPrivilege. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamPrivilege. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamPrivilege. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamPrivilege. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -341,7 +341,7 @@ def account(self): Gets the account of this IamPrivilege. :return: The account of this IamPrivilege. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -351,7 +351,7 @@ def account(self, account): Sets the account of this IamPrivilege. :param account: The account of this IamPrivilege. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -467,7 +467,7 @@ def system(self): Gets the system of this IamPrivilege. :return: The system of this IamPrivilege. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -477,7 +477,7 @@ def system(self, system): Sets the system of this IamPrivilege. :param system: The system of this IamPrivilege. - :type: MoMoRef + :type: IamSystemRef """ self._system = system diff --git a/intersight/models/iam_privilege_list.py b/intersight/models/iam_privilege_list.py index 0e10b4f1..02b2499e 100644 --- a/intersight/models/iam_privilege_list.py +++ b/intersight/models/iam_privilege_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_privilege_ref.py b/intersight/models/iam_privilege_ref.py new file mode 100644 index 00000000..daa79a55 --- /dev/null +++ b/intersight/models/iam_privilege_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamPrivilegeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamPrivilegeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamPrivilegeRef. + + :return: The moid of this IamPrivilegeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamPrivilegeRef. + + :param moid: The moid of this IamPrivilegeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamPrivilegeRef. + + :return: The object_type of this IamPrivilegeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamPrivilegeRef. + + :param object_type: The object_type of this IamPrivilegeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamPrivilegeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_privilege_set.py b/intersight/models/iam_privilege_set.py index 433466fd..4443f432 100644 --- a/intersight/models/iam_privilege_set.py +++ b/intersight/models/iam_privilege_set.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,18 +32,18 @@ class IamPrivilegeSet(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'name': 'str', - 'privileges': 'list[MoMoRef]', - 'system': 'MoMoRef' + 'privileges': 'list[IamPrivilegeRef]', + 'system': 'IamSystemRef' } attribute_map = { @@ -138,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamPrivilegeSet. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamPrivilegeSet. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamPrivilegeSet. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamPrivilegeSet. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +321,7 @@ def account(self): Gets the account of this IamPrivilegeSet. :return: The account of this IamPrivilegeSet. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -331,7 +331,7 @@ def account(self, account): Sets the account of this IamPrivilegeSet. :param account: The account of this IamPrivilegeSet. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -363,7 +363,7 @@ def privileges(self): Gets the privileges of this IamPrivilegeSet. :return: The privileges of this IamPrivilegeSet. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeRef] """ return self._privileges @@ -373,7 +373,7 @@ def privileges(self, privileges): Sets the privileges of this IamPrivilegeSet. :param privileges: The privileges of this IamPrivilegeSet. - :type: list[MoMoRef] + :type: list[IamPrivilegeRef] """ self._privileges = privileges @@ -384,7 +384,7 @@ def system(self): Gets the system of this IamPrivilegeSet. :return: The system of this IamPrivilegeSet. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -394,7 +394,7 @@ def system(self, system): Sets the system of this IamPrivilegeSet. :param system: The system of this IamPrivilegeSet. - :type: MoMoRef + :type: IamSystemRef """ self._system = system diff --git a/intersight/models/iam_privilege_set_list.py b/intersight/models/iam_privilege_set_list.py index 2352201a..e5c3284e 100644 --- a/intersight/models/iam_privilege_set_list.py +++ b/intersight/models/iam_privilege_set_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_privilege_set_ref.py b/intersight/models/iam_privilege_set_ref.py new file mode 100644 index 00000000..fc0d2774 --- /dev/null +++ b/intersight/models/iam_privilege_set_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamPrivilegeSetRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamPrivilegeSetRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamPrivilegeSetRef. + + :return: The moid of this IamPrivilegeSetRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamPrivilegeSetRef. + + :param moid: The moid of this IamPrivilegeSetRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamPrivilegeSetRef. + + :return: The object_type of this IamPrivilegeSetRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamPrivilegeSetRef. + + :param object_type: The object_type of this IamPrivilegeSetRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamPrivilegeSetRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_qualifier.py b/intersight/models/iam_qualifier.py index 94996bbe..17b12c6f 100644 --- a/intersight/models/iam_qualifier.py +++ b/intersight/models/iam_qualifier.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,16 @@ class IamQualifier(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'name': 'str', - 'usergroup': 'MoMoRef', + 'usergroup': 'IamUserGroupRef', 'value': 'str' } @@ -133,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamQualifier. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamQualifier. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamQualifier. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamQualifier. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -339,7 +339,7 @@ def usergroup(self): Gets the usergroup of this IamQualifier. :return: The usergroup of this IamQualifier. - :rtype: MoMoRef + :rtype: IamUserGroupRef """ return self._usergroup @@ -349,7 +349,7 @@ def usergroup(self, usergroup): Sets the usergroup of this IamQualifier. :param usergroup: The usergroup of this IamQualifier. - :type: MoMoRef + :type: IamUserGroupRef """ self._usergroup = usergroup diff --git a/intersight/models/iam_qualifier_list.py b/intersight/models/iam_qualifier_list.py index 5313d67e..3ab0e9f7 100644 --- a/intersight/models/iam_qualifier_list.py +++ b/intersight/models/iam_qualifier_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_qualifier_ref.py b/intersight/models/iam_qualifier_ref.py new file mode 100644 index 00000000..77fc3999 --- /dev/null +++ b/intersight/models/iam_qualifier_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamQualifierRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamQualifierRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamQualifierRef. + + :return: The moid of this IamQualifierRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamQualifierRef. + + :param moid: The moid of this IamQualifierRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamQualifierRef. + + :return: The object_type of this IamQualifierRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamQualifierRef. + + :param object_type: The object_type of this IamQualifierRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamQualifierRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_resource_limits.py b/intersight/models/iam_resource_limits.py index 541abcd0..f3f9cfc7 100644 --- a/intersight/models/iam_resource_limits.py +++ b/intersight/models/iam_resource_limits.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class IamResourceLimits(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'per_account_user_limit': 'int' } @@ -128,7 +128,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamResourceLimits. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -139,7 +139,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamResourceLimits. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -266,7 +266,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamResourceLimits. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -277,7 +277,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamResourceLimits. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +311,7 @@ def account(self): Gets the account of this IamResourceLimits. :return: The account of this IamResourceLimits. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -321,7 +321,7 @@ def account(self, account): Sets the account of this IamResourceLimits. :param account: The account of this IamResourceLimits. - :type: MoMoRef + :type: IamAccountRef """ self._account = account diff --git a/intersight/models/iam_resource_limits_list.py b/intersight/models/iam_resource_limits_list.py index 6dedb40e..4ac2931e 100644 --- a/intersight/models/iam_resource_limits_list.py +++ b/intersight/models/iam_resource_limits_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_resource_limits_ref.py b/intersight/models/iam_resource_limits_ref.py new file mode 100644 index 00000000..6b62ba95 --- /dev/null +++ b/intersight/models/iam_resource_limits_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamResourceLimitsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamResourceLimitsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamResourceLimitsRef. + + :return: The moid of this IamResourceLimitsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamResourceLimitsRef. + + :param moid: The moid of this IamResourceLimitsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamResourceLimitsRef. + + :return: The object_type of this IamResourceLimitsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamResourceLimitsRef. + + :param object_type: The object_type of this IamResourceLimitsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamResourceLimitsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_role.py b/intersight/models/iam_role.py index 6dda0d9a..21f3a599 100644 --- a/intersight/models/iam_role.py +++ b/intersight/models/iam_role.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,18 +32,18 @@ class IamRole(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'name': 'str', - 'privilege_sets': 'list[MoMoRef]', - 'system': 'MoMoRef' + 'privilege_sets': 'list[IamPrivilegeSetRef]', + 'system': 'IamSystemRef' } attribute_map = { @@ -138,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamRole. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamRole. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamRole. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamRole. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +321,7 @@ def account(self): Gets the account of this IamRole. :return: The account of this IamRole. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -331,7 +331,7 @@ def account(self, account): Sets the account of this IamRole. :param account: The account of this IamRole. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -363,7 +363,7 @@ def privilege_sets(self): Gets the privilege_sets of this IamRole. :return: The privilege_sets of this IamRole. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeSetRef] """ return self._privilege_sets @@ -373,7 +373,7 @@ def privilege_sets(self, privilege_sets): Sets the privilege_sets of this IamRole. :param privilege_sets: The privilege_sets of this IamRole. - :type: list[MoMoRef] + :type: list[IamPrivilegeSetRef] """ self._privilege_sets = privilege_sets @@ -384,7 +384,7 @@ def system(self): Gets the system of this IamRole. :return: The system of this IamRole. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -394,7 +394,7 @@ def system(self, system): Sets the system of this IamRole. :param system: The system of this IamRole. - :type: MoMoRef + :type: IamSystemRef """ self._system = system diff --git a/intersight/models/iam_role_list.py b/intersight/models/iam_role_list.py index 2c6ad270..1ee60253 100644 --- a/intersight/models/iam_role_list.py +++ b/intersight/models/iam_role_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_role_ref.py b/intersight/models/iam_role_ref.py new file mode 100644 index 00000000..eff20d32 --- /dev/null +++ b/intersight/models/iam_role_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamRoleRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamRoleRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamRoleRef. + + :return: The moid of this IamRoleRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamRoleRef. + + :param moid: The moid of this IamRoleRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamRoleRef. + + :return: The object_type of this IamRoleRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamRoleRef. + + :param object_type: The object_type of this IamRoleRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamRoleRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_session.py b/intersight/models/iam_session.py index 84a6cc2a..f7041c2d 100644 --- a/intersight/models/iam_session.py +++ b/intersight/models/iam_session.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class IamSession(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'client_ip_address': 'str', 'expiration': 'datetime', 'idle_time_expiration': 'datetime', 'last_login_client': 'str', 'last_login_time': 'datetime', - 'user': 'MoMoRef' + 'user': 'IamUserRef' } attribute_map = { @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamSession. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamSession. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamSession. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamSession. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -440,7 +440,7 @@ def user(self): Gets the user of this IamSession. :return: The user of this IamSession. - :rtype: MoMoRef + :rtype: IamUserRef """ return self._user @@ -450,7 +450,7 @@ def user(self, user): Sets the user of this IamSession. :param user: The user of this IamSession. - :type: MoMoRef + :type: IamUserRef """ self._user = user diff --git a/intersight/models/iam_session_limits.py b/intersight/models/iam_session_limits.py index 773345d7..ba0da493 100644 --- a/intersight/models/iam_session_limits.py +++ b/intersight/models/iam_session_limits.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class IamSessionLimits(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'idle_time_out': 'int', 'maximum_limit': 'int', 'per_user_limit': 'int', @@ -143,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamSessionLimits. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamSessionLimits. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamSessionLimits. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamSessionLimits. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +326,7 @@ def account(self): Gets the account of this IamSessionLimits. :return: The account of this IamSessionLimits. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -336,7 +336,7 @@ def account(self, account): Sets the account of this IamSessionLimits. :param account: The account of this IamSessionLimits. - :type: MoMoRef + :type: IamAccountRef """ self._account = account diff --git a/intersight/models/iam_session_limits_list.py b/intersight/models/iam_session_limits_list.py index 3c9fe0d9..6d245c31 100644 --- a/intersight/models/iam_session_limits_list.py +++ b/intersight/models/iam_session_limits_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_session_limits_ref.py b/intersight/models/iam_session_limits_ref.py new file mode 100644 index 00000000..b4acbe2a --- /dev/null +++ b/intersight/models/iam_session_limits_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSessionLimitsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamSessionLimitsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamSessionLimitsRef. + + :return: The moid of this IamSessionLimitsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamSessionLimitsRef. + + :param moid: The moid of this IamSessionLimitsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamSessionLimitsRef. + + :return: The object_type of this IamSessionLimitsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamSessionLimitsRef. + + :param object_type: The object_type of this IamSessionLimitsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSessionLimitsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_session_list.py b/intersight/models/iam_session_list.py index 1ebd4aa7..f8a99d27 100644 --- a/intersight/models/iam_session_list.py +++ b/intersight/models/iam_session_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_session_ref.py b/intersight/models/iam_session_ref.py new file mode 100644 index 00000000..b011d617 --- /dev/null +++ b/intersight/models/iam_session_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSessionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamSessionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamSessionRef. + + :return: The moid of this IamSessionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamSessionRef. + + :param moid: The moid of this IamSessionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamSessionRef. + + :return: The object_type of this IamSessionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamSessionRef. + + :param object_type: The object_type of this IamSessionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSessionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_sp_console_ref.py b/intersight/models/iam_sp_console_ref.py new file mode 100644 index 00000000..de5055a2 --- /dev/null +++ b/intersight/models/iam_sp_console_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSpConsoleRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamSpConsoleRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamSpConsoleRef. + + :return: The moid of this IamSpConsoleRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamSpConsoleRef. + + :param moid: The moid of this IamSpConsoleRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamSpConsoleRef. + + :return: The object_type of this IamSpConsoleRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamSpConsoleRef. + + :param object_type: The object_type of this IamSpConsoleRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSpConsoleRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_sp_engine_ref.py b/intersight/models/iam_sp_engine_ref.py new file mode 100644 index 00000000..8a8249ab --- /dev/null +++ b/intersight/models/iam_sp_engine_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSpEngineRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamSpEngineRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamSpEngineRef. + + :return: The moid of this IamSpEngineRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamSpEngineRef. + + :param moid: The moid of this IamSpEngineRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamSpEngineRef. + + :return: The object_type of this IamSpEngineRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamSpEngineRef. + + :param object_type: The object_type of this IamSpEngineRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSpEngineRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_system.py b/intersight/models/iam_system.py index fdbb5bbf..063459d7 100644 --- a/intersight/models/iam_system.py +++ b/intersight/models/iam_system.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class IamSystem(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'end_point_privileges': 'list[MoMoRef]', - 'end_point_roles': 'list[MoMoRef]', - 'idp': 'MoMoRef', - 'privilege_sets': 'list[MoMoRef]', - 'privileges': 'list[MoMoRef]', - 'roles': 'list[MoMoRef]' + 'end_point_privileges': 'list[IamEndPointPrivilegeRef]', + 'end_point_roles': 'list[IamEndPointRoleRef]', + 'idp': 'IamIdpRef', + 'privilege_sets': 'list[IamPrivilegeSetRef]', + 'privileges': 'list[IamPrivilegeRef]', + 'roles': 'list[IamRoleRef]' } attribute_map = { @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamSystem. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamSystem. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamSystem. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -331,7 +331,7 @@ def end_point_privileges(self): Gets the end_point_privileges of this IamSystem. :return: The end_point_privileges of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointPrivilegeRef] """ return self._end_point_privileges @@ -341,7 +341,7 @@ def end_point_privileges(self, end_point_privileges): Sets the end_point_privileges of this IamSystem. :param end_point_privileges: The end_point_privileges of this IamSystem. - :type: list[MoMoRef] + :type: list[IamEndPointPrivilegeRef] """ self._end_point_privileges = end_point_privileges @@ -352,7 +352,7 @@ def end_point_roles(self): Gets the end_point_roles of this IamSystem. :return: The end_point_roles of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointRoleRef] """ return self._end_point_roles @@ -362,7 +362,7 @@ def end_point_roles(self, end_point_roles): Sets the end_point_roles of this IamSystem. :param end_point_roles: The end_point_roles of this IamSystem. - :type: list[MoMoRef] + :type: list[IamEndPointRoleRef] """ self._end_point_roles = end_point_roles @@ -373,7 +373,7 @@ def idp(self): Gets the idp of this IamSystem. :return: The idp of this IamSystem. - :rtype: MoMoRef + :rtype: IamIdpRef """ return self._idp @@ -383,7 +383,7 @@ def idp(self, idp): Sets the idp of this IamSystem. :param idp: The idp of this IamSystem. - :type: MoMoRef + :type: IamIdpRef """ self._idp = idp @@ -394,7 +394,7 @@ def privilege_sets(self): Gets the privilege_sets of this IamSystem. :return: The privilege_sets of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeSetRef] """ return self._privilege_sets @@ -404,7 +404,7 @@ def privilege_sets(self, privilege_sets): Sets the privilege_sets of this IamSystem. :param privilege_sets: The privilege_sets of this IamSystem. - :type: list[MoMoRef] + :type: list[IamPrivilegeSetRef] """ self._privilege_sets = privilege_sets @@ -415,7 +415,7 @@ def privileges(self): Gets the privileges of this IamSystem. :return: The privileges of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeRef] """ return self._privileges @@ -425,7 +425,7 @@ def privileges(self, privileges): Sets the privileges of this IamSystem. :param privileges: The privileges of this IamSystem. - :type: list[MoMoRef] + :type: list[IamPrivilegeRef] """ self._privileges = privileges @@ -436,7 +436,7 @@ def roles(self): Gets the roles of this IamSystem. :return: The roles of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[IamRoleRef] """ return self._roles @@ -446,7 +446,7 @@ def roles(self, roles): Sets the roles of this IamSystem. :param roles: The roles of this IamSystem. - :type: list[MoMoRef] + :type: list[IamRoleRef] """ self._roles = roles diff --git a/intersight/models/iam_system_list.py b/intersight/models/iam_system_list.py index 26ca4855..3dfd6817 100644 --- a/intersight/models/iam_system_list.py +++ b/intersight/models/iam_system_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_system_ref.py b/intersight/models/iam_system_ref.py new file mode 100644 index 00000000..cb87e4b3 --- /dev/null +++ b/intersight/models/iam_system_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSystemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamSystemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamSystemRef. + + :return: The moid of this IamSystemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamSystemRef. + + :param moid: The moid of this IamSystemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamSystemRef. + + :return: The object_type of this IamSystemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamSystemRef. + + :param object_type: The object_type of this IamSystemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSystemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_user.py b/intersight/models/iam_user.py index b9fa657d..f6248185 100644 --- a/intersight/models/iam_user.py +++ b/intersight/models/iam_user.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,23 @@ class IamUser(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'api_keys': 'list[MoMoRef]', + 'api_keys': 'list[IamApiKeyRef]', 'client_ip_address': 'str', 'email': 'str', 'first_name': 'str', - 'idpreference': 'MoMoRef', + 'idpreference': 'IamIdpReferenceRef', 'last_login_time': 'datetime', 'last_name': 'str', 'name': 'str', - 'sessions': 'list[MoMoRef]', + 'sessions': 'list[IamSessionRef]', 'user_type': 'str' } @@ -168,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamUser. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamUser. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamUser. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamUser. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -351,7 +351,7 @@ def api_keys(self): Gets the api_keys of this IamUser. :return: The api_keys of this IamUser. - :rtype: list[MoMoRef] + :rtype: list[IamApiKeyRef] """ return self._api_keys @@ -361,7 +361,7 @@ def api_keys(self, api_keys): Sets the api_keys of this IamUser. :param api_keys: The api_keys of this IamUser. - :type: list[MoMoRef] + :type: list[IamApiKeyRef] """ self._api_keys = api_keys @@ -437,7 +437,7 @@ def idpreference(self): Gets the idpreference of this IamUser. :return: The idpreference of this IamUser. - :rtype: MoMoRef + :rtype: IamIdpReferenceRef """ return self._idpreference @@ -447,7 +447,7 @@ def idpreference(self, idpreference): Sets the idpreference of this IamUser. :param idpreference: The idpreference of this IamUser. - :type: MoMoRef + :type: IamIdpReferenceRef """ self._idpreference = idpreference @@ -523,7 +523,7 @@ def sessions(self): Gets the sessions of this IamUser. :return: The sessions of this IamUser. - :rtype: list[MoMoRef] + :rtype: list[IamSessionRef] """ return self._sessions @@ -533,7 +533,7 @@ def sessions(self, sessions): Sets the sessions of this IamUser. :param sessions: The sessions of this IamUser. - :type: list[MoMoRef] + :type: list[IamSessionRef] """ self._sessions = sessions diff --git a/intersight/models/iam_user_group.py b/intersight/models/iam_user_group.py index 8dafe6bd..784aa31c 100644 --- a/intersight/models/iam_user_group.py +++ b/intersight/models/iam_user_group.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,18 +32,18 @@ class IamUserGroup(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'idpreference': 'MoMoRef', + 'idpreference': 'IamIdpReferenceRef', 'name': 'str', - 'qualifier': 'MoMoRef', - 'users': 'list[MoMoRef]' + 'qualifier': 'IamQualifierRef', + 'users': 'list[IamUserRef]' } attribute_map = { @@ -138,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamUserGroup. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamUserGroup. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamUserGroup. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamUserGroup. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +321,7 @@ def idpreference(self): Gets the idpreference of this IamUserGroup. :return: The idpreference of this IamUserGroup. - :rtype: MoMoRef + :rtype: IamIdpReferenceRef """ return self._idpreference @@ -331,7 +331,7 @@ def idpreference(self, idpreference): Sets the idpreference of this IamUserGroup. :param idpreference: The idpreference of this IamUserGroup. - :type: MoMoRef + :type: IamIdpReferenceRef """ self._idpreference = idpreference @@ -363,7 +363,7 @@ def qualifier(self): Gets the qualifier of this IamUserGroup. :return: The qualifier of this IamUserGroup. - :rtype: MoMoRef + :rtype: IamQualifierRef """ return self._qualifier @@ -373,7 +373,7 @@ def qualifier(self, qualifier): Sets the qualifier of this IamUserGroup. :param qualifier: The qualifier of this IamUserGroup. - :type: MoMoRef + :type: IamQualifierRef """ self._qualifier = qualifier @@ -384,7 +384,7 @@ def users(self): Gets the users of this IamUserGroup. :return: The users of this IamUserGroup. - :rtype: list[MoMoRef] + :rtype: list[IamUserRef] """ return self._users @@ -394,7 +394,7 @@ def users(self, users): Sets the users of this IamUserGroup. :param users: The users of this IamUserGroup. - :type: list[MoMoRef] + :type: list[IamUserRef] """ self._users = users diff --git a/intersight/models/iam_user_group_list.py b/intersight/models/iam_user_group_list.py index 04383f9f..e844d4fa 100644 --- a/intersight/models/iam_user_group_list.py +++ b/intersight/models/iam_user_group_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_user_group_ref.py b/intersight/models/iam_user_group_ref.py new file mode 100644 index 00000000..d9eefac2 --- /dev/null +++ b/intersight/models/iam_user_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamUserGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamUserGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamUserGroupRef. + + :return: The moid of this IamUserGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamUserGroupRef. + + :param moid: The moid of this IamUserGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamUserGroupRef. + + :return: The object_type of this IamUserGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamUserGroupRef. + + :param object_type: The object_type of this IamUserGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamUserGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_user_list.py b/intersight/models/iam_user_list.py index a57bc840..83480c0f 100644 --- a/intersight/models/iam_user_list.py +++ b/intersight/models/iam_user_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_user_login_time_ref.py b/intersight/models/iam_user_login_time_ref.py new file mode 100644 index 00000000..3abc5e56 --- /dev/null +++ b/intersight/models/iam_user_login_time_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamUserLoginTimeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamUserLoginTimeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamUserLoginTimeRef. + + :return: The moid of this IamUserLoginTimeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamUserLoginTimeRef. + + :param moid: The moid of this IamUserLoginTimeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamUserLoginTimeRef. + + :return: The object_type of this IamUserLoginTimeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamUserLoginTimeRef. + + :param object_type: The object_type of this IamUserLoginTimeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamUserLoginTimeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_user_preference.py b/intersight/models/iam_user_preference.py index d05133bd..3684805f 100644 --- a/intersight/models/iam_user_preference.py +++ b/intersight/models/iam_user_preference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class IamUserPreference(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'idp_reference': 'MoMoRef', + 'idp_reference': 'IamIdpReferenceRef', 'preference': 'object' } @@ -128,7 +128,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamUserPreference. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -139,7 +139,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamUserPreference. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -266,7 +266,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamUserPreference. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -277,7 +277,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamUserPreference. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +311,7 @@ def idp_reference(self): Gets the idp_reference of this IamUserPreference. :return: The idp_reference of this IamUserPreference. - :rtype: MoMoRef + :rtype: IamIdpReferenceRef """ return self._idp_reference @@ -321,7 +321,7 @@ def idp_reference(self, idp_reference): Sets the idp_reference of this IamUserPreference. :param idp_reference: The idp_reference of this IamUserPreference. - :type: MoMoRef + :type: IamIdpReferenceRef """ self._idp_reference = idp_reference diff --git a/intersight/models/iam_user_preference_list.py b/intersight/models/iam_user_preference_list.py index b6ba6f6e..37fee988 100644 --- a/intersight/models/iam_user_preference_list.py +++ b/intersight/models/iam_user_preference_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_user_preference_ref.py b/intersight/models/iam_user_preference_ref.py new file mode 100644 index 00000000..fac90d96 --- /dev/null +++ b/intersight/models/iam_user_preference_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamUserPreferenceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamUserPreferenceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamUserPreferenceRef. + + :return: The moid of this IamUserPreferenceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamUserPreferenceRef. + + :param moid: The moid of this IamUserPreferenceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamUserPreferenceRef. + + :return: The object_type of this IamUserPreferenceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamUserPreferenceRef. + + :param object_type: The object_type of this IamUserPreferenceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamUserPreferenceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_user_ref.py b/intersight/models/iam_user_ref.py new file mode 100644 index 00000000..83e234bb --- /dev/null +++ b/intersight/models/iam_user_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamUserRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamUserRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamUserRef. + + :return: The moid of this IamUserRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamUserRef. + + :param moid: The moid of this IamUserRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamUserRef. + + :return: The object_type of this IamUserRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamUserRef. + + :param object_type: The object_type of this IamUserRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamUserRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/imcconnector_sd_card_image_download_message_ref.py b/intersight/models/imcconnector_sd_card_image_download_message_ref.py new file mode 100644 index 00000000..69080ee4 --- /dev/null +++ b/intersight/models/imcconnector_sd_card_image_download_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ImcconnectorSdCardImageDownloadMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ImcconnectorSdCardImageDownloadMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ImcconnectorSdCardImageDownloadMessageRef. + + :return: The moid of this ImcconnectorSdCardImageDownloadMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ImcconnectorSdCardImageDownloadMessageRef. + + :param moid: The moid of this ImcconnectorSdCardImageDownloadMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ImcconnectorSdCardImageDownloadMessageRef. + + :return: The object_type of this ImcconnectorSdCardImageDownloadMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ImcconnectorSdCardImageDownloadMessageRef. + + :param object_type: The object_type of this ImcconnectorSdCardImageDownloadMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ImcconnectorSdCardImageDownloadMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_base.py b/intersight/models/inventory_base.py index d9f5ce66..777c9cd9 100644 --- a/intersight/models/inventory_base.py +++ b/intersight/models/inventory_base.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class InventoryBase(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -133,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this InventoryBase. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this InventoryBase. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this InventoryBase. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this InventoryBase. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/inventory_base_ref.py b/intersight/models/inventory_base_ref.py new file mode 100644 index 00000000..6cea94d6 --- /dev/null +++ b/intersight/models/inventory_base_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryBaseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryBaseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryBaseRef. + + :return: The moid of this InventoryBaseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryBaseRef. + + :param moid: The moid of this InventoryBaseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryBaseRef. + + :return: The object_type of this InventoryBaseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryBaseRef. + + :param object_type: The object_type of this InventoryBaseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryBaseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_device_info.py b/intersight/models/inventory_device_info.py index 91082553..676434db 100644 --- a/intersight/models/inventory_device_info.py +++ b/intersight/models/inventory_device_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,18 @@ class InventoryDeviceInfo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'event_counter': 'int', 'event_counter_enabled': 'bool', - 'registered_device': 'MoMoRef' + 'job_info': 'list[InventoryJobInfo]', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -57,10 +58,11 @@ class InventoryDeviceInfo(object): 'tags': 'Tags', 'event_counter': 'EventCounter', 'event_counter_enabled': 'EventCounterEnabled', + 'job_info': 'JobInfo', 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, event_counter=None, event_counter_enabled=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, event_counter=None, event_counter_enabled=None, job_info=None, registered_device=None): """ InventoryDeviceInfo - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._event_counter = None self._event_counter_enabled = None + self._job_info = None self._registered_device = None if account_moid is not None: @@ -100,6 +103,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.event_counter = event_counter if event_counter_enabled is not None: self.event_counter_enabled = event_counter_enabled + if job_info is not None: + self.job_info = job_info if registered_device is not None: self.registered_device = registered_device @@ -133,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this InventoryDeviceInfo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this InventoryDeviceInfo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this InventoryDeviceInfo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this InventoryDeviceInfo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -352,13 +357,34 @@ def event_counter_enabled(self, event_counter_enabled): self._event_counter_enabled = event_counter_enabled + @property + def job_info(self): + """ + Gets the job_info of this InventoryDeviceInfo. + + :return: The job_info of this InventoryDeviceInfo. + :rtype: list[InventoryJobInfo] + """ + return self._job_info + + @job_info.setter + def job_info(self, job_info): + """ + Sets the job_info of this InventoryDeviceInfo. + + :param job_info: The job_info of this InventoryDeviceInfo. + :type: list[InventoryJobInfo] + """ + + self._job_info = job_info + @property def registered_device(self): """ Gets the registered_device of this InventoryDeviceInfo. :return: The registered_device of this InventoryDeviceInfo. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -368,7 +394,7 @@ def registered_device(self, registered_device): Sets the registered_device of this InventoryDeviceInfo. :param registered_device: The registered_device of this InventoryDeviceInfo. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/inventory_device_info_list.py b/intersight/models/inventory_device_info_list.py index 6e102dc3..5c6d3d03 100644 --- a/intersight/models/inventory_device_info_list.py +++ b/intersight/models/inventory_device_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/inventory_device_info_ref.py b/intersight/models/inventory_device_info_ref.py new file mode 100644 index 00000000..c3c5c19f --- /dev/null +++ b/intersight/models/inventory_device_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryDeviceInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryDeviceInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryDeviceInfoRef. + + :return: The moid of this InventoryDeviceInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryDeviceInfoRef. + + :param moid: The moid of this InventoryDeviceInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryDeviceInfoRef. + + :return: The object_type of this InventoryDeviceInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryDeviceInfoRef. + + :param object_type: The object_type of this InventoryDeviceInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryDeviceInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_dn_mo_binding.py b/intersight/models/inventory_dn_mo_binding.py index 3d7250cc..8f7b2c33 100644 --- a/intersight/models/inventory_dn_mo_binding.py +++ b/intersight/models/inventory_dn_mo_binding.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,16 @@ class InventoryDnMoBinding(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'dn': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'target_mo_id': 'str', 'target_mo_type': 'str' } @@ -138,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this InventoryDnMoBinding. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this InventoryDnMoBinding. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this InventoryDnMoBinding. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this InventoryDnMoBinding. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -342,7 +342,7 @@ def registered_device(self): Gets the registered_device of this InventoryDnMoBinding. :return: The registered_device of this InventoryDnMoBinding. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -352,7 +352,7 @@ def registered_device(self, registered_device): Sets the registered_device of this InventoryDnMoBinding. :param registered_device: The registered_device of this InventoryDnMoBinding. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/inventory_dn_mo_binding_list.py b/intersight/models/inventory_dn_mo_binding_list.py index 3552e5d7..6b82e6ed 100644 --- a/intersight/models/inventory_dn_mo_binding_list.py +++ b/intersight/models/inventory_dn_mo_binding_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/inventory_dn_mo_binding_ref.py b/intersight/models/inventory_dn_mo_binding_ref.py new file mode 100644 index 00000000..c4c0fb32 --- /dev/null +++ b/intersight/models/inventory_dn_mo_binding_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryDnMoBindingRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryDnMoBindingRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryDnMoBindingRef. + + :return: The moid of this InventoryDnMoBindingRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryDnMoBindingRef. + + :param moid: The moid of this InventoryDnMoBindingRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryDnMoBindingRef. + + :return: The object_type of this InventoryDnMoBindingRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryDnMoBindingRef. + + :param object_type: The object_type of this InventoryDnMoBindingRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryDnMoBindingRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_generic_inventory.py b/intersight/models/inventory_generic_inventory.py index 3a80f195..b3083368 100644 --- a/intersight/models/inventory_generic_inventory.py +++ b/intersight/models/inventory_generic_inventory.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class InventoryGenericInventory(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'inventory_generic_inventory_holder': 'MoMoRef', + 'inventory_generic_inventory_holder': 'InventoryGenericInventoryHolderRef', 'key': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'type': 'str', 'value': 'str' } @@ -158,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this InventoryGenericInventory. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this InventoryGenericInventory. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this InventoryGenericInventory. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this InventoryGenericInventory. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -404,7 +404,7 @@ def inventory_generic_inventory_holder(self): Gets the inventory_generic_inventory_holder of this InventoryGenericInventory. :return: The inventory_generic_inventory_holder of this InventoryGenericInventory. - :rtype: MoMoRef + :rtype: InventoryGenericInventoryHolderRef """ return self._inventory_generic_inventory_holder @@ -414,7 +414,7 @@ def inventory_generic_inventory_holder(self, inventory_generic_inventory_holder) Sets the inventory_generic_inventory_holder of this InventoryGenericInventory. :param inventory_generic_inventory_holder: The inventory_generic_inventory_holder of this InventoryGenericInventory. - :type: MoMoRef + :type: InventoryGenericInventoryHolderRef """ self._inventory_generic_inventory_holder = inventory_generic_inventory_holder @@ -446,7 +446,7 @@ def registered_device(self): Gets the registered_device of this InventoryGenericInventory. :return: The registered_device of this InventoryGenericInventory. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -456,7 +456,7 @@ def registered_device(self, registered_device): Sets the registered_device of this InventoryGenericInventory. :param registered_device: The registered_device of this InventoryGenericInventory. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/inventory_generic_inventory_holder.py b/intersight/models/inventory_generic_inventory_holder.py index 6c57ffc0..c51d764f 100644 --- a/intersight/models/inventory_generic_inventory_holder.py +++ b/intersight/models/inventory_generic_inventory_holder.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,22 @@ class InventoryGenericInventoryHolder(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'compute_blade': 'MoMoRef', - 'compute_rack_unit': 'MoMoRef', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', 'endpoint': 'str', - 'generic_inventory': 'list[MoMoRef]', - 'registered_device': 'MoMoRef' + 'generic_inventory': 'list[InventoryGenericInventoryRef]', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -158,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this InventoryGenericInventoryHolder. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this InventoryGenericInventoryHolder. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this InventoryGenericInventoryHolder. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this InventoryGenericInventoryHolder. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -404,7 +404,7 @@ def compute_blade(self): Gets the compute_blade of this InventoryGenericInventoryHolder. :return: The compute_blade of this InventoryGenericInventoryHolder. - :rtype: MoMoRef + :rtype: ComputeBladeRef """ return self._compute_blade @@ -414,7 +414,7 @@ def compute_blade(self, compute_blade): Sets the compute_blade of this InventoryGenericInventoryHolder. :param compute_blade: The compute_blade of this InventoryGenericInventoryHolder. - :type: MoMoRef + :type: ComputeBladeRef """ self._compute_blade = compute_blade @@ -425,7 +425,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this InventoryGenericInventoryHolder. :return: The compute_rack_unit of this InventoryGenericInventoryHolder. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -435,7 +435,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this InventoryGenericInventoryHolder. :param compute_rack_unit: The compute_rack_unit of this InventoryGenericInventoryHolder. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -467,7 +467,7 @@ def generic_inventory(self): Gets the generic_inventory of this InventoryGenericInventoryHolder. :return: The generic_inventory of this InventoryGenericInventoryHolder. - :rtype: list[MoMoRef] + :rtype: list[InventoryGenericInventoryRef] """ return self._generic_inventory @@ -477,7 +477,7 @@ def generic_inventory(self, generic_inventory): Sets the generic_inventory of this InventoryGenericInventoryHolder. :param generic_inventory: The generic_inventory of this InventoryGenericInventoryHolder. - :type: list[MoMoRef] + :type: list[InventoryGenericInventoryRef] """ self._generic_inventory = generic_inventory @@ -488,7 +488,7 @@ def registered_device(self): Gets the registered_device of this InventoryGenericInventoryHolder. :return: The registered_device of this InventoryGenericInventoryHolder. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -498,7 +498,7 @@ def registered_device(self, registered_device): Sets the registered_device of this InventoryGenericInventoryHolder. :param registered_device: The registered_device of this InventoryGenericInventoryHolder. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/inventory_generic_inventory_holder_list.py b/intersight/models/inventory_generic_inventory_holder_list.py index 86657357..88ae9703 100644 --- a/intersight/models/inventory_generic_inventory_holder_list.py +++ b/intersight/models/inventory_generic_inventory_holder_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/inventory_generic_inventory_holder_ref.py b/intersight/models/inventory_generic_inventory_holder_ref.py new file mode 100644 index 00000000..88fd4c8e --- /dev/null +++ b/intersight/models/inventory_generic_inventory_holder_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryGenericInventoryHolderRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryGenericInventoryHolderRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryGenericInventoryHolderRef. + + :return: The moid of this InventoryGenericInventoryHolderRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryGenericInventoryHolderRef. + + :param moid: The moid of this InventoryGenericInventoryHolderRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryGenericInventoryHolderRef. + + :return: The object_type of this InventoryGenericInventoryHolderRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryGenericInventoryHolderRef. + + :param object_type: The object_type of this InventoryGenericInventoryHolderRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryGenericInventoryHolderRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_generic_inventory_list.py b/intersight/models/inventory_generic_inventory_list.py index 5ecba9e8..db9a4828 100644 --- a/intersight/models/inventory_generic_inventory_list.py +++ b/intersight/models/inventory_generic_inventory_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/inventory_generic_inventory_ref.py b/intersight/models/inventory_generic_inventory_ref.py new file mode 100644 index 00000000..1987bb5a --- /dev/null +++ b/intersight/models/inventory_generic_inventory_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryGenericInventoryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryGenericInventoryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryGenericInventoryRef. + + :return: The moid of this InventoryGenericInventoryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryGenericInventoryRef. + + :param moid: The moid of this InventoryGenericInventoryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryGenericInventoryRef. + + :return: The object_type of this InventoryGenericInventoryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryGenericInventoryRef. + + :param object_type: The object_type of this InventoryGenericInventoryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryGenericInventoryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_inventory_mo.py b/intersight/models/inventory_inventory_mo.py new file mode 100644 index 00000000..cd252c09 --- /dev/null +++ b/intersight/models/inventory_inventory_mo.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryInventoryMo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'mo_dn': 'str', + 'mo_id': 'str', + 'mo_type': 'str' + } + + attribute_map = { + 'mo_dn': 'MoDn', + 'mo_id': 'MoId', + 'mo_type': 'MoType' + } + + def __init__(self, mo_dn=None, mo_id=None, mo_type=None): + """ + InventoryInventoryMo - a model defined in Swagger + """ + + self._mo_dn = None + self._mo_id = None + self._mo_type = None + + if mo_dn is not None: + self.mo_dn = mo_dn + if mo_id is not None: + self.mo_id = mo_id + if mo_type is not None: + self.mo_type = mo_type + + @property + def mo_dn(self): + """ + Gets the mo_dn of this InventoryInventoryMo. + The UCS DN of the MO for which the latest inventory to be fetched. If this property is empty and moId property has the Moid of the MO to be updated, the Moid will be used. If this property is empty and moId is also empty, all the MOs of the given moType will be updated + + :return: The mo_dn of this InventoryInventoryMo. + :rtype: str + """ + return self._mo_dn + + @mo_dn.setter + def mo_dn(self, mo_dn): + """ + Sets the mo_dn of this InventoryInventoryMo. + The UCS DN of the MO for which the latest inventory to be fetched. If this property is empty and moId property has the Moid of the MO to be updated, the Moid will be used. If this property is empty and moId is also empty, all the MOs of the given moType will be updated + + :param mo_dn: The mo_dn of this InventoryInventoryMo. + :type: str + """ + + self._mo_dn = mo_dn + + @property + def mo_id(self): + """ + Gets the mo_id of this InventoryInventoryMo. + The MO id of an MO for which the latest inventory to be fetched. If this property is empty and moDn property has the UCS DN of the MO to be updated, the DN will be used. If this property is empty and moDn is also empty, all the MOs of the given moType will be updated + + :return: The mo_id of this InventoryInventoryMo. + :rtype: str + """ + return self._mo_id + + @mo_id.setter + def mo_id(self, mo_id): + """ + Sets the mo_id of this InventoryInventoryMo. + The MO id of an MO for which the latest inventory to be fetched. If this property is empty and moDn property has the UCS DN of the MO to be updated, the DN will be used. If this property is empty and moDn is also empty, all the MOs of the given moType will be updated + + :param mo_id: The mo_id of this InventoryInventoryMo. + :type: str + """ + + self._mo_id = mo_id + + @property + def mo_type(self): + """ + Gets the mo_type of this InventoryInventoryMo. + The type of the MO for which the latest inventory to be fetched + + :return: The mo_type of this InventoryInventoryMo. + :rtype: str + """ + return self._mo_type + + @mo_type.setter + def mo_type(self, mo_type): + """ + Sets the mo_type of this InventoryInventoryMo. + The type of the MO for which the latest inventory to be fetched + + :param mo_type: The mo_type of this InventoryInventoryMo. + :type: str + """ + + self._mo_type = mo_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryInventoryMo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_inventory_mo_ref.py b/intersight/models/inventory_inventory_mo_ref.py new file mode 100644 index 00000000..0868507b --- /dev/null +++ b/intersight/models/inventory_inventory_mo_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryInventoryMoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryInventoryMoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryInventoryMoRef. + + :return: The moid of this InventoryInventoryMoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryInventoryMoRef. + + :param moid: The moid of this InventoryInventoryMoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryInventoryMoRef. + + :return: The object_type of this InventoryInventoryMoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryInventoryMoRef. + + :param object_type: The object_type of this InventoryInventoryMoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryInventoryMoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_job_info.py b/intersight/models/inventory_job_info.py new file mode 100644 index 00000000..761e794a --- /dev/null +++ b/intersight/models/inventory_job_info.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryJobInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'execution_status': 'str', + 'job_name': 'str', + 'last_processed_time': 'datetime', + 'last_scheduled_time': 'datetime', + 'properties': 'list[str]', + 'regex': 'list[str]' + } + + attribute_map = { + 'execution_status': 'ExecutionStatus', + 'job_name': 'JobName', + 'last_processed_time': 'LastProcessedTime', + 'last_scheduled_time': 'LastScheduledTime', + 'properties': 'Properties', + 'regex': 'Regex' + } + + def __init__(self, execution_status='Unknown', job_name=None, last_processed_time=None, last_scheduled_time=None, properties=None, regex=None): + """ + InventoryJobInfo - a model defined in Swagger + """ + + self._execution_status = None + self._job_name = None + self._last_processed_time = None + self._last_scheduled_time = None + self._properties = None + self._regex = None + + if execution_status is not None: + self.execution_status = execution_status + if job_name is not None: + self.job_name = job_name + if last_processed_time is not None: + self.last_processed_time = last_processed_time + if last_scheduled_time is not None: + self.last_scheduled_time = last_scheduled_time + if properties is not None: + self.properties = properties + if regex is not None: + self.regex = regex + + @property + def execution_status(self): + """ + Gets the execution_status of this InventoryJobInfo. + + :return: The execution_status of this InventoryJobInfo. + :rtype: str + """ + return self._execution_status + + @execution_status.setter + def execution_status(self, execution_status): + """ + Sets the execution_status of this InventoryJobInfo. + + :param execution_status: The execution_status of this InventoryJobInfo. + :type: str + """ + allowed_values = ["Unknown", "Scheduled", "Completed", "Error"] + if execution_status not in allowed_values: + raise ValueError( + "Invalid value for `execution_status` ({0}), must be one of {1}" + .format(execution_status, allowed_values) + ) + + self._execution_status = execution_status + + @property + def job_name(self): + """ + Gets the job_name of this InventoryJobInfo. + + :return: The job_name of this InventoryJobInfo. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """ + Sets the job_name of this InventoryJobInfo. + + :param job_name: The job_name of this InventoryJobInfo. + :type: str + """ + + self._job_name = job_name + + @property + def last_processed_time(self): + """ + Gets the last_processed_time of this InventoryJobInfo. + + :return: The last_processed_time of this InventoryJobInfo. + :rtype: datetime + """ + return self._last_processed_time + + @last_processed_time.setter + def last_processed_time(self, last_processed_time): + """ + Sets the last_processed_time of this InventoryJobInfo. + + :param last_processed_time: The last_processed_time of this InventoryJobInfo. + :type: datetime + """ + + self._last_processed_time = last_processed_time + + @property + def last_scheduled_time(self): + """ + Gets the last_scheduled_time of this InventoryJobInfo. + + :return: The last_scheduled_time of this InventoryJobInfo. + :rtype: datetime + """ + return self._last_scheduled_time + + @last_scheduled_time.setter + def last_scheduled_time(self, last_scheduled_time): + """ + Sets the last_scheduled_time of this InventoryJobInfo. + + :param last_scheduled_time: The last_scheduled_time of this InventoryJobInfo. + :type: datetime + """ + + self._last_scheduled_time = last_scheduled_time + + @property + def properties(self): + """ + Gets the properties of this InventoryJobInfo. + + :return: The properties of this InventoryJobInfo. + :rtype: list[str] + """ + return self._properties + + @properties.setter + def properties(self, properties): + """ + Sets the properties of this InventoryJobInfo. + + :param properties: The properties of this InventoryJobInfo. + :type: list[str] + """ + + self._properties = properties + + @property + def regex(self): + """ + Gets the regex of this InventoryJobInfo. + + :return: The regex of this InventoryJobInfo. + :rtype: list[str] + """ + return self._regex + + @regex.setter + def regex(self, regex): + """ + Sets the regex of this InventoryJobInfo. + + :param regex: The regex of this InventoryJobInfo. + :type: list[str] + """ + + self._regex = regex + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryJobInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_job_info_ref.py b/intersight/models/inventory_job_info_ref.py new file mode 100644 index 00000000..90a20971 --- /dev/null +++ b/intersight/models/inventory_job_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryJobInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryJobInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryJobInfoRef. + + :return: The moid of this InventoryJobInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryJobInfoRef. + + :param moid: The moid of this InventoryJobInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryJobInfoRef. + + :return: The object_type of this InventoryJobInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryJobInfoRef. + + :param object_type: The object_type of this InventoryJobInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryJobInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_request.py b/intersight/models/inventory_request.py new file mode 100644 index 00000000..5d456906 --- /dev/null +++ b/intersight/models/inventory_request.py @@ -0,0 +1,403 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'device': 'AssetDeviceRegistrationRef', + 'mos': 'list[InventoryInventoryMo]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'device': 'Device', + 'mos': 'Mos' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device=None, mos=None): + """ + InventoryRequest - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._device = None + self._mos = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if device is not None: + self.device = device + if mos is not None: + self.mos = mos + + @property + def account_moid(self): + """ + Gets the account_moid of this InventoryRequest. + The Account ID for this managed object. + + :return: The account_moid of this InventoryRequest. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this InventoryRequest. + The Account ID for this managed object. + + :param account_moid: The account_moid of this InventoryRequest. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this InventoryRequest. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this InventoryRequest. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this InventoryRequest. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this InventoryRequest. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this InventoryRequest. + The time when this managed object was created. + + :return: The create_time of this InventoryRequest. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this InventoryRequest. + The time when this managed object was created. + + :param create_time: The create_time of this InventoryRequest. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this InventoryRequest. + The time when this managed object was last modified. + + :return: The mod_time of this InventoryRequest. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this InventoryRequest. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this InventoryRequest. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this InventoryRequest. + A unique identifier of this Managed Object instance. + + :return: The moid of this InventoryRequest. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryRequest. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this InventoryRequest. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryRequest. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this InventoryRequest. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryRequest. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this InventoryRequest. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this InventoryRequest. + An array of owners which represent effective ownership of this object. + + :return: The owners of this InventoryRequest. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this InventoryRequest. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this InventoryRequest. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this InventoryRequest. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this InventoryRequest. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this InventoryRequest. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this InventoryRequest. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this InventoryRequest. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this InventoryRequest. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this InventoryRequest. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this InventoryRequest. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def device(self): + """ + Gets the device of this InventoryRequest. + + :return: The device of this InventoryRequest. + :rtype: AssetDeviceRegistrationRef + """ + return self._device + + @device.setter + def device(self, device): + """ + Sets the device of this InventoryRequest. + + :param device: The device of this InventoryRequest. + :type: AssetDeviceRegistrationRef + """ + + self._device = device + + @property + def mos(self): + """ + Gets the mos of this InventoryRequest. + The collection of specific inventory MOs that need to be fetched. This is an optional property and if not present all the MOs of the given device will be fetched + + :return: The mos of this InventoryRequest. + :rtype: list[InventoryInventoryMo] + """ + return self._mos + + @mos.setter + def mos(self, mos): + """ + Sets the mos of this InventoryRequest. + The collection of specific inventory MOs that need to be fetched. This is an optional property and if not present all the MOs of the given device will be fetched + + :param mos: The mos of this InventoryRequest. + :type: list[InventoryInventoryMo] + """ + + self._mos = mos + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_request_ref.py b/intersight/models/inventory_request_ref.py new file mode 100644 index 00000000..79c6d266 --- /dev/null +++ b/intersight/models/inventory_request_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryRequestRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryRequestRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryRequestRef. + + :return: The moid of this InventoryRequestRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryRequestRef. + + :param moid: The moid of this InventoryRequestRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryRequestRef. + + :return: The object_type of this InventoryRequestRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryRequestRef. + + :param object_type: The object_type of this InventoryRequestRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryRequestRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_scoped_inventory_task_ref.py b/intersight/models/inventory_scoped_inventory_task_ref.py new file mode 100644 index 00000000..b95e8129 --- /dev/null +++ b/intersight/models/inventory_scoped_inventory_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryScopedInventoryTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryScopedInventoryTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryScopedInventoryTaskRef. + + :return: The moid of this InventoryScopedInventoryTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryScopedInventoryTaskRef. + + :param moid: The moid of this InventoryScopedInventoryTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryScopedInventoryTaskRef. + + :return: The object_type of this InventoryScopedInventoryTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryScopedInventoryTaskRef. + + :param object_type: The object_type of this InventoryScopedInventoryTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryScopedInventoryTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ipmioverlan_deploy_task_ref.py b/intersight/models/ipmioverlan_deploy_task_ref.py new file mode 100644 index 00000000..96682e36 --- /dev/null +++ b/intersight/models/ipmioverlan_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IpmioverlanDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IpmioverlanDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IpmioverlanDeployTaskRef. + + :return: The moid of this IpmioverlanDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IpmioverlanDeployTaskRef. + + :param moid: The moid of this IpmioverlanDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IpmioverlanDeployTaskRef. + + :return: The object_type of this IpmioverlanDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IpmioverlanDeployTaskRef. + + :param object_type: The object_type of this IpmioverlanDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IpmioverlanDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ipmioverlan_policy.py b/intersight/models/ipmioverlan_policy.py index 8b9fd4a9..5fc94339 100644 --- a/intersight/models/ipmioverlan_policy.py +++ b/intersight/models/ipmioverlan_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,22 @@ class IpmioverlanPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', 'enabled': 'bool', 'encryption_key': 'str', - 'organization': 'MoMoRef', + 'is_encryption_key_set': 'bool', + 'organization': 'IamAccountRef', 'privilege': 'str', - 'profiles': 'list[MoMoRef]' + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -63,12 +64,13 @@ class IpmioverlanPolicy(object): 'name': 'Name', 'enabled': 'Enabled', 'encryption_key': 'EncryptionKey', + 'is_encryption_key_set': 'IsEncryptionKeySet', 'organization': 'Organization', 'privilege': 'Privilege', 'profiles': 'Profiles' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, enabled=None, encryption_key=None, organization=None, privilege='admin', profiles=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, enabled=None, encryption_key=None, is_encryption_key_set=None, organization=None, privilege='admin', profiles=None): """ IpmioverlanPolicy - a model defined in Swagger """ @@ -86,6 +88,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._name = None self._enabled = None self._encryption_key = None + self._is_encryption_key_set = None self._organization = None self._privilege = None self._profiles = None @@ -116,6 +119,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.enabled = enabled if encryption_key is not None: self.encryption_key = encryption_key + if is_encryption_key_set is not None: + self.is_encryption_key_set = is_encryption_key_set if organization is not None: self.organization = organization if privilege is not None: @@ -153,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IpmioverlanPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IpmioverlanPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IpmioverlanPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IpmioverlanPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -403,7 +408,7 @@ def enabled(self, enabled): def encryption_key(self): """ Gets the encryption_key of this IpmioverlanPolicy. - The encryption key to use for IPMI communications + The encryption key to use for IPMI communication. It should have an even number of hexadecimal characters and not exceed 40 characters. :return: The encryption_key of this IpmioverlanPolicy. :rtype: str @@ -414,7 +419,7 @@ def encryption_key(self): def encryption_key(self, encryption_key): """ Sets the encryption_key of this IpmioverlanPolicy. - The encryption key to use for IPMI communications + The encryption key to use for IPMI communication. It should have an even number of hexadecimal characters and not exceed 40 characters. :param encryption_key: The encryption_key of this IpmioverlanPolicy. :type: str @@ -422,6 +427,27 @@ def encryption_key(self, encryption_key): self._encryption_key = encryption_key + @property + def is_encryption_key_set(self): + """ + Gets the is_encryption_key_set of this IpmioverlanPolicy. + + :return: The is_encryption_key_set of this IpmioverlanPolicy. + :rtype: bool + """ + return self._is_encryption_key_set + + @is_encryption_key_set.setter + def is_encryption_key_set(self, is_encryption_key_set): + """ + Sets the is_encryption_key_set of this IpmioverlanPolicy. + + :param is_encryption_key_set: The is_encryption_key_set of this IpmioverlanPolicy. + :type: bool + """ + + self._is_encryption_key_set = is_encryption_key_set + @property def organization(self): """ @@ -429,7 +455,7 @@ def organization(self): Organization :return: The organization of this IpmioverlanPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -440,7 +466,7 @@ def organization(self, organization): Organization :param organization: The organization of this IpmioverlanPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -481,7 +507,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this IpmioverlanPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -492,7 +518,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this IpmioverlanPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/ipmioverlan_policy_list.py b/intersight/models/ipmioverlan_policy_list.py index 7d93e729..18a9b997 100644 --- a/intersight/models/ipmioverlan_policy_list.py +++ b/intersight/models/ipmioverlan_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/ipmioverlan_policy_ref.py b/intersight/models/ipmioverlan_policy_ref.py new file mode 100644 index 00000000..494693d3 --- /dev/null +++ b/intersight/models/ipmioverlan_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IpmioverlanPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IpmioverlanPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IpmioverlanPolicyRef. + + :return: The moid of this IpmioverlanPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IpmioverlanPolicyRef. + + :param moid: The moid of this IpmioverlanPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IpmioverlanPolicyRef. + + :return: The object_type of this IpmioverlanPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IpmioverlanPolicyRef. + + :param object_type: The object_type of this IpmioverlanPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IpmioverlanPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ipmioverlan_validation_task_ref.py b/intersight/models/ipmioverlan_validation_task_ref.py new file mode 100644 index 00000000..317d2846 --- /dev/null +++ b/intersight/models/ipmioverlan_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IpmioverlanValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IpmioverlanValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IpmioverlanValidationTaskRef. + + :return: The moid of this IpmioverlanValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IpmioverlanValidationTaskRef. + + :param moid: The moid of this IpmioverlanValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IpmioverlanValidationTaskRef. + + :return: The object_type of this IpmioverlanValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IpmioverlanValidationTaskRef. + + :param object_type: The object_type of this IpmioverlanValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IpmioverlanValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/kvm_deploy_task_ref.py b/intersight/models/kvm_deploy_task_ref.py new file mode 100644 index 00000000..a61abc15 --- /dev/null +++ b/intersight/models/kvm_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class KvmDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + KvmDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this KvmDeployTaskRef. + + :return: The moid of this KvmDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this KvmDeployTaskRef. + + :param moid: The moid of this KvmDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this KvmDeployTaskRef. + + :return: The object_type of this KvmDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this KvmDeployTaskRef. + + :param object_type: The object_type of this KvmDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, KvmDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/kvm_policy.py b/intersight/models/kvm_policy.py index 5b385fff..178be3c2 100644 --- a/intersight/models/kvm_policy.py +++ b/intersight/models/kvm_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class KvmPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', @@ -46,8 +46,8 @@ class KvmPolicy(object): 'enable_video_encryption': 'bool', 'enabled': 'bool', 'maximum_sessions': 'int', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', 'remote_port': 'int' } @@ -163,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this KvmPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this KvmPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this KvmPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this KvmPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -459,7 +459,7 @@ def enabled(self, enabled): def maximum_sessions(self): """ Gets the maximum_sessions of this KvmPolicy. - The maximum number of concurrent KVM sessions allowed. Accepted values range from 1 to 4 + The maximum number of concurrent KVM sessions allowed :return: The maximum_sessions of this KvmPolicy. :rtype: int @@ -470,7 +470,7 @@ def maximum_sessions(self): def maximum_sessions(self, maximum_sessions): """ Sets the maximum_sessions of this KvmPolicy. - The maximum number of concurrent KVM sessions allowed. Accepted values range from 1 to 4 + The maximum number of concurrent KVM sessions allowed :param maximum_sessions: The maximum_sessions of this KvmPolicy. :type: int @@ -485,7 +485,7 @@ def organization(self): Organization :return: The organization of this KvmPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -496,7 +496,7 @@ def organization(self, organization): Organization :param organization: The organization of this KvmPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -508,7 +508,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this KvmPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -519,7 +519,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this KvmPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/kvm_policy_list.py b/intersight/models/kvm_policy_list.py index 4a9d828d..466116dc 100644 --- a/intersight/models/kvm_policy_list.py +++ b/intersight/models/kvm_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/kvm_policy_ref.py b/intersight/models/kvm_policy_ref.py new file mode 100644 index 00000000..71b061d2 --- /dev/null +++ b/intersight/models/kvm_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class KvmPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + KvmPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this KvmPolicyRef. + + :return: The moid of this KvmPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this KvmPolicyRef. + + :param moid: The moid of this KvmPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this KvmPolicyRef. + + :return: The object_type of this KvmPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this KvmPolicyRef. + + :param object_type: The object_type of this KvmPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, KvmPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/kvm_validation_task_ref.py b/intersight/models/kvm_validation_task_ref.py new file mode 100644 index 00000000..3140a1e6 --- /dev/null +++ b/intersight/models/kvm_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class KvmValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + KvmValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this KvmValidationTaskRef. + + :return: The moid of this KvmValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this KvmValidationTaskRef. + + :param moid: The moid of this KvmValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this KvmValidationTaskRef. + + :return: The object_type of this KvmValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this KvmValidationTaskRef. + + :param object_type: The object_type of this KvmValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, KvmValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/license_account_license_data.py b/intersight/models/license_account_license_data.py index fcf3a0a7..a5315a03 100644 --- a/intersight/models/license_account_license_data.py +++ b/intersight/models/license_account_license_data.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,35 +32,35 @@ class LicenseAccountLicenseData(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'account_id': 'str', 'agent_data': 'str', 'auth_expire_time': 'str', 'auth_initial_time': 'str', 'auth_next_time': 'str', 'category': 'str', - 'customer_op': 'MoMoRef', + 'customer_op': 'LicenseCustomerOpRef', 'group': 'str', 'last_sync': 'datetime', 'last_updated_time': 'datetime', 'license_state': 'str', 'license_tech_support_info': 'str', - 'licenseinfos': 'list[MoMoRef]', + 'licenseinfos': 'list[LicenseLicenseInfoRef]', 'register_expire_time': 'str', 'register_initial_time': 'str', 'register_next_time': 'str', 'registration_status': 'str', 'renew_failure_string': 'str', 'smart_account': 'str', - 'smartlicense_token': 'MoMoRef', + 'smartlicense_token': 'LicenseSmartlicenseTokenRef', 'sync_status': 'str', 'virtual_account': 'str' } @@ -233,7 +233,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this LicenseAccountLicenseData. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -244,7 +244,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this LicenseAccountLicenseData. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -371,7 +371,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this LicenseAccountLicenseData. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -382,7 +382,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this LicenseAccountLicenseData. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -416,7 +416,7 @@ def account(self): Gets the account of this LicenseAccountLicenseData. :return: The account of this LicenseAccountLicenseData. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -426,7 +426,7 @@ def account(self, account): Sets the account of this LicenseAccountLicenseData. :param account: The account of this LicenseAccountLicenseData. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -550,7 +550,7 @@ def auth_next_time(self, auth_next_time): def category(self): """ Gets the category of this LicenseAccountLicenseData. - license category + License category :return: The category of this LicenseAccountLicenseData. :rtype: str @@ -561,7 +561,7 @@ def category(self): def category(self, category): """ Sets the category of this LicenseAccountLicenseData. - license category + License category :param category: The category of this LicenseAccountLicenseData. :type: str @@ -575,7 +575,7 @@ def customer_op(self): Gets the customer_op of this LicenseAccountLicenseData. :return: The customer_op of this LicenseAccountLicenseData. - :rtype: MoMoRef + :rtype: LicenseCustomerOpRef """ return self._customer_op @@ -585,7 +585,7 @@ def customer_op(self, customer_op): Sets the customer_op of this LicenseAccountLicenseData. :param customer_op: The customer_op of this LicenseAccountLicenseData. - :type: MoMoRef + :type: LicenseCustomerOpRef """ self._customer_op = customer_op @@ -594,7 +594,7 @@ def customer_op(self, customer_op): def group(self): """ Gets the group of this LicenseAccountLicenseData. - group + Group :return: The group of this LicenseAccountLicenseData. :rtype: str @@ -605,7 +605,7 @@ def group(self): def group(self, group): """ Sets the group of this LicenseAccountLicenseData. - group + Group :param group: The group of this LicenseAccountLicenseData. :type: str @@ -663,7 +663,7 @@ def last_updated_time(self, last_updated_time): def license_state(self): """ Gets the license_state of this LicenseAccountLicenseData. - aggregrated mode for the agent + Aggregrated mode for the agent :return: The license_state of this LicenseAccountLicenseData. :rtype: str @@ -674,7 +674,7 @@ def license_state(self): def license_state(self, license_state): """ Sets the license_state of this LicenseAccountLicenseData. - aggregrated mode for the agent + Aggregrated mode for the agent :param license_state: The license_state of this LicenseAccountLicenseData. :type: str @@ -711,7 +711,7 @@ def licenseinfos(self): Gets the licenseinfos of this LicenseAccountLicenseData. :return: The licenseinfos of this LicenseAccountLicenseData. - :rtype: list[MoMoRef] + :rtype: list[LicenseLicenseInfoRef] """ return self._licenseinfos @@ -721,7 +721,7 @@ def licenseinfos(self, licenseinfos): Sets the licenseinfos of this LicenseAccountLicenseData. :param licenseinfos: The licenseinfos of this LicenseAccountLicenseData. - :type: list[MoMoRef] + :type: list[LicenseLicenseInfoRef] """ self._licenseinfos = licenseinfos @@ -870,7 +870,7 @@ def smartlicense_token(self): Gets the smartlicense_token of this LicenseAccountLicenseData. :return: The smartlicense_token of this LicenseAccountLicenseData. - :rtype: MoMoRef + :rtype: LicenseSmartlicenseTokenRef """ return self._smartlicense_token @@ -880,7 +880,7 @@ def smartlicense_token(self, smartlicense_token): Sets the smartlicense_token of this LicenseAccountLicenseData. :param smartlicense_token: The smartlicense_token of this LicenseAccountLicenseData. - :type: MoMoRef + :type: LicenseSmartlicenseTokenRef """ self._smartlicense_token = smartlicense_token diff --git a/intersight/models/license_account_license_data_list.py b/intersight/models/license_account_license_data_list.py index 73ec287c..4cf987c5 100644 --- a/intersight/models/license_account_license_data_list.py +++ b/intersight/models/license_account_license_data_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/license_account_license_data_ref.py b/intersight/models/license_account_license_data_ref.py new file mode 100644 index 00000000..fb8a8fc8 --- /dev/null +++ b/intersight/models/license_account_license_data_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LicenseAccountLicenseDataRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LicenseAccountLicenseDataRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LicenseAccountLicenseDataRef. + + :return: The moid of this LicenseAccountLicenseDataRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LicenseAccountLicenseDataRef. + + :param moid: The moid of this LicenseAccountLicenseDataRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LicenseAccountLicenseDataRef. + + :return: The object_type of this LicenseAccountLicenseDataRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LicenseAccountLicenseDataRef. + + :param object_type: The object_type of this LicenseAccountLicenseDataRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LicenseAccountLicenseDataRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/license_customer_op.py b/intersight/models/license_customer_op.py index 7a2642a3..8ba0a13a 100644 --- a/intersight/models/license_customer_op.py +++ b/intersight/models/license_customer_op.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class LicenseCustomerOp(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account_license_data': 'MoMoRef', + 'account_license_data': 'LicenseAccountLicenseDataRef', 'deregister_device': 'bool', 'renew_authorization': 'bool', 'renew_id_certificate': 'bool', @@ -143,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this LicenseCustomerOp. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this LicenseCustomerOp. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this LicenseCustomerOp. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this LicenseCustomerOp. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +326,7 @@ def account_license_data(self): Gets the account_license_data of this LicenseCustomerOp. :return: The account_license_data of this LicenseCustomerOp. - :rtype: MoMoRef + :rtype: LicenseAccountLicenseDataRef """ return self._account_license_data @@ -336,7 +336,7 @@ def account_license_data(self, account_license_data): Sets the account_license_data of this LicenseCustomerOp. :param account_license_data: The account_license_data of this LicenseCustomerOp. - :type: MoMoRef + :type: LicenseAccountLicenseDataRef """ self._account_license_data = account_license_data @@ -345,7 +345,7 @@ def account_license_data(self, account_license_data): def deregister_device(self): """ Gets the deregister_device of this LicenseCustomerOp. - trigger de-registration/disable + Trigger de-registration/disable :return: The deregister_device of this LicenseCustomerOp. :rtype: bool @@ -356,7 +356,7 @@ def deregister_device(self): def deregister_device(self, deregister_device): """ Sets the deregister_device of this LicenseCustomerOp. - trigger de-registration/disable + Trigger de-registration/disable :param deregister_device: The deregister_device of this LicenseCustomerOp. :type: bool @@ -368,7 +368,7 @@ def deregister_device(self, deregister_device): def renew_authorization(self): """ Gets the renew_authorization of this LicenseCustomerOp. - trigger authorization renew + Trigger renew authorization :return: The renew_authorization of this LicenseCustomerOp. :rtype: bool @@ -379,7 +379,7 @@ def renew_authorization(self): def renew_authorization(self, renew_authorization): """ Sets the renew_authorization of this LicenseCustomerOp. - trigger authorization renew + Trigger renew authorization :param renew_authorization: The renew_authorization of this LicenseCustomerOp. :type: bool @@ -391,7 +391,7 @@ def renew_authorization(self, renew_authorization): def renew_id_certificate(self): """ Gets the renew_id_certificate of this LicenseCustomerOp. - trigger renew registration + Trigger renew registration :return: The renew_id_certificate of this LicenseCustomerOp. :rtype: bool @@ -402,7 +402,7 @@ def renew_id_certificate(self): def renew_id_certificate(self, renew_id_certificate): """ Sets the renew_id_certificate of this LicenseCustomerOp. - trigger renew registration + Trigger renew registration :param renew_id_certificate: The renew_id_certificate of this LicenseCustomerOp. :type: bool @@ -414,7 +414,7 @@ def renew_id_certificate(self, renew_id_certificate): def show_agent_tech_support(self): """ Gets the show_agent_tech_support of this LicenseCustomerOp. - trigger show tech support + Trigger show tech support :return: The show_agent_tech_support of this LicenseCustomerOp. :rtype: bool @@ -425,7 +425,7 @@ def show_agent_tech_support(self): def show_agent_tech_support(self, show_agent_tech_support): """ Sets the show_agent_tech_support of this LicenseCustomerOp. - trigger show tech support + Trigger show tech support :param show_agent_tech_support: The show_agent_tech_support of this LicenseCustomerOp. :type: bool diff --git a/intersight/models/license_customer_op_list.py b/intersight/models/license_customer_op_list.py index 175df605..aae9f5d3 100644 --- a/intersight/models/license_customer_op_list.py +++ b/intersight/models/license_customer_op_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/license_customer_op_ref.py b/intersight/models/license_customer_op_ref.py new file mode 100644 index 00000000..0a65882b --- /dev/null +++ b/intersight/models/license_customer_op_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LicenseCustomerOpRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LicenseCustomerOpRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LicenseCustomerOpRef. + + :return: The moid of this LicenseCustomerOpRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LicenseCustomerOpRef. + + :param moid: The moid of this LicenseCustomerOpRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LicenseCustomerOpRef. + + :return: The object_type of this LicenseCustomerOpRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LicenseCustomerOpRef. + + :param object_type: The object_type of this LicenseCustomerOpRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LicenseCustomerOpRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/license_license_info.py b/intersight/models/license_license_info.py index bc3e8cf8..57c7855b 100644 --- a/intersight/models/license_license_info.py +++ b/intersight/models/license_license_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,25 +32,25 @@ class LicenseLicenseInfo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account_license_data': 'MoMoRef', - 'activate_admin': 'bool', + 'account_license_data': 'LicenseAccountLicenseDataRef', + 'active_admin': 'bool', 'days_left': 'int', 'end_time': 'datetime', 'enforce_mode': 'str', 'error_desc': 'str', - 'eval_period': 'int', - 'ext_eval': 'int', - 'lic_count': 'int', - 'lic_type': 'str', + 'evaluation_period': 'int', + 'extra_evaluation': 'int', + 'license_count': 'int', 'license_state': 'str', + 'license_type': 'str', 'start_time': 'datetime', 'trial_admin': 'bool' } @@ -66,21 +66,21 @@ class LicenseLicenseInfo(object): 'parent': 'Parent', 'tags': 'Tags', 'account_license_data': 'AccountLicenseData', - 'activate_admin': 'ActivateAdmin', + 'active_admin': 'ActiveAdmin', 'days_left': 'DaysLeft', 'end_time': 'EndTime', 'enforce_mode': 'EnforceMode', 'error_desc': 'ErrorDesc', - 'eval_period': 'EvalPeriod', - 'ext_eval': 'ExtEval', - 'lic_count': 'LicCount', - 'lic_type': 'LicType', + 'evaluation_period': 'EvaluationPeriod', + 'extra_evaluation': 'ExtraEvaluation', + 'license_count': 'LicenseCount', 'license_state': 'LicenseState', + 'license_type': 'LicenseType', 'start_time': 'StartTime', 'trial_admin': 'TrialAdmin' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account_license_data=None, activate_admin=None, days_left=None, end_time=None, enforce_mode=None, error_desc=None, eval_period=None, ext_eval=None, lic_count=None, lic_type=None, license_state=None, start_time=None, trial_admin=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account_license_data=None, active_admin=None, days_left=None, end_time=None, enforce_mode=None, error_desc=None, evaluation_period=None, extra_evaluation=None, license_count=None, license_state=None, license_type=None, start_time=None, trial_admin=None): """ LicenseLicenseInfo - a model defined in Swagger """ @@ -95,16 +95,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._parent = None self._tags = None self._account_license_data = None - self._activate_admin = None + self._active_admin = None self._days_left = None self._end_time = None self._enforce_mode = None self._error_desc = None - self._eval_period = None - self._ext_eval = None - self._lic_count = None - self._lic_type = None + self._evaluation_period = None + self._extra_evaluation = None + self._license_count = None self._license_state = None + self._license_type = None self._start_time = None self._trial_admin = None @@ -128,8 +128,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.tags = tags if account_license_data is not None: self.account_license_data = account_license_data - if activate_admin is not None: - self.activate_admin = activate_admin + if active_admin is not None: + self.active_admin = active_admin if days_left is not None: self.days_left = days_left if end_time is not None: @@ -138,16 +138,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.enforce_mode = enforce_mode if error_desc is not None: self.error_desc = error_desc - if eval_period is not None: - self.eval_period = eval_period - if ext_eval is not None: - self.ext_eval = ext_eval - if lic_count is not None: - self.lic_count = lic_count - if lic_type is not None: - self.lic_type = lic_type + if evaluation_period is not None: + self.evaluation_period = evaluation_period + if extra_evaluation is not None: + self.extra_evaluation = extra_evaluation + if license_count is not None: + self.license_count = license_count if license_state is not None: self.license_state = license_state + if license_type is not None: + self.license_type = license_type if start_time is not None: self.start_time = start_time if trial_admin is not None: @@ -183,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this LicenseLicenseInfo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this LicenseLicenseInfo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this LicenseLicenseInfo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this LicenseLicenseInfo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -366,7 +366,7 @@ def account_license_data(self): Gets the account_license_data of this LicenseLicenseInfo. :return: The account_license_data of this LicenseLicenseInfo. - :rtype: MoMoRef + :rtype: LicenseAccountLicenseDataRef """ return self._account_license_data @@ -376,33 +376,33 @@ def account_license_data(self, account_license_data): Sets the account_license_data of this LicenseLicenseInfo. :param account_license_data: The account_license_data of this LicenseLicenseInfo. - :type: MoMoRef + :type: LicenseAccountLicenseDataRef """ self._account_license_data = account_license_data @property - def activate_admin(self): + def active_admin(self): """ - Gets the activate_admin of this LicenseLicenseInfo. + Gets the active_admin of this LicenseLicenseInfo. the customer needs to set this attribute to activate license entitlement - :return: The activate_admin of this LicenseLicenseInfo. + :return: The active_admin of this LicenseLicenseInfo. :rtype: bool """ - return self._activate_admin + return self._active_admin - @activate_admin.setter - def activate_admin(self, activate_admin): + @active_admin.setter + def active_admin(self, active_admin): """ - Sets the activate_admin of this LicenseLicenseInfo. + Sets the active_admin of this LicenseLicenseInfo. the customer needs to set this attribute to activate license entitlement - :param activate_admin: The activate_admin of this LicenseLicenseInfo. + :param active_admin: The active_admin of this LicenseLicenseInfo. :type: bool """ - self._activate_admin = activate_admin + self._active_admin = active_admin @property def days_left(self): @@ -497,119 +497,119 @@ def error_desc(self, error_desc): self._error_desc = error_desc @property - def eval_period(self): + def evaluation_period(self): """ - Gets the eval_period of this LicenseLicenseInfo. + Gets the evaluation_period of this LicenseLicenseInfo. Default Trial or Grace period customer is entitled to. - :return: The eval_period of this LicenseLicenseInfo. + :return: The evaluation_period of this LicenseLicenseInfo. :rtype: int """ - return self._eval_period + return self._evaluation_period - @eval_period.setter - def eval_period(self, eval_period): + @evaluation_period.setter + def evaluation_period(self, evaluation_period): """ - Sets the eval_period of this LicenseLicenseInfo. + Sets the evaluation_period of this LicenseLicenseInfo. Default Trial or Grace period customer is entitled to. - :param eval_period: The eval_period of this LicenseLicenseInfo. + :param evaluation_period: The evaluation_period of this LicenseLicenseInfo. :type: int """ - self._eval_period = eval_period + self._evaluation_period = evaluation_period @property - def ext_eval(self): + def extra_evaluation(self): """ - Gets the ext_eval of this LicenseLicenseInfo. - extend Trial or Grace period customer is entitled to. + Gets the extra_evaluation of this LicenseLicenseInfo. + one time extend Trial or Grace period customer is entitled to. - :return: The ext_eval of this LicenseLicenseInfo. + :return: The extra_evaluation of this LicenseLicenseInfo. :rtype: int """ - return self._ext_eval + return self._extra_evaluation - @ext_eval.setter - def ext_eval(self, ext_eval): + @extra_evaluation.setter + def extra_evaluation(self, extra_evaluation): """ - Sets the ext_eval of this LicenseLicenseInfo. - extend Trial or Grace period customer is entitled to. + Sets the extra_evaluation of this LicenseLicenseInfo. + one time extend Trial or Grace period customer is entitled to. - :param ext_eval: The ext_eval of this LicenseLicenseInfo. + :param extra_evaluation: The extra_evaluation of this LicenseLicenseInfo. :type: int """ - self._ext_eval = ext_eval + self._extra_evaluation = extra_evaluation @property - def lic_count(self): + def license_count(self): """ - Gets the lic_count of this LicenseLicenseInfo. + Gets the license_count of this LicenseLicenseInfo. the total number of servers claimed by the account - :return: The lic_count of this LicenseLicenseInfo. + :return: The license_count of this LicenseLicenseInfo. :rtype: int """ - return self._lic_count + return self._license_count - @lic_count.setter - def lic_count(self, lic_count): + @license_count.setter + def license_count(self, license_count): """ - Sets the lic_count of this LicenseLicenseInfo. + Sets the license_count of this LicenseLicenseInfo. the total number of servers claimed by the account - :param lic_count: The lic_count of this LicenseLicenseInfo. + :param license_count: The license_count of this LicenseLicenseInfo. :type: int """ - self._lic_count = lic_count + self._license_count = license_count @property - def lic_type(self): + def license_state(self): """ - Gets the lic_type of this LicenseLicenseInfo. - Starship license entitlement name. It is set to be Essentials. + Gets the license_state of this LicenseLicenseInfo. + the license state defined by Starship. Can be one of NotLicensed, TrialPeriod, OutOfCompliance, Compliance,GraceExpired,TrialExpired. - :return: The lic_type of this LicenseLicenseInfo. + :return: The license_state of this LicenseLicenseInfo. :rtype: str """ - return self._lic_type + return self._license_state - @lic_type.setter - def lic_type(self, lic_type): + @license_state.setter + def license_state(self, license_state): """ - Sets the lic_type of this LicenseLicenseInfo. - Starship license entitlement name. It is set to be Essentials. + Sets the license_state of this LicenseLicenseInfo. + the license state defined by Starship. Can be one of NotLicensed, TrialPeriod, OutOfCompliance, Compliance,GraceExpired,TrialExpired. - :param lic_type: The lic_type of this LicenseLicenseInfo. + :param license_state: The license_state of this LicenseLicenseInfo. :type: str """ - self._lic_type = lic_type + self._license_state = license_state @property - def license_state(self): + def license_type(self): """ - Gets the license_state of this LicenseLicenseInfo. - the license state defined by Starship. Can be one of NotLicensed, TrialPeriod, OutOfCompliance, Compliance,GraceExpired,TrialExpired. + Gets the license_type of this LicenseLicenseInfo. + Starship license entitlement name. It is set to be Essentials. - :return: The license_state of this LicenseLicenseInfo. + :return: The license_type of this LicenseLicenseInfo. :rtype: str """ - return self._license_state + return self._license_type - @license_state.setter - def license_state(self, license_state): + @license_type.setter + def license_type(self, license_type): """ - Sets the license_state of this LicenseLicenseInfo. - the license state defined by Starship. Can be one of NotLicensed, TrialPeriod, OutOfCompliance, Compliance,GraceExpired,TrialExpired. + Sets the license_type of this LicenseLicenseInfo. + Starship license entitlement name. It is set to be Essentials. - :param license_state: The license_state of this LicenseLicenseInfo. + :param license_type: The license_type of this LicenseLicenseInfo. :type: str """ - self._license_state = license_state + self._license_type = license_type @property def start_time(self): diff --git a/intersight/models/license_license_info_list.py b/intersight/models/license_license_info_list.py index 93b1a3d5..808a7314 100644 --- a/intersight/models/license_license_info_list.py +++ b/intersight/models/license_license_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/license_license_info_ref.py b/intersight/models/license_license_info_ref.py new file mode 100644 index 00000000..3d533aa4 --- /dev/null +++ b/intersight/models/license_license_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LicenseLicenseInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LicenseLicenseInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LicenseLicenseInfoRef. + + :return: The moid of this LicenseLicenseInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LicenseLicenseInfoRef. + + :param moid: The moid of this LicenseLicenseInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LicenseLicenseInfoRef. + + :return: The object_type of this LicenseLicenseInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LicenseLicenseInfoRef. + + :param object_type: The object_type of this LicenseLicenseInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LicenseLicenseInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/license_smartlicense_token.py b/intersight/models/license_smartlicense_token.py index 168bde9f..b86e1e39 100644 --- a/intersight/models/license_smartlicense_token.py +++ b/intersight/models/license_smartlicense_token.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class LicenseSmartlicenseToken(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account_license_data': 'MoMoRef', + 'account_license_data': 'LicenseAccountLicenseDataRef', 'token': 'str' } @@ -128,7 +128,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this LicenseSmartlicenseToken. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -139,7 +139,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this LicenseSmartlicenseToken. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -266,7 +266,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this LicenseSmartlicenseToken. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -277,7 +277,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this LicenseSmartlicenseToken. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +311,7 @@ def account_license_data(self): Gets the account_license_data of this LicenseSmartlicenseToken. :return: The account_license_data of this LicenseSmartlicenseToken. - :rtype: MoMoRef + :rtype: LicenseAccountLicenseDataRef """ return self._account_license_data @@ -321,7 +321,7 @@ def account_license_data(self, account_license_data): Sets the account_license_data of this LicenseSmartlicenseToken. :param account_license_data: The account_license_data of this LicenseSmartlicenseToken. - :type: MoMoRef + :type: LicenseAccountLicenseDataRef """ self._account_license_data = account_license_data @@ -330,7 +330,7 @@ def account_license_data(self, account_license_data): def token(self): """ Gets the token of this LicenseSmartlicenseToken. - smart license registration token + Smart license registration token :return: The token of this LicenseSmartlicenseToken. :rtype: str @@ -341,7 +341,7 @@ def token(self): def token(self, token): """ Sets the token of this LicenseSmartlicenseToken. - smart license registration token + Smart license registration token :param token: The token of this LicenseSmartlicenseToken. :type: str diff --git a/intersight/models/license_smartlicense_token_list.py b/intersight/models/license_smartlicense_token_list.py index da035c42..5d651903 100644 --- a/intersight/models/license_smartlicense_token_list.py +++ b/intersight/models/license_smartlicense_token_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/license_smartlicense_token_ref.py b/intersight/models/license_smartlicense_token_ref.py new file mode 100644 index 00000000..0c14d795 --- /dev/null +++ b/intersight/models/license_smartlicense_token_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LicenseSmartlicenseTokenRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LicenseSmartlicenseTokenRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LicenseSmartlicenseTokenRef. + + :return: The moid of this LicenseSmartlicenseTokenRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LicenseSmartlicenseTokenRef. + + :param moid: The moid of this LicenseSmartlicenseTokenRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LicenseSmartlicenseTokenRef. + + :return: The object_type of this LicenseSmartlicenseTokenRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LicenseSmartlicenseTokenRef. + + :param object_type: The object_type of this LicenseSmartlicenseTokenRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LicenseSmartlicenseTokenRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/license_sync_response_ref.py b/intersight/models/license_sync_response_ref.py new file mode 100644 index 00000000..0204deac --- /dev/null +++ b/intersight/models/license_sync_response_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LicenseSyncResponseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LicenseSyncResponseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LicenseSyncResponseRef. + + :return: The moid of this LicenseSyncResponseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LicenseSyncResponseRef. + + :param moid: The moid of this LicenseSyncResponseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LicenseSyncResponseRef. + + :return: The object_type of this LicenseSyncResponseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LicenseSyncResponseRef. + + :param object_type: The object_type of this LicenseSyncResponseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LicenseSyncResponseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ls_service_profile.py b/intersight/models/ls_service_profile.py index 0751fdfc..d3c8ee90 100644 --- a/intersight/models/ls_service_profile.py +++ b/intersight/models/ls_service_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,24 @@ class LsServiceProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', + 'assign_state': 'str', + 'assoc_state': 'str', 'associated_server': 'str', + 'config_state': 'str', 'name': 'str', - 'registered_device': 'MoMoRef' + 'oper_state': 'str', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -61,12 +65,16 @@ class LsServiceProfile(object): 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', + 'assign_state': 'AssignState', + 'assoc_state': 'AssocState', 'associated_server': 'AssociatedServer', + 'config_state': 'ConfigState', 'name': 'Name', + 'oper_state': 'OperState', 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, associated_server=None, name=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, assign_state=None, assoc_state=None, associated_server=None, config_state=None, name=None, oper_state=None, registered_device=None): """ LsServiceProfile - a model defined in Swagger """ @@ -83,8 +91,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._device_mo_id = None self._dn = None self._rn = None + self._assign_state = None + self._assoc_state = None self._associated_server = None + self._config_state = None self._name = None + self._oper_state = None self._registered_device = None if account_moid is not None: @@ -111,10 +123,18 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.dn = dn if rn is not None: self.rn = rn + if assign_state is not None: + self.assign_state = assign_state + if assoc_state is not None: + self.assoc_state = assoc_state if associated_server is not None: self.associated_server = associated_server + if config_state is not None: + self.config_state = config_state if name is not None: self.name = name + if oper_state is not None: + self.oper_state = oper_state if registered_device is not None: self.registered_device = registered_device @@ -148,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this LsServiceProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this LsServiceProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this LsServiceProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this LsServiceProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -388,6 +408,48 @@ def rn(self, rn): self._rn = rn + @property + def assign_state(self): + """ + Gets the assign_state of this LsServiceProfile. + + :return: The assign_state of this LsServiceProfile. + :rtype: str + """ + return self._assign_state + + @assign_state.setter + def assign_state(self, assign_state): + """ + Sets the assign_state of this LsServiceProfile. + + :param assign_state: The assign_state of this LsServiceProfile. + :type: str + """ + + self._assign_state = assign_state + + @property + def assoc_state(self): + """ + Gets the assoc_state of this LsServiceProfile. + + :return: The assoc_state of this LsServiceProfile. + :rtype: str + """ + return self._assoc_state + + @assoc_state.setter + def assoc_state(self, assoc_state): + """ + Sets the assoc_state of this LsServiceProfile. + + :param assoc_state: The assoc_state of this LsServiceProfile. + :type: str + """ + + self._assoc_state = assoc_state + @property def associated_server(self): """ @@ -409,6 +471,27 @@ def associated_server(self, associated_server): self._associated_server = associated_server + @property + def config_state(self): + """ + Gets the config_state of this LsServiceProfile. + + :return: The config_state of this LsServiceProfile. + :rtype: str + """ + return self._config_state + + @config_state.setter + def config_state(self, config_state): + """ + Sets the config_state of this LsServiceProfile. + + :param config_state: The config_state of this LsServiceProfile. + :type: str + """ + + self._config_state = config_state + @property def name(self): """ @@ -430,13 +513,34 @@ def name(self, name): self._name = name + @property + def oper_state(self): + """ + Gets the oper_state of this LsServiceProfile. + + :return: The oper_state of this LsServiceProfile. + :rtype: str + """ + return self._oper_state + + @oper_state.setter + def oper_state(self, oper_state): + """ + Sets the oper_state of this LsServiceProfile. + + :param oper_state: The oper_state of this LsServiceProfile. + :type: str + """ + + self._oper_state = oper_state + @property def registered_device(self): """ Gets the registered_device of this LsServiceProfile. :return: The registered_device of this LsServiceProfile. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -446,7 +550,7 @@ def registered_device(self, registered_device): Sets the registered_device of this LsServiceProfile. :param registered_device: The registered_device of this LsServiceProfile. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/ls_service_profile_list.py b/intersight/models/ls_service_profile_list.py index dd2dbefa..ede13caa 100644 --- a/intersight/models/ls_service_profile_list.py +++ b/intersight/models/ls_service_profile_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/ls_service_profile_ref.py b/intersight/models/ls_service_profile_ref.py new file mode 100644 index 00000000..82789226 --- /dev/null +++ b/intersight/models/ls_service_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LsServiceProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LsServiceProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LsServiceProfileRef. + + :return: The moid of this LsServiceProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LsServiceProfileRef. + + :param moid: The moid of this LsServiceProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LsServiceProfileRef. + + :return: The object_type of this LsServiceProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LsServiceProfileRef. + + :param object_type: The object_type of this LsServiceProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LsServiceProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/management_controller.py b/intersight/models/management_controller.py index d09f32f2..cc6c37bd 100644 --- a/intersight/models/management_controller.py +++ b/intersight/models/management_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,27 +32,27 @@ class ManagementController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'adapter_unit': 'MoMoRef', - 'compute_blade': 'MoMoRef', - 'compute_rack_unit': 'MoMoRef', - 'management_interfaces': 'list[MoMoRef]', + 'adapter_unit': 'AdapterUnitRef', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', + 'management_interfaces': 'list[ManagementInterfaceRef]', 'model': 'str', - 'network_element': 'MoMoRef', - 'registered_device': 'MoMoRef', - 'running_firmware': 'list[MoMoRef]', - 'storage_sas_expander': 'MoMoRef', - 'top_system': 'MoMoRef' + 'network_element': 'NetworkElementRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'running_firmware': 'list[FirmwareRunningFirmwareRef]', + 'storage_sas_expander': 'StorageSasExpanderRef', + 'top_system': 'TopSystemRef' } attribute_map = { @@ -183,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ManagementController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ManagementController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ManagementController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ManagementController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -429,7 +429,7 @@ def adapter_unit(self): Gets the adapter_unit of this ManagementController. :return: The adapter_unit of this ManagementController. - :rtype: MoMoRef + :rtype: AdapterUnitRef """ return self._adapter_unit @@ -439,7 +439,7 @@ def adapter_unit(self, adapter_unit): Sets the adapter_unit of this ManagementController. :param adapter_unit: The adapter_unit of this ManagementController. - :type: MoMoRef + :type: AdapterUnitRef """ self._adapter_unit = adapter_unit @@ -450,7 +450,7 @@ def compute_blade(self): Gets the compute_blade of this ManagementController. :return: The compute_blade of this ManagementController. - :rtype: MoMoRef + :rtype: ComputeBladeRef """ return self._compute_blade @@ -460,7 +460,7 @@ def compute_blade(self, compute_blade): Sets the compute_blade of this ManagementController. :param compute_blade: The compute_blade of this ManagementController. - :type: MoMoRef + :type: ComputeBladeRef """ self._compute_blade = compute_blade @@ -471,7 +471,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this ManagementController. :return: The compute_rack_unit of this ManagementController. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -481,7 +481,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this ManagementController. :param compute_rack_unit: The compute_rack_unit of this ManagementController. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -492,7 +492,7 @@ def management_interfaces(self): Gets the management_interfaces of this ManagementController. :return: The management_interfaces of this ManagementController. - :rtype: list[MoMoRef] + :rtype: list[ManagementInterfaceRef] """ return self._management_interfaces @@ -502,7 +502,7 @@ def management_interfaces(self, management_interfaces): Sets the management_interfaces of this ManagementController. :param management_interfaces: The management_interfaces of this ManagementController. - :type: list[MoMoRef] + :type: list[ManagementInterfaceRef] """ self._management_interfaces = management_interfaces @@ -534,7 +534,7 @@ def network_element(self): Gets the network_element of this ManagementController. :return: The network_element of this ManagementController. - :rtype: MoMoRef + :rtype: NetworkElementRef """ return self._network_element @@ -544,7 +544,7 @@ def network_element(self, network_element): Sets the network_element of this ManagementController. :param network_element: The network_element of this ManagementController. - :type: MoMoRef + :type: NetworkElementRef """ self._network_element = network_element @@ -555,7 +555,7 @@ def registered_device(self): Gets the registered_device of this ManagementController. :return: The registered_device of this ManagementController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -565,7 +565,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ManagementController. :param registered_device: The registered_device of this ManagementController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -576,7 +576,7 @@ def running_firmware(self): Gets the running_firmware of this ManagementController. :return: The running_firmware of this ManagementController. - :rtype: list[MoMoRef] + :rtype: list[FirmwareRunningFirmwareRef] """ return self._running_firmware @@ -586,7 +586,7 @@ def running_firmware(self, running_firmware): Sets the running_firmware of this ManagementController. :param running_firmware: The running_firmware of this ManagementController. - :type: list[MoMoRef] + :type: list[FirmwareRunningFirmwareRef] """ self._running_firmware = running_firmware @@ -597,7 +597,7 @@ def storage_sas_expander(self): Gets the storage_sas_expander of this ManagementController. :return: The storage_sas_expander of this ManagementController. - :rtype: MoMoRef + :rtype: StorageSasExpanderRef """ return self._storage_sas_expander @@ -607,7 +607,7 @@ def storage_sas_expander(self, storage_sas_expander): Sets the storage_sas_expander of this ManagementController. :param storage_sas_expander: The storage_sas_expander of this ManagementController. - :type: MoMoRef + :type: StorageSasExpanderRef """ self._storage_sas_expander = storage_sas_expander @@ -618,7 +618,7 @@ def top_system(self): Gets the top_system of this ManagementController. :return: The top_system of this ManagementController. - :rtype: MoMoRef + :rtype: TopSystemRef """ return self._top_system @@ -628,7 +628,7 @@ def top_system(self, top_system): Sets the top_system of this ManagementController. :param top_system: The top_system of this ManagementController. - :type: MoMoRef + :type: TopSystemRef """ self._top_system = top_system diff --git a/intersight/models/management_controller_list.py b/intersight/models/management_controller_list.py index 66a78054..243ee067 100644 --- a/intersight/models/management_controller_list.py +++ b/intersight/models/management_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/management_controller_ref.py b/intersight/models/management_controller_ref.py new file mode 100644 index 00000000..c6b6e7a0 --- /dev/null +++ b/intersight/models/management_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ManagementControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ManagementControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ManagementControllerRef. + + :return: The moid of this ManagementControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ManagementControllerRef. + + :param moid: The moid of this ManagementControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ManagementControllerRef. + + :return: The object_type of this ManagementControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ManagementControllerRef. + + :param object_type: The object_type of this ManagementControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ManagementControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/management_entity.py b/intersight/models/management_entity.py index 18fed38a..098e23fb 100644 --- a/intersight/models/management_entity.py +++ b/intersight/models/management_entity.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,21 @@ class ManagementEntity(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'entity_id': 'str', 'leadership': 'str', - 'network_element': 'MoMoRef', - 'registered_device': 'MoMoRef' + 'network_element': 'NetworkElementRef', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -153,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ManagementEntity. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ManagementEntity. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ManagementEntity. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ManagementEntity. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -441,7 +441,7 @@ def network_element(self): Gets the network_element of this ManagementEntity. :return: The network_element of this ManagementEntity. - :rtype: MoMoRef + :rtype: NetworkElementRef """ return self._network_element @@ -451,7 +451,7 @@ def network_element(self, network_element): Sets the network_element of this ManagementEntity. :param network_element: The network_element of this ManagementEntity. - :type: MoMoRef + :type: NetworkElementRef """ self._network_element = network_element @@ -462,7 +462,7 @@ def registered_device(self): Gets the registered_device of this ManagementEntity. :return: The registered_device of this ManagementEntity. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -472,7 +472,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ManagementEntity. :param registered_device: The registered_device of this ManagementEntity. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/management_entity_list.py b/intersight/models/management_entity_list.py index f3cdd441..3feecc2f 100644 --- a/intersight/models/management_entity_list.py +++ b/intersight/models/management_entity_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/management_entity_ref.py b/intersight/models/management_entity_ref.py new file mode 100644 index 00000000..dabbed86 --- /dev/null +++ b/intersight/models/management_entity_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ManagementEntityRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ManagementEntityRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ManagementEntityRef. + + :return: The moid of this ManagementEntityRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ManagementEntityRef. + + :param moid: The moid of this ManagementEntityRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ManagementEntityRef. + + :return: The object_type of this ManagementEntityRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ManagementEntityRef. + + :param object_type: The object_type of this ManagementEntityRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ManagementEntityRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/management_interface.py b/intersight/models/management_interface.py index 03bafa90..ff1942dd 100644 --- a/intersight/models/management_interface.py +++ b/intersight/models/management_interface.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class ManagementInterface(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -46,9 +46,9 @@ class ManagementInterface(object): 'gateway': 'str', 'ip_address': 'str', 'mac_address': 'str', - 'management_controller': 'MoMoRef', + 'management_controller': 'ManagementControllerRef', 'mask': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -163,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ManagementInterface. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ManagementInterface. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ManagementInterface. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ManagementInterface. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -472,7 +472,7 @@ def management_controller(self): Gets the management_controller of this ManagementInterface. :return: The management_controller of this ManagementInterface. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._management_controller @@ -482,7 +482,7 @@ def management_controller(self, management_controller): Sets the management_controller of this ManagementInterface. :param management_controller: The management_controller of this ManagementInterface. - :type: MoMoRef + :type: ManagementControllerRef """ self._management_controller = management_controller @@ -514,7 +514,7 @@ def registered_device(self): Gets the registered_device of this ManagementInterface. :return: The registered_device of this ManagementInterface. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -524,7 +524,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ManagementInterface. :param registered_device: The registered_device of this ManagementInterface. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/management_interface_list.py b/intersight/models/management_interface_list.py index 6452fe7b..0d0d9ad3 100644 --- a/intersight/models/management_interface_list.py +++ b/intersight/models/management_interface_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/management_interface_ref.py b/intersight/models/management_interface_ref.py new file mode 100644 index 00000000..532421df --- /dev/null +++ b/intersight/models/management_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ManagementInterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ManagementInterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ManagementInterfaceRef. + + :return: The moid of this ManagementInterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ManagementInterfaceRef. + + :param moid: The moid of this ManagementInterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ManagementInterfaceRef. + + :return: The object_type of this ManagementInterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ManagementInterfaceRef. + + :param object_type: The object_type of this ManagementInterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ManagementInterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/memory_array.py b/intersight/models/memory_array.py index b63d1953..bc240132 100644 --- a/intersight/models/memory_array.py +++ b/intersight/models/memory_array.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class MemoryArray(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -48,7 +48,7 @@ class MemoryArray(object): 'serial': 'str', 'vendor': 'str', 'array_id': 'int', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'cpu_id': 'int', 'current_capacity': 'str', 'error_correction': 'str', @@ -56,8 +56,8 @@ class MemoryArray(object): 'max_devices': 'str', 'oper_power_state': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', - 'units': 'list[MoMoRef]' + 'registered_device': 'AssetDeviceRegistrationRef', + 'units': 'list[MemoryUnitRef]' } attribute_map = { @@ -208,7 +208,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this MemoryArray. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -219,7 +219,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this MemoryArray. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -346,7 +346,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this MemoryArray. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -357,7 +357,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this MemoryArray. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -559,7 +559,7 @@ def compute_board(self): Gets the compute_board of this MemoryArray. :return: The compute_board of this MemoryArray. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -569,7 +569,7 @@ def compute_board(self, compute_board): Sets the compute_board of this MemoryArray. :param compute_board: The compute_board of this MemoryArray. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -727,7 +727,7 @@ def registered_device(self): Gets the registered_device of this MemoryArray. :return: The registered_device of this MemoryArray. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -737,7 +737,7 @@ def registered_device(self, registered_device): Sets the registered_device of this MemoryArray. :param registered_device: The registered_device of this MemoryArray. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -748,7 +748,7 @@ def units(self): Gets the units of this MemoryArray. :return: The units of this MemoryArray. - :rtype: list[MoMoRef] + :rtype: list[MemoryUnitRef] """ return self._units @@ -758,7 +758,7 @@ def units(self, units): Sets the units of this MemoryArray. :param units: The units of this MemoryArray. - :type: list[MoMoRef] + :type: list[MemoryUnitRef] """ self._units = units diff --git a/intersight/models/memory_array_list.py b/intersight/models/memory_array_list.py index cf50ee5b..40acbb33 100644 --- a/intersight/models/memory_array_list.py +++ b/intersight/models/memory_array_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/memory_array_ref.py b/intersight/models/memory_array_ref.py new file mode 100644 index 00000000..0f8cbccc --- /dev/null +++ b/intersight/models/memory_array_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MemoryArrayRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MemoryArrayRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MemoryArrayRef. + + :return: The moid of this MemoryArrayRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MemoryArrayRef. + + :param moid: The moid of this MemoryArrayRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MemoryArrayRef. + + :return: The object_type of this MemoryArrayRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MemoryArrayRef. + + :param object_type: The object_type of this MemoryArrayRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MemoryArrayRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/memory_unit.py b/intersight/models/memory_unit.py index ca42b1a7..3d015b85 100644 --- a/intersight/models/memory_unit.py +++ b/intersight/models/memory_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class MemoryUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -55,13 +55,13 @@ class MemoryUnit(object): 'form_factor': 'str', 'latency': 'str', 'location': 'str', - 'memory_array': 'MoMoRef', + 'memory_array': 'MemoryArrayRef', 'memory_id': 'int', 'oper_power_state': 'str', 'oper_state': 'str', 'operability': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'set': 'int', 'speed': 'str', 'thermal': 'str', @@ -258,7 +258,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this MemoryUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -269,7 +269,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this MemoryUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -396,7 +396,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this MemoryUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -407,7 +407,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this MemoryUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -756,7 +756,7 @@ def memory_array(self): Gets the memory_array of this MemoryUnit. :return: The memory_array of this MemoryUnit. - :rtype: MoMoRef + :rtype: MemoryArrayRef """ return self._memory_array @@ -766,7 +766,7 @@ def memory_array(self, memory_array): Sets the memory_array of this MemoryUnit. :param memory_array: The memory_array of this MemoryUnit. - :type: MoMoRef + :type: MemoryArrayRef """ self._memory_array = memory_array @@ -882,7 +882,7 @@ def registered_device(self): Gets the registered_device of this MemoryUnit. :return: The registered_device of this MemoryUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -892,7 +892,7 @@ def registered_device(self, registered_device): Sets the registered_device of this MemoryUnit. :param registered_device: The registered_device of this MemoryUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/memory_unit_list.py b/intersight/models/memory_unit_list.py index 3f6a1d5c..0440d741 100644 --- a/intersight/models/memory_unit_list.py +++ b/intersight/models/memory_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/memory_unit_ref.py b/intersight/models/memory_unit_ref.py new file mode 100644 index 00000000..6f7cedbf --- /dev/null +++ b/intersight/models/memory_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MemoryUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MemoryUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MemoryUnitRef. + + :return: The moid of this MemoryUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MemoryUnitRef. + + :param moid: The moid of this MemoryUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MemoryUnitRef. + + :return: The object_type of this MemoryUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MemoryUnitRef. + + :param object_type: The object_type of this MemoryUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MemoryUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/meta_definition.py b/intersight/models/meta_definition.py index bf008a9c..b852c6fc 100644 --- a/intersight/models/meta_definition.py +++ b/intersight/models/meta_definition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class MetaDefinition(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'ancestor_classes': 'list[str]', 'external_type': 'bool', @@ -173,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this MetaDefinition. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -184,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this MetaDefinition. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -311,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this MetaDefinition. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -322,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this MetaDefinition. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/meta_definition_list.py b/intersight/models/meta_definition_list.py index 74812ed5..857f8abd 100644 --- a/intersight/models/meta_definition_list.py +++ b/intersight/models/meta_definition_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/meta_definition_ref.py b/intersight/models/meta_definition_ref.py new file mode 100644 index 00000000..93f58558 --- /dev/null +++ b/intersight/models/meta_definition_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MetaDefinitionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MetaDefinitionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MetaDefinitionRef. + + :return: The moid of this MetaDefinitionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MetaDefinitionRef. + + :param moid: The moid of this MetaDefinitionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MetaDefinitionRef. + + :return: The object_type of this MetaDefinitionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MetaDefinitionRef. + + :param object_type: The object_type of this MetaDefinitionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MetaDefinitionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/meta_prop_definition.py b/intersight/models/meta_prop_definition.py index db017b8c..e6ff08fb 100644 --- a/intersight/models/meta_prop_definition.py +++ b/intersight/models/meta_prop_definition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/meta_prop_definition_ref.py b/intersight/models/meta_prop_definition_ref.py new file mode 100644 index 00000000..4cbdb491 --- /dev/null +++ b/intersight/models/meta_prop_definition_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MetaPropDefinitionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MetaPropDefinitionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MetaPropDefinitionRef. + + :return: The moid of this MetaPropDefinitionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MetaPropDefinitionRef. + + :param moid: The moid of this MetaPropDefinitionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MetaPropDefinitionRef. + + :return: The object_type of this MetaPropDefinitionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MetaPropDefinitionRef. + + :param object_type: The object_type of this MetaPropDefinitionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MetaPropDefinitionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/meta_relationship_definition.py b/intersight/models/meta_relationship_definition.py index 45405037..ca66f3b2 100644 --- a/intersight/models/meta_relationship_definition.py +++ b/intersight/models/meta_relationship_definition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/meta_relationship_definition_ref.py b/intersight/models/meta_relationship_definition_ref.py new file mode 100644 index 00000000..30b31a5c --- /dev/null +++ b/intersight/models/meta_relationship_definition_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MetaRelationshipDefinitionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MetaRelationshipDefinitionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MetaRelationshipDefinitionRef. + + :return: The moid of this MetaRelationshipDefinitionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MetaRelationshipDefinitionRef. + + :param moid: The moid of this MetaRelationshipDefinitionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MetaRelationshipDefinitionRef. + + :return: The object_type of this MetaRelationshipDefinitionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MetaRelationshipDefinitionRef. + + :param object_type: The object_type of this MetaRelationshipDefinitionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MetaRelationshipDefinitionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_base_complex_type.py b/intersight/models/mo_base_complex_type.py index 87ce7b58..e25b125f 100644 --- a/intersight/models/mo_base_complex_type.py +++ b/intersight/models/mo_base_complex_type.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/mo_base_complex_type_ref.py b/intersight/models/mo_base_complex_type_ref.py new file mode 100644 index 00000000..e18f1528 --- /dev/null +++ b/intersight/models/mo_base_complex_type_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoBaseComplexTypeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MoBaseComplexTypeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MoBaseComplexTypeRef. + + :return: The moid of this MoBaseComplexTypeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MoBaseComplexTypeRef. + + :param moid: The moid of this MoBaseComplexTypeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MoBaseComplexTypeRef. + + :return: The object_type of this MoBaseComplexTypeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MoBaseComplexTypeRef. + + :param object_type: The object_type of this MoBaseComplexTypeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoBaseComplexTypeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_base_mo.py b/intersight/models/mo_base_mo.py index 8c1ea43e..20170904 100644 --- a/intersight/models/mo_base_mo.py +++ b/intersight/models/mo_base_mo.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class MoBaseMo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]' } @@ -118,7 +118,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this MoBaseMo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -129,7 +129,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this MoBaseMo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -256,7 +256,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this MoBaseMo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -267,7 +267,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this MoBaseMo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/mo_base_mo_ref.py b/intersight/models/mo_base_mo_ref.py new file mode 100644 index 00000000..6b02f752 --- /dev/null +++ b/intersight/models/mo_base_mo_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoBaseMoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MoBaseMoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MoBaseMoRef. + + :return: The moid of this MoBaseMoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MoBaseMoRef. + + :param moid: The moid of this MoBaseMoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MoBaseMoRef. + + :return: The object_type of this MoBaseMoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MoBaseMoRef. + + :param object_type: The object_type of this MoBaseMoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoBaseMoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_interest_registration_ref.py b/intersight/models/mo_interest_registration_ref.py new file mode 100644 index 00000000..63d6efc0 --- /dev/null +++ b/intersight/models/mo_interest_registration_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoInterestRegistrationRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MoInterestRegistrationRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MoInterestRegistrationRef. + + :return: The moid of this MoInterestRegistrationRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MoInterestRegistrationRef. + + :param moid: The moid of this MoInterestRegistrationRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MoInterestRegistrationRef. + + :return: The object_type of this MoInterestRegistrationRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MoInterestRegistrationRef. + + :param object_type: The object_type of this MoInterestRegistrationRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoInterestRegistrationRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_mo_ref.py b/intersight/models/mo_mo_ref.py index 463be9f0..0a30b746 100644 --- a/intersight/models/mo_mo_ref.py +++ b/intersight/models/mo_mo_ref.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/mo_mo_ref_ref.py b/intersight/models/mo_mo_ref_ref.py new file mode 100644 index 00000000..7c2687ec --- /dev/null +++ b/intersight/models/mo_mo_ref_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoMoRefRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MoMoRefRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MoMoRefRef. + + :return: The moid of this MoMoRefRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MoMoRefRef. + + :param moid: The moid of this MoMoRefRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MoMoRefRef. + + :return: The object_type of this MoMoRefRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MoMoRefRef. + + :param object_type: The object_type of this MoMoRefRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoMoRefRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_tag.py b/intersight/models/mo_tag.py index 5f87b474..be2c6522 100644 --- a/intersight/models/mo_tag.py +++ b/intersight/models/mo_tag.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/mo_tag_ref.py b/intersight/models/mo_tag_ref.py new file mode 100644 index 00000000..02a9d1b9 --- /dev/null +++ b/intersight/models/mo_tag_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoTagRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MoTagRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MoTagRef. + + :return: The moid of this MoTagRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MoTagRef. + + :param moid: The moid of this MoTagRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MoTagRef. + + :return: The object_type of this MoTagRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MoTagRef. + + :param object_type: The object_type of this MoTagRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoTagRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/network_element.py b/intersight/models/network_element.py index 1c78a15d..810d3b0f 100644 --- a/intersight/models/network_element.py +++ b/intersight/models/network_element.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class NetworkElement(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -48,24 +48,24 @@ class NetworkElement(object): 'serial': 'str', 'vendor': 'str', 'admin_inband_interface_state': 'str', - 'cards': 'list[MoMoRef]', - 'fanmodules': 'list[MoMoRef]', + 'cards': 'list[EquipmentSwitchCardRef]', + 'fanmodules': 'list[EquipmentFanModuleRef]', 'fault_summary': 'int', 'inband_ip_address': 'str', 'inband_ip_gateway': 'str', 'inband_ip_mask': 'str', 'inband_vlan': 'int', - 'management_contoller': 'MoMoRef', - 'management_entity': 'MoMoRef', + 'management_contoller': 'ManagementControllerRef', + 'management_entity': 'ManagementEntityRef', 'out_of_band_ip_address': 'str', 'out_of_band_ip_gateway': 'str', 'out_of_band_ip_mask': 'str', 'out_of_band_mac': 'str', - 'psus': 'list[MoMoRef]', - 'registered_device': 'MoMoRef', + 'psus': 'list[EquipmentPsuRef]', + 'registered_device': 'AssetDeviceRegistrationRef', 'switch_id': 'str', - 'top_system': 'MoMoRef', - 'ucsm_running_firmware': 'MoMoRef' + 'top_system': 'TopSystemRef', + 'ucsm_running_firmware': 'FirmwareRunningFirmwareRef' } attribute_map = { @@ -248,7 +248,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this NetworkElement. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -259,7 +259,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this NetworkElement. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -386,7 +386,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this NetworkElement. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -397,7 +397,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this NetworkElement. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -599,7 +599,7 @@ def cards(self): Gets the cards of this NetworkElement. :return: The cards of this NetworkElement. - :rtype: list[MoMoRef] + :rtype: list[EquipmentSwitchCardRef] """ return self._cards @@ -609,7 +609,7 @@ def cards(self, cards): Sets the cards of this NetworkElement. :param cards: The cards of this NetworkElement. - :type: list[MoMoRef] + :type: list[EquipmentSwitchCardRef] """ self._cards = cards @@ -620,7 +620,7 @@ def fanmodules(self): Gets the fanmodules of this NetworkElement. :return: The fanmodules of this NetworkElement. - :rtype: list[MoMoRef] + :rtype: list[EquipmentFanModuleRef] """ return self._fanmodules @@ -630,7 +630,7 @@ def fanmodules(self, fanmodules): Sets the fanmodules of this NetworkElement. :param fanmodules: The fanmodules of this NetworkElement. - :type: list[MoMoRef] + :type: list[EquipmentFanModuleRef] """ self._fanmodules = fanmodules @@ -746,7 +746,7 @@ def management_contoller(self): Gets the management_contoller of this NetworkElement. :return: The management_contoller of this NetworkElement. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._management_contoller @@ -756,7 +756,7 @@ def management_contoller(self, management_contoller): Sets the management_contoller of this NetworkElement. :param management_contoller: The management_contoller of this NetworkElement. - :type: MoMoRef + :type: ManagementControllerRef """ self._management_contoller = management_contoller @@ -767,7 +767,7 @@ def management_entity(self): Gets the management_entity of this NetworkElement. :return: The management_entity of this NetworkElement. - :rtype: MoMoRef + :rtype: ManagementEntityRef """ return self._management_entity @@ -777,7 +777,7 @@ def management_entity(self, management_entity): Sets the management_entity of this NetworkElement. :param management_entity: The management_entity of this NetworkElement. - :type: MoMoRef + :type: ManagementEntityRef """ self._management_entity = management_entity @@ -872,7 +872,7 @@ def psus(self): Gets the psus of this NetworkElement. :return: The psus of this NetworkElement. - :rtype: list[MoMoRef] + :rtype: list[EquipmentPsuRef] """ return self._psus @@ -882,7 +882,7 @@ def psus(self, psus): Sets the psus of this NetworkElement. :param psus: The psus of this NetworkElement. - :type: list[MoMoRef] + :type: list[EquipmentPsuRef] """ self._psus = psus @@ -893,7 +893,7 @@ def registered_device(self): Gets the registered_device of this NetworkElement. :return: The registered_device of this NetworkElement. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -903,7 +903,7 @@ def registered_device(self, registered_device): Sets the registered_device of this NetworkElement. :param registered_device: The registered_device of this NetworkElement. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -935,7 +935,7 @@ def top_system(self): Gets the top_system of this NetworkElement. :return: The top_system of this NetworkElement. - :rtype: MoMoRef + :rtype: TopSystemRef """ return self._top_system @@ -945,7 +945,7 @@ def top_system(self, top_system): Sets the top_system of this NetworkElement. :param top_system: The top_system of this NetworkElement. - :type: MoMoRef + :type: TopSystemRef """ self._top_system = top_system @@ -956,7 +956,7 @@ def ucsm_running_firmware(self): Gets the ucsm_running_firmware of this NetworkElement. :return: The ucsm_running_firmware of this NetworkElement. - :rtype: MoMoRef + :rtype: FirmwareRunningFirmwareRef """ return self._ucsm_running_firmware @@ -966,7 +966,7 @@ def ucsm_running_firmware(self, ucsm_running_firmware): Sets the ucsm_running_firmware of this NetworkElement. :param ucsm_running_firmware: The ucsm_running_firmware of this NetworkElement. - :type: MoMoRef + :type: FirmwareRunningFirmwareRef """ self._ucsm_running_firmware = ucsm_running_firmware diff --git a/intersight/models/network_element_list.py b/intersight/models/network_element_list.py index 2042e4fe..7f96f05f 100644 --- a/intersight/models/network_element_list.py +++ b/intersight/models/network_element_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/network_element_ref.py b/intersight/models/network_element_ref.py new file mode 100644 index 00000000..02791b5a --- /dev/null +++ b/intersight/models/network_element_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NetworkElementRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NetworkElementRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NetworkElementRef. + + :return: The moid of this NetworkElementRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NetworkElementRef. + + :param moid: The moid of this NetworkElementRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NetworkElementRef. + + :return: The object_type of this NetworkElementRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NetworkElementRef. + + :param object_type: The object_type of this NetworkElementRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NetworkElementRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/network_element_summary.py b/intersight/models/network_element_summary.py index 759366d7..5bfc56c7 100644 --- a/intersight/models/network_element_summary.py +++ b/intersight/models/network_element_summary.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class NetworkElementSummary(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'admin_inband_interface_state': 'str', 'device_mo_id': 'str', @@ -50,8 +50,6 @@ class NetworkElementSummary(object): 'inband_ip_mask': 'str', 'inband_vlan': 'int', 'ipv4_address': 'str', - 'leadership': 'str', - 'management_entity': 'str', 'model': 'str', 'name': 'str', 'num_ether_ports': 'int', @@ -65,7 +63,7 @@ class NetworkElementSummary(object): 'out_of_band_ip_gateway': 'str', 'out_of_band_ip_mask': 'str', 'out_of_band_mac': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'revision': 'str', 'rn': 'str', 'serial': 'str', @@ -95,8 +93,6 @@ class NetworkElementSummary(object): 'inband_ip_mask': 'InbandIpMask', 'inband_vlan': 'InbandVlan', 'ipv4_address': 'Ipv4Address', - 'leadership': 'Leadership', - 'management_entity': 'ManagementEntity', 'model': 'Model', 'name': 'Name', 'num_ether_ports': 'NumEtherPorts', @@ -120,7 +116,7 @@ class NetworkElementSummary(object): 'version': 'Version' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, admin_inband_interface_state=None, device_mo_id=None, dn=None, fault_summary=None, firmware=None, inband_ip_address=None, inband_ip_gateway=None, inband_ip_mask=None, inband_vlan=None, ipv4_address=None, leadership=None, management_entity=None, model=None, name=None, num_ether_ports=None, num_ether_ports_configured=None, num_ether_ports_link_up=None, num_expansion_modules=None, num_fc_ports=None, num_fc_ports_configured=None, num_fc_ports_link_up=None, out_of_band_ip_address=None, out_of_band_ip_gateway=None, out_of_band_ip_mask=None, out_of_band_mac=None, registered_device=None, revision=None, rn=None, serial=None, source_object_type=None, switch_id=None, vendor=None, version=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, admin_inband_interface_state=None, device_mo_id=None, dn=None, fault_summary=None, firmware=None, inband_ip_address=None, inband_ip_gateway=None, inband_ip_mask=None, inband_vlan=None, ipv4_address=None, model=None, name=None, num_ether_ports=None, num_ether_ports_configured=None, num_ether_ports_link_up=None, num_expansion_modules=None, num_fc_ports=None, num_fc_ports_configured=None, num_fc_ports_link_up=None, out_of_band_ip_address=None, out_of_band_ip_gateway=None, out_of_band_ip_mask=None, out_of_band_mac=None, registered_device=None, revision=None, rn=None, serial=None, source_object_type=None, switch_id=None, vendor=None, version=None): """ NetworkElementSummary - a model defined in Swagger """ @@ -144,8 +140,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._inband_ip_mask = None self._inband_vlan = None self._ipv4_address = None - self._leadership = None - self._management_entity = None self._model = None self._name = None self._num_ether_ports = None @@ -206,10 +200,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.inband_vlan = inband_vlan if ipv4_address is not None: self.ipv4_address = ipv4_address - if leadership is not None: - self.leadership = leadership - if management_entity is not None: - self.management_entity = management_entity if model is not None: self.model = model if name is not None: @@ -283,7 +273,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this NetworkElementSummary. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -294,7 +284,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this NetworkElementSummary. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -421,7 +411,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this NetworkElementSummary. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -432,7 +422,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this NetworkElementSummary. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -672,52 +662,6 @@ def ipv4_address(self, ipv4_address): self._ipv4_address = ipv4_address - @property - def leadership(self): - """ - Gets the leadership of this NetworkElementSummary. - Role of the Fi - primary or subordinate - - :return: The leadership of this NetworkElementSummary. - :rtype: str - """ - return self._leadership - - @leadership.setter - def leadership(self, leadership): - """ - Sets the leadership of this NetworkElementSummary. - Role of the Fi - primary or subordinate - - :param leadership: The leadership of this NetworkElementSummary. - :type: str - """ - - self._leadership = leadership - - @property - def management_entity(self): - """ - Gets the management_entity of this NetworkElementSummary. - The MoId of entity to associated to FI - - :return: The management_entity of this NetworkElementSummary. - :rtype: str - """ - return self._management_entity - - @management_entity.setter - def management_entity(self, management_entity): - """ - Sets the management_entity of this NetworkElementSummary. - The MoId of entity to associated to FI - - :param management_entity: The management_entity of this NetworkElementSummary. - :type: str - """ - - self._management_entity = management_entity - @property def model(self): """ @@ -1011,7 +955,7 @@ def registered_device(self): Gets the registered_device of this NetworkElementSummary. :return: The registered_device of this NetworkElementSummary. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1021,7 +965,7 @@ def registered_device(self, registered_device): Sets the registered_device of this NetworkElementSummary. :param registered_device: The registered_device of this NetworkElementSummary. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/network_element_summary_list.py b/intersight/models/network_element_summary_list.py index 7f4079b3..d3f43651 100644 --- a/intersight/models/network_element_summary_list.py +++ b/intersight/models/network_element_summary_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/network_element_summary_ref.py b/intersight/models/network_element_summary_ref.py new file mode 100644 index 00000000..b5754566 --- /dev/null +++ b/intersight/models/network_element_summary_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NetworkElementSummaryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NetworkElementSummaryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NetworkElementSummaryRef. + + :return: The moid of this NetworkElementSummaryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NetworkElementSummaryRef. + + :param moid: The moid of this NetworkElementSummaryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NetworkElementSummaryRef. + + :return: The object_type of this NetworkElementSummaryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NetworkElementSummaryRef. + + :param object_type: The object_type of this NetworkElementSummaryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NetworkElementSummaryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/networkconfig_deploy_task_ref.py b/intersight/models/networkconfig_deploy_task_ref.py new file mode 100644 index 00000000..78b01697 --- /dev/null +++ b/intersight/models/networkconfig_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NetworkconfigDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NetworkconfigDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NetworkconfigDeployTaskRef. + + :return: The moid of this NetworkconfigDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NetworkconfigDeployTaskRef. + + :param moid: The moid of this NetworkconfigDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NetworkconfigDeployTaskRef. + + :return: The object_type of this NetworkconfigDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NetworkconfigDeployTaskRef. + + :param object_type: The object_type of this NetworkconfigDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NetworkconfigDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/networkconfig_policy.py b/intersight/models/networkconfig_policy.py index c5236fbf..903cf381 100644 --- a/intersight/models/networkconfig_policy.py +++ b/intersight/models/networkconfig_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class NetworkconfigPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', @@ -49,13 +49,10 @@ class NetworkconfigPolicy(object): 'enable_ipv4dns_from_dhcp': 'bool', 'enable_ipv6': 'bool', 'enable_ipv6dns_from_dhcp': 'bool', - 'enable_vlan': 'bool', - 'organization': 'MoMoRef', + 'organization': 'IamAccountRef', 'preferred_ipv4dns_server': 'str', 'preferred_ipv6dns_server': 'str', - 'priority': 'int', - 'profiles': 'list[MoMoRef]', - 'vlan_id': 'int' + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -77,16 +74,13 @@ class NetworkconfigPolicy(object): 'enable_ipv4dns_from_dhcp': 'EnableIpv4dnsFromDhcp', 'enable_ipv6': 'EnableIpv6', 'enable_ipv6dns_from_dhcp': 'EnableIpv6dnsFromDhcp', - 'enable_vlan': 'EnableVlan', 'organization': 'Organization', 'preferred_ipv4dns_server': 'PreferredIpv4dnsServer', 'preferred_ipv6dns_server': 'PreferredIpv6dnsServer', - 'priority': 'Priority', - 'profiles': 'Profiles', - 'vlan_id': 'VlanId' + 'profiles': 'Profiles' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, alternate_ipv4dns_server=None, alternate_ipv6dns_server=None, dynamic_dns_domain=None, enable_dynamic_dns=None, enable_ipv4dns_from_dhcp=None, enable_ipv6=None, enable_ipv6dns_from_dhcp=None, enable_vlan=None, organization=None, preferred_ipv4dns_server=None, preferred_ipv6dns_server=None, priority=None, profiles=None, vlan_id=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, alternate_ipv4dns_server=None, alternate_ipv6dns_server=None, dynamic_dns_domain=None, enable_dynamic_dns=None, enable_ipv4dns_from_dhcp=None, enable_ipv6=None, enable_ipv6dns_from_dhcp=None, organization=None, preferred_ipv4dns_server=None, preferred_ipv6dns_server=None, profiles=None): """ NetworkconfigPolicy - a model defined in Swagger """ @@ -109,13 +103,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._enable_ipv4dns_from_dhcp = None self._enable_ipv6 = None self._enable_ipv6dns_from_dhcp = None - self._enable_vlan = None self._organization = None self._preferred_ipv4dns_server = None self._preferred_ipv6dns_server = None - self._priority = None self._profiles = None - self._vlan_id = None if account_moid is not None: self.account_moid = account_moid @@ -153,20 +144,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.enable_ipv6 = enable_ipv6 if enable_ipv6dns_from_dhcp is not None: self.enable_ipv6dns_from_dhcp = enable_ipv6dns_from_dhcp - if enable_vlan is not None: - self.enable_vlan = enable_vlan if organization is not None: self.organization = organization if preferred_ipv4dns_server is not None: self.preferred_ipv4dns_server = preferred_ipv4dns_server if preferred_ipv6dns_server is not None: self.preferred_ipv6dns_server = preferred_ipv6dns_server - if priority is not None: - self.priority = priority if profiles is not None: self.profiles = profiles - if vlan_id is not None: - self.vlan_id = vlan_id @property def account_moid(self): @@ -198,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this NetworkconfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -209,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this NetworkconfigPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -336,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this NetworkconfigPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -347,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this NetworkconfigPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -425,7 +410,7 @@ def name(self, name): def alternate_ipv4dns_server(self): """ Gets the alternate_ipv4dns_server of this NetworkconfigPolicy. - IP address of the secondary DNS server. + IP address of the secondary DNS server :return: The alternate_ipv4dns_server of this NetworkconfigPolicy. :rtype: str @@ -436,7 +421,7 @@ def alternate_ipv4dns_server(self): def alternate_ipv4dns_server(self, alternate_ipv4dns_server): """ Sets the alternate_ipv4dns_server of this NetworkconfigPolicy. - IP address of the secondary DNS server. + IP address of the secondary DNS server :param alternate_ipv4dns_server: The alternate_ipv4dns_server of this NetworkconfigPolicy. :type: str @@ -448,7 +433,7 @@ def alternate_ipv4dns_server(self, alternate_ipv4dns_server): def alternate_ipv6dns_server(self): """ Gets the alternate_ipv6dns_server of this NetworkconfigPolicy. - IP address of the secondary DNS server. + IP address of the secondary DNS server :return: The alternate_ipv6dns_server of this NetworkconfigPolicy. :rtype: str @@ -459,7 +444,7 @@ def alternate_ipv6dns_server(self): def alternate_ipv6dns_server(self, alternate_ipv6dns_server): """ Sets the alternate_ipv6dns_server of this NetworkconfigPolicy. - IP address of the secondary DNS server. + IP address of the secondary DNS server :param alternate_ipv6dns_server: The alternate_ipv6dns_server of this NetworkconfigPolicy. :type: str @@ -494,7 +479,7 @@ def dynamic_dns_domain(self, dynamic_dns_domain): def enable_dynamic_dns(self): """ Gets the enable_dynamic_dns of this NetworkconfigPolicy. - If enabled, updates the resource records to the DNS from Cisco IMC. + If enabled, updates the resource records to the DNS from Cisco IMC :return: The enable_dynamic_dns of this NetworkconfigPolicy. :rtype: bool @@ -505,7 +490,7 @@ def enable_dynamic_dns(self): def enable_dynamic_dns(self, enable_dynamic_dns): """ Sets the enable_dynamic_dns of this NetworkconfigPolicy. - If enabled, updates the resource records to the DNS from Cisco IMC. + If enabled, updates the resource records to the DNS from Cisco IMC :param enable_dynamic_dns: The enable_dynamic_dns of this NetworkconfigPolicy. :type: bool @@ -517,7 +502,7 @@ def enable_dynamic_dns(self, enable_dynamic_dns): def enable_ipv4dns_from_dhcp(self): """ Gets the enable_ipv4dns_from_dhcp of this NetworkconfigPolicy. - If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. + 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. :return: The enable_ipv4dns_from_dhcp of this NetworkconfigPolicy. :rtype: bool @@ -528,7 +513,7 @@ def enable_ipv4dns_from_dhcp(self): def enable_ipv4dns_from_dhcp(self, enable_ipv4dns_from_dhcp): """ Sets the enable_ipv4dns_from_dhcp of this NetworkconfigPolicy. - If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. + 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. :param enable_ipv4dns_from_dhcp: The enable_ipv4dns_from_dhcp of this NetworkconfigPolicy. :type: bool @@ -540,7 +525,7 @@ def enable_ipv4dns_from_dhcp(self, enable_ipv4dns_from_dhcp): def enable_ipv6(self): """ Gets the enable_ipv6 of this NetworkconfigPolicy. - If enabled, allows to configure IPv6 properties. + If enabled, allows to configure IPv6 properties :return: The enable_ipv6 of this NetworkconfigPolicy. :rtype: bool @@ -551,7 +536,7 @@ def enable_ipv6(self): def enable_ipv6(self, enable_ipv6): """ Sets the enable_ipv6 of this NetworkconfigPolicy. - If enabled, allows to configure IPv6 properties. + If enabled, allows to configure IPv6 properties :param enable_ipv6: The enable_ipv6 of this NetworkconfigPolicy. :type: bool @@ -563,7 +548,7 @@ def enable_ipv6(self, enable_ipv6): def enable_ipv6dns_from_dhcp(self): """ Gets the enable_ipv6dns_from_dhcp of this NetworkconfigPolicy. - If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. + If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv6 in Cisco IMC to enable it. :return: The enable_ipv6dns_from_dhcp of this NetworkconfigPolicy. :rtype: bool @@ -574,7 +559,7 @@ def enable_ipv6dns_from_dhcp(self): def enable_ipv6dns_from_dhcp(self, enable_ipv6dns_from_dhcp): """ Sets the enable_ipv6dns_from_dhcp of this NetworkconfigPolicy. - If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. + If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv6 in Cisco IMC to enable it. :param enable_ipv6dns_from_dhcp: The enable_ipv6dns_from_dhcp of this NetworkconfigPolicy. :type: bool @@ -582,29 +567,6 @@ def enable_ipv6dns_from_dhcp(self, enable_ipv6dns_from_dhcp): self._enable_ipv6dns_from_dhcp = enable_ipv6dns_from_dhcp - @property - def enable_vlan(self): - """ - Gets the enable_vlan of this NetworkconfigPolicy. - If enabled, Cisco IMC is connected to a virtual LAN. - - :return: The enable_vlan of this NetworkconfigPolicy. - :rtype: bool - """ - return self._enable_vlan - - @enable_vlan.setter - def enable_vlan(self, enable_vlan): - """ - Sets the enable_vlan of this NetworkconfigPolicy. - If enabled, Cisco IMC is connected to a virtual LAN. - - :param enable_vlan: The enable_vlan of this NetworkconfigPolicy. - :type: bool - """ - - self._enable_vlan = enable_vlan - @property def organization(self): """ @@ -612,7 +574,7 @@ def organization(self): Organization :return: The organization of this NetworkconfigPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -623,7 +585,7 @@ def organization(self, organization): Organization :param organization: The organization of this NetworkconfigPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -632,7 +594,7 @@ def organization(self, organization): def preferred_ipv4dns_server(self): """ Gets the preferred_ipv4dns_server of this NetworkconfigPolicy. - IP address of the primary DNS server. + IP address of the primary DNS server :return: The preferred_ipv4dns_server of this NetworkconfigPolicy. :rtype: str @@ -643,7 +605,7 @@ def preferred_ipv4dns_server(self): def preferred_ipv4dns_server(self, preferred_ipv4dns_server): """ Sets the preferred_ipv4dns_server of this NetworkconfigPolicy. - IP address of the primary DNS server. + IP address of the primary DNS server :param preferred_ipv4dns_server: The preferred_ipv4dns_server of this NetworkconfigPolicy. :type: str @@ -655,7 +617,7 @@ def preferred_ipv4dns_server(self, preferred_ipv4dns_server): def preferred_ipv6dns_server(self): """ Gets the preferred_ipv6dns_server of this NetworkconfigPolicy. - IP address of the primary DNS server. + IP address of the primary DNS server :return: The preferred_ipv6dns_server of this NetworkconfigPolicy. :rtype: str @@ -666,7 +628,7 @@ def preferred_ipv6dns_server(self): def preferred_ipv6dns_server(self, preferred_ipv6dns_server): """ Sets the preferred_ipv6dns_server of this NetworkconfigPolicy. - IP address of the primary DNS server. + IP address of the primary DNS server :param preferred_ipv6dns_server: The preferred_ipv6dns_server of this NetworkconfigPolicy. :type: str @@ -674,37 +636,14 @@ def preferred_ipv6dns_server(self, preferred_ipv6dns_server): self._preferred_ipv6dns_server = preferred_ipv6dns_server - @property - def priority(self): - """ - Gets the priority of this NetworkconfigPolicy. - Priority associated with the specified VLAN ID. Allowed values range from 0 to 7. - - :return: The priority of this NetworkconfigPolicy. - :rtype: int - """ - return self._priority - - @priority.setter - def priority(self, priority): - """ - Sets the priority of this NetworkconfigPolicy. - Priority associated with the specified VLAN ID. Allowed values range from 0 to 7. - - :param priority: The priority of this NetworkconfigPolicy. - :type: int - """ - - self._priority = priority - @property def profiles(self): """ Gets the profiles of this NetworkconfigPolicy. - Relationship to the profile object. + Relationship to the profile object :return: The profiles of this NetworkconfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -712,37 +651,14 @@ def profiles(self): def profiles(self, profiles): """ Sets the profiles of this NetworkconfigPolicy. - Relationship to the profile object. + Relationship to the profile object :param profiles: The profiles of this NetworkconfigPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles - @property - def vlan_id(self): - """ - Gets the vlan_id of this NetworkconfigPolicy. - VLAN ID assigned to Cisco IMC. - - :return: The vlan_id of this NetworkconfigPolicy. - :rtype: int - """ - return self._vlan_id - - @vlan_id.setter - def vlan_id(self, vlan_id): - """ - Sets the vlan_id of this NetworkconfigPolicy. - VLAN ID assigned to Cisco IMC. - - :param vlan_id: The vlan_id of this NetworkconfigPolicy. - :type: int - """ - - self._vlan_id = vlan_id - def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/networkconfig_policy_list.py b/intersight/models/networkconfig_policy_list.py index a9afa565..d0efe085 100644 --- a/intersight/models/networkconfig_policy_list.py +++ b/intersight/models/networkconfig_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/networkconfig_policy_ref.py b/intersight/models/networkconfig_policy_ref.py new file mode 100644 index 00000000..0cd47fa2 --- /dev/null +++ b/intersight/models/networkconfig_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NetworkconfigPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NetworkconfigPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NetworkconfigPolicyRef. + + :return: The moid of this NetworkconfigPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NetworkconfigPolicyRef. + + :param moid: The moid of this NetworkconfigPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NetworkconfigPolicyRef. + + :return: The object_type of this NetworkconfigPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NetworkconfigPolicyRef. + + :param object_type: The object_type of this NetworkconfigPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NetworkconfigPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/networkconfig_validation_task_ref.py b/intersight/models/networkconfig_validation_task_ref.py new file mode 100644 index 00000000..e583a1c5 --- /dev/null +++ b/intersight/models/networkconfig_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NetworkconfigValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NetworkconfigValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NetworkconfigValidationTaskRef. + + :return: The moid of this NetworkconfigValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NetworkconfigValidationTaskRef. + + :param moid: The moid of this NetworkconfigValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NetworkconfigValidationTaskRef. + + :return: The object_type of this NetworkconfigValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NetworkconfigValidationTaskRef. + + :param object_type: The object_type of this NetworkconfigValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NetworkconfigValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/notifs_mo_subscription_ref.py b/intersight/models/notifs_mo_subscription_ref.py new file mode 100644 index 00000000..0c5d0171 --- /dev/null +++ b/intersight/models/notifs_mo_subscription_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NotifsMoSubscriptionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NotifsMoSubscriptionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NotifsMoSubscriptionRef. + + :return: The moid of this NotifsMoSubscriptionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NotifsMoSubscriptionRef. + + :param moid: The moid of this NotifsMoSubscriptionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NotifsMoSubscriptionRef. + + :return: The object_type of this NotifsMoSubscriptionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NotifsMoSubscriptionRef. + + :param object_type: The object_type of this NotifsMoSubscriptionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NotifsMoSubscriptionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/notifs_subscribed_ref.py b/intersight/models/notifs_subscribed_ref.py new file mode 100644 index 00000000..b79be98a --- /dev/null +++ b/intersight/models/notifs_subscribed_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NotifsSubscribedRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NotifsSubscribedRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NotifsSubscribedRef. + + :return: The moid of this NotifsSubscribedRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NotifsSubscribedRef. + + :param moid: The moid of this NotifsSubscribedRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NotifsSubscribedRef. + + :return: The object_type of this NotifsSubscribedRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NotifsSubscribedRef. + + :param object_type: The object_type of this NotifsSubscribedRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NotifsSubscribedRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ntp_deploy_task_ref.py b/intersight/models/ntp_deploy_task_ref.py new file mode 100644 index 00000000..6d6d0d2a --- /dev/null +++ b/intersight/models/ntp_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NtpDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NtpDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NtpDeployTaskRef. + + :return: The moid of this NtpDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NtpDeployTaskRef. + + :param moid: The moid of this NtpDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NtpDeployTaskRef. + + :return: The object_type of this NtpDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NtpDeployTaskRef. + + :param object_type: The object_type of this NtpDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NtpDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ntp_policy.py b/intersight/models/ntp_policy.py index 21202fdf..260217f1 100644 --- a/intersight/models/ntp_policy.py +++ b/intersight/models/ntp_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class NtpPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', 'enabled': 'bool', 'ntp_servers': 'list[str]', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]' + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this NtpPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this NtpPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this NtpPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this NtpPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -424,7 +424,7 @@ def organization(self): Organization :return: The organization of this NtpPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -435,7 +435,7 @@ def organization(self, organization): Organization :param organization: The organization of this NtpPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -447,7 +447,7 @@ def profiles(self): Relationship to the profile objects :return: The profiles of this NtpPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -458,7 +458,7 @@ def profiles(self, profiles): Relationship to the profile objects :param profiles: The profiles of this NtpPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/ntp_policy_list.py b/intersight/models/ntp_policy_list.py index 09242196..f9143e29 100644 --- a/intersight/models/ntp_policy_list.py +++ b/intersight/models/ntp_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/ntp_policy_ref.py b/intersight/models/ntp_policy_ref.py new file mode 100644 index 00000000..5a37e5e7 --- /dev/null +++ b/intersight/models/ntp_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NtpPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NtpPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NtpPolicyRef. + + :return: The moid of this NtpPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NtpPolicyRef. + + :param moid: The moid of this NtpPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NtpPolicyRef. + + :return: The object_type of this NtpPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NtpPolicyRef. + + :param object_type: The object_type of this NtpPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NtpPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ntp_validation_task_ref.py b/intersight/models/ntp_validation_task_ref.py new file mode 100644 index 00000000..b5749523 --- /dev/null +++ b/intersight/models/ntp_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NtpValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NtpValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NtpValidationTaskRef. + + :return: The moid of this NtpValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NtpValidationTaskRef. + + :param moid: The moid of this NtpValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NtpValidationTaskRef. + + :return: The object_type of this NtpValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NtpValidationTaskRef. + + :param object_type: The object_type of this NtpValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NtpValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth2_auth_token_ref.py b/intersight/models/oauth2_auth_token_ref.py new file mode 100644 index 00000000..ffd95a47 --- /dev/null +++ b/intersight/models/oauth2_auth_token_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Oauth2AuthTokenRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + Oauth2AuthTokenRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this Oauth2AuthTokenRef. + + :return: The moid of this Oauth2AuthTokenRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this Oauth2AuthTokenRef. + + :param moid: The moid of this Oauth2AuthTokenRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this Oauth2AuthTokenRef. + + :return: The object_type of this Oauth2AuthTokenRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this Oauth2AuthTokenRef. + + :param object_type: The object_type of this Oauth2AuthTokenRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Oauth2AuthTokenRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth_access_token.py b/intersight/models/oauth_access_token.py new file mode 100644 index 00000000..869ebc42 --- /dev/null +++ b/intersight/models/oauth_access_token.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class OauthAccessToken(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_type': 'str', + 'expiry_time': 'datetime', + 'status': 'str', + 'token': 'str' + } + + attribute_map = { + 'api_type': 'ApiType', + 'expiry_time': 'ExpiryTime', + 'status': 'Status', + 'token': 'Token' + } + + def __init__(self, api_type='Unknown', expiry_time=None, status='Inactive', token=None): + """ + OauthAccessToken - a model defined in Swagger + """ + + self._api_type = None + self._expiry_time = None + self._status = None + self._token = None + + if api_type is not None: + self.api_type = api_type + if expiry_time is not None: + self.expiry_time = expiry_time + if status is not None: + self.status = status + if token is not None: + self.token = token + + @property + def api_type(self): + """ + Gets the api_type of this OauthAccessToken. + Oauth api type + + :return: The api_type of this OauthAccessToken. + :rtype: str + """ + return self._api_type + + @api_type.setter + def api_type(self, api_type): + """ + Sets the api_type of this OauthAccessToken. + Oauth api type + + :param api_type: The api_type of this OauthAccessToken. + :type: str + """ + allowed_values = ["Unknown", "License"] + if api_type not in allowed_values: + raise ValueError( + "Invalid value for `api_type` ({0}), must be one of {1}" + .format(api_type, allowed_values) + ) + + self._api_type = api_type + + @property + def expiry_time(self): + """ + Gets the expiry_time of this OauthAccessToken. + Access token expiry time + + :return: The expiry_time of this OauthAccessToken. + :rtype: datetime + """ + return self._expiry_time + + @expiry_time.setter + def expiry_time(self, expiry_time): + """ + Sets the expiry_time of this OauthAccessToken. + Access token expiry time + + :param expiry_time: The expiry_time of this OauthAccessToken. + :type: datetime + """ + + self._expiry_time = expiry_time + + @property + def status(self): + """ + Gets the status of this OauthAccessToken. + Access token status + + :return: The status of this OauthAccessToken. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this OauthAccessToken. + Access token status + + :param status: The status of this OauthAccessToken. + :type: str + """ + allowed_values = ["Inactive", "Active", "Expired"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def token(self): + """ + Gets the token of this OauthAccessToken. + Access token + + :return: The token of this OauthAccessToken. + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """ + Sets the token of this OauthAccessToken. + Access token + + :param token: The token of this OauthAccessToken. + :type: str + """ + + self._token = token + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, OauthAccessToken): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth_access_token_ref.py b/intersight/models/oauth_access_token_ref.py new file mode 100644 index 00000000..b27d6acb --- /dev/null +++ b/intersight/models/oauth_access_token_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class OauthAccessTokenRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + OauthAccessTokenRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this OauthAccessTokenRef. + + :return: The moid of this OauthAccessTokenRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this OauthAccessTokenRef. + + :param moid: The moid of this OauthAccessTokenRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this OauthAccessTokenRef. + + :return: The object_type of this OauthAccessTokenRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this OauthAccessTokenRef. + + :param object_type: The object_type of this OauthAccessTokenRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, OauthAccessTokenRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth_oauth_user.py b/intersight/models/oauth_oauth_user.py new file mode 100644 index 00000000..4267f7e9 --- /dev/null +++ b/intersight/models/oauth_oauth_user.py @@ -0,0 +1,431 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class OauthOauthUser(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'access_tokens': 'list[OauthAccessToken]', + 'account': 'IamAccountRef', + 'user_id': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'access_tokens': 'AccessTokens', + 'account': 'Account', + 'user_id': 'UserId' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, access_tokens=None, account=None, user_id=None): + """ + OauthOauthUser - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._access_tokens = None + self._account = None + self._user_id = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if access_tokens is not None: + self.access_tokens = access_tokens + if account is not None: + self.account = account + if user_id is not None: + self.user_id = user_id + + @property + def account_moid(self): + """ + Gets the account_moid of this OauthOauthUser. + The Account ID for this managed object. + + :return: The account_moid of this OauthOauthUser. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this OauthOauthUser. + The Account ID for this managed object. + + :param account_moid: The account_moid of this OauthOauthUser. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this OauthOauthUser. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this OauthOauthUser. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this OauthOauthUser. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this OauthOauthUser. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this OauthOauthUser. + The time when this managed object was created. + + :return: The create_time of this OauthOauthUser. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this OauthOauthUser. + The time when this managed object was created. + + :param create_time: The create_time of this OauthOauthUser. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this OauthOauthUser. + The time when this managed object was last modified. + + :return: The mod_time of this OauthOauthUser. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this OauthOauthUser. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this OauthOauthUser. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this OauthOauthUser. + A unique identifier of this Managed Object instance. + + :return: The moid of this OauthOauthUser. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this OauthOauthUser. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this OauthOauthUser. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this OauthOauthUser. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this OauthOauthUser. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this OauthOauthUser. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this OauthOauthUser. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this OauthOauthUser. + An array of owners which represent effective ownership of this object. + + :return: The owners of this OauthOauthUser. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this OauthOauthUser. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this OauthOauthUser. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this OauthOauthUser. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this OauthOauthUser. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this OauthOauthUser. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this OauthOauthUser. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this OauthOauthUser. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this OauthOauthUser. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this OauthOauthUser. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this OauthOauthUser. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def access_tokens(self): + """ + Gets the access_tokens of this OauthOauthUser. + List of api access tokens + + :return: The access_tokens of this OauthOauthUser. + :rtype: list[OauthAccessToken] + """ + return self._access_tokens + + @access_tokens.setter + def access_tokens(self, access_tokens): + """ + Sets the access_tokens of this OauthOauthUser. + List of api access tokens + + :param access_tokens: The access_tokens of this OauthOauthUser. + :type: list[OauthAccessToken] + """ + + self._access_tokens = access_tokens + + @property + def account(self): + """ + Gets the account of this OauthOauthUser. + + :return: The account of this OauthOauthUser. + :rtype: IamAccountRef + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this OauthOauthUser. + + :param account: The account of this OauthOauthUser. + :type: IamAccountRef + """ + + self._account = account + + @property + def user_id(self): + """ + Gets the user_id of this OauthOauthUser. + User name + + :return: The user_id of this OauthOauthUser. + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """ + Sets the user_id of this OauthOauthUser. + User name + + :param user_id: The user_id of this OauthOauthUser. + :type: str + """ + + self._user_id = user_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, OauthOauthUser): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth_oauth_user_list.py b/intersight/models/oauth_oauth_user_list.py new file mode 100644 index 00000000..1ca0ba3f --- /dev/null +++ b/intersight/models/oauth_oauth_user_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class OauthOauthUserList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[OauthOauthUser]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + OauthOauthUserList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this OauthOauthUserList. + The number of oauthOauthUsers matching your request in total for all pages. + + :return: The count of this OauthOauthUserList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this OauthOauthUserList. + The number of oauthOauthUsers matching your request in total for all pages. + + :param count: The count of this OauthOauthUserList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this OauthOauthUserList. + The array of oauthOauthUsers matching your request. + + :return: The results of this OauthOauthUserList. + :rtype: list[OauthOauthUser] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this OauthOauthUserList. + The array of oauthOauthUsers matching your request. + + :param results: The results of this OauthOauthUserList. + :type: list[OauthOauthUser] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, OauthOauthUserList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth_oauth_user_ref.py b/intersight/models/oauth_oauth_user_ref.py new file mode 100644 index 00000000..8d4f1c8a --- /dev/null +++ b/intersight/models/oauth_oauth_user_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class OauthOauthUserRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + OauthOauthUserRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this OauthOauthUserRef. + + :return: The moid of this OauthOauthUserRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this OauthOauthUserRef. + + :param moid: The moid of this OauthOauthUserRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this OauthOauthUserRef. + + :return: The object_type of this OauthOauthUserRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this OauthOauthUserRef. + + :param object_type: The object_type of this OauthOauthUserRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, OauthOauthUserRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_config_profile.py b/intersight/models/policy_abstract_config_profile.py index e43baa87..49753fc0 100644 --- a/intersight/models/policy_abstract_config_profile.py +++ b/intersight/models/policy_abstract_config_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,17 @@ class PolicyAbstractConfigProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'src_template': 'MoMoRef', + 'src_template': 'PolicyAbstractProfileRef', 'type': 'str', 'action': 'str', 'config_context': 'PolicyConfigContext' @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PolicyAbstractConfigProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PolicyAbstractConfigProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PolicyAbstractConfigProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PolicyAbstractConfigProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -377,7 +377,7 @@ def src_template(self): Gets the src_template of this PolicyAbstractConfigProfile. :return: The src_template of this PolicyAbstractConfigProfile. - :rtype: MoMoRef + :rtype: PolicyAbstractProfileRef """ return self._src_template @@ -387,7 +387,7 @@ def src_template(self, src_template): Sets the src_template of this PolicyAbstractConfigProfile. :param src_template: The src_template of this PolicyAbstractConfigProfile. - :type: MoMoRef + :type: PolicyAbstractProfileRef """ self._src_template = src_template @@ -425,7 +425,7 @@ def type(self, type): def action(self): """ Gets the action of this PolicyAbstractConfigProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :return: The action of this PolicyAbstractConfigProfile. :rtype: str @@ -436,7 +436,7 @@ def action(self): def action(self, action): """ Sets the action of this PolicyAbstractConfigProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :param action: The action of this PolicyAbstractConfigProfile. :type: str diff --git a/intersight/models/policy_abstract_config_profile_ref.py b/intersight/models/policy_abstract_config_profile_ref.py new file mode 100644 index 00000000..fea91816 --- /dev/null +++ b/intersight/models/policy_abstract_config_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractConfigProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAbstractConfigProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractConfigProfileRef. + + :return: The moid of this PolicyAbstractConfigProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractConfigProfileRef. + + :param moid: The moid of this PolicyAbstractConfigProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractConfigProfileRef. + + :return: The object_type of this PolicyAbstractConfigProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractConfigProfileRef. + + :param object_type: The object_type of this PolicyAbstractConfigProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractConfigProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_config_result.py b/intersight/models/policy_abstract_config_result.py index 1688cdd1..a1805d08 100644 --- a/intersight/models/policy_abstract_config_result.py +++ b/intersight/models/policy_abstract_config_result.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,16 @@ class PolicyAbstractConfigResult(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'config_stage': 'str', 'config_state': 'str', - 'result_entries': 'list[PolicyConfigResultEntry]', 'validation_state': 'str' } @@ -58,11 +57,10 @@ class PolicyAbstractConfigResult(object): 'tags': 'Tags', 'config_stage': 'ConfigStage', 'config_state': 'ConfigState', - 'result_entries': 'ResultEntries', 'validation_state': 'ValidationState' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, config_stage=None, config_state=None, result_entries=None, validation_state=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, config_stage=None, config_state=None, validation_state=None): """ PolicyAbstractConfigResult - a model defined in Swagger """ @@ -78,7 +76,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._config_stage = None self._config_state = None - self._result_entries = None self._validation_state = None if account_moid is not None: @@ -103,8 +100,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.config_stage = config_stage if config_state is not None: self.config_state = config_state - if result_entries is not None: - self.result_entries = result_entries if validation_state is not None: self.validation_state = validation_state @@ -138,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PolicyAbstractConfigResult. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PolicyAbstractConfigResult. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PolicyAbstractConfigResult. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PolicyAbstractConfigResult. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -361,29 +356,6 @@ def config_state(self, config_state): self._config_state = config_state - @property - def result_entries(self): - """ - Gets the result_entries of this PolicyAbstractConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :return: The result_entries of this PolicyAbstractConfigResult. - :rtype: list[PolicyConfigResultEntry] - """ - return self._result_entries - - @result_entries.setter - def result_entries(self, result_entries): - """ - Sets the result_entries of this PolicyAbstractConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :param result_entries: The result_entries of this PolicyAbstractConfigResult. - :type: list[PolicyConfigResultEntry] - """ - - self._result_entries = result_entries - @property def validation_state(self): """ diff --git a/intersight/models/policy_abstract_config_result_entry.py b/intersight/models/policy_abstract_config_result_entry.py new file mode 100644 index 00000000..7958f223 --- /dev/null +++ b/intersight/models/policy_abstract_config_result_entry.py @@ -0,0 +1,513 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractConfigResultEntry(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'completed_time': 'str', + 'context': 'PolicyConfigResultContext', + 'message': 'str', + 'owner_id': 'str', + 'state': 'str', + 'type': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'completed_time': 'CompletedTime', + 'context': 'Context', + 'message': 'Message', + 'owner_id': 'OwnerId', + 'state': 'State', + 'type': 'Type' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, completed_time=None, context=None, message=None, owner_id=None, state=None, type=None): + """ + PolicyAbstractConfigResultEntry - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._completed_time = None + self._context = None + self._message = None + self._owner_id = None + self._state = None + self._type = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if completed_time is not None: + self.completed_time = completed_time + if context is not None: + self.context = context + if message is not None: + self.message = message + if owner_id is not None: + self.owner_id = owner_id + if state is not None: + self.state = state + if type is not None: + self.type = type + + @property + def account_moid(self): + """ + Gets the account_moid of this PolicyAbstractConfigResultEntry. + The Account ID for this managed object. + + :return: The account_moid of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this PolicyAbstractConfigResultEntry. + The Account ID for this managed object. + + :param account_moid: The account_moid of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this PolicyAbstractConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this PolicyAbstractConfigResultEntry. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this PolicyAbstractConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this PolicyAbstractConfigResultEntry. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this PolicyAbstractConfigResultEntry. + The time when this managed object was created. + + :return: The create_time of this PolicyAbstractConfigResultEntry. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this PolicyAbstractConfigResultEntry. + The time when this managed object was created. + + :param create_time: The create_time of this PolicyAbstractConfigResultEntry. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this PolicyAbstractConfigResultEntry. + The time when this managed object was last modified. + + :return: The mod_time of this PolicyAbstractConfigResultEntry. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this PolicyAbstractConfigResultEntry. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this PolicyAbstractConfigResultEntry. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractConfigResultEntry. + A unique identifier of this Managed Object instance. + + :return: The moid of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractConfigResultEntry. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this PolicyAbstractConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :return: The owners of this PolicyAbstractConfigResultEntry. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this PolicyAbstractConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this PolicyAbstractConfigResultEntry. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this PolicyAbstractConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this PolicyAbstractConfigResultEntry. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this PolicyAbstractConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this PolicyAbstractConfigResultEntry. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this PolicyAbstractConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this PolicyAbstractConfigResultEntry. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this PolicyAbstractConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this PolicyAbstractConfigResultEntry. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def completed_time(self): + """ + Gets the completed_time of this PolicyAbstractConfigResultEntry. + The completed time of the task in installer + + :return: The completed_time of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._completed_time + + @completed_time.setter + def completed_time(self, completed_time): + """ + Sets the completed_time of this PolicyAbstractConfigResultEntry. + The completed time of the task in installer + + :param completed_time: The completed_time of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._completed_time = completed_time + + @property + def context(self): + """ + Gets the context of this PolicyAbstractConfigResultEntry. + + :return: The context of this PolicyAbstractConfigResultEntry. + :rtype: PolicyConfigResultContext + """ + return self._context + + @context.setter + def context(self, context): + """ + Sets the context of this PolicyAbstractConfigResultEntry. + + :param context: The context of this PolicyAbstractConfigResultEntry. + :type: PolicyConfigResultContext + """ + + self._context = context + + @property + def message(self): + """ + Gets the message of this PolicyAbstractConfigResultEntry. + Localized message based on the locale setting of the user's context + + :return: The message of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PolicyAbstractConfigResultEntry. + Localized message based on the locale setting of the user's context + + :param message: The message of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._message = message + + @property + def owner_id(self): + """ + Gets the owner_id of this PolicyAbstractConfigResultEntry. + + :return: The owner_id of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._owner_id + + @owner_id.setter + def owner_id(self, owner_id): + """ + Sets the owner_id of this PolicyAbstractConfigResultEntry. + + :param owner_id: The owner_id of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._owner_id = owner_id + + @property + def state(self): + """ + Gets the state of this PolicyAbstractConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :return: The state of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this PolicyAbstractConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :param state: The state of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._state = state + + @property + def type(self): + """ + Gets the type of this PolicyAbstractConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :return: The type of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this PolicyAbstractConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :param type: The type of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractConfigResultEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_config_result_entry_ref.py b/intersight/models/policy_abstract_config_result_entry_ref.py new file mode 100644 index 00000000..e6bcf8d7 --- /dev/null +++ b/intersight/models/policy_abstract_config_result_entry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractConfigResultEntryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAbstractConfigResultEntryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractConfigResultEntryRef. + + :return: The moid of this PolicyAbstractConfigResultEntryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractConfigResultEntryRef. + + :param moid: The moid of this PolicyAbstractConfigResultEntryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractConfigResultEntryRef. + + :return: The object_type of this PolicyAbstractConfigResultEntryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractConfigResultEntryRef. + + :param object_type: The object_type of this PolicyAbstractConfigResultEntryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractConfigResultEntryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_config_result_ref.py b/intersight/models/policy_abstract_config_result_ref.py new file mode 100644 index 00000000..602ec516 --- /dev/null +++ b/intersight/models/policy_abstract_config_result_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractConfigResultRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAbstractConfigResultRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractConfigResultRef. + + :return: The moid of this PolicyAbstractConfigResultRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractConfigResultRef. + + :param moid: The moid of this PolicyAbstractConfigResultRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractConfigResultRef. + + :return: The object_type of this PolicyAbstractConfigResultRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractConfigResultRef. + + :param object_type: The object_type of this PolicyAbstractConfigResultRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractConfigResultRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_policy.py b/intersight/models/policy_abstract_policy.py index b9296030..c9d333ea 100644 --- a/intersight/models/policy_abstract_policy.py +++ b/intersight/models/policy_abstract_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class PolicyAbstractPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str' @@ -128,7 +128,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PolicyAbstractPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -139,7 +139,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PolicyAbstractPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -266,7 +266,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PolicyAbstractPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -277,7 +277,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PolicyAbstractPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/policy_abstract_policy_ref.py b/intersight/models/policy_abstract_policy_ref.py new file mode 100644 index 00000000..8e86e207 --- /dev/null +++ b/intersight/models/policy_abstract_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAbstractPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractPolicyRef. + + :return: The moid of this PolicyAbstractPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractPolicyRef. + + :param moid: The moid of this PolicyAbstractPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractPolicyRef. + + :return: The object_type of this PolicyAbstractPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractPolicyRef. + + :param object_type: The object_type of this PolicyAbstractPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_profile.py b/intersight/models/policy_abstract_profile.py index 1f5cf29d..41d3aeff 100644 --- a/intersight/models/policy_abstract_profile.py +++ b/intersight/models/policy_abstract_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,17 @@ class PolicyAbstractProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'src_template': 'MoMoRef', + 'src_template': 'PolicyAbstractProfileRef', 'type': 'str' } @@ -138,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PolicyAbstractProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PolicyAbstractProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PolicyAbstractProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PolicyAbstractProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -367,7 +367,7 @@ def src_template(self): Gets the src_template of this PolicyAbstractProfile. :return: The src_template of this PolicyAbstractProfile. - :rtype: MoMoRef + :rtype: PolicyAbstractProfileRef """ return self._src_template @@ -377,7 +377,7 @@ def src_template(self, src_template): Sets the src_template of this PolicyAbstractProfile. :param src_template: The src_template of this PolicyAbstractProfile. - :type: MoMoRef + :type: PolicyAbstractProfileRef """ self._src_template = src_template diff --git a/intersight/models/policy_abstract_profile_ref.py b/intersight/models/policy_abstract_profile_ref.py new file mode 100644 index 00000000..9692f935 --- /dev/null +++ b/intersight/models/policy_abstract_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAbstractProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractProfileRef. + + :return: The moid of this PolicyAbstractProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractProfileRef. + + :param moid: The moid of this PolicyAbstractProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractProfileRef. + + :return: The object_type of this PolicyAbstractProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractProfileRef. + + :param object_type: The object_type of this PolicyAbstractProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_config_context.py b/intersight/models/policy_config_context.py index bc7e3bf6..8ebed017 100644 --- a/intersight/models/policy_config_context.py +++ b/intersight/models/policy_config_context.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -67,7 +67,7 @@ def __init__(self, config_state=None, control_action=None, error_state=None, ope def config_state(self): """ Gets the config_state of this PolicyConfigContext. - Indicates a profile's configuration deploying state Values -- Assigned, Not-assigned, Associated, Pending-changes, Validating, Configuring, Errored + Indicates a profile's configuration deploying state Values -- Assigned, Not-assigned, Associated, Pending-changes, Validating, Configuring, Failed :return: The config_state of this PolicyConfigContext. :rtype: str @@ -78,7 +78,7 @@ def config_state(self): def config_state(self, config_state): """ Sets the config_state of this PolicyConfigContext. - Indicates a profile's configuration deploying state Values -- Assigned, Not-assigned, Associated, Pending-changes, Validating, Configuring, Errored + Indicates a profile's configuration deploying state Values -- Assigned, Not-assigned, Associated, Pending-changes, Validating, Configuring, Failed :param config_state: The config_state of this PolicyConfigContext. :type: str @@ -90,7 +90,7 @@ def config_state(self, config_state): def control_action(self): """ Gets the control_action of this PolicyConfigContext. - Internal action to trigger the appropriate workflow. Values -- No_op, ConfigChange, Deploy, Unbind + System action to trigger the appropriate workflow. Values -- No_op, ConfigChange, Deploy, Unbind :return: The control_action of this PolicyConfigContext. :rtype: str @@ -101,7 +101,7 @@ def control_action(self): def control_action(self, control_action): """ Sets the control_action of this PolicyConfigContext. - Internal action to trigger the appropriate workflow. Values -- No_op, ConfigChange, Deploy, Unbind + System action to trigger the appropriate workflow. Values -- No_op, ConfigChange, Deploy, Unbind :param control_action: The control_action of this PolicyConfigContext. :type: str @@ -113,7 +113,7 @@ def control_action(self, control_action): def error_state(self): """ Gets the error_state of this PolicyConfigContext. - Indicates a profile's error state Values -- validation-error (Profile side validation error), pre-config-error (installer runtime validation error), config-error (installer configuration error) + Indicates a profile's error state. Values -- Validation-error (Static validation error), Pre-config-error (Runtime validation error), Config-error (Runtime configuration error) :return: The error_state of this PolicyConfigContext. :rtype: str @@ -124,7 +124,7 @@ def error_state(self): def error_state(self, error_state): """ Sets the error_state of this PolicyConfigContext. - Indicates a profile's error state Values -- validation-error (Profile side validation error), pre-config-error (installer runtime validation error), config-error (installer configuration error) + Indicates a profile's error state. Values -- Validation-error (Static validation error), Pre-config-error (Runtime validation error), Config-error (Runtime configuration error) :param error_state: The error_state of this PolicyConfigContext. :type: str @@ -136,7 +136,7 @@ def error_state(self, error_state): def oper_state(self): """ Gets the oper_state of this PolicyConfigContext. - Combined state (configState, and operational state of the associated physical resource) to indicate the current state of the profile. Values -- n/a, power-off, pending-changes, configuring, ok, ok-with-warning, errored + Combined state (configState, and operational state of the associated physical resource) to indicate the current state of the profile. Values -- n/a, Power-off, Pending-changes, Configuring, Ok, Failed :return: The oper_state of this PolicyConfigContext. :rtype: str @@ -147,7 +147,7 @@ def oper_state(self): def oper_state(self, oper_state): """ Sets the oper_state of this PolicyConfigContext. - Combined state (configState, and operational state of the associated physical resource) to indicate the current state of the profile. Values -- n/a, power-off, pending-changes, configuring, ok, ok-with-warning, errored + Combined state (configState, and operational state of the associated physical resource) to indicate the current state of the profile. Values -- n/a, Power-off, Pending-changes, Configuring, Ok, Failed :param oper_state: The oper_state of this PolicyConfigContext. :type: str diff --git a/intersight/models/policy_config_context_ref.py b/intersight/models/policy_config_context_ref.py new file mode 100644 index 00000000..0bc01735 --- /dev/null +++ b/intersight/models/policy_config_context_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyConfigContextRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyConfigContextRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyConfigContextRef. + + :return: The moid of this PolicyConfigContextRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyConfigContextRef. + + :param moid: The moid of this PolicyConfigContextRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyConfigContextRef. + + :return: The object_type of this PolicyConfigContextRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyConfigContextRef. + + :param object_type: The object_type of this PolicyConfigContextRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyConfigContextRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_config_result_context.py b/intersight/models/policy_config_result_context.py index 5e1a038c..c46d55be 100644 --- a/intersight/models/policy_config_result_context.py +++ b/intersight/models/policy_config_result_context.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/policy_config_result_context_ref.py b/intersight/models/policy_config_result_context_ref.py new file mode 100644 index 00000000..37762286 --- /dev/null +++ b/intersight/models/policy_config_result_context_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyConfigResultContextRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyConfigResultContextRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyConfigResultContextRef. + + :return: The moid of this PolicyConfigResultContextRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyConfigResultContextRef. + + :param moid: The moid of this PolicyConfigResultContextRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyConfigResultContextRef. + + :return: The object_type of this PolicyConfigResultContextRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyConfigResultContextRef. + + :param object_type: The object_type of this PolicyConfigResultContextRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyConfigResultContextRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/port_group.py b/intersight/models/port_group.py index 28c5afd6..043e8839 100644 --- a/intersight/models/port_group.py +++ b/intersight/models/port_group.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,22 @@ class PortGroup(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'equipment_switch_card': 'MoMoRef', - 'ethernet_ports': 'list[MoMoRef]', - 'fc_ports': 'list[MoMoRef]', - 'registered_device': 'MoMoRef', - 'sub_groups': 'list[MoMoRef]', + 'equipment_switch_card': 'EquipmentSwitchCardRef', + 'ethernet_ports': 'list[EtherPhysicalPortRef]', + 'fc_ports': 'list[FcPhysicalPortRef]', + 'registered_device': 'AssetDeviceRegistrationRef', + 'sub_groups': 'list[PortSubGroupRef]', 'transport': 'str' } @@ -163,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PortGroup. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PortGroup. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PortGroup. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PortGroup. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -409,7 +409,7 @@ def equipment_switch_card(self): Gets the equipment_switch_card of this PortGroup. :return: The equipment_switch_card of this PortGroup. - :rtype: MoMoRef + :rtype: EquipmentSwitchCardRef """ return self._equipment_switch_card @@ -419,7 +419,7 @@ def equipment_switch_card(self, equipment_switch_card): Sets the equipment_switch_card of this PortGroup. :param equipment_switch_card: The equipment_switch_card of this PortGroup. - :type: MoMoRef + :type: EquipmentSwitchCardRef """ self._equipment_switch_card = equipment_switch_card @@ -430,7 +430,7 @@ def ethernet_ports(self): Gets the ethernet_ports of this PortGroup. :return: The ethernet_ports of this PortGroup. - :rtype: list[MoMoRef] + :rtype: list[EtherPhysicalPortRef] """ return self._ethernet_ports @@ -440,7 +440,7 @@ def ethernet_ports(self, ethernet_ports): Sets the ethernet_ports of this PortGroup. :param ethernet_ports: The ethernet_ports of this PortGroup. - :type: list[MoMoRef] + :type: list[EtherPhysicalPortRef] """ self._ethernet_ports = ethernet_ports @@ -451,7 +451,7 @@ def fc_ports(self): Gets the fc_ports of this PortGroup. :return: The fc_ports of this PortGroup. - :rtype: list[MoMoRef] + :rtype: list[FcPhysicalPortRef] """ return self._fc_ports @@ -461,7 +461,7 @@ def fc_ports(self, fc_ports): Sets the fc_ports of this PortGroup. :param fc_ports: The fc_ports of this PortGroup. - :type: list[MoMoRef] + :type: list[FcPhysicalPortRef] """ self._fc_ports = fc_ports @@ -472,7 +472,7 @@ def registered_device(self): Gets the registered_device of this PortGroup. :return: The registered_device of this PortGroup. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -482,7 +482,7 @@ def registered_device(self, registered_device): Sets the registered_device of this PortGroup. :param registered_device: The registered_device of this PortGroup. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -493,7 +493,7 @@ def sub_groups(self): Gets the sub_groups of this PortGroup. :return: The sub_groups of this PortGroup. - :rtype: list[MoMoRef] + :rtype: list[PortSubGroupRef] """ return self._sub_groups @@ -503,7 +503,7 @@ def sub_groups(self, sub_groups): Sets the sub_groups of this PortGroup. :param sub_groups: The sub_groups of this PortGroup. - :type: list[MoMoRef] + :type: list[PortSubGroupRef] """ self._sub_groups = sub_groups diff --git a/intersight/models/port_group_list.py b/intersight/models/port_group_list.py index f20e236e..10f87dfe 100644 --- a/intersight/models/port_group_list.py +++ b/intersight/models/port_group_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/port_group_ref.py b/intersight/models/port_group_ref.py new file mode 100644 index 00000000..4431e858 --- /dev/null +++ b/intersight/models/port_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PortGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PortGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PortGroupRef. + + :return: The moid of this PortGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PortGroupRef. + + :param moid: The moid of this PortGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PortGroupRef. + + :return: The object_type of this PortGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PortGroupRef. + + :param object_type: The object_type of this PortGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PortGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/port_physical.py b/intersight/models/port_physical.py index 5b57086f..bdd10511 100644 --- a/intersight/models/port_physical.py +++ b/intersight/models/port_physical.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class PortPhysical(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -143,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PortPhysical. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PortPhysical. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PortPhysical. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PortPhysical. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/port_physical_ref.py b/intersight/models/port_physical_ref.py new file mode 100644 index 00000000..d5153862 --- /dev/null +++ b/intersight/models/port_physical_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PortPhysicalRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PortPhysicalRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PortPhysicalRef. + + :return: The moid of this PortPhysicalRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PortPhysicalRef. + + :param moid: The moid of this PortPhysicalRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PortPhysicalRef. + + :return: The object_type of this PortPhysicalRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PortPhysicalRef. + + :param object_type: The object_type of this PortPhysicalRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PortPhysicalRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/port_sub_group.py b/intersight/models/port_sub_group.py index d49ef8ce..6a426b75 100644 --- a/intersight/models/port_sub_group.py +++ b/intersight/models/port_sub_group.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class PortSubGroup(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'ethernet_ports': 'list[MoMoRef]', - 'port_group': 'MoMoRef', - 'registered_device': 'MoMoRef', + 'ethernet_ports': 'list[EtherPhysicalPortRef]', + 'port_group': 'PortGroupRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'transport': 'str' } @@ -153,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PortSubGroup. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PortSubGroup. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PortSubGroup. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PortSubGroup. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -399,7 +399,7 @@ def ethernet_ports(self): Gets the ethernet_ports of this PortSubGroup. :return: The ethernet_ports of this PortSubGroup. - :rtype: list[MoMoRef] + :rtype: list[EtherPhysicalPortRef] """ return self._ethernet_ports @@ -409,7 +409,7 @@ def ethernet_ports(self, ethernet_ports): Sets the ethernet_ports of this PortSubGroup. :param ethernet_ports: The ethernet_ports of this PortSubGroup. - :type: list[MoMoRef] + :type: list[EtherPhysicalPortRef] """ self._ethernet_ports = ethernet_ports @@ -420,7 +420,7 @@ def port_group(self): Gets the port_group of this PortSubGroup. :return: The port_group of this PortSubGroup. - :rtype: MoMoRef + :rtype: PortGroupRef """ return self._port_group @@ -430,7 +430,7 @@ def port_group(self, port_group): Sets the port_group of this PortSubGroup. :param port_group: The port_group of this PortSubGroup. - :type: MoMoRef + :type: PortGroupRef """ self._port_group = port_group @@ -441,7 +441,7 @@ def registered_device(self): Gets the registered_device of this PortSubGroup. :return: The registered_device of this PortSubGroup. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -451,7 +451,7 @@ def registered_device(self, registered_device): Sets the registered_device of this PortSubGroup. :param registered_device: The registered_device of this PortSubGroup. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/port_sub_group_list.py b/intersight/models/port_sub_group_list.py index 1dc4e612..9811111f 100644 --- a/intersight/models/port_sub_group_list.py +++ b/intersight/models/port_sub_group_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/port_sub_group_ref.py b/intersight/models/port_sub_group_ref.py new file mode 100644 index 00000000..a1876b23 --- /dev/null +++ b/intersight/models/port_sub_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PortSubGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PortSubGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PortSubGroupRef. + + :return: The moid of this PortSubGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PortSubGroupRef. + + :param moid: The moid of this PortSubGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PortSubGroupRef. + + :return: The object_type of this PortSubGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PortSubGroupRef. + + :param object_type: The object_type of this PortSubGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PortSubGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/processor_unit.py b/intersight/models/processor_unit.py index 8f3f9b31..851d8323 100644 --- a/intersight/models/processor_unit.py +++ b/intersight/models/processor_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class ProcessorUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -48,7 +48,7 @@ class ProcessorUnit(object): 'serial': 'str', 'vendor': 'str', 'architecture': 'str', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'num_cores': 'int', 'num_cores_enabled': 'str', 'num_threads': 'str', @@ -57,7 +57,7 @@ class ProcessorUnit(object): 'operability': 'str', 'presence': 'str', 'processor_id': 'int', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'socket_designation': 'str', 'speed': 'float', 'stepping': 'str', @@ -228,7 +228,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ProcessorUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -239,7 +239,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ProcessorUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -366,7 +366,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ProcessorUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -377,7 +377,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ProcessorUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -579,7 +579,7 @@ def compute_board(self): Gets the compute_board of this ProcessorUnit. :return: The compute_board of this ProcessorUnit. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -589,7 +589,7 @@ def compute_board(self, compute_board): Sets the compute_board of this ProcessorUnit. :param compute_board: The compute_board of this ProcessorUnit. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -768,7 +768,7 @@ def registered_device(self): Gets the registered_device of this ProcessorUnit. :return: The registered_device of this ProcessorUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -778,7 +778,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ProcessorUnit. :param registered_device: The registered_device of this ProcessorUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/processor_unit_list.py b/intersight/models/processor_unit_list.py index ee4e9a0f..351427d3 100644 --- a/intersight/models/processor_unit_list.py +++ b/intersight/models/processor_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/processor_unit_ref.py b/intersight/models/processor_unit_ref.py new file mode 100644 index 00000000..1dbd02be --- /dev/null +++ b/intersight/models/processor_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ProcessorUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ProcessorUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ProcessorUnitRef. + + :return: The moid of this ProcessorUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ProcessorUnitRef. + + :param moid: The moid of this ProcessorUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ProcessorUnitRef. + + :return: The object_type of this ProcessorUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ProcessorUnitRef. + + :param object_type: The object_type of this ProcessorUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ProcessorUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_execution_status_task_ref.py b/intersight/models/qatask_execution_status_task_ref.py new file mode 100644 index 00000000..bc0fddc8 --- /dev/null +++ b/intersight/models/qatask_execution_status_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskExecutionStatusTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskExecutionStatusTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskExecutionStatusTaskRef. + + :return: The moid of this QataskExecutionStatusTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskExecutionStatusTaskRef. + + :param moid: The moid of this QataskExecutionStatusTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskExecutionStatusTaskRef. + + :return: The object_type of this QataskExecutionStatusTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskExecutionStatusTaskRef. + + :param object_type: The object_type of this QataskExecutionStatusTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskExecutionStatusTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_expobackoff_retry_ref.py b/intersight/models/qatask_expobackoff_retry_ref.py new file mode 100644 index 00000000..cb957354 --- /dev/null +++ b/intersight/models/qatask_expobackoff_retry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskExpobackoffRetryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskExpobackoffRetryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskExpobackoffRetryRef. + + :return: The moid of this QataskExpobackoffRetryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskExpobackoffRetryRef. + + :param moid: The moid of this QataskExpobackoffRetryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskExpobackoffRetryRef. + + :return: The object_type of this QataskExpobackoffRetryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskExpobackoffRetryRef. + + :param object_type: The object_type of this QataskExpobackoffRetryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskExpobackoffRetryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_fail_async_task_ref.py b/intersight/models/qatask_fail_async_task_ref.py new file mode 100644 index 00000000..41814e00 --- /dev/null +++ b/intersight/models/qatask_fail_async_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskFailAsyncTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskFailAsyncTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskFailAsyncTaskRef. + + :return: The moid of this QataskFailAsyncTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskFailAsyncTaskRef. + + :param moid: The moid of this QataskFailAsyncTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskFailAsyncTaskRef. + + :return: The object_type of this QataskFailAsyncTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskFailAsyncTaskRef. + + :param object_type: The object_type of this QataskFailAsyncTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskFailAsyncTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_failed_no_retry_ref.py b/intersight/models/qatask_failed_no_retry_ref.py new file mode 100644 index 00000000..0fd09338 --- /dev/null +++ b/intersight/models/qatask_failed_no_retry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskFailedNoRetryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskFailedNoRetryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskFailedNoRetryRef. + + :return: The moid of this QataskFailedNoRetryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskFailedNoRetryRef. + + :param moid: The moid of this QataskFailedNoRetryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskFailedNoRetryRef. + + :return: The object_type of this QataskFailedNoRetryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskFailedNoRetryRef. + + :param object_type: The object_type of this QataskFailedNoRetryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskFailedNoRetryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_huu_firmware_upgrade_ref.py b/intersight/models/qatask_huu_firmware_upgrade_ref.py new file mode 100644 index 00000000..0e0d8bd0 --- /dev/null +++ b/intersight/models/qatask_huu_firmware_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskHuuFirmwareUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskHuuFirmwareUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskHuuFirmwareUpgradeRef. + + :return: The moid of this QataskHuuFirmwareUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskHuuFirmwareUpgradeRef. + + :param moid: The moid of this QataskHuuFirmwareUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskHuuFirmwareUpgradeRef. + + :return: The object_type of this QataskHuuFirmwareUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskHuuFirmwareUpgradeRef. + + :param object_type: The object_type of this QataskHuuFirmwareUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskHuuFirmwareUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_initiate_download_ref.py b/intersight/models/qatask_initiate_download_ref.py new file mode 100644 index 00000000..b994a503 --- /dev/null +++ b/intersight/models/qatask_initiate_download_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskInitiateDownloadRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskInitiateDownloadRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskInitiateDownloadRef. + + :return: The moid of this QataskInitiateDownloadRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskInitiateDownloadRef. + + :param moid: The moid of this QataskInitiateDownloadRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskInitiateDownloadRef. + + :return: The object_type of this QataskInitiateDownloadRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskInitiateDownloadRef. + + :param object_type: The object_type of this QataskInitiateDownloadRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskInitiateDownloadRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_retry30timeout60task_ref.py b/intersight/models/qatask_retry30timeout60task_ref.py new file mode 100644 index 00000000..1405f815 --- /dev/null +++ b/intersight/models/qatask_retry30timeout60task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskRetry30timeout60taskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskRetry30timeout60taskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskRetry30timeout60taskRef. + + :return: The moid of this QataskRetry30timeout60taskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskRetry30timeout60taskRef. + + :param moid: The moid of this QataskRetry30timeout60taskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskRetry30timeout60taskRef. + + :return: The object_type of this QataskRetry30timeout60taskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskRetry30timeout60taskRef. + + :param object_type: The object_type of this QataskRetry30timeout60taskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskRetry30timeout60taskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_retry_fixed_ref.py b/intersight/models/qatask_retry_fixed_ref.py new file mode 100644 index 00000000..18569788 --- /dev/null +++ b/intersight/models/qatask_retry_fixed_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskRetryFixedRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskRetryFixedRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskRetryFixedRef. + + :return: The moid of this QataskRetryFixedRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskRetryFixedRef. + + :param moid: The moid of this QataskRetryFixedRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskRetryFixedRef. + + :return: The object_type of this QataskRetryFixedRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskRetryFixedRef. + + :param object_type: The object_type of this QataskRetryFixedRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskRetryFixedRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_success_async_task_ref.py b/intersight/models/qatask_success_async_task_ref.py new file mode 100644 index 00000000..1aad2370 --- /dev/null +++ b/intersight/models/qatask_success_async_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskSuccessAsyncTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskSuccessAsyncTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskSuccessAsyncTaskRef. + + :return: The moid of this QataskSuccessAsyncTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskSuccessAsyncTaskRef. + + :param moid: The moid of this QataskSuccessAsyncTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskSuccessAsyncTaskRef. + + :return: The object_type of this QataskSuccessAsyncTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskSuccessAsyncTaskRef. + + :param object_type: The object_type of this QataskSuccessAsyncTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskSuccessAsyncTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_taskin_scheuled_ref.py b/intersight/models/qatask_taskin_scheuled_ref.py new file mode 100644 index 00000000..cd1a5c22 --- /dev/null +++ b/intersight/models/qatask_taskin_scheuled_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskTaskinScheuledRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskTaskinScheuledRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskTaskinScheuledRef. + + :return: The moid of this QataskTaskinScheuledRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskTaskinScheuledRef. + + :param moid: The moid of this QataskTaskinScheuledRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskTaskinScheuledRef. + + :return: The object_type of this QataskTaskinScheuledRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskTaskinScheuledRef. + + :param object_type: The object_type of this QataskTaskinScheuledRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskTaskinScheuledRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_timeoutwf_fixed_ref.py b/intersight/models/qatask_timeoutwf_fixed_ref.py new file mode 100644 index 00000000..3aa4fb8e --- /dev/null +++ b/intersight/models/qatask_timeoutwf_fixed_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskTimeoutwfFixedRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskTimeoutwfFixedRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskTimeoutwfFixedRef. + + :return: The moid of this QataskTimeoutwfFixedRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskTimeoutwfFixedRef. + + :param moid: The moid of this QataskTimeoutwfFixedRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskTimeoutwfFixedRef. + + :return: The object_type of this QataskTimeoutwfFixedRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskTimeoutwfFixedRef. + + :param object_type: The object_type of this QataskTimeoutwfFixedRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskTimeoutwfFixedRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task1_ref.py b/intersight/models/qatask_ucs_task1_ref.py new file mode 100644 index 00000000..026bfcad --- /dev/null +++ b/intersight/models/qatask_ucs_task1_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask1Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask1Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask1Ref. + + :return: The moid of this QataskUcsTask1Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask1Ref. + + :param moid: The moid of this QataskUcsTask1Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask1Ref. + + :return: The object_type of this QataskUcsTask1Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask1Ref. + + :param object_type: The object_type of this QataskUcsTask1Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask1Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task2_ref.py b/intersight/models/qatask_ucs_task2_ref.py new file mode 100644 index 00000000..603a4076 --- /dev/null +++ b/intersight/models/qatask_ucs_task2_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask2Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask2Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask2Ref. + + :return: The moid of this QataskUcsTask2Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask2Ref. + + :param moid: The moid of this QataskUcsTask2Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask2Ref. + + :return: The object_type of this QataskUcsTask2Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask2Ref. + + :param object_type: The object_type of this QataskUcsTask2Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask2Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task3_ref.py b/intersight/models/qatask_ucs_task3_ref.py new file mode 100644 index 00000000..12e2e79e --- /dev/null +++ b/intersight/models/qatask_ucs_task3_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask3Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask3Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask3Ref. + + :return: The moid of this QataskUcsTask3Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask3Ref. + + :param moid: The moid of this QataskUcsTask3Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask3Ref. + + :return: The object_type of this QataskUcsTask3Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask3Ref. + + :param object_type: The object_type of this QataskUcsTask3Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask3Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task4_ref.py b/intersight/models/qatask_ucs_task4_ref.py new file mode 100644 index 00000000..3bcf6602 --- /dev/null +++ b/intersight/models/qatask_ucs_task4_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask4Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask4Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask4Ref. + + :return: The moid of this QataskUcsTask4Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask4Ref. + + :param moid: The moid of this QataskUcsTask4Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask4Ref. + + :return: The object_type of this QataskUcsTask4Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask4Ref. + + :param object_type: The object_type of this QataskUcsTask4Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask4Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task5_ref.py b/intersight/models/qatask_ucs_task5_ref.py new file mode 100644 index 00000000..389f39c6 --- /dev/null +++ b/intersight/models/qatask_ucs_task5_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask5Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask5Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask5Ref. + + :return: The moid of this QataskUcsTask5Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask5Ref. + + :param moid: The moid of this QataskUcsTask5Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask5Ref. + + :return: The object_type of this QataskUcsTask5Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask5Ref. + + :param object_type: The object_type of this QataskUcsTask5Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask5Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task6_ref.py b/intersight/models/qatask_ucs_task6_ref.py new file mode 100644 index 00000000..273ff48d --- /dev/null +++ b/intersight/models/qatask_ucs_task6_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask6Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask6Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask6Ref. + + :return: The moid of this QataskUcsTask6Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask6Ref. + + :param moid: The moid of this QataskUcsTask6Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask6Ref. + + :return: The object_type of this QataskUcsTask6Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask6Ref. + + :param object_type: The object_type of this QataskUcsTask6Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask6Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task7_ref.py b/intersight/models/qatask_ucs_task7_ref.py new file mode 100644 index 00000000..105c8639 --- /dev/null +++ b/intersight/models/qatask_ucs_task7_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask7Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask7Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask7Ref. + + :return: The moid of this QataskUcsTask7Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask7Ref. + + :param moid: The moid of this QataskUcsTask7Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask7Ref. + + :return: The object_type of this QataskUcsTask7Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask7Ref. + + :param object_type: The object_type of this QataskUcsTask7Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask7Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task8_ref.py b/intersight/models/qatask_ucs_task8_ref.py new file mode 100644 index 00000000..b3e0eab6 --- /dev/null +++ b/intersight/models/qatask_ucs_task8_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask8Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask8Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask8Ref. + + :return: The moid of this QataskUcsTask8Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask8Ref. + + :param moid: The moid of this QataskUcsTask8Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask8Ref. + + :return: The object_type of this QataskUcsTask8Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask8Ref. + + :param object_type: The object_type of this QataskUcsTask8Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask8Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task9_ref.py b/intersight/models/qatask_ucs_task9_ref.py new file mode 100644 index 00000000..6684bbd9 --- /dev/null +++ b/intersight/models/qatask_ucs_task9_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask9Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask9Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask9Ref. + + :return: The moid of this QataskUcsTask9Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask9Ref. + + :param moid: The moid of this QataskUcsTask9Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask9Ref. + + :return: The object_type of this QataskUcsTask9Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask9Ref. + + :param object_type: The object_type of this QataskUcsTask9Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask9Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_wait_for_download_ref.py b/intersight/models/qatask_wait_for_download_ref.py new file mode 100644 index 00000000..4d51bc92 --- /dev/null +++ b/intersight/models/qatask_wait_for_download_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskWaitForDownloadRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskWaitForDownloadRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskWaitForDownloadRef. + + :return: The moid of this QataskWaitForDownloadRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskWaitForDownloadRef. + + :param moid: The moid of this QataskWaitForDownloadRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskWaitForDownloadRef. + + :return: The object_type of this QataskWaitForDownloadRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskWaitForDownloadRef. + + :param object_type: The object_type of this QataskWaitForDownloadRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskWaitForDownloadRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_wait_for_firmware_upgrade_ref.py b/intersight/models/qatask_wait_for_firmware_upgrade_ref.py new file mode 100644 index 00000000..77849e36 --- /dev/null +++ b/intersight/models/qatask_wait_for_firmware_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskWaitForFirmwareUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskWaitForFirmwareUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskWaitForFirmwareUpgradeRef. + + :return: The moid of this QataskWaitForFirmwareUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskWaitForFirmwareUpgradeRef. + + :param moid: The moid of this QataskWaitForFirmwareUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskWaitForFirmwareUpgradeRef. + + :return: The object_type of this QataskWaitForFirmwareUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskWaitForFirmwareUpgradeRef. + + :param object_type: The object_type of this QataskWaitForFirmwareUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskWaitForFirmwareUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/rest_api_ref.py b/intersight/models/rest_api_ref.py new file mode 100644 index 00000000..fd138b3d --- /dev/null +++ b/intersight/models/rest_api_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class RestApiRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + RestApiRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this RestApiRef. + + :return: The moid of this RestApiRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this RestApiRef. + + :param moid: The moid of this RestApiRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this RestApiRef. + + :return: The object_type of this RestApiRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this RestApiRef. + + :param object_type: The object_type of this RestApiRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, RestApiRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/search_search_item.py b/intersight/models/search_search_item.py index 6fe5f2db..fd9a23d5 100644 --- a/intersight/models/search_search_item.py +++ b/intersight/models/search_search_item.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class SearchSearchItem(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]' } @@ -118,7 +118,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SearchSearchItem. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -129,7 +129,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SearchSearchItem. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -256,7 +256,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SearchSearchItem. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -267,7 +267,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SearchSearchItem. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/search_search_item_list.py b/intersight/models/search_search_item_list.py index 34752162..a2934b46 100644 --- a/intersight/models/search_search_item_list.py +++ b/intersight/models/search_search_item_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/search_search_item_ref.py b/intersight/models/search_search_item_ref.py new file mode 100644 index 00000000..4102de56 --- /dev/null +++ b/intersight/models/search_search_item_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SearchSearchItemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SearchSearchItemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SearchSearchItemRef. + + :return: The moid of this SearchSearchItemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SearchSearchItemRef. + + :param moid: The moid of this SearchSearchItemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SearchSearchItemRef. + + :return: The object_type of this SearchSearchItemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SearchSearchItemRef. + + :param object_type: The object_type of this SearchSearchItemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SearchSearchItemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/search_suggest_item.py b/intersight/models/search_suggest_item.py index e34341c2..0f9dcd32 100644 --- a/intersight/models/search_suggest_item.py +++ b/intersight/models/search_suggest_item.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class SearchSuggestItem(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'complete_mo': 'bool', 'rawquery': 'str', @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SearchSuggestItem. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SearchSuggestItem. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SearchSuggestItem. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SearchSuggestItem. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/search_suggest_item_ref.py b/intersight/models/search_suggest_item_ref.py new file mode 100644 index 00000000..f15bea19 --- /dev/null +++ b/intersight/models/search_suggest_item_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SearchSuggestItemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SearchSuggestItemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SearchSuggestItemRef. + + :return: The moid of this SearchSuggestItemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SearchSuggestItemRef. + + :param moid: The moid of this SearchSuggestItemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SearchSuggestItemRef. + + :return: The object_type of this SearchSuggestItemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SearchSuggestItemRef. + + :param object_type: The object_type of this SearchSuggestItemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SearchSuggestItemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/search_tag_item.py b/intersight/models/search_tag_item.py index f719492c..d07fc6a8 100644 --- a/intersight/models/search_tag_item.py +++ b/intersight/models/search_tag_item.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class SearchTagItem(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]' } @@ -118,7 +118,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SearchTagItem. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -129,7 +129,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SearchTagItem. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -256,7 +256,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SearchTagItem. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -267,7 +267,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SearchTagItem. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/search_tag_item_list.py b/intersight/models/search_tag_item_list.py index cb776a0a..f44cecbc 100644 --- a/intersight/models/search_tag_item_list.py +++ b/intersight/models/search_tag_item_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/search_tag_item_ref.py b/intersight/models/search_tag_item_ref.py new file mode 100644 index 00000000..bdce48a7 --- /dev/null +++ b/intersight/models/search_tag_item_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SearchTagItemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SearchTagItemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SearchTagItemRef. + + :return: The moid of this SearchTagItemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SearchTagItemRef. + + :param moid: The moid of this SearchTagItemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SearchTagItemRef. + + :return: The object_type of this SearchTagItemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SearchTagItemRef. + + :param object_type: The object_type of this SearchTagItemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SearchTagItemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/security_unit.py b/intersight/models/security_unit.py index 5e488a35..39cfcb8d 100644 --- a/intersight/models/security_unit.py +++ b/intersight/models/security_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class SecurityUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,14 +47,14 @@ class SecurityUnit(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'oper_state': 'str', 'operability': 'str', 'part_number': 'str', 'pci_slot': 'str', 'power': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'thermal': 'str', 'unit_id': 'int', 'vid': 'str', @@ -213,7 +213,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SecurityUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -224,7 +224,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SecurityUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -351,7 +351,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SecurityUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -362,7 +362,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SecurityUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -543,7 +543,7 @@ def compute_board(self): Gets the compute_board of this SecurityUnit. :return: The compute_board of this SecurityUnit. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -553,7 +553,7 @@ def compute_board(self, compute_board): Sets the compute_board of this SecurityUnit. :param compute_board: The compute_board of this SecurityUnit. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -690,7 +690,7 @@ def registered_device(self): Gets the registered_device of this SecurityUnit. :return: The registered_device of this SecurityUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -700,7 +700,7 @@ def registered_device(self, registered_device): Sets the registered_device of this SecurityUnit. :param registered_device: The registered_device of this SecurityUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/security_unit_list.py b/intersight/models/security_unit_list.py index e07ce63d..8f31eef5 100644 --- a/intersight/models/security_unit_list.py +++ b/intersight/models/security_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/security_unit_ref.py b/intersight/models/security_unit_ref.py new file mode 100644 index 00000000..6fe2c8a7 --- /dev/null +++ b/intersight/models/security_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SecurityUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SecurityUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SecurityUnitRef. + + :return: The moid of this SecurityUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SecurityUnitRef. + + :param moid: The moid of this SecurityUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SecurityUnitRef. + + :return: The object_type of this SecurityUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SecurityUnitRef. + + :param object_type: The object_type of this SecurityUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SecurityUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_config_change.py b/intersight/models/server_config_change.py index 3cbb0caf..e412009a 100644 --- a/intersight/models/server_config_change.py +++ b/intersight/models/server_config_change.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/server_config_change_detail.py b/intersight/models/server_config_change_detail.py index dd0bdb7a..ee196982 100644 --- a/intersight/models/server_config_change_detail.py +++ b/intersight/models/server_config_change_detail.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/server_config_change_detail_ref.py b/intersight/models/server_config_change_detail_ref.py new file mode 100644 index 00000000..ea5df4a7 --- /dev/null +++ b/intersight/models/server_config_change_detail_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigChangeDetailRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerConfigChangeDetailRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerConfigChangeDetailRef. + + :return: The moid of this ServerConfigChangeDetailRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerConfigChangeDetailRef. + + :param moid: The moid of this ServerConfigChangeDetailRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerConfigChangeDetailRef. + + :return: The object_type of this ServerConfigChangeDetailRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerConfigChangeDetailRef. + + :param object_type: The object_type of this ServerConfigChangeDetailRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigChangeDetailRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_config_change_details_ref.py b/intersight/models/server_config_change_details_ref.py new file mode 100644 index 00000000..1804fbad --- /dev/null +++ b/intersight/models/server_config_change_details_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigChangeDetailsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerConfigChangeDetailsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerConfigChangeDetailsRef. + + :return: The moid of this ServerConfigChangeDetailsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerConfigChangeDetailsRef. + + :param moid: The moid of this ServerConfigChangeDetailsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerConfigChangeDetailsRef. + + :return: The object_type of this ServerConfigChangeDetailsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerConfigChangeDetailsRef. + + :param object_type: The object_type of this ServerConfigChangeDetailsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigChangeDetailsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_config_change_ref.py b/intersight/models/server_config_change_ref.py new file mode 100644 index 00000000..4c40886f --- /dev/null +++ b/intersight/models/server_config_change_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigChangeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerConfigChangeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerConfigChangeRef. + + :return: The moid of this ServerConfigChangeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerConfigChangeRef. + + :param moid: The moid of this ServerConfigChangeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerConfigChangeRef. + + :return: The object_type of this ServerConfigChangeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerConfigChangeRef. + + :param object_type: The object_type of this ServerConfigChangeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigChangeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_config_result.py b/intersight/models/server_config_result.py index acd7dfc4..4dca2e01 100644 --- a/intersight/models/server_config_result.py +++ b/intersight/models/server_config_result.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,19 @@ class ServerConfigResult(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'config_stage': 'str', 'config_state': 'str', - 'result_entries': 'list[PolicyConfigResultEntry]', 'validation_state': 'str', - 'profile': 'MoMoRef' + 'profile': 'ServerProfileRef', + 'result_entries': 'list[ServerConfigResultEntryRef]' } attribute_map = { @@ -59,12 +59,12 @@ class ServerConfigResult(object): 'tags': 'Tags', 'config_stage': 'ConfigStage', 'config_state': 'ConfigState', - 'result_entries': 'ResultEntries', 'validation_state': 'ValidationState', - 'profile': 'Profile' + 'profile': 'Profile', + 'result_entries': 'ResultEntries' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, config_stage=None, config_state=None, result_entries=None, validation_state=None, profile=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, config_stage=None, config_state=None, validation_state=None, profile=None, result_entries=None): """ ServerConfigResult - a model defined in Swagger """ @@ -80,9 +80,9 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._config_stage = None self._config_state = None - self._result_entries = None self._validation_state = None self._profile = None + self._result_entries = None if account_moid is not None: self.account_moid = account_moid @@ -106,12 +106,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.config_stage = config_stage if config_state is not None: self.config_state = config_state - if result_entries is not None: - self.result_entries = result_entries if validation_state is not None: self.validation_state = validation_state if profile is not None: self.profile = profile + if result_entries is not None: + self.result_entries = result_entries @property def account_moid(self): @@ -143,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ServerConfigResult. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ServerConfigResult. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ServerConfigResult. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ServerConfigResult. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -366,29 +366,6 @@ def config_state(self, config_state): self._config_state = config_state - @property - def result_entries(self): - """ - Gets the result_entries of this ServerConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :return: The result_entries of this ServerConfigResult. - :rtype: list[PolicyConfigResultEntry] - """ - return self._result_entries - - @result_entries.setter - def result_entries(self, result_entries): - """ - Sets the result_entries of this ServerConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :param result_entries: The result_entries of this ServerConfigResult. - :type: list[PolicyConfigResultEntry] - """ - - self._result_entries = result_entries - @property def validation_state(self): """ @@ -418,7 +395,7 @@ def profile(self): Gets the profile of this ServerConfigResult. :return: The profile of this ServerConfigResult. - :rtype: MoMoRef + :rtype: ServerProfileRef """ return self._profile @@ -428,11 +405,34 @@ def profile(self, profile): Sets the profile of this ServerConfigResult. :param profile: The profile of this ServerConfigResult. - :type: MoMoRef + :type: ServerProfileRef """ self._profile = profile + @property + def result_entries(self): + """ + Gets the result_entries of this ServerConfigResult. + Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. + + :return: The result_entries of this ServerConfigResult. + :rtype: list[ServerConfigResultEntryRef] + """ + return self._result_entries + + @result_entries.setter + def result_entries(self, result_entries): + """ + Sets the result_entries of this ServerConfigResult. + Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. + + :param result_entries: The result_entries of this ServerConfigResult. + :type: list[ServerConfigResultEntryRef] + """ + + self._result_entries = result_entries + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/server_config_result_entry.py b/intersight/models/server_config_result_entry.py new file mode 100644 index 00000000..d31b524a --- /dev/null +++ b/intersight/models/server_config_result_entry.py @@ -0,0 +1,539 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigResultEntry(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'completed_time': 'str', + 'context': 'PolicyConfigResultContext', + 'message': 'str', + 'owner_id': 'str', + 'state': 'str', + 'type': 'str', + 'config_result': 'ServerConfigResultRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'completed_time': 'CompletedTime', + 'context': 'Context', + 'message': 'Message', + 'owner_id': 'OwnerId', + 'state': 'State', + 'type': 'Type', + 'config_result': 'ConfigResult' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, completed_time=None, context=None, message=None, owner_id=None, state=None, type=None, config_result=None): + """ + ServerConfigResultEntry - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._completed_time = None + self._context = None + self._message = None + self._owner_id = None + self._state = None + self._type = None + self._config_result = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if completed_time is not None: + self.completed_time = completed_time + if context is not None: + self.context = context + if message is not None: + self.message = message + if owner_id is not None: + self.owner_id = owner_id + if state is not None: + self.state = state + if type is not None: + self.type = type + if config_result is not None: + self.config_result = config_result + + @property + def account_moid(self): + """ + Gets the account_moid of this ServerConfigResultEntry. + The Account ID for this managed object. + + :return: The account_moid of this ServerConfigResultEntry. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this ServerConfigResultEntry. + The Account ID for this managed object. + + :param account_moid: The account_moid of this ServerConfigResultEntry. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this ServerConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this ServerConfigResultEntry. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this ServerConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this ServerConfigResultEntry. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this ServerConfigResultEntry. + The time when this managed object was created. + + :return: The create_time of this ServerConfigResultEntry. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this ServerConfigResultEntry. + The time when this managed object was created. + + :param create_time: The create_time of this ServerConfigResultEntry. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this ServerConfigResultEntry. + The time when this managed object was last modified. + + :return: The mod_time of this ServerConfigResultEntry. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this ServerConfigResultEntry. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this ServerConfigResultEntry. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this ServerConfigResultEntry. + A unique identifier of this Managed Object instance. + + :return: The moid of this ServerConfigResultEntry. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerConfigResultEntry. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this ServerConfigResultEntry. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this ServerConfigResultEntry. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this ServerConfigResultEntry. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this ServerConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :return: The owners of this ServerConfigResultEntry. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this ServerConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this ServerConfigResultEntry. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this ServerConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this ServerConfigResultEntry. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this ServerConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this ServerConfigResultEntry. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this ServerConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this ServerConfigResultEntry. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this ServerConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this ServerConfigResultEntry. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def completed_time(self): + """ + Gets the completed_time of this ServerConfigResultEntry. + The completed time of the task in installer + + :return: The completed_time of this ServerConfigResultEntry. + :rtype: str + """ + return self._completed_time + + @completed_time.setter + def completed_time(self, completed_time): + """ + Sets the completed_time of this ServerConfigResultEntry. + The completed time of the task in installer + + :param completed_time: The completed_time of this ServerConfigResultEntry. + :type: str + """ + + self._completed_time = completed_time + + @property + def context(self): + """ + Gets the context of this ServerConfigResultEntry. + + :return: The context of this ServerConfigResultEntry. + :rtype: PolicyConfigResultContext + """ + return self._context + + @context.setter + def context(self, context): + """ + Sets the context of this ServerConfigResultEntry. + + :param context: The context of this ServerConfigResultEntry. + :type: PolicyConfigResultContext + """ + + self._context = context + + @property + def message(self): + """ + Gets the message of this ServerConfigResultEntry. + Localized message based on the locale setting of the user's context + + :return: The message of this ServerConfigResultEntry. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this ServerConfigResultEntry. + Localized message based on the locale setting of the user's context + + :param message: The message of this ServerConfigResultEntry. + :type: str + """ + + self._message = message + + @property + def owner_id(self): + """ + Gets the owner_id of this ServerConfigResultEntry. + + :return: The owner_id of this ServerConfigResultEntry. + :rtype: str + """ + return self._owner_id + + @owner_id.setter + def owner_id(self, owner_id): + """ + Sets the owner_id of this ServerConfigResultEntry. + + :param owner_id: The owner_id of this ServerConfigResultEntry. + :type: str + """ + + self._owner_id = owner_id + + @property + def state(self): + """ + Gets the state of this ServerConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :return: The state of this ServerConfigResultEntry. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this ServerConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :param state: The state of this ServerConfigResultEntry. + :type: str + """ + + self._state = state + + @property + def type(self): + """ + Gets the type of this ServerConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :return: The type of this ServerConfigResultEntry. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this ServerConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :param type: The type of this ServerConfigResultEntry. + :type: str + """ + + self._type = type + + @property + def config_result(self): + """ + Gets the config_result of this ServerConfigResultEntry. + + :return: The config_result of this ServerConfigResultEntry. + :rtype: ServerConfigResultRef + """ + return self._config_result + + @config_result.setter + def config_result(self, config_result): + """ + Sets the config_result of this ServerConfigResultEntry. + + :param config_result: The config_result of this ServerConfigResultEntry. + :type: ServerConfigResultRef + """ + + self._config_result = config_result + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigResultEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_config_result_entry_list.py b/intersight/models/server_config_result_entry_list.py new file mode 100644 index 00000000..f50b9cad --- /dev/null +++ b/intersight/models/server_config_result_entry_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigResultEntryList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[ServerConfigResultEntry]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + ServerConfigResultEntryList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this ServerConfigResultEntryList. + The number of serverConfigResultEntries matching your request in total for all pages. + + :return: The count of this ServerConfigResultEntryList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this ServerConfigResultEntryList. + The number of serverConfigResultEntries matching your request in total for all pages. + + :param count: The count of this ServerConfigResultEntryList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this ServerConfigResultEntryList. + The array of serverConfigResultEntries matching your request. + + :return: The results of this ServerConfigResultEntryList. + :rtype: list[ServerConfigResultEntry] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this ServerConfigResultEntryList. + The array of serverConfigResultEntries matching your request. + + :param results: The results of this ServerConfigResultEntryList. + :type: list[ServerConfigResultEntry] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigResultEntryList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_config_result_entry_ref.py b/intersight/models/server_config_result_entry_ref.py new file mode 100644 index 00000000..feaf36f4 --- /dev/null +++ b/intersight/models/server_config_result_entry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigResultEntryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerConfigResultEntryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerConfigResultEntryRef. + + :return: The moid of this ServerConfigResultEntryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerConfigResultEntryRef. + + :param moid: The moid of this ServerConfigResultEntryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerConfigResultEntryRef. + + :return: The object_type of this ServerConfigResultEntryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerConfigResultEntryRef. + + :param object_type: The object_type of this ServerConfigResultEntryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigResultEntryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_config_result_list.py b/intersight/models/server_config_result_list.py index 7c653054..6eff4776 100644 --- a/intersight/models/server_config_result_list.py +++ b/intersight/models/server_config_result_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/server_config_result_ref.py b/intersight/models/server_config_result_ref.py new file mode 100644 index 00000000..66e06b37 --- /dev/null +++ b/intersight/models/server_config_result_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigResultRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerConfigResultRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerConfigResultRef. + + :return: The moid of this ServerConfigResultRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerConfigResultRef. + + :param moid: The moid of this ServerConfigResultRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerConfigResultRef. + + :return: The object_type of this ServerConfigResultRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerConfigResultRef. + + :param object_type: The object_type of this ServerConfigResultRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigResultRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_profile.py b/intersight/models/server_profile.py index f52f57e1..424e5124 100644 --- a/intersight/models/server_profile.py +++ b/intersight/models/server_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,26 +32,26 @@ class ServerProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'src_template': 'MoMoRef', + 'src_template': 'PolicyAbstractProfileRef', 'type': 'str', 'action': 'str', 'config_context': 'PolicyConfigContext', - 'account': 'MoMoRef', - 'assigned_server': 'MoMoRef', - 'associated_server': 'MoMoRef', - 'config_change_details': 'MoMoRef', + 'assigned_server': 'ComputeRackUnitRef', + 'associated_server': 'ComputeRackUnitRef', + 'config_change_details': 'ServerConfigChangeDetailsRef', 'config_changes': 'ServerConfigChange', - 'config_result': 'MoMoRef' + 'config_result': 'ServerConfigResultRef', + 'organization': 'IamAccountRef' } attribute_map = { @@ -70,15 +70,15 @@ class ServerProfile(object): 'type': 'Type', 'action': 'Action', 'config_context': 'ConfigContext', - 'account': 'Account', 'assigned_server': 'AssignedServer', 'associated_server': 'AssociatedServer', 'config_change_details': 'ConfigChangeDetails', 'config_changes': 'ConfigChanges', - 'config_result': 'ConfigResult' + 'config_result': 'ConfigResult', + 'organization': 'Organization' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, src_template=None, type='instance', action=None, config_context=None, account=None, assigned_server=None, associated_server=None, config_change_details=None, config_changes=None, config_result=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, src_template=None, type='instance', action=None, config_context=None, assigned_server=None, associated_server=None, config_change_details=None, config_changes=None, config_result=None, organization=None): """ ServerProfile - a model defined in Swagger """ @@ -98,12 +98,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._type = None self._action = None self._config_context = None - self._account = None self._assigned_server = None self._associated_server = None self._config_change_details = None self._config_changes = None self._config_result = None + self._organization = None if account_moid is not None: self.account_moid = account_moid @@ -135,8 +135,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.action = action if config_context is not None: self.config_context = config_context - if account is not None: - self.account = account if assigned_server is not None: self.assigned_server = assigned_server if associated_server is not None: @@ -147,6 +145,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.config_changes = config_changes if config_result is not None: self.config_result = config_result + if organization is not None: + self.organization = organization @property def account_moid(self): @@ -178,7 +178,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ServerProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +189,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ServerProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +316,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ServerProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +327,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ServerProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -407,7 +407,7 @@ def src_template(self): Gets the src_template of this ServerProfile. :return: The src_template of this ServerProfile. - :rtype: MoMoRef + :rtype: PolicyAbstractProfileRef """ return self._src_template @@ -417,7 +417,7 @@ def src_template(self, src_template): Sets the src_template of this ServerProfile. :param src_template: The src_template of this ServerProfile. - :type: MoMoRef + :type: PolicyAbstractProfileRef """ self._src_template = src_template @@ -455,7 +455,7 @@ def type(self, type): def action(self): """ Gets the action of this ServerProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :return: The action of this ServerProfile. :rtype: str @@ -466,7 +466,7 @@ def action(self): def action(self, action): """ Sets the action of this ServerProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :param action: The action of this ServerProfile. :type: str @@ -495,29 +495,6 @@ def config_context(self, config_context): self._config_context = config_context - @property - def account(self): - """ - Gets the account of this ServerProfile. - The account of the user who creates the profile. - - :return: The account of this ServerProfile. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this ServerProfile. - The account of the user who creates the profile. - - :param account: The account of this ServerProfile. - :type: MoMoRef - """ - - self._account = account - @property def assigned_server(self): """ @@ -525,7 +502,7 @@ def assigned_server(self): The assigned physical server to the profile. A physical server can be assigned to more than one server profiles as long as it is only associated with one :return: The assigned_server of this ServerProfile. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._assigned_server @@ -536,7 +513,7 @@ def assigned_server(self, assigned_server): The assigned physical server to the profile. A physical server can be assigned to more than one server profiles as long as it is only associated with one :param assigned_server: The assigned_server of this ServerProfile. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._assigned_server = assigned_server @@ -548,7 +525,7 @@ def associated_server(self): The associated physical server to the profile. A physical server can only be associated to one server profiles :return: The associated_server of this ServerProfile. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._associated_server @@ -559,7 +536,7 @@ def associated_server(self, associated_server): The associated physical server to the profile. A physical server can only be associated to one server profiles :param associated_server: The associated_server of this ServerProfile. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._associated_server = associated_server @@ -571,7 +548,7 @@ def config_change_details(self): Represents the configuration change details :return: The config_change_details of this ServerProfile. - :rtype: MoMoRef + :rtype: ServerConfigChangeDetailsRef """ return self._config_change_details @@ -582,7 +559,7 @@ def config_change_details(self, config_change_details): Represents the configuration change details :param config_change_details: The config_change_details of this ServerProfile. - :type: MoMoRef + :type: ServerConfigChangeDetailsRef """ self._config_change_details = config_change_details @@ -617,7 +594,7 @@ def config_result(self): Represents the configuration (including deploy, undeploy, compliance-check) results. The errors usually are detected and reported during the apply/deploy phases :return: The config_result of this ServerProfile. - :rtype: MoMoRef + :rtype: ServerConfigResultRef """ return self._config_result @@ -628,11 +605,34 @@ def config_result(self, config_result): Represents the configuration (including deploy, undeploy, compliance-check) results. The errors usually are detected and reported during the apply/deploy phases :param config_result: The config_result of this ServerProfile. - :type: MoMoRef + :type: ServerConfigResultRef """ self._config_result = config_result + @property + def organization(self): + """ + Gets the organization of this ServerProfile. + Organization + + :return: The organization of this ServerProfile. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this ServerProfile. + Organization + + :param organization: The organization of this ServerProfile. + :type: IamAccountRef + """ + + self._organization = organization + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/server_profile_apply_task_ref.py b/intersight/models/server_profile_apply_task_ref.py new file mode 100644 index 00000000..ed530374 --- /dev/null +++ b/intersight/models/server_profile_apply_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerProfileApplyTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerProfileApplyTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerProfileApplyTaskRef. + + :return: The moid of this ServerProfileApplyTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerProfileApplyTaskRef. + + :param moid: The moid of this ServerProfileApplyTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerProfileApplyTaskRef. + + :return: The object_type of this ServerProfileApplyTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerProfileApplyTaskRef. + + :param object_type: The object_type of this ServerProfileApplyTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerProfileApplyTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_profile_list.py b/intersight/models/server_profile_list.py index e8e93734..7b18e9ae 100644 --- a/intersight/models/server_profile_list.py +++ b/intersight/models/server_profile_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/server_profile_ref.py b/intersight/models/server_profile_ref.py new file mode 100644 index 00000000..17e636b5 --- /dev/null +++ b/intersight/models/server_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerProfileRef. + + :return: The moid of this ServerProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerProfileRef. + + :param moid: The moid of this ServerProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerProfileRef. + + :return: The object_type of this ServerProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerProfileRef. + + :param object_type: The object_type of this ServerProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_result_handler_task_ref.py b/intersight/models/server_result_handler_task_ref.py new file mode 100644 index 00000000..c650336d --- /dev/null +++ b/intersight/models/server_result_handler_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerResultHandlerTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerResultHandlerTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerResultHandlerTaskRef. + + :return: The moid of this ServerResultHandlerTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerResultHandlerTaskRef. + + :param moid: The moid of this ServerResultHandlerTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerResultHandlerTaskRef. + + :return: The object_type of this ServerResultHandlerTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerResultHandlerTaskRef. + + :param object_type: The object_type of this ServerResultHandlerTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerResultHandlerTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/smtp_deploy_task_ref.py b/intersight/models/smtp_deploy_task_ref.py new file mode 100644 index 00000000..26ca1610 --- /dev/null +++ b/intersight/models/smtp_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SmtpDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SmtpDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SmtpDeployTaskRef. + + :return: The moid of this SmtpDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SmtpDeployTaskRef. + + :param moid: The moid of this SmtpDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SmtpDeployTaskRef. + + :return: The object_type of this SmtpDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SmtpDeployTaskRef. + + :param object_type: The object_type of this SmtpDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SmtpDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/smtp_policy.py b/intersight/models/smtp_policy.py index dc08c57d..131661ee 100644 --- a/intersight/models/smtp_policy.py +++ b/intersight/models/smtp_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class SmtpPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', 'enabled': 'bool', 'min_severity': 'str', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', 'smtp_port': 'int', 'smtp_recipients': 'list[str]', 'smtp_server': 'str' @@ -163,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SmtpPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SmtpPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SmtpPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SmtpPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -413,7 +413,7 @@ def enabled(self, enabled): def min_severity(self): """ Gets the min_severity of this SmtpPolicy. - 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. Accepted fault values in the order of severity are Condition, Warning, Minor, Major, Critical. + 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. :return: The min_severity of this SmtpPolicy. :rtype: str @@ -424,7 +424,7 @@ def min_severity(self): def min_severity(self, min_severity): """ Sets the min_severity of this SmtpPolicy. - 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. Accepted fault values in the order of severity are Condition, Warning, Minor, Major, Critical. + 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. :param min_severity: The min_severity of this SmtpPolicy. :type: str @@ -445,7 +445,7 @@ def organization(self): Organization :return: The organization of this SmtpPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -456,7 +456,7 @@ def organization(self, organization): Organization :param organization: The organization of this SmtpPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -468,7 +468,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this SmtpPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -479,7 +479,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this SmtpPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/smtp_policy_list.py b/intersight/models/smtp_policy_list.py index 40540eac..588a2182 100644 --- a/intersight/models/smtp_policy_list.py +++ b/intersight/models/smtp_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/smtp_policy_ref.py b/intersight/models/smtp_policy_ref.py new file mode 100644 index 00000000..740de0b0 --- /dev/null +++ b/intersight/models/smtp_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SmtpPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SmtpPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SmtpPolicyRef. + + :return: The moid of this SmtpPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SmtpPolicyRef. + + :param moid: The moid of this SmtpPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SmtpPolicyRef. + + :return: The object_type of this SmtpPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SmtpPolicyRef. + + :param object_type: The object_type of this SmtpPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SmtpPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/smtp_validation_task_ref.py b/intersight/models/smtp_validation_task_ref.py new file mode 100644 index 00000000..825ce015 --- /dev/null +++ b/intersight/models/smtp_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SmtpValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SmtpValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SmtpValidationTaskRef. + + :return: The moid of this SmtpValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SmtpValidationTaskRef. + + :param moid: The moid of this SmtpValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SmtpValidationTaskRef. + + :return: The object_type of this SmtpValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SmtpValidationTaskRef. + + :param object_type: The object_type of this SmtpValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SmtpValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/snmp_deploy_task_ref.py b/intersight/models/snmp_deploy_task_ref.py new file mode 100644 index 00000000..8aaf39cc --- /dev/null +++ b/intersight/models/snmp_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SnmpDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SnmpDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SnmpDeployTaskRef. + + :return: The moid of this SnmpDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SnmpDeployTaskRef. + + :param moid: The moid of this SnmpDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SnmpDeployTaskRef. + + :return: The object_type of this SnmpDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SnmpDeployTaskRef. + + :param object_type: The object_type of this SnmpDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SnmpDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/snmp_policy.py b/intersight/models/snmp_policy.py index b40d6ef7..3c4fa9ce 100644 --- a/intersight/models/snmp_policy.py +++ b/intersight/models/snmp_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class SnmpPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', @@ -46,8 +46,8 @@ class SnmpPolicy(object): 'community_access': 'str', 'enabled': 'bool', 'engine_id': 'str', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', 'snmp_port': 'int', 'snmp_traps': 'list[SnmpTrap]', 'snmp_users': 'list[SnmpUser]', @@ -188,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SnmpPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -199,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SnmpPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -326,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SnmpPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -337,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SnmpPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -415,7 +415,7 @@ def name(self, name): def access_community_string(self): """ Gets the access_community_string of this SnmpPolicy. - The default SNMPv1 or SNMPv2c community name, or SNMPv3 username to include on any trap messages to the SNMP host. + The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long. :return: The access_community_string of this SnmpPolicy. :rtype: str @@ -426,7 +426,7 @@ def access_community_string(self): def access_community_string(self, access_community_string): """ Sets the access_community_string of this SnmpPolicy. - The default SNMPv1 or SNMPv2c community name, or SNMPv3 username to include on any trap messages to the SNMP host. + The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long. :param access_community_string: The access_community_string of this SnmpPolicy. :type: str @@ -438,7 +438,7 @@ def access_community_string(self, access_community_string): def community_access(self): """ Gets the community_access of this SnmpPolicy. - This property controls access to the information in the inventory tables. Accepted values are Full, Limited, Disabled. SNMP Community Access is applicable only for SNMPv1 and SNMPv2c users. + Controls access to the information in the inventory tables. Applicable only for SNMPv1 and SNMPv2c users. :return: The community_access of this SnmpPolicy. :rtype: str @@ -449,7 +449,7 @@ def community_access(self): def community_access(self, community_access): """ Sets the community_access of this SnmpPolicy. - This property controls access to the information in the inventory tables. Accepted values are Full, Limited, Disabled. SNMP Community Access is applicable only for SNMPv1 and SNMPv2c users. + Controls access to the information in the inventory tables. Applicable only for SNMPv1 and SNMPv2c users. :param community_access: The community_access of this SnmpPolicy. :type: str @@ -467,7 +467,7 @@ def community_access(self, community_access): def enabled(self): """ Gets the enabled of this SnmpPolicy. - State of the SNMP Policy on the endpoint. Decides whether the endpoint sends SNMP traps to the designated host. + State of the SNMP Policy on the endpoint. If enabled, the endpoint sends SNMP traps to the designated host. :return: The enabled of this SnmpPolicy. :rtype: bool @@ -478,7 +478,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this SnmpPolicy. - State of the SNMP Policy on the endpoint. Decides whether the endpoint sends SNMP traps to the designated host. + State of the SNMP Policy on the endpoint. If enabled, the endpoint sends SNMP traps to the designated host. :param enabled: The enabled of this SnmpPolicy. :type: bool @@ -490,7 +490,7 @@ def enabled(self, enabled): def engine_id(self): """ Gets the engine_id of this SnmpPolicy. - User-defined unique identification of the static engine. + User-defined unique identification of the static engine :return: The engine_id of this SnmpPolicy. :rtype: str @@ -501,7 +501,7 @@ def engine_id(self): def engine_id(self, engine_id): """ Sets the engine_id of this SnmpPolicy. - User-defined unique identification of the static engine. + User-defined unique identification of the static engine :param engine_id: The engine_id of this SnmpPolicy. :type: str @@ -516,7 +516,7 @@ def organization(self): Organization :return: The organization of this SnmpPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -527,7 +527,7 @@ def organization(self, organization): Organization :param organization: The organization of this SnmpPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -539,7 +539,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this SnmpPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -550,7 +550,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this SnmpPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles @@ -559,7 +559,7 @@ def profiles(self, profiles): def snmp_port(self): """ Gets the snmp_port of this SnmpPolicy. - The port on which the SNMP agent runs. + Port on which Cisco IMC SNMP agent runs :return: The snmp_port of this SnmpPolicy. :rtype: int @@ -570,7 +570,7 @@ def snmp_port(self): def snmp_port(self, snmp_port): """ Sets the snmp_port of this SnmpPolicy. - The port on which the SNMP agent runs. + Port on which Cisco IMC SNMP agent runs :param snmp_port: The snmp_port of this SnmpPolicy. :type: int @@ -628,7 +628,7 @@ def snmp_users(self, snmp_users): def sys_contact(self): """ Gets the sys_contact of this SnmpPolicy. - Contact person for the SNMP implementation. + Contact person responsible for the SNMP implementation. Enter a string up to 64 characters, such as an email address or a name and telephone number. :return: The sys_contact of this SnmpPolicy. :rtype: str @@ -639,7 +639,7 @@ def sys_contact(self): def sys_contact(self, sys_contact): """ Sets the sys_contact of this SnmpPolicy. - Contact person for the SNMP implementation. + Contact person responsible for the SNMP implementation. Enter a string up to 64 characters, such as an email address or a name and telephone number. :param sys_contact: The sys_contact of this SnmpPolicy. :type: str @@ -651,7 +651,7 @@ def sys_contact(self, sys_contact): def sys_location(self): """ Gets the sys_location of this SnmpPolicy. - Location of host where SNMP agent(server) runs. + Location of host on which the SNMP agent(server) runs :return: The sys_location of this SnmpPolicy. :rtype: str @@ -662,7 +662,7 @@ def sys_location(self): def sys_location(self, sys_location): """ Sets the sys_location of this SnmpPolicy. - Location of host where SNMP agent(server) runs. + Location of host on which the SNMP agent(server) runs :param sys_location: The sys_location of this SnmpPolicy. :type: str @@ -674,7 +674,7 @@ def sys_location(self, sys_location): def trap_community(self): """ Gets the trap_community of this SnmpPolicy. - SNMP community group used for sending SNMP trap to other devices. Valid only for SNMPv2c users. + SNMP community group used for sending SNMP trap to other devices. Valid only for SNMPv2c users :return: The trap_community of this SnmpPolicy. :rtype: str @@ -685,7 +685,7 @@ def trap_community(self): def trap_community(self, trap_community): """ Sets the trap_community of this SnmpPolicy. - SNMP community group used for sending SNMP trap to other devices. Valid only for SNMPv2c users. + SNMP community group used for sending SNMP trap to other devices. Valid only for SNMPv2c users :param trap_community: The trap_community of this SnmpPolicy. :type: str diff --git a/intersight/models/snmp_policy_list.py b/intersight/models/snmp_policy_list.py index 0adf5183..cd74657c 100644 --- a/intersight/models/snmp_policy_list.py +++ b/intersight/models/snmp_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/snmp_policy_ref.py b/intersight/models/snmp_policy_ref.py new file mode 100644 index 00000000..f66ea081 --- /dev/null +++ b/intersight/models/snmp_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SnmpPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SnmpPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SnmpPolicyRef. + + :return: The moid of this SnmpPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SnmpPolicyRef. + + :param moid: The moid of this SnmpPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SnmpPolicyRef. + + :return: The object_type of this SnmpPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SnmpPolicyRef. + + :param object_type: The object_type of this SnmpPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SnmpPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/snmp_trap.py b/intersight/models/snmp_trap.py index 99bf4604..00460bc3 100644 --- a/intersight/models/snmp_trap.py +++ b/intersight/models/snmp_trap.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,53 +31,76 @@ class SnmpTrap(object): and the value is json key in definition. """ swagger_types = { + 'destination': 'str', 'enabled': 'bool', - 'trap_destination': 'str', - 'trap_port': 'int', - 'trap_type': 'str', - 'trap_user': 'str', - 'trap_version': 'str' + 'port': 'int', + 'type': 'str', + 'user': 'str', + 'version': 'str' } attribute_map = { + 'destination': 'Destination', 'enabled': 'Enabled', - 'trap_destination': 'TrapDestination', - 'trap_port': 'TrapPort', - 'trap_type': 'TrapType', - 'trap_user': 'TrapUser', - 'trap_version': 'TrapVersion' + 'port': 'Port', + 'type': 'Type', + 'user': 'User', + 'version': 'Version' } - def __init__(self, enabled=None, trap_destination=None, trap_port=None, trap_type='Trap', trap_user=None, trap_version='V3'): + def __init__(self, destination=None, enabled=None, port=None, type='Trap', user=None, version='V3'): """ SnmpTrap - a model defined in Swagger """ + self._destination = None self._enabled = None - self._trap_destination = None - self._trap_port = None - self._trap_type = None - self._trap_user = None - self._trap_version = None + self._port = None + self._type = None + self._user = None + self._version = None + if destination is not None: + self.destination = destination if enabled is not None: self.enabled = enabled - if trap_destination is not None: - self.trap_destination = trap_destination - if trap_port is not None: - self.trap_port = trap_port - if trap_type is not None: - self.trap_type = trap_type - if trap_user is not None: - self.trap_user = trap_user - if trap_version is not None: - self.trap_version = trap_version + if port is not None: + self.port = port + if type is not None: + self.type = type + if user is not None: + self.user = user + if version is not None: + self.version = version + + @property + def destination(self): + """ + Gets the destination of this SnmpTrap. + Address to which the SNMP trap information is sent + + :return: The destination of this SnmpTrap. + :rtype: str + """ + return self._destination + + @destination.setter + def destination(self, destination): + """ + Sets the destination of this SnmpTrap. + Address to which the SNMP trap information is sent + + :param destination: The destination of this SnmpTrap. + :type: str + """ + + self._destination = destination @property def enabled(self): """ Gets the enabled of this SnmpTrap. - Enables/disables the trap on the server + Enables/disables the trap on the server If enabled, trap us active on the server. :return: The enabled of this SnmpTrap. :rtype: bool @@ -88,7 +111,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this SnmpTrap. - Enables/disables the trap on the server + Enables/disables the trap on the server If enabled, trap us active on the server. :param enabled: The enabled of this SnmpTrap. :type: bool @@ -97,131 +120,108 @@ def enabled(self, enabled): self._enabled = enabled @property - def trap_destination(self): - """ - Gets the trap_destination of this SnmpTrap. - Address to which the SNMP trap information is sent. - - :return: The trap_destination of this SnmpTrap. - :rtype: str - """ - return self._trap_destination - - @trap_destination.setter - def trap_destination(self, trap_destination): - """ - Sets the trap_destination of this SnmpTrap. - Address to which the SNMP trap information is sent. - - :param trap_destination: The trap_destination of this SnmpTrap. - :type: str - """ - - self._trap_destination = trap_destination - - @property - def trap_port(self): + def port(self): """ - Gets the trap_port of this SnmpTrap. - Port used by the server to communicate with trap destination. + Gets the port of this SnmpTrap. + Port used by the server to communicate with trap destination. Enter a value between 1-65535. - :return: The trap_port of this SnmpTrap. + :return: The port of this SnmpTrap. :rtype: int """ - return self._trap_port + return self._port - @trap_port.setter - def trap_port(self, trap_port): + @port.setter + def port(self, port): """ - Sets the trap_port of this SnmpTrap. - Port used by the server to communicate with trap destination. + Sets the port of this SnmpTrap. + Port used by the server to communicate with trap destination. Enter a value between 1-65535. - :param trap_port: The trap_port of this SnmpTrap. + :param port: The port of this SnmpTrap. :type: int """ - self._trap_port = trap_port + self._port = port @property - def trap_type(self): + def type(self): """ - Gets the trap_type of this SnmpTrap. - Type of messages to send to the manager from the agent. + Gets the type of this SnmpTrap. + Type of trap which decides whether to receive a notification when a trap is received at the destination - :return: The trap_type of this SnmpTrap. + :return: The type of this SnmpTrap. :rtype: str """ - return self._trap_type + return self._type - @trap_type.setter - def trap_type(self, trap_type): + @type.setter + def type(self, type): """ - Sets the trap_type of this SnmpTrap. - Type of messages to send to the manager from the agent. + Sets the type of this SnmpTrap. + Type of trap which decides whether to receive a notification when a trap is received at the destination - :param trap_type: The trap_type of this SnmpTrap. + :param type: The type of this SnmpTrap. :type: str """ allowed_values = ["Trap", "Inform"] - if trap_type not in allowed_values: + if type not in allowed_values: raise ValueError( - "Invalid value for `trap_type` ({0}), must be one of {1}" - .format(trap_type, allowed_values) + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) ) - self._trap_type = trap_type + self._type = type @property - def trap_user(self): + def user(self): """ - Gets the trap_user of this SnmpTrap. - SNMP user for the trap. Applicable only to SNMPv3. + Gets the user of this SnmpTrap. + SNMP user for the trap. Applicable only to SNMPv3 - :return: The trap_user of this SnmpTrap. + :return: The user of this SnmpTrap. :rtype: str """ - return self._trap_user + return self._user - @trap_user.setter - def trap_user(self, trap_user): + @user.setter + def user(self, user): """ - Sets the trap_user of this SnmpTrap. - SNMP user for the trap. Applicable only to SNMPv3. + Sets the user of this SnmpTrap. + SNMP user for the trap. Applicable only to SNMPv3 - :param trap_user: The trap_user of this SnmpTrap. + :param user: The user of this SnmpTrap. :type: str """ - self._trap_user = trap_user + self._user = user @property - def trap_version(self): + def version(self): """ - Gets the trap_version of this SnmpTrap. - SNMP version used for the trap. + Gets the version of this SnmpTrap. + SNMP version used for the trap - :return: The trap_version of this SnmpTrap. + :return: The version of this SnmpTrap. :rtype: str """ - return self._trap_version + return self._version - @trap_version.setter - def trap_version(self, trap_version): + @version.setter + def version(self, version): """ - Sets the trap_version of this SnmpTrap. - SNMP version used for the trap. + Sets the version of this SnmpTrap. + SNMP version used for the trap - :param trap_version: The trap_version of this SnmpTrap. + :param version: The version of this SnmpTrap. :type: str """ allowed_values = ["V3", "V2"] - if trap_version not in allowed_values: + if version not in allowed_values: raise ValueError( - "Invalid value for `trap_version` ({0}), must be one of {1}" - .format(trap_version, allowed_values) + "Invalid value for `version` ({0}), must be one of {1}" + .format(version, allowed_values) ) - self._trap_version = trap_version + self._version = version def to_dict(self): """ diff --git a/intersight/models/snmp_trap_ref.py b/intersight/models/snmp_trap_ref.py new file mode 100644 index 00000000..2f177c6c --- /dev/null +++ b/intersight/models/snmp_trap_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SnmpTrapRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SnmpTrapRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SnmpTrapRef. + + :return: The moid of this SnmpTrapRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SnmpTrapRef. + + :param moid: The moid of this SnmpTrapRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SnmpTrapRef. + + :return: The object_type of this SnmpTrapRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SnmpTrapRef. + + :param object_type: The object_type of this SnmpTrapRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SnmpTrapRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/snmp_user.py b/intersight/models/snmp_user.py index 4ac73056..8d9d0f53 100644 --- a/intersight/models/snmp_user.py +++ b/intersight/models/snmp_user.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,51 +33,61 @@ class SnmpUser(object): swagger_types = { 'auth_password': 'str', 'auth_type': 'str', + 'is_auth_password_set': 'bool', + 'is_privacy_password_set': 'bool', + 'name': 'str', 'privacy_password': 'str', 'privacy_type': 'str', - 'security_level': 'str', - 'snmp_user': 'str' + 'security_level': 'str' } attribute_map = { 'auth_password': 'AuthPassword', 'auth_type': 'AuthType', + 'is_auth_password_set': 'IsAuthPasswordSet', + 'is_privacy_password_set': 'IsPrivacyPasswordSet', + 'name': 'Name', 'privacy_password': 'PrivacyPassword', 'privacy_type': 'PrivacyType', - 'security_level': 'SecurityLevel', - 'snmp_user': 'SnmpUser' + 'security_level': 'SecurityLevel' } - def __init__(self, auth_password=None, auth_type='NA', privacy_password=None, privacy_type='NA', security_level='AuthPriv', snmp_user=None): + def __init__(self, auth_password=None, auth_type='NA', is_auth_password_set=None, is_privacy_password_set=None, name=None, privacy_password=None, privacy_type='NA', security_level='AuthPriv'): """ SnmpUser - a model defined in Swagger """ self._auth_password = None self._auth_type = None + self._is_auth_password_set = None + self._is_privacy_password_set = None + self._name = None self._privacy_password = None self._privacy_type = None self._security_level = None - self._snmp_user = None if auth_password is not None: self.auth_password = auth_password if auth_type is not None: self.auth_type = auth_type + if is_auth_password_set is not None: + self.is_auth_password_set = is_auth_password_set + if is_privacy_password_set is not None: + self.is_privacy_password_set = is_privacy_password_set + if name is not None: + self.name = name if privacy_password is not None: self.privacy_password = privacy_password if privacy_type is not None: self.privacy_type = privacy_type if security_level is not None: self.security_level = security_level - if snmp_user is not None: - self.snmp_user = snmp_user @property def auth_password(self): """ Gets the auth_password of this SnmpUser. - Authorization password for the user. + Authorization password for the user :return: The auth_password of this SnmpUser. :rtype: str @@ -88,7 +98,7 @@ def auth_password(self): def auth_password(self, auth_password): """ Sets the auth_password of this SnmpUser. - Authorization password for the user. + Authorization password for the user :param auth_password: The auth_password of this SnmpUser. :type: str @@ -100,7 +110,7 @@ def auth_password(self, auth_password): def auth_type(self): """ Gets the auth_type of this SnmpUser. - The protocol to be used for authenticating the user. Accepted values are MD5, SHA. + Authorization protocol for authenticating the user :return: The auth_type of this SnmpUser. :rtype: str @@ -111,7 +121,7 @@ def auth_type(self): def auth_type(self, auth_type): """ Sets the auth_type of this SnmpUser. - The protocol to be used for authenticating the user. Accepted values are MD5, SHA. + Authorization protocol for authenticating the user :param auth_type: The auth_type of this SnmpUser. :type: str @@ -125,11 +135,76 @@ def auth_type(self, auth_type): self._auth_type = auth_type + @property + def is_auth_password_set(self): + """ + Gets the is_auth_password_set of this SnmpUser. + + :return: The is_auth_password_set of this SnmpUser. + :rtype: bool + """ + return self._is_auth_password_set + + @is_auth_password_set.setter + def is_auth_password_set(self, is_auth_password_set): + """ + Sets the is_auth_password_set of this SnmpUser. + + :param is_auth_password_set: The is_auth_password_set of this SnmpUser. + :type: bool + """ + + self._is_auth_password_set = is_auth_password_set + + @property + def is_privacy_password_set(self): + """ + Gets the is_privacy_password_set of this SnmpUser. + + :return: The is_privacy_password_set of this SnmpUser. + :rtype: bool + """ + return self._is_privacy_password_set + + @is_privacy_password_set.setter + def is_privacy_password_set(self, is_privacy_password_set): + """ + Sets the is_privacy_password_set of this SnmpUser. + + :param is_privacy_password_set: The is_privacy_password_set of this SnmpUser. + :type: bool + """ + + self._is_privacy_password_set = is_privacy_password_set + + @property + def name(self): + """ + Gets the name of this SnmpUser. + SNMP username. Must have a minimum of 1 and and a maximum of 31 characters. + + :return: The name of this SnmpUser. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this SnmpUser. + SNMP username. Must have a minimum of 1 and and a maximum of 31 characters. + + :param name: The name of this SnmpUser. + :type: str + """ + + self._name = name + @property def privacy_password(self): """ Gets the privacy_password of this SnmpUser. - Privacy password for SNMP user. + Privacy password for the user :return: The privacy_password of this SnmpUser. :rtype: str @@ -140,7 +215,7 @@ def privacy_password(self): def privacy_password(self, privacy_password): """ Sets the privacy_password of this SnmpUser. - Privacy password for SNMP user. + Privacy password for the user :param privacy_password: The privacy_password of this SnmpUser. :type: str @@ -152,7 +227,7 @@ def privacy_password(self, privacy_password): def privacy_type(self): """ Gets the privacy_type of this SnmpUser. - The privacy protocol for the user. Accepted values are AES, DES. + Privacy protocol for the user :return: The privacy_type of this SnmpUser. :rtype: str @@ -163,7 +238,7 @@ def privacy_type(self): def privacy_type(self, privacy_type): """ Sets the privacy_type of this SnmpUser. - The privacy protocol for the user. Accepted values are AES, DES. + Privacy protocol for the user :param privacy_type: The privacy_type of this SnmpUser. :type: str @@ -181,7 +256,7 @@ def privacy_type(self, privacy_type): def security_level(self): """ Gets the security_level of this SnmpUser. - The security mechanism to be used for communication between agent and manager. Accepted values are NoAuthNoPriv, AuthNoPriv, AuthPriv. + Security mechanism used for communication between agent and manager :return: The security_level of this SnmpUser. :rtype: str @@ -192,7 +267,7 @@ def security_level(self): def security_level(self, security_level): """ Sets the security_level of this SnmpUser. - The security mechanism to be used for communication between agent and manager. Accepted values are NoAuthNoPriv, AuthNoPriv, AuthPriv. + Security mechanism used for communication between agent and manager :param security_level: The security_level of this SnmpUser. :type: str @@ -206,29 +281,6 @@ def security_level(self, security_level): self._security_level = security_level - @property - def snmp_user(self): - """ - Gets the snmp_user of this SnmpUser. - SNMP user name - - :return: The snmp_user of this SnmpUser. - :rtype: str - """ - return self._snmp_user - - @snmp_user.setter - def snmp_user(self, snmp_user): - """ - Sets the snmp_user of this SnmpUser. - SNMP user name - - :param snmp_user: The snmp_user of this SnmpUser. - :type: str - """ - - self._snmp_user = snmp_user - def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/snmp_user_ref.py b/intersight/models/snmp_user_ref.py new file mode 100644 index 00000000..16d10a9a --- /dev/null +++ b/intersight/models/snmp_user_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SnmpUserRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SnmpUserRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SnmpUserRef. + + :return: The moid of this SnmpUserRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SnmpUserRef. + + :param moid: The moid of this SnmpUserRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SnmpUserRef. + + :return: The object_type of this SnmpUserRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SnmpUserRef. + + :param object_type: The object_type of this SnmpUserRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SnmpUserRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/snmp_validation_task_ref.py b/intersight/models/snmp_validation_task_ref.py new file mode 100644 index 00000000..6973b2c8 --- /dev/null +++ b/intersight/models/snmp_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SnmpValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SnmpValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SnmpValidationTaskRef. + + :return: The moid of this SnmpValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SnmpValidationTaskRef. + + :param moid: The moid of this SnmpValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SnmpValidationTaskRef. + + :return: The object_type of this SnmpValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SnmpValidationTaskRef. + + :param object_type: The object_type of this SnmpValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SnmpValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sol_deploy_task_ref.py b/intersight/models/sol_deploy_task_ref.py new file mode 100644 index 00000000..358d2095 --- /dev/null +++ b/intersight/models/sol_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SolDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SolDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SolDeployTaskRef. + + :return: The moid of this SolDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SolDeployTaskRef. + + :param moid: The moid of this SolDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SolDeployTaskRef. + + :return: The object_type of this SolDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SolDeployTaskRef. + + :param object_type: The object_type of this SolDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SolDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sol_policy.py b/intersight/models/sol_policy.py index 1917f016..cd47170e 100644 --- a/intersight/models/sol_policy.py +++ b/intersight/models/sol_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,21 @@ class SolPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', 'baud_rate': 'int', 'com_port': 'str', 'enabled': 'bool', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', 'ssh_port': 'int' } @@ -158,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SolPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SolPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SolPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SolPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -385,7 +385,7 @@ def name(self, name): def baud_rate(self): """ Gets the baud_rate of this SolPolicy. - Baud Rate used for Serial Over LAN communication. Accepted values are 115200, 19200, 38400, 57600, 9600 + Baud Rate used for Serial Over LAN communication :return: The baud_rate of this SolPolicy. :rtype: int @@ -396,7 +396,7 @@ def baud_rate(self): def baud_rate(self, baud_rate): """ Sets the baud_rate of this SolPolicy. - Baud Rate used for Serial Over LAN communication. Accepted values are 115200, 19200, 38400, 57600, 9600 + Baud Rate used for Serial Over LAN communication :param baud_rate: The baud_rate of this SolPolicy. :type: int @@ -408,7 +408,7 @@ def baud_rate(self, baud_rate): def com_port(self): """ Gets the com_port of this SolPolicy. - Serial port through which the system routes Serial Over LAN communication. Accepted values com0 or com1. This field is available only on some Cisco UCS C-Series servers. If it is unavailable, the server uses COM port 0 by default. + Serial port through which the system routes Serial Over LAN communication. This field is available only on some Cisco UCS C-Series servers. If it is unavailable, the server uses COM port 0 by default. :return: The com_port of this SolPolicy. :rtype: str @@ -419,7 +419,7 @@ def com_port(self): def com_port(self, com_port): """ Sets the com_port of this SolPolicy. - Serial port through which the system routes Serial Over LAN communication. Accepted values com0 or com1. This field is available only on some Cisco UCS C-Series servers. If it is unavailable, the server uses COM port 0 by default. + Serial port through which the system routes Serial Over LAN communication. This field is available only on some Cisco UCS C-Series servers. If it is unavailable, the server uses COM port 0 by default. :param com_port: The com_port of this SolPolicy. :type: str @@ -463,7 +463,7 @@ def organization(self): Organization :return: The organization of this SolPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -474,7 +474,7 @@ def organization(self, organization): Organization :param organization: The organization of this SolPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -486,7 +486,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this SolPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -497,7 +497,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this SolPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles @@ -506,7 +506,7 @@ def profiles(self, profiles): def ssh_port(self): """ Gets the ssh_port of this SolPolicy. - SSH port used to access Serial Over LAN directly. Enables bypassing Cisco IMC shell to provide direct access to Serial Over LAN. Accepted values range from 1024 to 65535. The default value is 2400. + SSH port used to access Serial Over LAN directly. Enables bypassing Cisco IMC shell to provide direct access to Serial Over LAN. :return: The ssh_port of this SolPolicy. :rtype: int @@ -517,7 +517,7 @@ def ssh_port(self): def ssh_port(self, ssh_port): """ Sets the ssh_port of this SolPolicy. - SSH port used to access Serial Over LAN directly. Enables bypassing Cisco IMC shell to provide direct access to Serial Over LAN. Accepted values range from 1024 to 65535. The default value is 2400. + SSH port used to access Serial Over LAN directly. Enables bypassing Cisco IMC shell to provide direct access to Serial Over LAN. :param ssh_port: The ssh_port of this SolPolicy. :type: int diff --git a/intersight/models/sol_policy_list.py b/intersight/models/sol_policy_list.py index 4cf63166..2ae93cf2 100644 --- a/intersight/models/sol_policy_list.py +++ b/intersight/models/sol_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/sol_policy_ref.py b/intersight/models/sol_policy_ref.py new file mode 100644 index 00000000..024ac97a --- /dev/null +++ b/intersight/models/sol_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SolPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SolPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SolPolicyRef. + + :return: The moid of this SolPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SolPolicyRef. + + :param moid: The moid of this SolPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SolPolicyRef. + + :return: The object_type of this SolPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SolPolicyRef. + + :param object_type: The object_type of this SolPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SolPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sol_validation_task_ref.py b/intersight/models/sol_validation_task_ref.py new file mode 100644 index 00000000..6e1a8cee --- /dev/null +++ b/intersight/models/sol_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SolValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SolValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SolValidationTaskRef. + + :return: The moid of this SolValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SolValidationTaskRef. + + :param moid: The moid of this SolValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SolValidationTaskRef. + + :return: The object_type of this SolValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SolValidationTaskRef. + + :param object_type: The object_type of this SolValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SolValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ssh_deploy_task_ref.py b/intersight/models/ssh_deploy_task_ref.py new file mode 100644 index 00000000..50c75770 --- /dev/null +++ b/intersight/models/ssh_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SshDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SshDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SshDeployTaskRef. + + :return: The moid of this SshDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SshDeployTaskRef. + + :param moid: The moid of this SshDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SshDeployTaskRef. + + :return: The object_type of this SshDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SshDeployTaskRef. + + :param object_type: The object_type of this SshDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SshDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ssh_policy.py b/intersight/models/ssh_policy.py index 118ddc82..4e4b37a7 100644 --- a/intersight/models/ssh_policy.py +++ b/intersight/models/ssh_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class SshPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', 'enabled': 'bool', - 'organization': 'MoMoRef', + 'organization': 'IamAccountRef', 'port': 'int', - 'profiles': 'list[MoMoRef]', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', 'timeout': 'int' } @@ -153,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SshPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SshPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SshPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SshPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -406,7 +406,7 @@ def organization(self): Organization :return: The organization of this SshPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -417,7 +417,7 @@ def organization(self, organization): Organization :param organization: The organization of this SshPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -426,7 +426,7 @@ def organization(self, organization): def port(self): """ Gets the port of this SshPolicy. - Port used for secure shell access. The default value is 22. + Port used for secure shell access :return: The port of this SshPolicy. :rtype: int @@ -437,7 +437,7 @@ def port(self): def port(self, port): """ Sets the port of this SshPolicy. - Port used for secure shell access. The default value is 22. + Port used for secure shell access :param port: The port of this SshPolicy. :type: int @@ -449,10 +449,10 @@ def port(self, port): def profiles(self): """ Gets the profiles of this SshPolicy. - Relationship to the server profile. + Relationship to the server profile :return: The profiles of this SshPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -460,10 +460,10 @@ def profiles(self): def profiles(self, profiles): """ Sets the profiles of this SshPolicy. - Relationship to the server profile. + Relationship to the server profile :param profiles: The profiles of this SshPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles @@ -472,7 +472,7 @@ def profiles(self, profiles): def timeout(self): """ Gets the timeout of this SshPolicy. - The Number of seconds to wait before the system considers a SSH request to have timed out. Accepted values are between 60 and 10800. The default value is 1800 seconds. + Number of seconds to wait before the system considers a SSH request to have timed out :return: The timeout of this SshPolicy. :rtype: int @@ -483,7 +483,7 @@ def timeout(self): def timeout(self, timeout): """ Sets the timeout of this SshPolicy. - The Number of seconds to wait before the system considers a SSH request to have timed out. Accepted values are between 60 and 10800. The default value is 1800 seconds. + Number of seconds to wait before the system considers a SSH request to have timed out :param timeout: The timeout of this SshPolicy. :type: int diff --git a/intersight/models/ssh_policy_list.py b/intersight/models/ssh_policy_list.py index 3f4ac4a8..b6c2a8c8 100644 --- a/intersight/models/ssh_policy_list.py +++ b/intersight/models/ssh_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/ssh_policy_ref.py b/intersight/models/ssh_policy_ref.py new file mode 100644 index 00000000..fc7f5e8f --- /dev/null +++ b/intersight/models/ssh_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SshPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SshPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SshPolicyRef. + + :return: The moid of this SshPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SshPolicyRef. + + :param moid: The moid of this SshPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SshPolicyRef. + + :return: The object_type of this SshPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SshPolicyRef. + + :param object_type: The object_type of this SshPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SshPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ssh_validation_task_ref.py b/intersight/models/ssh_validation_task_ref.py new file mode 100644 index 00000000..42b241c1 --- /dev/null +++ b/intersight/models/ssh_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SshValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SshValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SshValidationTaskRef. + + :return: The moid of this SshValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SshValidationTaskRef. + + :param moid: The moid of this SshValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SshValidationTaskRef. + + :return: The object_type of this SshValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SshValidationTaskRef. + + :param object_type: The object_type of this SshValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SshValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_controller.py b/intersight/models/storage_controller.py index 00da009f..6ee5acd2 100644 --- a/intersight/models/storage_controller.py +++ b/intersight/models/storage_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class StorageController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,7 +47,7 @@ class StorageController(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'controller_flags': 'str', 'controller_id': 'str', 'controller_status': 'str', @@ -57,15 +57,16 @@ class StorageController(object): 'operability': 'str', 'pci_addr': 'str', 'pci_slot': 'str', - 'physical_disks': 'list[MoMoRef]', + 'physical_disk_extensions': 'list[StoragePhysicalDiskExtensionRef]', + 'physical_disks': 'list[StoragePhysicalDiskRef]', 'presence': 'str', 'raid_support': 'str', 'rebuild_rate': 'str', - 'registered_device': 'MoMoRef', - 'running_firmware': 'list[MoMoRef]', + 'registered_device': 'AssetDeviceRegistrationRef', + 'running_firmware': 'list[FirmwareRunningFirmwareRef]', 'self_encrypt_enabled': 'str', 'type': 'str', - 'virtual_drives': 'list[MoMoRef]' + 'virtual_drives': 'list[StorageVirtualDriveRef]' } attribute_map = { @@ -95,6 +96,7 @@ class StorageController(object): 'operability': 'Operability', 'pci_addr': 'PciAddr', 'pci_slot': 'PciSlot', + 'physical_disk_extensions': 'PhysicalDiskExtensions', 'physical_disks': 'PhysicalDisks', 'presence': 'Presence', 'raid_support': 'RaidSupport', @@ -106,7 +108,7 @@ class StorageController(object): 'virtual_drives': 'VirtualDrives' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_board=None, controller_flags=None, controller_id=None, controller_status=None, hw_revision=None, oob_interface_supported=None, oper_state=None, operability=None, pci_addr=None, pci_slot=None, physical_disks=None, presence=None, raid_support=None, rebuild_rate=None, registered_device=None, running_firmware=None, self_encrypt_enabled=None, type=None, virtual_drives=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_board=None, controller_flags=None, controller_id=None, controller_status=None, hw_revision=None, oob_interface_supported=None, oper_state=None, operability=None, pci_addr=None, pci_slot=None, physical_disk_extensions=None, physical_disks=None, presence=None, raid_support=None, rebuild_rate=None, registered_device=None, running_firmware=None, self_encrypt_enabled=None, type=None, virtual_drives=None): """ StorageController - a model defined in Swagger """ @@ -137,6 +139,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._operability = None self._pci_addr = None self._pci_slot = None + self._physical_disk_extensions = None self._physical_disks = None self._presence = None self._raid_support = None @@ -199,6 +202,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.pci_addr = pci_addr if pci_slot is not None: self.pci_slot = pci_slot + if physical_disk_extensions is not None: + self.physical_disk_extensions = physical_disk_extensions if physical_disks is not None: self.physical_disks = physical_disks if presence is not None: @@ -248,7 +253,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -259,7 +264,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -386,7 +391,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -397,7 +402,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -578,7 +583,7 @@ def compute_board(self): Gets the compute_board of this StorageController. :return: The compute_board of this StorageController. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -588,7 +593,7 @@ def compute_board(self, compute_board): Sets the compute_board of this StorageController. :param compute_board: The compute_board of this StorageController. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -782,13 +787,34 @@ def pci_slot(self, pci_slot): self._pci_slot = pci_slot + @property + def physical_disk_extensions(self): + """ + Gets the physical_disk_extensions of this StorageController. + + :return: The physical_disk_extensions of this StorageController. + :rtype: list[StoragePhysicalDiskExtensionRef] + """ + return self._physical_disk_extensions + + @physical_disk_extensions.setter + def physical_disk_extensions(self, physical_disk_extensions): + """ + Sets the physical_disk_extensions of this StorageController. + + :param physical_disk_extensions: The physical_disk_extensions of this StorageController. + :type: list[StoragePhysicalDiskExtensionRef] + """ + + self._physical_disk_extensions = physical_disk_extensions + @property def physical_disks(self): """ Gets the physical_disks of this StorageController. :return: The physical_disks of this StorageController. - :rtype: list[MoMoRef] + :rtype: list[StoragePhysicalDiskRef] """ return self._physical_disks @@ -798,7 +824,7 @@ def physical_disks(self, physical_disks): Sets the physical_disks of this StorageController. :param physical_disks: The physical_disks of this StorageController. - :type: list[MoMoRef] + :type: list[StoragePhysicalDiskRef] """ self._physical_disks = physical_disks @@ -872,7 +898,7 @@ def registered_device(self): Gets the registered_device of this StorageController. :return: The registered_device of this StorageController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -882,7 +908,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageController. :param registered_device: The registered_device of this StorageController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -893,7 +919,7 @@ def running_firmware(self): Gets the running_firmware of this StorageController. :return: The running_firmware of this StorageController. - :rtype: list[MoMoRef] + :rtype: list[FirmwareRunningFirmwareRef] """ return self._running_firmware @@ -903,7 +929,7 @@ def running_firmware(self, running_firmware): Sets the running_firmware of this StorageController. :param running_firmware: The running_firmware of this StorageController. - :type: list[MoMoRef] + :type: list[FirmwareRunningFirmwareRef] """ self._running_firmware = running_firmware @@ -956,7 +982,7 @@ def virtual_drives(self): Gets the virtual_drives of this StorageController. :return: The virtual_drives of this StorageController. - :rtype: list[MoMoRef] + :rtype: list[StorageVirtualDriveRef] """ return self._virtual_drives @@ -966,7 +992,7 @@ def virtual_drives(self, virtual_drives): Sets the virtual_drives of this StorageController. :param virtual_drives: The virtual_drives of this StorageController. - :type: list[MoMoRef] + :type: list[StorageVirtualDriveRef] """ self._virtual_drives = virtual_drives diff --git a/intersight/models/storage_controller_list.py b/intersight/models/storage_controller_list.py index 23488f7c..5eed7883 100644 --- a/intersight/models/storage_controller_list.py +++ b/intersight/models/storage_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_controller_ref.py b/intersight/models/storage_controller_ref.py new file mode 100644 index 00000000..dfce7bed --- /dev/null +++ b/intersight/models/storage_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageControllerRef. + + :return: The moid of this StorageControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageControllerRef. + + :param moid: The moid of this StorageControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageControllerRef. + + :return: The object_type of this StorageControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageControllerRef. + + :param object_type: The object_type of this StorageControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_deploy_task_ref.py b/intersight/models/storage_deploy_task_ref.py new file mode 100644 index 00000000..0ca29508 --- /dev/null +++ b/intersight/models/storage_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageDeployTaskRef. + + :return: The moid of this StorageDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageDeployTaskRef. + + :param moid: The moid of this StorageDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageDeployTaskRef. + + :return: The object_type of this StorageDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageDeployTaskRef. + + :param object_type: The object_type of this StorageDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_disk_group_policy.py b/intersight/models/storage_disk_group_policy.py index ecf09cd8..6e8f2ee6 100644 --- a/intersight/models/storage_disk_group_policy.py +++ b/intersight/models/storage_disk_group_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,21 @@ class StorageDiskGroupPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', 'dedicated_hot_spares': 'list[StorageLocalDisk]', - 'encryption_state': 'bool', - 'organization': 'MoMoRef', + 'organization': 'IamAccountRef', 'raid_level': 'str', 'span_groups': 'list[StorageSpanGroup]', + 'storage_policies': 'list[StorageStoragePolicyRef]', 'use_jbods': 'bool' } @@ -63,14 +63,14 @@ class StorageDiskGroupPolicy(object): 'description': 'Description', 'name': 'Name', 'dedicated_hot_spares': 'DedicatedHotSpares', - 'encryption_state': 'EncryptionState', 'organization': 'Organization', 'raid_level': 'RaidLevel', 'span_groups': 'SpanGroups', + 'storage_policies': 'StoragePolicies', 'use_jbods': 'UseJbods' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, dedicated_hot_spares=None, encryption_state=None, organization=None, raid_level='Raid1', span_groups=None, use_jbods=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, dedicated_hot_spares=None, organization=None, raid_level='Raid0', span_groups=None, storage_policies=None, use_jbods=None): """ StorageDiskGroupPolicy - a model defined in Swagger """ @@ -87,10 +87,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._description = None self._name = None self._dedicated_hot_spares = None - self._encryption_state = None self._organization = None self._raid_level = None self._span_groups = None + self._storage_policies = None self._use_jbods = None if account_moid is not None: @@ -117,14 +117,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.name = name if dedicated_hot_spares is not None: self.dedicated_hot_spares = dedicated_hot_spares - if encryption_state is not None: - self.encryption_state = encryption_state if organization is not None: self.organization = organization if raid_level is not None: self.raid_level = raid_level if span_groups is not None: self.span_groups = span_groups + if storage_policies is not None: + self.storage_policies = storage_policies if use_jbods is not None: self.use_jbods = use_jbods @@ -158,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageDiskGroupPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageDiskGroupPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageDiskGroupPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageDiskGroupPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -385,7 +385,7 @@ def name(self, name): def dedicated_hot_spares(self): """ Gets the dedicated_hot_spares of this StorageDiskGroupPolicy. - A collection of disks used as hot spares for this RAID group + A collection of disks used as hot spares for this RAID group :return: The dedicated_hot_spares of this StorageDiskGroupPolicy. :rtype: list[StorageLocalDisk] @@ -396,7 +396,7 @@ def dedicated_hot_spares(self): def dedicated_hot_spares(self, dedicated_hot_spares): """ Sets the dedicated_hot_spares of this StorageDiskGroupPolicy. - A collection of disks used as hot spares for this RAID group + A collection of disks used as hot spares for this RAID group :param dedicated_hot_spares: The dedicated_hot_spares of this StorageDiskGroupPolicy. :type: list[StorageLocalDisk] @@ -404,29 +404,6 @@ def dedicated_hot_spares(self, dedicated_hot_spares): self._dedicated_hot_spares = dedicated_hot_spares - @property - def encryption_state(self): - """ - Gets the encryption_state of this StorageDiskGroupPolicy. - Enables encryption of SEDs in the disk group if the encryption keys are configured in the Storage policy to which this disk group policy is associated. - - :return: The encryption_state of this StorageDiskGroupPolicy. - :rtype: bool - """ - return self._encryption_state - - @encryption_state.setter - def encryption_state(self, encryption_state): - """ - Sets the encryption_state of this StorageDiskGroupPolicy. - Enables encryption of SEDs in the disk group if the encryption keys are configured in the Storage policy to which this disk group policy is associated. - - :param encryption_state: The encryption_state of this StorageDiskGroupPolicy. - :type: bool - """ - - self._encryption_state = encryption_state - @property def organization(self): """ @@ -434,7 +411,7 @@ def organization(self): Organization :return: The organization of this StorageDiskGroupPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -445,7 +422,7 @@ def organization(self, organization): Organization :param organization: The organization of this StorageDiskGroupPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -454,7 +431,7 @@ def organization(self, organization): def raid_level(self): """ Gets the raid_level of this StorageDiskGroupPolicy. - The supported RAID level for the disk group. Accepted Values - Raid0, Raid1, Raid5, Raid6, Raid10, Raid50, Raid60. + The supported RAID level for the disk group :return: The raid_level of this StorageDiskGroupPolicy. :rtype: str @@ -465,12 +442,12 @@ def raid_level(self): def raid_level(self, raid_level): """ Sets the raid_level of this StorageDiskGroupPolicy. - The supported RAID level for the disk group. Accepted Values - Raid0, Raid1, Raid5, Raid6, Raid10, Raid50, Raid60. + The supported RAID level for the disk group :param raid_level: The raid_level of this StorageDiskGroupPolicy. :type: str """ - allowed_values = ["Raid1", "Raid0", "Raid5", "Raid6", "Raid10", "Raid50", "Raid60"] + allowed_values = ["Raid0", "Raid1", "Raid5", "Raid6", "Raid10", "Raid50", "Raid60"] if raid_level not in allowed_values: raise ValueError( "Invalid value for `raid_level` ({0}), must be one of {1}" @@ -483,7 +460,7 @@ def raid_level(self, raid_level): def span_groups(self): """ Gets the span_groups of this StorageDiskGroupPolicy. - Non spanned RAID levels like Raid0, Raid1, Raid5 and Raid6 expect a single group of disks whereas spanned RAID levels need multiple groups of disks with each group representing a span group. Non spanned RAID levels expect one span group and spanned RAID levels accept minimum 2 span groups and up to 8. + Non spanned RAID levels like Raid0, Raid1, Raid5 and Raid6 expect a single group of disks whereas spanned RAID levels need multiple groups of disks with each group representing a span group. Non spanned RAID levels expect one span group and spanned RAID levels accept minimum 2 span groups and up to 8 :return: The span_groups of this StorageDiskGroupPolicy. :rtype: list[StorageSpanGroup] @@ -494,7 +471,7 @@ def span_groups(self): def span_groups(self, span_groups): """ Sets the span_groups of this StorageDiskGroupPolicy. - Non spanned RAID levels like Raid0, Raid1, Raid5 and Raid6 expect a single group of disks whereas spanned RAID levels need multiple groups of disks with each group representing a span group. Non spanned RAID levels expect one span group and spanned RAID levels accept minimum 2 span groups and up to 8. + Non spanned RAID levels like Raid0, Raid1, Raid5 and Raid6 expect a single group of disks whereas spanned RAID levels need multiple groups of disks with each group representing a span group. Non spanned RAID levels expect one span group and spanned RAID levels accept minimum 2 span groups and up to 8 :param span_groups: The span_groups of this StorageDiskGroupPolicy. :type: list[StorageSpanGroup] @@ -502,11 +479,32 @@ def span_groups(self, span_groups): self._span_groups = span_groups + @property + def storage_policies(self): + """ + Gets the storage_policies of this StorageDiskGroupPolicy. + + :return: The storage_policies of this StorageDiskGroupPolicy. + :rtype: list[StorageStoragePolicyRef] + """ + return self._storage_policies + + @storage_policies.setter + def storage_policies(self, storage_policies): + """ + Sets the storage_policies of this StorageDiskGroupPolicy. + + :param storage_policies: The storage_policies of this StorageDiskGroupPolicy. + :type: list[StorageStoragePolicyRef] + """ + + self._storage_policies = storage_policies + @property def use_jbods(self): """ Gets the use_jbods of this StorageDiskGroupPolicy. - Disks selected in disk group which are in JBOD state will be set to Unconfigured Good state before being used in virtual drive creation. + Selected disks in the disk group in JBOD state will be set to Unconfigured Good state before they are used in virtual drive creation :return: The use_jbods of this StorageDiskGroupPolicy. :rtype: bool @@ -517,7 +515,7 @@ def use_jbods(self): def use_jbods(self, use_jbods): """ Sets the use_jbods of this StorageDiskGroupPolicy. - Disks selected in disk group which are in JBOD state will be set to Unconfigured Good state before being used in virtual drive creation. + Selected disks in the disk group in JBOD state will be set to Unconfigured Good state before they are used in virtual drive creation :param use_jbods: The use_jbods of this StorageDiskGroupPolicy. :type: bool diff --git a/intersight/models/storage_disk_group_policy_list.py b/intersight/models/storage_disk_group_policy_list.py index f066080d..3fc591a3 100644 --- a/intersight/models/storage_disk_group_policy_list.py +++ b/intersight/models/storage_disk_group_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_disk_group_policy_ref.py b/intersight/models/storage_disk_group_policy_ref.py new file mode 100644 index 00000000..a8b9cc6c --- /dev/null +++ b/intersight/models/storage_disk_group_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageDiskGroupPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageDiskGroupPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageDiskGroupPolicyRef. + + :return: The moid of this StorageDiskGroupPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageDiskGroupPolicyRef. + + :param moid: The moid of this StorageDiskGroupPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageDiskGroupPolicyRef. + + :return: The object_type of this StorageDiskGroupPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageDiskGroupPolicyRef. + + :param object_type: The object_type of this StorageDiskGroupPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageDiskGroupPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_enclosure.py b/intersight/models/storage_enclosure.py new file mode 100644 index 00000000..3a1c0ddd --- /dev/null +++ b/intersight/models/storage_enclosure.py @@ -0,0 +1,843 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageEnclosure(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'chassis_id': 'int', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', + 'description': 'str', + 'enclosure_id': 'int', + 'equipment_chassis': 'EquipmentChassisRef', + 'num_slots': 'int', + 'physical_disks': 'list[StoragePhysicalDiskRef]', + 'presence': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'server_id': 'int', + 'type': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'chassis_id': 'ChassisId', + 'compute_blade': 'ComputeBlade', + 'compute_rack_unit': 'ComputeRackUnit', + 'description': 'Description', + 'enclosure_id': 'EnclosureId', + 'equipment_chassis': 'EquipmentChassis', + 'num_slots': 'NumSlots', + 'physical_disks': 'PhysicalDisks', + 'presence': 'Presence', + 'registered_device': 'RegisteredDevice', + 'server_id': 'ServerId', + 'type': 'Type' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, chassis_id=None, compute_blade=None, compute_rack_unit=None, description=None, enclosure_id=None, equipment_chassis=None, num_slots=None, physical_disks=None, presence=None, registered_device=None, server_id=None, type=None): + """ + StorageEnclosure - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._chassis_id = None + self._compute_blade = None + self._compute_rack_unit = None + self._description = None + self._enclosure_id = None + self._equipment_chassis = None + self._num_slots = None + self._physical_disks = None + self._presence = None + self._registered_device = None + self._server_id = None + self._type = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if chassis_id is not None: + self.chassis_id = chassis_id + if compute_blade is not None: + self.compute_blade = compute_blade + if compute_rack_unit is not None: + self.compute_rack_unit = compute_rack_unit + if description is not None: + self.description = description + if enclosure_id is not None: + self.enclosure_id = enclosure_id + if equipment_chassis is not None: + self.equipment_chassis = equipment_chassis + if num_slots is not None: + self.num_slots = num_slots + if physical_disks is not None: + self.physical_disks = physical_disks + if presence is not None: + self.presence = presence + if registered_device is not None: + self.registered_device = registered_device + if server_id is not None: + self.server_id = server_id + if type is not None: + self.type = type + + @property + def account_moid(self): + """ + Gets the account_moid of this StorageEnclosure. + The Account ID for this managed object. + + :return: The account_moid of this StorageEnclosure. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StorageEnclosure. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StorageEnclosure. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StorageEnclosure. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StorageEnclosure. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StorageEnclosure. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StorageEnclosure. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StorageEnclosure. + The time when this managed object was created. + + :return: The create_time of this StorageEnclosure. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StorageEnclosure. + The time when this managed object was created. + + :param create_time: The create_time of this StorageEnclosure. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StorageEnclosure. + The time when this managed object was last modified. + + :return: The mod_time of this StorageEnclosure. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StorageEnclosure. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StorageEnclosure. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StorageEnclosure. + A unique identifier of this Managed Object instance. + + :return: The moid of this StorageEnclosure. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageEnclosure. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StorageEnclosure. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageEnclosure. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StorageEnclosure. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageEnclosure. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StorageEnclosure. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StorageEnclosure. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StorageEnclosure. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StorageEnclosure. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StorageEnclosure. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StorageEnclosure. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StorageEnclosure. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StorageEnclosure. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StorageEnclosure. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StorageEnclosure. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StorageEnclosure. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StorageEnclosure. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StorageEnclosure. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StorageEnclosure. + + :return: The device_mo_id of this StorageEnclosure. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StorageEnclosure. + + :param device_mo_id: The device_mo_id of this StorageEnclosure. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StorageEnclosure. + + :return: The dn of this StorageEnclosure. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StorageEnclosure. + + :param dn: The dn of this StorageEnclosure. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StorageEnclosure. + + :return: The rn of this StorageEnclosure. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StorageEnclosure. + + :param rn: The rn of this StorageEnclosure. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this StorageEnclosure. + + :return: The model of this StorageEnclosure. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this StorageEnclosure. + + :param model: The model of this StorageEnclosure. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this StorageEnclosure. + + :return: The revision of this StorageEnclosure. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this StorageEnclosure. + + :param revision: The revision of this StorageEnclosure. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this StorageEnclosure. + + :return: The serial of this StorageEnclosure. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this StorageEnclosure. + + :param serial: The serial of this StorageEnclosure. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this StorageEnclosure. + + :return: The vendor of this StorageEnclosure. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this StorageEnclosure. + + :param vendor: The vendor of this StorageEnclosure. + :type: str + """ + + self._vendor = vendor + + @property + def chassis_id(self): + """ + Gets the chassis_id of this StorageEnclosure. + + :return: The chassis_id of this StorageEnclosure. + :rtype: int + """ + return self._chassis_id + + @chassis_id.setter + def chassis_id(self, chassis_id): + """ + Sets the chassis_id of this StorageEnclosure. + + :param chassis_id: The chassis_id of this StorageEnclosure. + :type: int + """ + + self._chassis_id = chassis_id + + @property + def compute_blade(self): + """ + Gets the compute_blade of this StorageEnclosure. + + :return: The compute_blade of this StorageEnclosure. + :rtype: ComputeBladeRef + """ + return self._compute_blade + + @compute_blade.setter + def compute_blade(self, compute_blade): + """ + Sets the compute_blade of this StorageEnclosure. + + :param compute_blade: The compute_blade of this StorageEnclosure. + :type: ComputeBladeRef + """ + + self._compute_blade = compute_blade + + @property + def compute_rack_unit(self): + """ + Gets the compute_rack_unit of this StorageEnclosure. + + :return: The compute_rack_unit of this StorageEnclosure. + :rtype: ComputeRackUnitRef + """ + return self._compute_rack_unit + + @compute_rack_unit.setter + def compute_rack_unit(self, compute_rack_unit): + """ + Sets the compute_rack_unit of this StorageEnclosure. + + :param compute_rack_unit: The compute_rack_unit of this StorageEnclosure. + :type: ComputeRackUnitRef + """ + + self._compute_rack_unit = compute_rack_unit + + @property + def description(self): + """ + Gets the description of this StorageEnclosure. + + :return: The description of this StorageEnclosure. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this StorageEnclosure. + + :param description: The description of this StorageEnclosure. + :type: str + """ + + self._description = description + + @property + def enclosure_id(self): + """ + Gets the enclosure_id of this StorageEnclosure. + + :return: The enclosure_id of this StorageEnclosure. + :rtype: int + """ + return self._enclosure_id + + @enclosure_id.setter + def enclosure_id(self, enclosure_id): + """ + Sets the enclosure_id of this StorageEnclosure. + + :param enclosure_id: The enclosure_id of this StorageEnclosure. + :type: int + """ + + self._enclosure_id = enclosure_id + + @property + def equipment_chassis(self): + """ + Gets the equipment_chassis of this StorageEnclosure. + + :return: The equipment_chassis of this StorageEnclosure. + :rtype: EquipmentChassisRef + """ + return self._equipment_chassis + + @equipment_chassis.setter + def equipment_chassis(self, equipment_chassis): + """ + Sets the equipment_chassis of this StorageEnclosure. + + :param equipment_chassis: The equipment_chassis of this StorageEnclosure. + :type: EquipmentChassisRef + """ + + self._equipment_chassis = equipment_chassis + + @property + def num_slots(self): + """ + Gets the num_slots of this StorageEnclosure. + + :return: The num_slots of this StorageEnclosure. + :rtype: int + """ + return self._num_slots + + @num_slots.setter + def num_slots(self, num_slots): + """ + Sets the num_slots of this StorageEnclosure. + + :param num_slots: The num_slots of this StorageEnclosure. + :type: int + """ + + self._num_slots = num_slots + + @property + def physical_disks(self): + """ + Gets the physical_disks of this StorageEnclosure. + + :return: The physical_disks of this StorageEnclosure. + :rtype: list[StoragePhysicalDiskRef] + """ + return self._physical_disks + + @physical_disks.setter + def physical_disks(self, physical_disks): + """ + Sets the physical_disks of this StorageEnclosure. + + :param physical_disks: The physical_disks of this StorageEnclosure. + :type: list[StoragePhysicalDiskRef] + """ + + self._physical_disks = physical_disks + + @property + def presence(self): + """ + Gets the presence of this StorageEnclosure. + + :return: The presence of this StorageEnclosure. + :rtype: str + """ + return self._presence + + @presence.setter + def presence(self, presence): + """ + Sets the presence of this StorageEnclosure. + + :param presence: The presence of this StorageEnclosure. + :type: str + """ + + self._presence = presence + + @property + def registered_device(self): + """ + Gets the registered_device of this StorageEnclosure. + + :return: The registered_device of this StorageEnclosure. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StorageEnclosure. + + :param registered_device: The registered_device of this StorageEnclosure. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def server_id(self): + """ + Gets the server_id of this StorageEnclosure. + + :return: The server_id of this StorageEnclosure. + :rtype: int + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """ + Sets the server_id of this StorageEnclosure. + + :param server_id: The server_id of this StorageEnclosure. + :type: int + """ + + self._server_id = server_id + + @property + def type(self): + """ + Gets the type of this StorageEnclosure. + + :return: The type of this StorageEnclosure. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StorageEnclosure. + + :param type: The type of this StorageEnclosure. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageEnclosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_enclosure_list.py b/intersight/models/storage_enclosure_list.py new file mode 100644 index 00000000..9659008c --- /dev/null +++ b/intersight/models/storage_enclosure_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageEnclosureList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StorageEnclosure]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StorageEnclosureList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StorageEnclosureList. + The number of storageEnclosures matching your request in total for all pages. + + :return: The count of this StorageEnclosureList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StorageEnclosureList. + The number of storageEnclosures matching your request in total for all pages. + + :param count: The count of this StorageEnclosureList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StorageEnclosureList. + The array of storageEnclosures matching your request. + + :return: The results of this StorageEnclosureList. + :rtype: list[StorageEnclosure] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StorageEnclosureList. + The array of storageEnclosures matching your request. + + :param results: The results of this StorageEnclosureList. + :type: list[StorageEnclosure] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageEnclosureList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_enclosure_ref.py b/intersight/models/storage_enclosure_ref.py new file mode 100644 index 00000000..d02b7eb4 --- /dev/null +++ b/intersight/models/storage_enclosure_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageEnclosureRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageEnclosureRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageEnclosureRef. + + :return: The moid of this StorageEnclosureRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageEnclosureRef. + + :param moid: The moid of this StorageEnclosureRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageEnclosureRef. + + :return: The object_type of this StorageEnclosureRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageEnclosureRef. + + :param object_type: The object_type of this StorageEnclosureRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageEnclosureRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_controller.py b/intersight/models/storage_flex_flash_controller.py index 71f77aad..bf352e22 100644 --- a/intersight/models/storage_flex_flash_controller.py +++ b/intersight/models/storage_flex_flash_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class StorageFlexFlashController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,11 +47,13 @@ class StorageFlexFlashController(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'controller_state': 'str', 'ff_controller_id': 'str', - 'flex_flash_physical_drives': 'list[MoMoRef]', - 'registered_device': 'MoMoRef' + 'flex_flash_controller_props': 'list[StorageFlexFlashControllerPropsRef]', + 'flex_flash_physical_drives': 'list[StorageFlexFlashPhysicalDriveRef]', + 'flex_flash_virtual_drives': 'list[StorageFlexFlashVirtualDriveRef]', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -74,11 +76,13 @@ class StorageFlexFlashController(object): 'compute_board': 'ComputeBoard', 'controller_state': 'ControllerState', 'ff_controller_id': 'FfControllerId', + 'flex_flash_controller_props': 'FlexFlashControllerProps', 'flex_flash_physical_drives': 'FlexFlashPhysicalDrives', + 'flex_flash_virtual_drives': 'FlexFlashVirtualDrives', 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_board=None, controller_state=None, ff_controller_id=None, flex_flash_physical_drives=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_board=None, controller_state=None, ff_controller_id=None, flex_flash_controller_props=None, flex_flash_physical_drives=None, flex_flash_virtual_drives=None, registered_device=None): """ StorageFlexFlashController - a model defined in Swagger """ @@ -102,7 +106,9 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._compute_board = None self._controller_state = None self._ff_controller_id = None + self._flex_flash_controller_props = None self._flex_flash_physical_drives = None + self._flex_flash_virtual_drives = None self._registered_device = None if account_moid is not None: @@ -143,8 +149,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.controller_state = controller_state if ff_controller_id is not None: self.ff_controller_id = ff_controller_id + if flex_flash_controller_props is not None: + self.flex_flash_controller_props = flex_flash_controller_props if flex_flash_physical_drives is not None: self.flex_flash_physical_drives = flex_flash_physical_drives + if flex_flash_virtual_drives is not None: + self.flex_flash_virtual_drives = flex_flash_virtual_drives if registered_device is not None: self.registered_device = registered_device @@ -178,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageFlexFlashController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageFlexFlashController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageFlexFlashController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageFlexFlashController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -508,7 +518,7 @@ def compute_board(self): Gets the compute_board of this StorageFlexFlashController. :return: The compute_board of this StorageFlexFlashController. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -518,7 +528,7 @@ def compute_board(self, compute_board): Sets the compute_board of this StorageFlexFlashController. :param compute_board: The compute_board of this StorageFlexFlashController. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -565,13 +575,34 @@ def ff_controller_id(self, ff_controller_id): self._ff_controller_id = ff_controller_id + @property + def flex_flash_controller_props(self): + """ + Gets the flex_flash_controller_props of this StorageFlexFlashController. + + :return: The flex_flash_controller_props of this StorageFlexFlashController. + :rtype: list[StorageFlexFlashControllerPropsRef] + """ + return self._flex_flash_controller_props + + @flex_flash_controller_props.setter + def flex_flash_controller_props(self, flex_flash_controller_props): + """ + Sets the flex_flash_controller_props of this StorageFlexFlashController. + + :param flex_flash_controller_props: The flex_flash_controller_props of this StorageFlexFlashController. + :type: list[StorageFlexFlashControllerPropsRef] + """ + + self._flex_flash_controller_props = flex_flash_controller_props + @property def flex_flash_physical_drives(self): """ Gets the flex_flash_physical_drives of this StorageFlexFlashController. :return: The flex_flash_physical_drives of this StorageFlexFlashController. - :rtype: list[MoMoRef] + :rtype: list[StorageFlexFlashPhysicalDriveRef] """ return self._flex_flash_physical_drives @@ -581,18 +612,39 @@ def flex_flash_physical_drives(self, flex_flash_physical_drives): Sets the flex_flash_physical_drives of this StorageFlexFlashController. :param flex_flash_physical_drives: The flex_flash_physical_drives of this StorageFlexFlashController. - :type: list[MoMoRef] + :type: list[StorageFlexFlashPhysicalDriveRef] """ self._flex_flash_physical_drives = flex_flash_physical_drives + @property + def flex_flash_virtual_drives(self): + """ + Gets the flex_flash_virtual_drives of this StorageFlexFlashController. + + :return: The flex_flash_virtual_drives of this StorageFlexFlashController. + :rtype: list[StorageFlexFlashVirtualDriveRef] + """ + return self._flex_flash_virtual_drives + + @flex_flash_virtual_drives.setter + def flex_flash_virtual_drives(self, flex_flash_virtual_drives): + """ + Sets the flex_flash_virtual_drives of this StorageFlexFlashController. + + :param flex_flash_virtual_drives: The flex_flash_virtual_drives of this StorageFlexFlashController. + :type: list[StorageFlexFlashVirtualDriveRef] + """ + + self._flex_flash_virtual_drives = flex_flash_virtual_drives + @property def registered_device(self): """ Gets the registered_device of this StorageFlexFlashController. :return: The registered_device of this StorageFlexFlashController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -602,7 +654,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageFlexFlashController. :param registered_device: The registered_device of this StorageFlexFlashController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/storage_flex_flash_controller_list.py b/intersight/models/storage_flex_flash_controller_list.py index 79d01a44..d4bcee8c 100644 --- a/intersight/models/storage_flex_flash_controller_list.py +++ b/intersight/models/storage_flex_flash_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_flex_flash_controller_props.py b/intersight/models/storage_flex_flash_controller_props.py new file mode 100644 index 00000000..9472e567 --- /dev/null +++ b/intersight/models/storage_flex_flash_controller_props.py @@ -0,0 +1,869 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashControllerProps(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'cards_manageable': 'str', + 'configured_mode': 'str', + 'controller_name': 'str', + 'controller_status': 'str', + 'fw_version': 'str', + 'internal_state': 'str', + 'operating_mode': 'str', + 'physical_drive_count': 'str', + 'product_name': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'startup_fw_version': 'str', + 'storage_flex_flash_controller': 'StorageFlexFlashControllerRef', + 'virtual_drive_count': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'cards_manageable': 'CardsManageable', + 'configured_mode': 'ConfiguredMode', + 'controller_name': 'ControllerName', + 'controller_status': 'ControllerStatus', + 'fw_version': 'FwVersion', + 'internal_state': 'InternalState', + 'operating_mode': 'OperatingMode', + 'physical_drive_count': 'PhysicalDriveCount', + 'product_name': 'ProductName', + 'registered_device': 'RegisteredDevice', + 'startup_fw_version': 'StartupFwVersion', + 'storage_flex_flash_controller': 'StorageFlexFlashController', + 'virtual_drive_count': 'VirtualDriveCount' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, cards_manageable=None, configured_mode=None, controller_name=None, controller_status=None, fw_version=None, internal_state=None, operating_mode=None, physical_drive_count=None, product_name=None, registered_device=None, startup_fw_version=None, storage_flex_flash_controller=None, virtual_drive_count=None): + """ + StorageFlexFlashControllerProps - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._cards_manageable = None + self._configured_mode = None + self._controller_name = None + self._controller_status = None + self._fw_version = None + self._internal_state = None + self._operating_mode = None + self._physical_drive_count = None + self._product_name = None + self._registered_device = None + self._startup_fw_version = None + self._storage_flex_flash_controller = None + self._virtual_drive_count = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if cards_manageable is not None: + self.cards_manageable = cards_manageable + if configured_mode is not None: + self.configured_mode = configured_mode + if controller_name is not None: + self.controller_name = controller_name + if controller_status is not None: + self.controller_status = controller_status + if fw_version is not None: + self.fw_version = fw_version + if internal_state is not None: + self.internal_state = internal_state + if operating_mode is not None: + self.operating_mode = operating_mode + if physical_drive_count is not None: + self.physical_drive_count = physical_drive_count + if product_name is not None: + self.product_name = product_name + if registered_device is not None: + self.registered_device = registered_device + if startup_fw_version is not None: + self.startup_fw_version = startup_fw_version + if storage_flex_flash_controller is not None: + self.storage_flex_flash_controller = storage_flex_flash_controller + if virtual_drive_count is not None: + self.virtual_drive_count = virtual_drive_count + + @property + def account_moid(self): + """ + Gets the account_moid of this StorageFlexFlashControllerProps. + The Account ID for this managed object. + + :return: The account_moid of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StorageFlexFlashControllerProps. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StorageFlexFlashControllerProps. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StorageFlexFlashControllerProps. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StorageFlexFlashControllerProps. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StorageFlexFlashControllerProps. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StorageFlexFlashControllerProps. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StorageFlexFlashControllerProps. + The time when this managed object was created. + + :return: The create_time of this StorageFlexFlashControllerProps. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StorageFlexFlashControllerProps. + The time when this managed object was created. + + :param create_time: The create_time of this StorageFlexFlashControllerProps. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StorageFlexFlashControllerProps. + The time when this managed object was last modified. + + :return: The mod_time of this StorageFlexFlashControllerProps. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StorageFlexFlashControllerProps. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StorageFlexFlashControllerProps. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashControllerProps. + A unique identifier of this Managed Object instance. + + :return: The moid of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashControllerProps. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StorageFlexFlashControllerProps. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashControllerProps. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashControllerProps. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StorageFlexFlashControllerProps. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StorageFlexFlashControllerProps. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StorageFlexFlashControllerProps. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StorageFlexFlashControllerProps. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StorageFlexFlashControllerProps. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StorageFlexFlashControllerProps. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StorageFlexFlashControllerProps. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StorageFlexFlashControllerProps. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StorageFlexFlashControllerProps. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StorageFlexFlashControllerProps. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StorageFlexFlashControllerProps. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StorageFlexFlashControllerProps. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StorageFlexFlashControllerProps. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StorageFlexFlashControllerProps. + + :return: The device_mo_id of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StorageFlexFlashControllerProps. + + :param device_mo_id: The device_mo_id of this StorageFlexFlashControllerProps. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StorageFlexFlashControllerProps. + + :return: The dn of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StorageFlexFlashControllerProps. + + :param dn: The dn of this StorageFlexFlashControllerProps. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StorageFlexFlashControllerProps. + + :return: The rn of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StorageFlexFlashControllerProps. + + :param rn: The rn of this StorageFlexFlashControllerProps. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this StorageFlexFlashControllerProps. + + :return: The model of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this StorageFlexFlashControllerProps. + + :param model: The model of this StorageFlexFlashControllerProps. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this StorageFlexFlashControllerProps. + + :return: The revision of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this StorageFlexFlashControllerProps. + + :param revision: The revision of this StorageFlexFlashControllerProps. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this StorageFlexFlashControllerProps. + + :return: The serial of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this StorageFlexFlashControllerProps. + + :param serial: The serial of this StorageFlexFlashControllerProps. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this StorageFlexFlashControllerProps. + + :return: The vendor of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this StorageFlexFlashControllerProps. + + :param vendor: The vendor of this StorageFlexFlashControllerProps. + :type: str + """ + + self._vendor = vendor + + @property + def cards_manageable(self): + """ + Gets the cards_manageable of this StorageFlexFlashControllerProps. + + :return: The cards_manageable of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._cards_manageable + + @cards_manageable.setter + def cards_manageable(self, cards_manageable): + """ + Sets the cards_manageable of this StorageFlexFlashControllerProps. + + :param cards_manageable: The cards_manageable of this StorageFlexFlashControllerProps. + :type: str + """ + + self._cards_manageable = cards_manageable + + @property + def configured_mode(self): + """ + Gets the configured_mode of this StorageFlexFlashControllerProps. + + :return: The configured_mode of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._configured_mode + + @configured_mode.setter + def configured_mode(self, configured_mode): + """ + Sets the configured_mode of this StorageFlexFlashControllerProps. + + :param configured_mode: The configured_mode of this StorageFlexFlashControllerProps. + :type: str + """ + + self._configured_mode = configured_mode + + @property + def controller_name(self): + """ + Gets the controller_name of this StorageFlexFlashControllerProps. + + :return: The controller_name of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._controller_name + + @controller_name.setter + def controller_name(self, controller_name): + """ + Sets the controller_name of this StorageFlexFlashControllerProps. + + :param controller_name: The controller_name of this StorageFlexFlashControllerProps. + :type: str + """ + + self._controller_name = controller_name + + @property + def controller_status(self): + """ + Gets the controller_status of this StorageFlexFlashControllerProps. + + :return: The controller_status of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._controller_status + + @controller_status.setter + def controller_status(self, controller_status): + """ + Sets the controller_status of this StorageFlexFlashControllerProps. + + :param controller_status: The controller_status of this StorageFlexFlashControllerProps. + :type: str + """ + + self._controller_status = controller_status + + @property + def fw_version(self): + """ + Gets the fw_version of this StorageFlexFlashControllerProps. + + :return: The fw_version of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._fw_version + + @fw_version.setter + def fw_version(self, fw_version): + """ + Sets the fw_version of this StorageFlexFlashControllerProps. + + :param fw_version: The fw_version of this StorageFlexFlashControllerProps. + :type: str + """ + + self._fw_version = fw_version + + @property + def internal_state(self): + """ + Gets the internal_state of this StorageFlexFlashControllerProps. + + :return: The internal_state of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._internal_state + + @internal_state.setter + def internal_state(self, internal_state): + """ + Sets the internal_state of this StorageFlexFlashControllerProps. + + :param internal_state: The internal_state of this StorageFlexFlashControllerProps. + :type: str + """ + + self._internal_state = internal_state + + @property + def operating_mode(self): + """ + Gets the operating_mode of this StorageFlexFlashControllerProps. + + :return: The operating_mode of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._operating_mode + + @operating_mode.setter + def operating_mode(self, operating_mode): + """ + Sets the operating_mode of this StorageFlexFlashControllerProps. + + :param operating_mode: The operating_mode of this StorageFlexFlashControllerProps. + :type: str + """ + + self._operating_mode = operating_mode + + @property + def physical_drive_count(self): + """ + Gets the physical_drive_count of this StorageFlexFlashControllerProps. + + :return: The physical_drive_count of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._physical_drive_count + + @physical_drive_count.setter + def physical_drive_count(self, physical_drive_count): + """ + Sets the physical_drive_count of this StorageFlexFlashControllerProps. + + :param physical_drive_count: The physical_drive_count of this StorageFlexFlashControllerProps. + :type: str + """ + + self._physical_drive_count = physical_drive_count + + @property + def product_name(self): + """ + Gets the product_name of this StorageFlexFlashControllerProps. + + :return: The product_name of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """ + Sets the product_name of this StorageFlexFlashControllerProps. + + :param product_name: The product_name of this StorageFlexFlashControllerProps. + :type: str + """ + + self._product_name = product_name + + @property + def registered_device(self): + """ + Gets the registered_device of this StorageFlexFlashControllerProps. + + :return: The registered_device of this StorageFlexFlashControllerProps. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StorageFlexFlashControllerProps. + + :param registered_device: The registered_device of this StorageFlexFlashControllerProps. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def startup_fw_version(self): + """ + Gets the startup_fw_version of this StorageFlexFlashControllerProps. + + :return: The startup_fw_version of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._startup_fw_version + + @startup_fw_version.setter + def startup_fw_version(self, startup_fw_version): + """ + Sets the startup_fw_version of this StorageFlexFlashControllerProps. + + :param startup_fw_version: The startup_fw_version of this StorageFlexFlashControllerProps. + :type: str + """ + + self._startup_fw_version = startup_fw_version + + @property + def storage_flex_flash_controller(self): + """ + Gets the storage_flex_flash_controller of this StorageFlexFlashControllerProps. + + :return: The storage_flex_flash_controller of this StorageFlexFlashControllerProps. + :rtype: StorageFlexFlashControllerRef + """ + return self._storage_flex_flash_controller + + @storage_flex_flash_controller.setter + def storage_flex_flash_controller(self, storage_flex_flash_controller): + """ + Sets the storage_flex_flash_controller of this StorageFlexFlashControllerProps. + + :param storage_flex_flash_controller: The storage_flex_flash_controller of this StorageFlexFlashControllerProps. + :type: StorageFlexFlashControllerRef + """ + + self._storage_flex_flash_controller = storage_flex_flash_controller + + @property + def virtual_drive_count(self): + """ + Gets the virtual_drive_count of this StorageFlexFlashControllerProps. + + :return: The virtual_drive_count of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._virtual_drive_count + + @virtual_drive_count.setter + def virtual_drive_count(self, virtual_drive_count): + """ + Sets the virtual_drive_count of this StorageFlexFlashControllerProps. + + :param virtual_drive_count: The virtual_drive_count of this StorageFlexFlashControllerProps. + :type: str + """ + + self._virtual_drive_count = virtual_drive_count + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashControllerProps): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_controller_props_list.py b/intersight/models/storage_flex_flash_controller_props_list.py new file mode 100644 index 00000000..a221831a --- /dev/null +++ b/intersight/models/storage_flex_flash_controller_props_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashControllerPropsList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StorageFlexFlashControllerProps]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StorageFlexFlashControllerPropsList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StorageFlexFlashControllerPropsList. + The number of storageFlexFlashControllerProps matching your request in total for all pages. + + :return: The count of this StorageFlexFlashControllerPropsList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StorageFlexFlashControllerPropsList. + The number of storageFlexFlashControllerProps matching your request in total for all pages. + + :param count: The count of this StorageFlexFlashControllerPropsList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StorageFlexFlashControllerPropsList. + The array of storageFlexFlashControllerProps matching your request. + + :return: The results of this StorageFlexFlashControllerPropsList. + :rtype: list[StorageFlexFlashControllerProps] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StorageFlexFlashControllerPropsList. + The array of storageFlexFlashControllerProps matching your request. + + :param results: The results of this StorageFlexFlashControllerPropsList. + :type: list[StorageFlexFlashControllerProps] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashControllerPropsList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_controller_props_ref.py b/intersight/models/storage_flex_flash_controller_props_ref.py new file mode 100644 index 00000000..41dd0bf6 --- /dev/null +++ b/intersight/models/storage_flex_flash_controller_props_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashControllerPropsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexFlashControllerPropsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashControllerPropsRef. + + :return: The moid of this StorageFlexFlashControllerPropsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashControllerPropsRef. + + :param moid: The moid of this StorageFlexFlashControllerPropsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashControllerPropsRef. + + :return: The object_type of this StorageFlexFlashControllerPropsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashControllerPropsRef. + + :param object_type: The object_type of this StorageFlexFlashControllerPropsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashControllerPropsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_controller_ref.py b/intersight/models/storage_flex_flash_controller_ref.py new file mode 100644 index 00000000..c4334bde --- /dev/null +++ b/intersight/models/storage_flex_flash_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexFlashControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashControllerRef. + + :return: The moid of this StorageFlexFlashControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashControllerRef. + + :param moid: The moid of this StorageFlexFlashControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashControllerRef. + + :return: The object_type of this StorageFlexFlashControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashControllerRef. + + :param object_type: The object_type of this StorageFlexFlashControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_physical_drive.py b/intersight/models/storage_flex_flash_physical_drive.py index ee91cf98..c7f7b36b 100644 --- a/intersight/models/storage_flex_flash_physical_drive.py +++ b/intersight/models/storage_flex_flash_physical_drive.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class StorageFlexFlashPhysicalDrive(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -51,8 +51,8 @@ class StorageFlexFlashPhysicalDrive(object): 'card_type': 'str', 'oem_id': 'str', 'pd_status': 'str', - 'registered_device': 'MoMoRef', - 'storage_flex_flash_controller': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef', + 'storage_flex_flash_controller': 'StorageFlexFlashControllerRef' } attribute_map = { @@ -183,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageFlexFlashPhysicalDrive. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageFlexFlashPhysicalDrive. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageFlexFlashPhysicalDrive. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageFlexFlashPhysicalDrive. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -597,7 +597,7 @@ def registered_device(self): Gets the registered_device of this StorageFlexFlashPhysicalDrive. :return: The registered_device of this StorageFlexFlashPhysicalDrive. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -607,7 +607,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageFlexFlashPhysicalDrive. :param registered_device: The registered_device of this StorageFlexFlashPhysicalDrive. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -618,7 +618,7 @@ def storage_flex_flash_controller(self): Gets the storage_flex_flash_controller of this StorageFlexFlashPhysicalDrive. :return: The storage_flex_flash_controller of this StorageFlexFlashPhysicalDrive. - :rtype: MoMoRef + :rtype: StorageFlexFlashControllerRef """ return self._storage_flex_flash_controller @@ -628,7 +628,7 @@ def storage_flex_flash_controller(self, storage_flex_flash_controller): Sets the storage_flex_flash_controller of this StorageFlexFlashPhysicalDrive. :param storage_flex_flash_controller: The storage_flex_flash_controller of this StorageFlexFlashPhysicalDrive. - :type: MoMoRef + :type: StorageFlexFlashControllerRef """ self._storage_flex_flash_controller = storage_flex_flash_controller diff --git a/intersight/models/storage_flex_flash_physical_drive_list.py b/intersight/models/storage_flex_flash_physical_drive_list.py index 1436c8fb..f9d14066 100644 --- a/intersight/models/storage_flex_flash_physical_drive_list.py +++ b/intersight/models/storage_flex_flash_physical_drive_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_flex_flash_physical_drive_ref.py b/intersight/models/storage_flex_flash_physical_drive_ref.py new file mode 100644 index 00000000..954eb83e --- /dev/null +++ b/intersight/models/storage_flex_flash_physical_drive_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashPhysicalDriveRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexFlashPhysicalDriveRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashPhysicalDriveRef. + + :return: The moid of this StorageFlexFlashPhysicalDriveRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashPhysicalDriveRef. + + :param moid: The moid of this StorageFlexFlashPhysicalDriveRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashPhysicalDriveRef. + + :return: The object_type of this StorageFlexFlashPhysicalDriveRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashPhysicalDriveRef. + + :param object_type: The object_type of this StorageFlexFlashPhysicalDriveRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashPhysicalDriveRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_virtual_drive.py b/intersight/models/storage_flex_flash_virtual_drive.py new file mode 100644 index 00000000..8282fd2e --- /dev/null +++ b/intersight/models/storage_flex_flash_virtual_drive.py @@ -0,0 +1,739 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashVirtualDrive(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'drive_scope': 'str', + 'drive_status': 'str', + 'partition_id': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'resident_image': 'str', + 'size': 'str', + 'storage_flex_flash_controller': 'StorageFlexFlashControllerRef', + 'virtual_drive': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'drive_scope': 'DriveScope', + 'drive_status': 'DriveStatus', + 'partition_id': 'PartitionId', + 'registered_device': 'RegisteredDevice', + 'resident_image': 'ResidentImage', + 'size': 'Size', + 'storage_flex_flash_controller': 'StorageFlexFlashController', + 'virtual_drive': 'VirtualDrive' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, drive_scope=None, drive_status=None, partition_id=None, registered_device=None, resident_image=None, size=None, storage_flex_flash_controller=None, virtual_drive=None): + """ + StorageFlexFlashVirtualDrive - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._drive_scope = None + self._drive_status = None + self._partition_id = None + self._registered_device = None + self._resident_image = None + self._size = None + self._storage_flex_flash_controller = None + self._virtual_drive = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if drive_scope is not None: + self.drive_scope = drive_scope + if drive_status is not None: + self.drive_status = drive_status + if partition_id is not None: + self.partition_id = partition_id + if registered_device is not None: + self.registered_device = registered_device + if resident_image is not None: + self.resident_image = resident_image + if size is not None: + self.size = size + if storage_flex_flash_controller is not None: + self.storage_flex_flash_controller = storage_flex_flash_controller + if virtual_drive is not None: + self.virtual_drive = virtual_drive + + @property + def account_moid(self): + """ + Gets the account_moid of this StorageFlexFlashVirtualDrive. + The Account ID for this managed object. + + :return: The account_moid of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StorageFlexFlashVirtualDrive. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StorageFlexFlashVirtualDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StorageFlexFlashVirtualDrive. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StorageFlexFlashVirtualDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StorageFlexFlashVirtualDrive. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StorageFlexFlashVirtualDrive. + The time when this managed object was created. + + :return: The create_time of this StorageFlexFlashVirtualDrive. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StorageFlexFlashVirtualDrive. + The time when this managed object was created. + + :param create_time: The create_time of this StorageFlexFlashVirtualDrive. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StorageFlexFlashVirtualDrive. + The time when this managed object was last modified. + + :return: The mod_time of this StorageFlexFlashVirtualDrive. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StorageFlexFlashVirtualDrive. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StorageFlexFlashVirtualDrive. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashVirtualDrive. + A unique identifier of this Managed Object instance. + + :return: The moid of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashVirtualDrive. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashVirtualDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashVirtualDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StorageFlexFlashVirtualDrive. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StorageFlexFlashVirtualDrive. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StorageFlexFlashVirtualDrive. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StorageFlexFlashVirtualDrive. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StorageFlexFlashVirtualDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StorageFlexFlashVirtualDrive. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StorageFlexFlashVirtualDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StorageFlexFlashVirtualDrive. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StorageFlexFlashVirtualDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StorageFlexFlashVirtualDrive. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StorageFlexFlashVirtualDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StorageFlexFlashVirtualDrive. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StorageFlexFlashVirtualDrive. + + :return: The device_mo_id of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StorageFlexFlashVirtualDrive. + + :param device_mo_id: The device_mo_id of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StorageFlexFlashVirtualDrive. + + :return: The dn of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StorageFlexFlashVirtualDrive. + + :param dn: The dn of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StorageFlexFlashVirtualDrive. + + :return: The rn of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StorageFlexFlashVirtualDrive. + + :param rn: The rn of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this StorageFlexFlashVirtualDrive. + + :return: The model of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this StorageFlexFlashVirtualDrive. + + :param model: The model of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this StorageFlexFlashVirtualDrive. + + :return: The revision of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this StorageFlexFlashVirtualDrive. + + :param revision: The revision of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this StorageFlexFlashVirtualDrive. + + :return: The serial of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this StorageFlexFlashVirtualDrive. + + :param serial: The serial of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this StorageFlexFlashVirtualDrive. + + :return: The vendor of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this StorageFlexFlashVirtualDrive. + + :param vendor: The vendor of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._vendor = vendor + + @property + def drive_scope(self): + """ + Gets the drive_scope of this StorageFlexFlashVirtualDrive. + + :return: The drive_scope of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._drive_scope + + @drive_scope.setter + def drive_scope(self, drive_scope): + """ + Sets the drive_scope of this StorageFlexFlashVirtualDrive. + + :param drive_scope: The drive_scope of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._drive_scope = drive_scope + + @property + def drive_status(self): + """ + Gets the drive_status of this StorageFlexFlashVirtualDrive. + + :return: The drive_status of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._drive_status + + @drive_status.setter + def drive_status(self, drive_status): + """ + Sets the drive_status of this StorageFlexFlashVirtualDrive. + + :param drive_status: The drive_status of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._drive_status = drive_status + + @property + def partition_id(self): + """ + Gets the partition_id of this StorageFlexFlashVirtualDrive. + + :return: The partition_id of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._partition_id + + @partition_id.setter + def partition_id(self, partition_id): + """ + Sets the partition_id of this StorageFlexFlashVirtualDrive. + + :param partition_id: The partition_id of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._partition_id = partition_id + + @property + def registered_device(self): + """ + Gets the registered_device of this StorageFlexFlashVirtualDrive. + + :return: The registered_device of this StorageFlexFlashVirtualDrive. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StorageFlexFlashVirtualDrive. + + :param registered_device: The registered_device of this StorageFlexFlashVirtualDrive. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def resident_image(self): + """ + Gets the resident_image of this StorageFlexFlashVirtualDrive. + + :return: The resident_image of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._resident_image + + @resident_image.setter + def resident_image(self, resident_image): + """ + Sets the resident_image of this StorageFlexFlashVirtualDrive. + + :param resident_image: The resident_image of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._resident_image = resident_image + + @property + def size(self): + """ + Gets the size of this StorageFlexFlashVirtualDrive. + + :return: The size of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._size + + @size.setter + def size(self, size): + """ + Sets the size of this StorageFlexFlashVirtualDrive. + + :param size: The size of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._size = size + + @property + def storage_flex_flash_controller(self): + """ + Gets the storage_flex_flash_controller of this StorageFlexFlashVirtualDrive. + + :return: The storage_flex_flash_controller of this StorageFlexFlashVirtualDrive. + :rtype: StorageFlexFlashControllerRef + """ + return self._storage_flex_flash_controller + + @storage_flex_flash_controller.setter + def storage_flex_flash_controller(self, storage_flex_flash_controller): + """ + Sets the storage_flex_flash_controller of this StorageFlexFlashVirtualDrive. + + :param storage_flex_flash_controller: The storage_flex_flash_controller of this StorageFlexFlashVirtualDrive. + :type: StorageFlexFlashControllerRef + """ + + self._storage_flex_flash_controller = storage_flex_flash_controller + + @property + def virtual_drive(self): + """ + Gets the virtual_drive of this StorageFlexFlashVirtualDrive. + + :return: The virtual_drive of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._virtual_drive + + @virtual_drive.setter + def virtual_drive(self, virtual_drive): + """ + Sets the virtual_drive of this StorageFlexFlashVirtualDrive. + + :param virtual_drive: The virtual_drive of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._virtual_drive = virtual_drive + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashVirtualDrive): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_virtual_drive_list.py b/intersight/models/storage_flex_flash_virtual_drive_list.py new file mode 100644 index 00000000..b09ad3c4 --- /dev/null +++ b/intersight/models/storage_flex_flash_virtual_drive_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashVirtualDriveList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StorageFlexFlashVirtualDrive]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StorageFlexFlashVirtualDriveList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StorageFlexFlashVirtualDriveList. + The number of storageFlexFlashVirtualDrives matching your request in total for all pages. + + :return: The count of this StorageFlexFlashVirtualDriveList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StorageFlexFlashVirtualDriveList. + The number of storageFlexFlashVirtualDrives matching your request in total for all pages. + + :param count: The count of this StorageFlexFlashVirtualDriveList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StorageFlexFlashVirtualDriveList. + The array of storageFlexFlashVirtualDrives matching your request. + + :return: The results of this StorageFlexFlashVirtualDriveList. + :rtype: list[StorageFlexFlashVirtualDrive] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StorageFlexFlashVirtualDriveList. + The array of storageFlexFlashVirtualDrives matching your request. + + :param results: The results of this StorageFlexFlashVirtualDriveList. + :type: list[StorageFlexFlashVirtualDrive] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashVirtualDriveList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_virtual_drive_ref.py b/intersight/models/storage_flex_flash_virtual_drive_ref.py new file mode 100644 index 00000000..0c22a2fe --- /dev/null +++ b/intersight/models/storage_flex_flash_virtual_drive_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashVirtualDriveRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexFlashVirtualDriveRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashVirtualDriveRef. + + :return: The moid of this StorageFlexFlashVirtualDriveRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashVirtualDriveRef. + + :param moid: The moid of this StorageFlexFlashVirtualDriveRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashVirtualDriveRef. + + :return: The object_type of this StorageFlexFlashVirtualDriveRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashVirtualDriveRef. + + :param object_type: The object_type of this StorageFlexFlashVirtualDriveRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashVirtualDriveRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_controller.py b/intersight/models/storage_flex_util_controller.py index bb0f29b1..305d0448 100644 --- a/intersight/models/storage_flex_util_controller.py +++ b/intersight/models/storage_flex_util_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,25 @@ class StorageFlexUtilController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'controller_name': 'str', 'controller_status': 'str', 'ff_controller_id': 'str', + 'flex_util_physical_drives': 'list[StorageFlexUtilPhysicalDriveRef]', + 'flex_util_virtual_drives': 'list[StorageFlexUtilVirtualDriveRef]', 'internal_state': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -68,11 +70,13 @@ class StorageFlexUtilController(object): 'controller_name': 'ControllerName', 'controller_status': 'ControllerStatus', 'ff_controller_id': 'FfControllerId', + 'flex_util_physical_drives': 'FlexUtilPhysicalDrives', + 'flex_util_virtual_drives': 'FlexUtilVirtualDrives', 'internal_state': 'InternalState', 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, compute_board=None, controller_name=None, controller_status=None, ff_controller_id=None, internal_state=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, compute_board=None, controller_name=None, controller_status=None, ff_controller_id=None, flex_util_physical_drives=None, flex_util_virtual_drives=None, internal_state=None, registered_device=None): """ StorageFlexUtilController - a model defined in Swagger """ @@ -93,6 +97,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._controller_name = None self._controller_status = None self._ff_controller_id = None + self._flex_util_physical_drives = None + self._flex_util_virtual_drives = None self._internal_state = None self._registered_device = None @@ -128,6 +134,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.controller_status = controller_status if ff_controller_id is not None: self.ff_controller_id = ff_controller_id + if flex_util_physical_drives is not None: + self.flex_util_physical_drives = flex_util_physical_drives + if flex_util_virtual_drives is not None: + self.flex_util_virtual_drives = flex_util_virtual_drives if internal_state is not None: self.internal_state = internal_state if registered_device is not None: @@ -163,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageFlexUtilController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageFlexUtilController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageFlexUtilController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageFlexUtilController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -409,7 +419,7 @@ def compute_board(self): Gets the compute_board of this StorageFlexUtilController. :return: The compute_board of this StorageFlexUtilController. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -419,7 +429,7 @@ def compute_board(self, compute_board): Sets the compute_board of this StorageFlexUtilController. :param compute_board: The compute_board of this StorageFlexUtilController. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -487,6 +497,48 @@ def ff_controller_id(self, ff_controller_id): self._ff_controller_id = ff_controller_id + @property + def flex_util_physical_drives(self): + """ + Gets the flex_util_physical_drives of this StorageFlexUtilController. + + :return: The flex_util_physical_drives of this StorageFlexUtilController. + :rtype: list[StorageFlexUtilPhysicalDriveRef] + """ + return self._flex_util_physical_drives + + @flex_util_physical_drives.setter + def flex_util_physical_drives(self, flex_util_physical_drives): + """ + Sets the flex_util_physical_drives of this StorageFlexUtilController. + + :param flex_util_physical_drives: The flex_util_physical_drives of this StorageFlexUtilController. + :type: list[StorageFlexUtilPhysicalDriveRef] + """ + + self._flex_util_physical_drives = flex_util_physical_drives + + @property + def flex_util_virtual_drives(self): + """ + Gets the flex_util_virtual_drives of this StorageFlexUtilController. + + :return: The flex_util_virtual_drives of this StorageFlexUtilController. + :rtype: list[StorageFlexUtilVirtualDriveRef] + """ + return self._flex_util_virtual_drives + + @flex_util_virtual_drives.setter + def flex_util_virtual_drives(self, flex_util_virtual_drives): + """ + Sets the flex_util_virtual_drives of this StorageFlexUtilController. + + :param flex_util_virtual_drives: The flex_util_virtual_drives of this StorageFlexUtilController. + :type: list[StorageFlexUtilVirtualDriveRef] + """ + + self._flex_util_virtual_drives = flex_util_virtual_drives + @property def internal_state(self): """ @@ -514,7 +566,7 @@ def registered_device(self): Gets the registered_device of this StorageFlexUtilController. :return: The registered_device of this StorageFlexUtilController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -524,7 +576,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageFlexUtilController. :param registered_device: The registered_device of this StorageFlexUtilController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/storage_flex_util_controller_list.py b/intersight/models/storage_flex_util_controller_list.py index 2e432d1f..08edb2cf 100644 --- a/intersight/models/storage_flex_util_controller_list.py +++ b/intersight/models/storage_flex_util_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_flex_util_controller_ref.py b/intersight/models/storage_flex_util_controller_ref.py new file mode 100644 index 00000000..8ebab765 --- /dev/null +++ b/intersight/models/storage_flex_util_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexUtilControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexUtilControllerRef. + + :return: The moid of this StorageFlexUtilControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexUtilControllerRef. + + :param moid: The moid of this StorageFlexUtilControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexUtilControllerRef. + + :return: The object_type of this StorageFlexUtilControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexUtilControllerRef. + + :param object_type: The object_type of this StorageFlexUtilControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_physical_drive.py b/intersight/models/storage_flex_util_physical_drive.py new file mode 100644 index 00000000..31062535 --- /dev/null +++ b/intersight/models/storage_flex_util_physical_drive.py @@ -0,0 +1,1051 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilPhysicalDrive(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'block_size': 'str', + 'capacity': 'str', + 'controller': 'str', + 'drives_enabled': 'str', + 'health': 'str', + 'manufacturer_date': 'str', + 'manufacturer_id': 'str', + 'oem_id': 'str', + 'partition_count': 'str', + 'pd_status': 'str', + 'physical_drive': 'str', + 'product_name': 'str', + 'product_revision': 'str', + 'read_error_count': 'str', + 'read_error_threshold': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'storage_flex_util_controller': 'StorageFlexUtilControllerRef', + 'write_enabled': 'str', + 'write_error_count': 'str', + 'write_error_threshold': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'block_size': 'BlockSize', + 'capacity': 'Capacity', + 'controller': 'Controller', + 'drives_enabled': 'DrivesEnabled', + 'health': 'Health', + 'manufacturer_date': 'ManufacturerDate', + 'manufacturer_id': 'ManufacturerId', + 'oem_id': 'OemId', + 'partition_count': 'PartitionCount', + 'pd_status': 'PdStatus', + 'physical_drive': 'PhysicalDrive', + 'product_name': 'ProductName', + 'product_revision': 'ProductRevision', + 'read_error_count': 'ReadErrorCount', + 'read_error_threshold': 'ReadErrorThreshold', + 'registered_device': 'RegisteredDevice', + 'storage_flex_util_controller': 'StorageFlexUtilController', + 'write_enabled': 'WriteEnabled', + 'write_error_count': 'WriteErrorCount', + 'write_error_threshold': 'WriteErrorThreshold' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, block_size=None, capacity=None, controller=None, drives_enabled=None, health=None, manufacturer_date=None, manufacturer_id=None, oem_id=None, partition_count=None, pd_status=None, physical_drive=None, product_name=None, product_revision=None, read_error_count=None, read_error_threshold=None, registered_device=None, storage_flex_util_controller=None, write_enabled=None, write_error_count=None, write_error_threshold=None): + """ + StorageFlexUtilPhysicalDrive - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._block_size = None + self._capacity = None + self._controller = None + self._drives_enabled = None + self._health = None + self._manufacturer_date = None + self._manufacturer_id = None + self._oem_id = None + self._partition_count = None + self._pd_status = None + self._physical_drive = None + self._product_name = None + self._product_revision = None + self._read_error_count = None + self._read_error_threshold = None + self._registered_device = None + self._storage_flex_util_controller = None + self._write_enabled = None + self._write_error_count = None + self._write_error_threshold = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if block_size is not None: + self.block_size = block_size + if capacity is not None: + self.capacity = capacity + if controller is not None: + self.controller = controller + if drives_enabled is not None: + self.drives_enabled = drives_enabled + if health is not None: + self.health = health + if manufacturer_date is not None: + self.manufacturer_date = manufacturer_date + if manufacturer_id is not None: + self.manufacturer_id = manufacturer_id + if oem_id is not None: + self.oem_id = oem_id + if partition_count is not None: + self.partition_count = partition_count + if pd_status is not None: + self.pd_status = pd_status + if physical_drive is not None: + self.physical_drive = physical_drive + if product_name is not None: + self.product_name = product_name + if product_revision is not None: + self.product_revision = product_revision + if read_error_count is not None: + self.read_error_count = read_error_count + if read_error_threshold is not None: + self.read_error_threshold = read_error_threshold + if registered_device is not None: + self.registered_device = registered_device + if storage_flex_util_controller is not None: + self.storage_flex_util_controller = storage_flex_util_controller + if write_enabled is not None: + self.write_enabled = write_enabled + if write_error_count is not None: + self.write_error_count = write_error_count + if write_error_threshold is not None: + self.write_error_threshold = write_error_threshold + + @property + def account_moid(self): + """ + Gets the account_moid of this StorageFlexUtilPhysicalDrive. + The Account ID for this managed object. + + :return: The account_moid of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StorageFlexUtilPhysicalDrive. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StorageFlexUtilPhysicalDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StorageFlexUtilPhysicalDrive. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StorageFlexUtilPhysicalDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StorageFlexUtilPhysicalDrive. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StorageFlexUtilPhysicalDrive. + The time when this managed object was created. + + :return: The create_time of this StorageFlexUtilPhysicalDrive. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StorageFlexUtilPhysicalDrive. + The time when this managed object was created. + + :param create_time: The create_time of this StorageFlexUtilPhysicalDrive. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StorageFlexUtilPhysicalDrive. + The time when this managed object was last modified. + + :return: The mod_time of this StorageFlexUtilPhysicalDrive. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StorageFlexUtilPhysicalDrive. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StorageFlexUtilPhysicalDrive. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StorageFlexUtilPhysicalDrive. + A unique identifier of this Managed Object instance. + + :return: The moid of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexUtilPhysicalDrive. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexUtilPhysicalDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexUtilPhysicalDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StorageFlexUtilPhysicalDrive. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StorageFlexUtilPhysicalDrive. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StorageFlexUtilPhysicalDrive. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StorageFlexUtilPhysicalDrive. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StorageFlexUtilPhysicalDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StorageFlexUtilPhysicalDrive. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StorageFlexUtilPhysicalDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StorageFlexUtilPhysicalDrive. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StorageFlexUtilPhysicalDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StorageFlexUtilPhysicalDrive. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StorageFlexUtilPhysicalDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StorageFlexUtilPhysicalDrive. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StorageFlexUtilPhysicalDrive. + + :return: The device_mo_id of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StorageFlexUtilPhysicalDrive. + + :param device_mo_id: The device_mo_id of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StorageFlexUtilPhysicalDrive. + + :return: The dn of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StorageFlexUtilPhysicalDrive. + + :param dn: The dn of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StorageFlexUtilPhysicalDrive. + + :return: The rn of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StorageFlexUtilPhysicalDrive. + + :param rn: The rn of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this StorageFlexUtilPhysicalDrive. + + :return: The model of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this StorageFlexUtilPhysicalDrive. + + :param model: The model of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this StorageFlexUtilPhysicalDrive. + + :return: The revision of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this StorageFlexUtilPhysicalDrive. + + :param revision: The revision of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this StorageFlexUtilPhysicalDrive. + + :return: The serial of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this StorageFlexUtilPhysicalDrive. + + :param serial: The serial of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this StorageFlexUtilPhysicalDrive. + + :return: The vendor of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this StorageFlexUtilPhysicalDrive. + + :param vendor: The vendor of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._vendor = vendor + + @property + def block_size(self): + """ + Gets the block_size of this StorageFlexUtilPhysicalDrive. + + :return: The block_size of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._block_size + + @block_size.setter + def block_size(self, block_size): + """ + Sets the block_size of this StorageFlexUtilPhysicalDrive. + + :param block_size: The block_size of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._block_size = block_size + + @property + def capacity(self): + """ + Gets the capacity of this StorageFlexUtilPhysicalDrive. + + :return: The capacity of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this StorageFlexUtilPhysicalDrive. + + :param capacity: The capacity of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._capacity = capacity + + @property + def controller(self): + """ + Gets the controller of this StorageFlexUtilPhysicalDrive. + + :return: The controller of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._controller + + @controller.setter + def controller(self, controller): + """ + Sets the controller of this StorageFlexUtilPhysicalDrive. + + :param controller: The controller of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._controller = controller + + @property + def drives_enabled(self): + """ + Gets the drives_enabled of this StorageFlexUtilPhysicalDrive. + + :return: The drives_enabled of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._drives_enabled + + @drives_enabled.setter + def drives_enabled(self, drives_enabled): + """ + Sets the drives_enabled of this StorageFlexUtilPhysicalDrive. + + :param drives_enabled: The drives_enabled of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._drives_enabled = drives_enabled + + @property + def health(self): + """ + Gets the health of this StorageFlexUtilPhysicalDrive. + + :return: The health of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._health + + @health.setter + def health(self, health): + """ + Sets the health of this StorageFlexUtilPhysicalDrive. + + :param health: The health of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._health = health + + @property + def manufacturer_date(self): + """ + Gets the manufacturer_date of this StorageFlexUtilPhysicalDrive. + + :return: The manufacturer_date of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._manufacturer_date + + @manufacturer_date.setter + def manufacturer_date(self, manufacturer_date): + """ + Sets the manufacturer_date of this StorageFlexUtilPhysicalDrive. + + :param manufacturer_date: The manufacturer_date of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._manufacturer_date = manufacturer_date + + @property + def manufacturer_id(self): + """ + Gets the manufacturer_id of this StorageFlexUtilPhysicalDrive. + + :return: The manufacturer_id of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._manufacturer_id + + @manufacturer_id.setter + def manufacturer_id(self, manufacturer_id): + """ + Sets the manufacturer_id of this StorageFlexUtilPhysicalDrive. + + :param manufacturer_id: The manufacturer_id of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._manufacturer_id = manufacturer_id + + @property + def oem_id(self): + """ + Gets the oem_id of this StorageFlexUtilPhysicalDrive. + + :return: The oem_id of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._oem_id + + @oem_id.setter + def oem_id(self, oem_id): + """ + Sets the oem_id of this StorageFlexUtilPhysicalDrive. + + :param oem_id: The oem_id of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._oem_id = oem_id + + @property + def partition_count(self): + """ + Gets the partition_count of this StorageFlexUtilPhysicalDrive. + + :return: The partition_count of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._partition_count + + @partition_count.setter + def partition_count(self, partition_count): + """ + Sets the partition_count of this StorageFlexUtilPhysicalDrive. + + :param partition_count: The partition_count of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._partition_count = partition_count + + @property + def pd_status(self): + """ + Gets the pd_status of this StorageFlexUtilPhysicalDrive. + + :return: The pd_status of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._pd_status + + @pd_status.setter + def pd_status(self, pd_status): + """ + Sets the pd_status of this StorageFlexUtilPhysicalDrive. + + :param pd_status: The pd_status of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._pd_status = pd_status + + @property + def physical_drive(self): + """ + Gets the physical_drive of this StorageFlexUtilPhysicalDrive. + + :return: The physical_drive of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._physical_drive + + @physical_drive.setter + def physical_drive(self, physical_drive): + """ + Sets the physical_drive of this StorageFlexUtilPhysicalDrive. + + :param physical_drive: The physical_drive of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._physical_drive = physical_drive + + @property + def product_name(self): + """ + Gets the product_name of this StorageFlexUtilPhysicalDrive. + + :return: The product_name of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """ + Sets the product_name of this StorageFlexUtilPhysicalDrive. + + :param product_name: The product_name of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._product_name = product_name + + @property + def product_revision(self): + """ + Gets the product_revision of this StorageFlexUtilPhysicalDrive. + + :return: The product_revision of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._product_revision + + @product_revision.setter + def product_revision(self, product_revision): + """ + Sets the product_revision of this StorageFlexUtilPhysicalDrive. + + :param product_revision: The product_revision of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._product_revision = product_revision + + @property + def read_error_count(self): + """ + Gets the read_error_count of this StorageFlexUtilPhysicalDrive. + + :return: The read_error_count of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._read_error_count + + @read_error_count.setter + def read_error_count(self, read_error_count): + """ + Sets the read_error_count of this StorageFlexUtilPhysicalDrive. + + :param read_error_count: The read_error_count of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._read_error_count = read_error_count + + @property + def read_error_threshold(self): + """ + Gets the read_error_threshold of this StorageFlexUtilPhysicalDrive. + + :return: The read_error_threshold of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._read_error_threshold + + @read_error_threshold.setter + def read_error_threshold(self, read_error_threshold): + """ + Sets the read_error_threshold of this StorageFlexUtilPhysicalDrive. + + :param read_error_threshold: The read_error_threshold of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._read_error_threshold = read_error_threshold + + @property + def registered_device(self): + """ + Gets the registered_device of this StorageFlexUtilPhysicalDrive. + + :return: The registered_device of this StorageFlexUtilPhysicalDrive. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StorageFlexUtilPhysicalDrive. + + :param registered_device: The registered_device of this StorageFlexUtilPhysicalDrive. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def storage_flex_util_controller(self): + """ + Gets the storage_flex_util_controller of this StorageFlexUtilPhysicalDrive. + + :return: The storage_flex_util_controller of this StorageFlexUtilPhysicalDrive. + :rtype: StorageFlexUtilControllerRef + """ + return self._storage_flex_util_controller + + @storage_flex_util_controller.setter + def storage_flex_util_controller(self, storage_flex_util_controller): + """ + Sets the storage_flex_util_controller of this StorageFlexUtilPhysicalDrive. + + :param storage_flex_util_controller: The storage_flex_util_controller of this StorageFlexUtilPhysicalDrive. + :type: StorageFlexUtilControllerRef + """ + + self._storage_flex_util_controller = storage_flex_util_controller + + @property + def write_enabled(self): + """ + Gets the write_enabled of this StorageFlexUtilPhysicalDrive. + + :return: The write_enabled of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._write_enabled + + @write_enabled.setter + def write_enabled(self, write_enabled): + """ + Sets the write_enabled of this StorageFlexUtilPhysicalDrive. + + :param write_enabled: The write_enabled of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._write_enabled = write_enabled + + @property + def write_error_count(self): + """ + Gets the write_error_count of this StorageFlexUtilPhysicalDrive. + + :return: The write_error_count of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._write_error_count + + @write_error_count.setter + def write_error_count(self, write_error_count): + """ + Sets the write_error_count of this StorageFlexUtilPhysicalDrive. + + :param write_error_count: The write_error_count of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._write_error_count = write_error_count + + @property + def write_error_threshold(self): + """ + Gets the write_error_threshold of this StorageFlexUtilPhysicalDrive. + + :return: The write_error_threshold of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._write_error_threshold + + @write_error_threshold.setter + def write_error_threshold(self, write_error_threshold): + """ + Sets the write_error_threshold of this StorageFlexUtilPhysicalDrive. + + :param write_error_threshold: The write_error_threshold of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._write_error_threshold = write_error_threshold + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilPhysicalDrive): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_physical_drive_list.py b/intersight/models/storage_flex_util_physical_drive_list.py new file mode 100644 index 00000000..8124f0f8 --- /dev/null +++ b/intersight/models/storage_flex_util_physical_drive_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilPhysicalDriveList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StorageFlexUtilPhysicalDrive]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StorageFlexUtilPhysicalDriveList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StorageFlexUtilPhysicalDriveList. + The number of storageFlexUtilPhysicalDrives matching your request in total for all pages. + + :return: The count of this StorageFlexUtilPhysicalDriveList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StorageFlexUtilPhysicalDriveList. + The number of storageFlexUtilPhysicalDrives matching your request in total for all pages. + + :param count: The count of this StorageFlexUtilPhysicalDriveList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StorageFlexUtilPhysicalDriveList. + The array of storageFlexUtilPhysicalDrives matching your request. + + :return: The results of this StorageFlexUtilPhysicalDriveList. + :rtype: list[StorageFlexUtilPhysicalDrive] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StorageFlexUtilPhysicalDriveList. + The array of storageFlexUtilPhysicalDrives matching your request. + + :param results: The results of this StorageFlexUtilPhysicalDriveList. + :type: list[StorageFlexUtilPhysicalDrive] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilPhysicalDriveList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_physical_drive_ref.py b/intersight/models/storage_flex_util_physical_drive_ref.py new file mode 100644 index 00000000..258d98be --- /dev/null +++ b/intersight/models/storage_flex_util_physical_drive_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilPhysicalDriveRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexUtilPhysicalDriveRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexUtilPhysicalDriveRef. + + :return: The moid of this StorageFlexUtilPhysicalDriveRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexUtilPhysicalDriveRef. + + :param moid: The moid of this StorageFlexUtilPhysicalDriveRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexUtilPhysicalDriveRef. + + :return: The object_type of this StorageFlexUtilPhysicalDriveRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexUtilPhysicalDriveRef. + + :param object_type: The object_type of this StorageFlexUtilPhysicalDriveRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilPhysicalDriveRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_virtual_drive.py b/intersight/models/storage_flex_util_virtual_drive.py new file mode 100644 index 00000000..1457b432 --- /dev/null +++ b/intersight/models/storage_flex_util_virtual_drive.py @@ -0,0 +1,661 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilVirtualDrive(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'drive_status': 'str', + 'drive_type': 'str', + 'partition_id': 'str', + 'partition_name': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'resident_image': 'str', + 'size': 'str', + 'storage_flex_util_controller': 'StorageFlexUtilControllerRef', + 'virtual_drive': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'drive_status': 'DriveStatus', + 'drive_type': 'DriveType', + 'partition_id': 'PartitionId', + 'partition_name': 'PartitionName', + 'registered_device': 'RegisteredDevice', + 'resident_image': 'ResidentImage', + 'size': 'Size', + 'storage_flex_util_controller': 'StorageFlexUtilController', + 'virtual_drive': 'VirtualDrive' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, drive_status=None, drive_type=None, partition_id=None, partition_name=None, registered_device=None, resident_image=None, size=None, storage_flex_util_controller=None, virtual_drive=None): + """ + StorageFlexUtilVirtualDrive - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._drive_status = None + self._drive_type = None + self._partition_id = None + self._partition_name = None + self._registered_device = None + self._resident_image = None + self._size = None + self._storage_flex_util_controller = None + self._virtual_drive = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if drive_status is not None: + self.drive_status = drive_status + if drive_type is not None: + self.drive_type = drive_type + if partition_id is not None: + self.partition_id = partition_id + if partition_name is not None: + self.partition_name = partition_name + if registered_device is not None: + self.registered_device = registered_device + if resident_image is not None: + self.resident_image = resident_image + if size is not None: + self.size = size + if storage_flex_util_controller is not None: + self.storage_flex_util_controller = storage_flex_util_controller + if virtual_drive is not None: + self.virtual_drive = virtual_drive + + @property + def account_moid(self): + """ + Gets the account_moid of this StorageFlexUtilVirtualDrive. + The Account ID for this managed object. + + :return: The account_moid of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StorageFlexUtilVirtualDrive. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StorageFlexUtilVirtualDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StorageFlexUtilVirtualDrive. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StorageFlexUtilVirtualDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StorageFlexUtilVirtualDrive. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StorageFlexUtilVirtualDrive. + The time when this managed object was created. + + :return: The create_time of this StorageFlexUtilVirtualDrive. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StorageFlexUtilVirtualDrive. + The time when this managed object was created. + + :param create_time: The create_time of this StorageFlexUtilVirtualDrive. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StorageFlexUtilVirtualDrive. + The time when this managed object was last modified. + + :return: The mod_time of this StorageFlexUtilVirtualDrive. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StorageFlexUtilVirtualDrive. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StorageFlexUtilVirtualDrive. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StorageFlexUtilVirtualDrive. + A unique identifier of this Managed Object instance. + + :return: The moid of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexUtilVirtualDrive. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexUtilVirtualDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexUtilVirtualDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StorageFlexUtilVirtualDrive. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StorageFlexUtilVirtualDrive. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StorageFlexUtilVirtualDrive. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StorageFlexUtilVirtualDrive. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StorageFlexUtilVirtualDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StorageFlexUtilVirtualDrive. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StorageFlexUtilVirtualDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StorageFlexUtilVirtualDrive. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StorageFlexUtilVirtualDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StorageFlexUtilVirtualDrive. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StorageFlexUtilVirtualDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StorageFlexUtilVirtualDrive. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StorageFlexUtilVirtualDrive. + + :return: The device_mo_id of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StorageFlexUtilVirtualDrive. + + :param device_mo_id: The device_mo_id of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StorageFlexUtilVirtualDrive. + + :return: The dn of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StorageFlexUtilVirtualDrive. + + :param dn: The dn of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StorageFlexUtilVirtualDrive. + + :return: The rn of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StorageFlexUtilVirtualDrive. + + :param rn: The rn of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._rn = rn + + @property + def drive_status(self): + """ + Gets the drive_status of this StorageFlexUtilVirtualDrive. + + :return: The drive_status of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._drive_status + + @drive_status.setter + def drive_status(self, drive_status): + """ + Sets the drive_status of this StorageFlexUtilVirtualDrive. + + :param drive_status: The drive_status of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._drive_status = drive_status + + @property + def drive_type(self): + """ + Gets the drive_type of this StorageFlexUtilVirtualDrive. + + :return: The drive_type of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._drive_type + + @drive_type.setter + def drive_type(self, drive_type): + """ + Sets the drive_type of this StorageFlexUtilVirtualDrive. + + :param drive_type: The drive_type of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._drive_type = drive_type + + @property + def partition_id(self): + """ + Gets the partition_id of this StorageFlexUtilVirtualDrive. + + :return: The partition_id of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._partition_id + + @partition_id.setter + def partition_id(self, partition_id): + """ + Sets the partition_id of this StorageFlexUtilVirtualDrive. + + :param partition_id: The partition_id of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._partition_id = partition_id + + @property + def partition_name(self): + """ + Gets the partition_name of this StorageFlexUtilVirtualDrive. + + :return: The partition_name of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._partition_name + + @partition_name.setter + def partition_name(self, partition_name): + """ + Sets the partition_name of this StorageFlexUtilVirtualDrive. + + :param partition_name: The partition_name of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._partition_name = partition_name + + @property + def registered_device(self): + """ + Gets the registered_device of this StorageFlexUtilVirtualDrive. + + :return: The registered_device of this StorageFlexUtilVirtualDrive. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StorageFlexUtilVirtualDrive. + + :param registered_device: The registered_device of this StorageFlexUtilVirtualDrive. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def resident_image(self): + """ + Gets the resident_image of this StorageFlexUtilVirtualDrive. + + :return: The resident_image of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._resident_image + + @resident_image.setter + def resident_image(self, resident_image): + """ + Sets the resident_image of this StorageFlexUtilVirtualDrive. + + :param resident_image: The resident_image of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._resident_image = resident_image + + @property + def size(self): + """ + Gets the size of this StorageFlexUtilVirtualDrive. + + :return: The size of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._size + + @size.setter + def size(self, size): + """ + Sets the size of this StorageFlexUtilVirtualDrive. + + :param size: The size of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._size = size + + @property + def storage_flex_util_controller(self): + """ + Gets the storage_flex_util_controller of this StorageFlexUtilVirtualDrive. + + :return: The storage_flex_util_controller of this StorageFlexUtilVirtualDrive. + :rtype: StorageFlexUtilControllerRef + """ + return self._storage_flex_util_controller + + @storage_flex_util_controller.setter + def storage_flex_util_controller(self, storage_flex_util_controller): + """ + Sets the storage_flex_util_controller of this StorageFlexUtilVirtualDrive. + + :param storage_flex_util_controller: The storage_flex_util_controller of this StorageFlexUtilVirtualDrive. + :type: StorageFlexUtilControllerRef + """ + + self._storage_flex_util_controller = storage_flex_util_controller + + @property + def virtual_drive(self): + """ + Gets the virtual_drive of this StorageFlexUtilVirtualDrive. + + :return: The virtual_drive of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._virtual_drive + + @virtual_drive.setter + def virtual_drive(self, virtual_drive): + """ + Sets the virtual_drive of this StorageFlexUtilVirtualDrive. + + :param virtual_drive: The virtual_drive of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._virtual_drive = virtual_drive + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilVirtualDrive): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_virtual_drive_list.py b/intersight/models/storage_flex_util_virtual_drive_list.py new file mode 100644 index 00000000..5868b1fa --- /dev/null +++ b/intersight/models/storage_flex_util_virtual_drive_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilVirtualDriveList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StorageFlexUtilVirtualDrive]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StorageFlexUtilVirtualDriveList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StorageFlexUtilVirtualDriveList. + The number of storageFlexUtilVirtualDrives matching your request in total for all pages. + + :return: The count of this StorageFlexUtilVirtualDriveList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StorageFlexUtilVirtualDriveList. + The number of storageFlexUtilVirtualDrives matching your request in total for all pages. + + :param count: The count of this StorageFlexUtilVirtualDriveList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StorageFlexUtilVirtualDriveList. + The array of storageFlexUtilVirtualDrives matching your request. + + :return: The results of this StorageFlexUtilVirtualDriveList. + :rtype: list[StorageFlexUtilVirtualDrive] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StorageFlexUtilVirtualDriveList. + The array of storageFlexUtilVirtualDrives matching your request. + + :param results: The results of this StorageFlexUtilVirtualDriveList. + :type: list[StorageFlexUtilVirtualDrive] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilVirtualDriveList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_virtual_drive_ref.py b/intersight/models/storage_flex_util_virtual_drive_ref.py new file mode 100644 index 00000000..6d2ff979 --- /dev/null +++ b/intersight/models/storage_flex_util_virtual_drive_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilVirtualDriveRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexUtilVirtualDriveRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexUtilVirtualDriveRef. + + :return: The moid of this StorageFlexUtilVirtualDriveRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexUtilVirtualDriveRef. + + :param moid: The moid of this StorageFlexUtilVirtualDriveRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexUtilVirtualDriveRef. + + :return: The object_type of this StorageFlexUtilVirtualDriveRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexUtilVirtualDriveRef. + + :param object_type: The object_type of this StorageFlexUtilVirtualDriveRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilVirtualDriveRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_local_disk.py b/intersight/models/storage_local_disk.py index ec04b52a..3be8f93e 100644 --- a/intersight/models/storage_local_disk.py +++ b/intersight/models/storage_local_disk.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_local_disk_ref.py b/intersight/models/storage_local_disk_ref.py new file mode 100644 index 00000000..c251a92d --- /dev/null +++ b/intersight/models/storage_local_disk_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageLocalDiskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageLocalDiskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageLocalDiskRef. + + :return: The moid of this StorageLocalDiskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageLocalDiskRef. + + :param moid: The moid of this StorageLocalDiskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageLocalDiskRef. + + :return: The object_type of this StorageLocalDiskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageLocalDiskRef. + + :param object_type: The object_type of this StorageLocalDiskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageLocalDiskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_physical_disk.py b/intersight/models/storage_physical_disk.py index 0184002d..408f2bec 100644 --- a/intersight/models/storage_physical_disk.py +++ b/intersight/models/storage_physical_disk.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class StoragePhysicalDisk(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -54,22 +54,26 @@ class StoragePhysicalDisk(object): 'discovered_path': 'str', 'disk_id': 'str', 'disk_state': 'str', + 'drive_firmware': 'str', 'drive_state': 'str', 'fde_capable': 'str', 'link_speed': 'str', 'link_state': 'str', - 'locator_led': 'MoMoRef', + 'locator_led': 'EquipmentLocatorLedRef', 'num_blocks': 'str', 'oper_power_state': 'str', 'oper_qualifier_reason': 'str', 'operability': 'str', 'physical_block_size': 'str', + 'physical_disk_extension': 'StoragePhysicalDiskExtensionRef', 'presence': 'str', 'protocol': 'str', 'raw_size': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'running_firmware': 'list[FirmwareRunningFirmwareRef]', 'size': 'str', - 'storage_controller': 'MoMoRef', + 'storage_controller': 'StorageControllerRef', + 'storage_enclosure': 'StorageEnclosureRef', 'thermal': 'str', 'type': 'str', 'variant_type': 'str' @@ -99,6 +103,7 @@ class StoragePhysicalDisk(object): 'discovered_path': 'DiscoveredPath', 'disk_id': 'DiskId', 'disk_state': 'DiskState', + 'drive_firmware': 'DriveFirmware', 'drive_state': 'DriveState', 'fde_capable': 'FdeCapable', 'link_speed': 'LinkSpeed', @@ -109,18 +114,21 @@ class StoragePhysicalDisk(object): 'oper_qualifier_reason': 'OperQualifierReason', 'operability': 'Operability', 'physical_block_size': 'PhysicalBlockSize', + 'physical_disk_extension': 'PhysicalDiskExtension', 'presence': 'Presence', 'protocol': 'Protocol', 'raw_size': 'RawSize', 'registered_device': 'RegisteredDevice', + 'running_firmware': 'RunningFirmware', 'size': 'Size', 'storage_controller': 'StorageController', + 'storage_enclosure': 'StorageEnclosure', 'thermal': 'Thermal', 'type': 'Type', 'variant_type': 'VariantType' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, block_size=None, bootable=None, configuration_checkpoint=None, configuration_state=None, discovered_path=None, disk_id=None, disk_state=None, drive_state=None, fde_capable=None, link_speed=None, link_state=None, locator_led=None, num_blocks=None, oper_power_state=None, oper_qualifier_reason=None, operability=None, physical_block_size=None, presence=None, protocol=None, raw_size=None, registered_device=None, size=None, storage_controller=None, thermal=None, type=None, variant_type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, block_size=None, bootable=None, configuration_checkpoint=None, configuration_state=None, discovered_path=None, disk_id=None, disk_state=None, drive_firmware=None, drive_state=None, fde_capable=None, link_speed=None, link_state=None, locator_led=None, num_blocks=None, oper_power_state=None, oper_qualifier_reason=None, operability=None, physical_block_size=None, physical_disk_extension=None, presence=None, protocol=None, raw_size=None, registered_device=None, running_firmware=None, size=None, storage_controller=None, storage_enclosure=None, thermal=None, type=None, variant_type=None): """ StoragePhysicalDisk - a model defined in Swagger """ @@ -148,6 +156,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._discovered_path = None self._disk_id = None self._disk_state = None + self._drive_firmware = None self._drive_state = None self._fde_capable = None self._link_speed = None @@ -158,12 +167,15 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._oper_qualifier_reason = None self._operability = None self._physical_block_size = None + self._physical_disk_extension = None self._presence = None self._protocol = None self._raw_size = None self._registered_device = None + self._running_firmware = None self._size = None self._storage_controller = None + self._storage_enclosure = None self._thermal = None self._type = None self._variant_type = None @@ -214,6 +226,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.disk_id = disk_id if disk_state is not None: self.disk_state = disk_state + if drive_firmware is not None: + self.drive_firmware = drive_firmware if drive_state is not None: self.drive_state = drive_state if fde_capable is not None: @@ -234,6 +248,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.operability = operability if physical_block_size is not None: self.physical_block_size = physical_block_size + if physical_disk_extension is not None: + self.physical_disk_extension = physical_disk_extension if presence is not None: self.presence = presence if protocol is not None: @@ -242,10 +258,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.raw_size = raw_size if registered_device is not None: self.registered_device = registered_device + if running_firmware is not None: + self.running_firmware = running_firmware if size is not None: self.size = size if storage_controller is not None: self.storage_controller = storage_controller + if storage_enclosure is not None: + self.storage_enclosure = storage_enclosure if thermal is not None: self.thermal = thermal if type is not None: @@ -283,7 +303,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StoragePhysicalDisk. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -294,7 +314,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StoragePhysicalDisk. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -421,7 +441,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StoragePhysicalDisk. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -432,7 +452,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StoragePhysicalDisk. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -754,6 +774,27 @@ def disk_state(self, disk_state): self._disk_state = disk_state + @property + def drive_firmware(self): + """ + Gets the drive_firmware of this StoragePhysicalDisk. + + :return: The drive_firmware of this StoragePhysicalDisk. + :rtype: str + """ + return self._drive_firmware + + @drive_firmware.setter + def drive_firmware(self, drive_firmware): + """ + Sets the drive_firmware of this StoragePhysicalDisk. + + :param drive_firmware: The drive_firmware of this StoragePhysicalDisk. + :type: str + """ + + self._drive_firmware = drive_firmware + @property def drive_state(self): """ @@ -844,7 +885,7 @@ def locator_led(self): Gets the locator_led of this StoragePhysicalDisk. :return: The locator_led of this StoragePhysicalDisk. - :rtype: MoMoRef + :rtype: EquipmentLocatorLedRef """ return self._locator_led @@ -854,7 +895,7 @@ def locator_led(self, locator_led): Sets the locator_led of this StoragePhysicalDisk. :param locator_led: The locator_led of this StoragePhysicalDisk. - :type: MoMoRef + :type: EquipmentLocatorLedRef """ self._locator_led = locator_led @@ -964,6 +1005,27 @@ def physical_block_size(self, physical_block_size): self._physical_block_size = physical_block_size + @property + def physical_disk_extension(self): + """ + Gets the physical_disk_extension of this StoragePhysicalDisk. + + :return: The physical_disk_extension of this StoragePhysicalDisk. + :rtype: StoragePhysicalDiskExtensionRef + """ + return self._physical_disk_extension + + @physical_disk_extension.setter + def physical_disk_extension(self, physical_disk_extension): + """ + Sets the physical_disk_extension of this StoragePhysicalDisk. + + :param physical_disk_extension: The physical_disk_extension of this StoragePhysicalDisk. + :type: StoragePhysicalDiskExtensionRef + """ + + self._physical_disk_extension = physical_disk_extension + @property def presence(self): """ @@ -1033,7 +1095,7 @@ def registered_device(self): Gets the registered_device of this StoragePhysicalDisk. :return: The registered_device of this StoragePhysicalDisk. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1043,11 +1105,32 @@ def registered_device(self, registered_device): Sets the registered_device of this StoragePhysicalDisk. :param registered_device: The registered_device of this StoragePhysicalDisk. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device + @property + def running_firmware(self): + """ + Gets the running_firmware of this StoragePhysicalDisk. + + :return: The running_firmware of this StoragePhysicalDisk. + :rtype: list[FirmwareRunningFirmwareRef] + """ + return self._running_firmware + + @running_firmware.setter + def running_firmware(self, running_firmware): + """ + Sets the running_firmware of this StoragePhysicalDisk. + + :param running_firmware: The running_firmware of this StoragePhysicalDisk. + :type: list[FirmwareRunningFirmwareRef] + """ + + self._running_firmware = running_firmware + @property def size(self): """ @@ -1075,7 +1158,7 @@ def storage_controller(self): Gets the storage_controller of this StoragePhysicalDisk. :return: The storage_controller of this StoragePhysicalDisk. - :rtype: MoMoRef + :rtype: StorageControllerRef """ return self._storage_controller @@ -1085,11 +1168,32 @@ def storage_controller(self, storage_controller): Sets the storage_controller of this StoragePhysicalDisk. :param storage_controller: The storage_controller of this StoragePhysicalDisk. - :type: MoMoRef + :type: StorageControllerRef """ self._storage_controller = storage_controller + @property + def storage_enclosure(self): + """ + Gets the storage_enclosure of this StoragePhysicalDisk. + + :return: The storage_enclosure of this StoragePhysicalDisk. + :rtype: StorageEnclosureRef + """ + return self._storage_enclosure + + @storage_enclosure.setter + def storage_enclosure(self, storage_enclosure): + """ + Sets the storage_enclosure of this StoragePhysicalDisk. + + :param storage_enclosure: The storage_enclosure of this StoragePhysicalDisk. + :type: StorageEnclosureRef + """ + + self._storage_enclosure = storage_enclosure + @property def thermal(self): """ diff --git a/intersight/models/storage_physical_disk_extension.py b/intersight/models/storage_physical_disk_extension.py new file mode 100644 index 00000000..c884b371 --- /dev/null +++ b/intersight/models/storage_physical_disk_extension.py @@ -0,0 +1,713 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StoragePhysicalDiskExtension(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'bootable': 'str', + 'disk_dn': 'str', + 'disk_id': 'int', + 'disk_state': 'str', + 'physical_disk': 'StoragePhysicalDiskRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'storage_controller': 'StorageControllerRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'bootable': 'Bootable', + 'disk_dn': 'DiskDn', + 'disk_id': 'DiskId', + 'disk_state': 'DiskState', + 'physical_disk': 'PhysicalDisk', + 'registered_device': 'RegisteredDevice', + 'storage_controller': 'StorageController' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, bootable=None, disk_dn=None, disk_id=None, disk_state=None, physical_disk=None, registered_device=None, storage_controller=None): + """ + StoragePhysicalDiskExtension - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._bootable = None + self._disk_dn = None + self._disk_id = None + self._disk_state = None + self._physical_disk = None + self._registered_device = None + self._storage_controller = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if bootable is not None: + self.bootable = bootable + if disk_dn is not None: + self.disk_dn = disk_dn + if disk_id is not None: + self.disk_id = disk_id + if disk_state is not None: + self.disk_state = disk_state + if physical_disk is not None: + self.physical_disk = physical_disk + if registered_device is not None: + self.registered_device = registered_device + if storage_controller is not None: + self.storage_controller = storage_controller + + @property + def account_moid(self): + """ + Gets the account_moid of this StoragePhysicalDiskExtension. + The Account ID for this managed object. + + :return: The account_moid of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StoragePhysicalDiskExtension. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StoragePhysicalDiskExtension. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StoragePhysicalDiskExtension. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StoragePhysicalDiskExtension. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StoragePhysicalDiskExtension. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StoragePhysicalDiskExtension. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StoragePhysicalDiskExtension. + The time when this managed object was created. + + :return: The create_time of this StoragePhysicalDiskExtension. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StoragePhysicalDiskExtension. + The time when this managed object was created. + + :param create_time: The create_time of this StoragePhysicalDiskExtension. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StoragePhysicalDiskExtension. + The time when this managed object was last modified. + + :return: The mod_time of this StoragePhysicalDiskExtension. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StoragePhysicalDiskExtension. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StoragePhysicalDiskExtension. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StoragePhysicalDiskExtension. + A unique identifier of this Managed Object instance. + + :return: The moid of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StoragePhysicalDiskExtension. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StoragePhysicalDiskExtension. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StoragePhysicalDiskExtension. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StoragePhysicalDiskExtension. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StoragePhysicalDiskExtension. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StoragePhysicalDiskExtension. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StoragePhysicalDiskExtension. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StoragePhysicalDiskExtension. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StoragePhysicalDiskExtension. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StoragePhysicalDiskExtension. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StoragePhysicalDiskExtension. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StoragePhysicalDiskExtension. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StoragePhysicalDiskExtension. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StoragePhysicalDiskExtension. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StoragePhysicalDiskExtension. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StoragePhysicalDiskExtension. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StoragePhysicalDiskExtension. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StoragePhysicalDiskExtension. + + :return: The device_mo_id of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StoragePhysicalDiskExtension. + + :param device_mo_id: The device_mo_id of this StoragePhysicalDiskExtension. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StoragePhysicalDiskExtension. + + :return: The dn of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StoragePhysicalDiskExtension. + + :param dn: The dn of this StoragePhysicalDiskExtension. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StoragePhysicalDiskExtension. + + :return: The rn of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StoragePhysicalDiskExtension. + + :param rn: The rn of this StoragePhysicalDiskExtension. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this StoragePhysicalDiskExtension. + + :return: The model of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this StoragePhysicalDiskExtension. + + :param model: The model of this StoragePhysicalDiskExtension. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this StoragePhysicalDiskExtension. + + :return: The revision of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this StoragePhysicalDiskExtension. + + :param revision: The revision of this StoragePhysicalDiskExtension. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this StoragePhysicalDiskExtension. + + :return: The serial of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this StoragePhysicalDiskExtension. + + :param serial: The serial of this StoragePhysicalDiskExtension. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this StoragePhysicalDiskExtension. + + :return: The vendor of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this StoragePhysicalDiskExtension. + + :param vendor: The vendor of this StoragePhysicalDiskExtension. + :type: str + """ + + self._vendor = vendor + + @property + def bootable(self): + """ + Gets the bootable of this StoragePhysicalDiskExtension. + + :return: The bootable of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._bootable + + @bootable.setter + def bootable(self, bootable): + """ + Sets the bootable of this StoragePhysicalDiskExtension. + + :param bootable: The bootable of this StoragePhysicalDiskExtension. + :type: str + """ + + self._bootable = bootable + + @property + def disk_dn(self): + """ + Gets the disk_dn of this StoragePhysicalDiskExtension. + + :return: The disk_dn of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._disk_dn + + @disk_dn.setter + def disk_dn(self, disk_dn): + """ + Sets the disk_dn of this StoragePhysicalDiskExtension. + + :param disk_dn: The disk_dn of this StoragePhysicalDiskExtension. + :type: str + """ + + self._disk_dn = disk_dn + + @property + def disk_id(self): + """ + Gets the disk_id of this StoragePhysicalDiskExtension. + + :return: The disk_id of this StoragePhysicalDiskExtension. + :rtype: int + """ + return self._disk_id + + @disk_id.setter + def disk_id(self, disk_id): + """ + Sets the disk_id of this StoragePhysicalDiskExtension. + + :param disk_id: The disk_id of this StoragePhysicalDiskExtension. + :type: int + """ + + self._disk_id = disk_id + + @property + def disk_state(self): + """ + Gets the disk_state of this StoragePhysicalDiskExtension. + + :return: The disk_state of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._disk_state + + @disk_state.setter + def disk_state(self, disk_state): + """ + Sets the disk_state of this StoragePhysicalDiskExtension. + + :param disk_state: The disk_state of this StoragePhysicalDiskExtension. + :type: str + """ + + self._disk_state = disk_state + + @property + def physical_disk(self): + """ + Gets the physical_disk of this StoragePhysicalDiskExtension. + + :return: The physical_disk of this StoragePhysicalDiskExtension. + :rtype: StoragePhysicalDiskRef + """ + return self._physical_disk + + @physical_disk.setter + def physical_disk(self, physical_disk): + """ + Sets the physical_disk of this StoragePhysicalDiskExtension. + + :param physical_disk: The physical_disk of this StoragePhysicalDiskExtension. + :type: StoragePhysicalDiskRef + """ + + self._physical_disk = physical_disk + + @property + def registered_device(self): + """ + Gets the registered_device of this StoragePhysicalDiskExtension. + + :return: The registered_device of this StoragePhysicalDiskExtension. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StoragePhysicalDiskExtension. + + :param registered_device: The registered_device of this StoragePhysicalDiskExtension. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def storage_controller(self): + """ + Gets the storage_controller of this StoragePhysicalDiskExtension. + + :return: The storage_controller of this StoragePhysicalDiskExtension. + :rtype: StorageControllerRef + """ + return self._storage_controller + + @storage_controller.setter + def storage_controller(self, storage_controller): + """ + Sets the storage_controller of this StoragePhysicalDiskExtension. + + :param storage_controller: The storage_controller of this StoragePhysicalDiskExtension. + :type: StorageControllerRef + """ + + self._storage_controller = storage_controller + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StoragePhysicalDiskExtension): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_physical_disk_extension_list.py b/intersight/models/storage_physical_disk_extension_list.py new file mode 100644 index 00000000..8bcb127a --- /dev/null +++ b/intersight/models/storage_physical_disk_extension_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StoragePhysicalDiskExtensionList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StoragePhysicalDiskExtension]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StoragePhysicalDiskExtensionList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StoragePhysicalDiskExtensionList. + The number of storagePhysicalDiskExtensions matching your request in total for all pages. + + :return: The count of this StoragePhysicalDiskExtensionList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StoragePhysicalDiskExtensionList. + The number of storagePhysicalDiskExtensions matching your request in total for all pages. + + :param count: The count of this StoragePhysicalDiskExtensionList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StoragePhysicalDiskExtensionList. + The array of storagePhysicalDiskExtensions matching your request. + + :return: The results of this StoragePhysicalDiskExtensionList. + :rtype: list[StoragePhysicalDiskExtension] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StoragePhysicalDiskExtensionList. + The array of storagePhysicalDiskExtensions matching your request. + + :param results: The results of this StoragePhysicalDiskExtensionList. + :type: list[StoragePhysicalDiskExtension] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StoragePhysicalDiskExtensionList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_physical_disk_extension_ref.py b/intersight/models/storage_physical_disk_extension_ref.py new file mode 100644 index 00000000..fe4b7d87 --- /dev/null +++ b/intersight/models/storage_physical_disk_extension_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StoragePhysicalDiskExtensionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StoragePhysicalDiskExtensionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StoragePhysicalDiskExtensionRef. + + :return: The moid of this StoragePhysicalDiskExtensionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StoragePhysicalDiskExtensionRef. + + :param moid: The moid of this StoragePhysicalDiskExtensionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StoragePhysicalDiskExtensionRef. + + :return: The object_type of this StoragePhysicalDiskExtensionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StoragePhysicalDiskExtensionRef. + + :param object_type: The object_type of this StoragePhysicalDiskExtensionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StoragePhysicalDiskExtensionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_physical_disk_list.py b/intersight/models/storage_physical_disk_list.py index c06928f4..00bd6824 100644 --- a/intersight/models/storage_physical_disk_list.py +++ b/intersight/models/storage_physical_disk_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_physical_disk_ref.py b/intersight/models/storage_physical_disk_ref.py new file mode 100644 index 00000000..d50cfb28 --- /dev/null +++ b/intersight/models/storage_physical_disk_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StoragePhysicalDiskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StoragePhysicalDiskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StoragePhysicalDiskRef. + + :return: The moid of this StoragePhysicalDiskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StoragePhysicalDiskRef. + + :param moid: The moid of this StoragePhysicalDiskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StoragePhysicalDiskRef. + + :return: The object_type of this StoragePhysicalDiskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StoragePhysicalDiskRef. + + :param object_type: The object_type of this StoragePhysicalDiskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StoragePhysicalDiskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_physical_disk_usage.py b/intersight/models/storage_physical_disk_usage.py index 6a95c2d6..7b8e2275 100644 --- a/intersight/models/storage_physical_disk_usage.py +++ b/intersight/models/storage_physical_disk_usage.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class StoragePhysicalDiskUsage(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'number_of_blocks': 'str', 'physical_drive': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'span': 'str', 'starting_block': 'str', 'state': 'str', @@ -168,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StoragePhysicalDiskUsage. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StoragePhysicalDiskUsage. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StoragePhysicalDiskUsage. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StoragePhysicalDiskUsage. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -456,7 +456,7 @@ def registered_device(self): Gets the registered_device of this StoragePhysicalDiskUsage. :return: The registered_device of this StoragePhysicalDiskUsage. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -466,7 +466,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StoragePhysicalDiskUsage. :param registered_device: The registered_device of this StoragePhysicalDiskUsage. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/storage_physical_disk_usage_list.py b/intersight/models/storage_physical_disk_usage_list.py index 95f6884b..ca07aa8b 100644 --- a/intersight/models/storage_physical_disk_usage_list.py +++ b/intersight/models/storage_physical_disk_usage_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_physical_disk_usage_ref.py b/intersight/models/storage_physical_disk_usage_ref.py new file mode 100644 index 00000000..9fa65aa3 --- /dev/null +++ b/intersight/models/storage_physical_disk_usage_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StoragePhysicalDiskUsageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StoragePhysicalDiskUsageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StoragePhysicalDiskUsageRef. + + :return: The moid of this StoragePhysicalDiskUsageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StoragePhysicalDiskUsageRef. + + :param moid: The moid of this StoragePhysicalDiskUsageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StoragePhysicalDiskUsageRef. + + :return: The object_type of this StoragePhysicalDiskUsageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StoragePhysicalDiskUsageRef. + + :param object_type: The object_type of this StoragePhysicalDiskUsageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StoragePhysicalDiskUsageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_remote_key_setting.py b/intersight/models/storage_remote_key_setting.py index 9ec8f6ef..26cdd562 100644 --- a/intersight/models/storage_remote_key_setting.py +++ b/intersight/models/storage_remote_key_setting.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,6 +31,7 @@ class StorageRemoteKeySetting(object): and the value is json key in definition. """ swagger_types = { + 'is_password_set': 'bool', 'password': 'str', 'port': 'int', 'primary_server': 'str', @@ -40,6 +41,7 @@ class StorageRemoteKeySetting(object): } attribute_map = { + 'is_password_set': 'IsPasswordSet', 'password': 'Password', 'port': 'Port', 'primary_server': 'PrimaryServer', @@ -48,11 +50,12 @@ class StorageRemoteKeySetting(object): 'username': 'Username' } - def __init__(self, password=None, port=None, primary_server=None, secondary_server=None, server_certificate=None, username=None): + def __init__(self, is_password_set=None, password=None, port=None, primary_server=None, secondary_server=None, server_certificate=None, username=None): """ StorageRemoteKeySetting - a model defined in Swagger """ + self._is_password_set = None self._password = None self._port = None self._primary_server = None @@ -60,6 +63,8 @@ def __init__(self, password=None, port=None, primary_server=None, secondary_serv self._server_certificate = None self._username = None + if is_password_set is not None: + self.is_password_set = is_password_set if password is not None: self.password = password if port is not None: @@ -73,6 +78,27 @@ def __init__(self, password=None, port=None, primary_server=None, secondary_serv if username is not None: self.username = username + @property + def is_password_set(self): + """ + Gets the is_password_set of this StorageRemoteKeySetting. + + :return: The is_password_set of this StorageRemoteKeySetting. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this StorageRemoteKeySetting. + + :param is_password_set: The is_password_set of this StorageRemoteKeySetting. + :type: bool + """ + + self._is_password_set = is_password_set + @property def password(self): """ @@ -123,7 +149,7 @@ def port(self, port): def primary_server(self): """ Gets the primary_server of this StorageRemoteKeySetting. - This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address. + This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address :return: The primary_server of this StorageRemoteKeySetting. :rtype: str @@ -134,7 +160,7 @@ def primary_server(self): def primary_server(self, primary_server): """ Sets the primary_server of this StorageRemoteKeySetting. - This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address. + This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address :param primary_server: The primary_server of this StorageRemoteKeySetting. :type: str @@ -146,7 +172,7 @@ def primary_server(self, primary_server): def secondary_server(self): """ Gets the secondary_server of this StorageRemoteKeySetting. - This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address. + This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address :return: The secondary_server of this StorageRemoteKeySetting. :rtype: str @@ -157,7 +183,7 @@ def secondary_server(self): def secondary_server(self, secondary_server): """ Sets the secondary_server of this StorageRemoteKeySetting. - This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address. + This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address :param secondary_server: The secondary_server of this StorageRemoteKeySetting. :type: str diff --git a/intersight/models/storage_remote_key_setting_ref.py b/intersight/models/storage_remote_key_setting_ref.py new file mode 100644 index 00000000..79f733d1 --- /dev/null +++ b/intersight/models/storage_remote_key_setting_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageRemoteKeySettingRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageRemoteKeySettingRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageRemoteKeySettingRef. + + :return: The moid of this StorageRemoteKeySettingRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageRemoteKeySettingRef. + + :param moid: The moid of this StorageRemoteKeySettingRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageRemoteKeySettingRef. + + :return: The object_type of this StorageRemoteKeySettingRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageRemoteKeySettingRef. + + :param object_type: The object_type of this StorageRemoteKeySettingRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageRemoteKeySettingRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_sas_expander.py b/intersight/models/storage_sas_expander.py index 375552a3..0b20da8f 100644 --- a/intersight/models/storage_sas_expander.py +++ b/intersight/models/storage_sas_expander.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class StorageSasExpander(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -47,15 +47,14 @@ class StorageSasExpander(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_rack_unit': 'MoMoRef', - 'controller': 'MoMoRef', - 'equipment_chassis': 'MoMoRef', + 'controller': 'ManagementControllerRef', + 'equipment_chassis': 'EquipmentChassisRef', 'expander_id': 'int', 'name': 'str', 'oper_state': 'str', 'operability': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -75,7 +74,6 @@ class StorageSasExpander(object): 'revision': 'Revision', 'serial': 'Serial', 'vendor': 'Vendor', - 'compute_rack_unit': 'ComputeRackUnit', 'controller': 'Controller', 'equipment_chassis': 'EquipmentChassis', 'expander_id': 'ExpanderId', @@ -86,7 +84,7 @@ class StorageSasExpander(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_rack_unit=None, controller=None, equipment_chassis=None, expander_id=None, name=None, oper_state=None, operability=None, presence=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, controller=None, equipment_chassis=None, expander_id=None, name=None, oper_state=None, operability=None, presence=None, registered_device=None): """ StorageSasExpander - a model defined in Swagger """ @@ -107,7 +105,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._revision = None self._serial = None self._vendor = None - self._compute_rack_unit = None self._controller = None self._equipment_chassis = None self._expander_id = None @@ -149,8 +146,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.serial = serial if vendor is not None: self.vendor = vendor - if compute_rack_unit is not None: - self.compute_rack_unit = compute_rack_unit if controller is not None: self.controller = controller if equipment_chassis is not None: @@ -198,7 +193,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageSasExpander. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -209,7 +204,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageSasExpander. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -336,7 +331,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageSasExpander. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -347,7 +342,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageSasExpander. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -522,34 +517,13 @@ def vendor(self, vendor): self._vendor = vendor - @property - def compute_rack_unit(self): - """ - Gets the compute_rack_unit of this StorageSasExpander. - - :return: The compute_rack_unit of this StorageSasExpander. - :rtype: MoMoRef - """ - return self._compute_rack_unit - - @compute_rack_unit.setter - def compute_rack_unit(self, compute_rack_unit): - """ - Sets the compute_rack_unit of this StorageSasExpander. - - :param compute_rack_unit: The compute_rack_unit of this StorageSasExpander. - :type: MoMoRef - """ - - self._compute_rack_unit = compute_rack_unit - @property def controller(self): """ Gets the controller of this StorageSasExpander. :return: The controller of this StorageSasExpander. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._controller @@ -559,7 +533,7 @@ def controller(self, controller): Sets the controller of this StorageSasExpander. :param controller: The controller of this StorageSasExpander. - :type: MoMoRef + :type: ManagementControllerRef """ self._controller = controller @@ -570,7 +544,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this StorageSasExpander. :return: The equipment_chassis of this StorageSasExpander. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -580,7 +554,7 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this StorageSasExpander. :param equipment_chassis: The equipment_chassis of this StorageSasExpander. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis @@ -696,7 +670,7 @@ def registered_device(self): Gets the registered_device of this StorageSasExpander. :return: The registered_device of this StorageSasExpander. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -706,7 +680,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageSasExpander. :param registered_device: The registered_device of this StorageSasExpander. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/storage_sas_expander_list.py b/intersight/models/storage_sas_expander_list.py index 02bdce88..89109400 100644 --- a/intersight/models/storage_sas_expander_list.py +++ b/intersight/models/storage_sas_expander_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_sas_expander_ref.py b/intersight/models/storage_sas_expander_ref.py new file mode 100644 index 00000000..6d7b659c --- /dev/null +++ b/intersight/models/storage_sas_expander_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageSasExpanderRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageSasExpanderRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageSasExpanderRef. + + :return: The moid of this StorageSasExpanderRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageSasExpanderRef. + + :param moid: The moid of this StorageSasExpanderRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageSasExpanderRef. + + :return: The object_type of this StorageSasExpanderRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageSasExpanderRef. + + :param object_type: The object_type of this StorageSasExpanderRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageSasExpanderRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_span_group.py b/intersight/models/storage_span_group.py index 95633e71..457e5e0f 100644 --- a/intersight/models/storage_span_group.py +++ b/intersight/models/storage_span_group.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -52,7 +52,7 @@ def __init__(self, disks=None): def disks(self): """ Gets the disks of this StorageSpanGroup. - Collection of local disks that are part of this span group. 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. + Collection of local disks that are part of this span group. 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 :return: The disks of this StorageSpanGroup. :rtype: list[StorageLocalDisk] @@ -63,7 +63,7 @@ def disks(self): def disks(self, disks): """ Sets the disks of this StorageSpanGroup. - Collection of local disks that are part of this span group. 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. + Collection of local disks that are part of this span group. 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 :param disks: The disks of this StorageSpanGroup. :type: list[StorageLocalDisk] diff --git a/intersight/models/storage_span_group_ref.py b/intersight/models/storage_span_group_ref.py new file mode 100644 index 00000000..13c02e6d --- /dev/null +++ b/intersight/models/storage_span_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageSpanGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageSpanGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageSpanGroupRef. + + :return: The moid of this StorageSpanGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageSpanGroupRef. + + :param moid: The moid of this StorageSpanGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageSpanGroupRef. + + :return: The object_type of this StorageSpanGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageSpanGroupRef. + + :param object_type: The object_type of this StorageSpanGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageSpanGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_storage_policy.py b/intersight/models/storage_storage_policy.py index 88763b6f..dd3cf885 100644 --- a/intersight/models/storage_storage_policy.py +++ b/intersight/models/storage_storage_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,21 @@ class StorageStoragePolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', - 'enable_drive_security': 'bool', + 'disk_group_policies': 'list[StorageDiskGroupPolicyRef]', 'global_hot_spares': 'list[StorageLocalDisk]', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', - 'remote_key_setting': 'StorageRemoteKeySetting', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', 'retain_policy_virtual_drives': 'bool', - 'unused_disks_encryption_state': 'bool', 'unused_disks_state': 'str', 'virtual_drives': 'list[StorageVirtualDriveConfig]' } @@ -65,18 +63,16 @@ class StorageStoragePolicy(object): 'tags': 'Tags', 'description': 'Description', 'name': 'Name', - 'enable_drive_security': 'EnableDriveSecurity', + 'disk_group_policies': 'DiskGroupPolicies', 'global_hot_spares': 'GlobalHotSpares', 'organization': 'Organization', 'profiles': 'Profiles', - 'remote_key_setting': 'RemoteKeySetting', 'retain_policy_virtual_drives': 'RetainPolicyVirtualDrives', - 'unused_disks_encryption_state': 'UnusedDisksEncryptionState', 'unused_disks_state': 'UnusedDisksState', 'virtual_drives': 'VirtualDrives' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, enable_drive_security=None, global_hot_spares=None, organization=None, profiles=None, remote_key_setting=None, retain_policy_virtual_drives=None, unused_disks_encryption_state=None, unused_disks_state='UnconfiguredGood', virtual_drives=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, disk_group_policies=None, global_hot_spares=None, organization=None, profiles=None, retain_policy_virtual_drives=None, unused_disks_state='UnconfiguredGood', virtual_drives=None): """ StorageStoragePolicy - a model defined in Swagger """ @@ -92,13 +88,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._tags = None self._description = None self._name = None - self._enable_drive_security = None + self._disk_group_policies = None self._global_hot_spares = None self._organization = None self._profiles = None - self._remote_key_setting = None self._retain_policy_virtual_drives = None - self._unused_disks_encryption_state = None self._unused_disks_state = None self._virtual_drives = None @@ -124,20 +118,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.description = description if name is not None: self.name = name - if enable_drive_security is not None: - self.enable_drive_security = enable_drive_security + if disk_group_policies is not None: + self.disk_group_policies = disk_group_policies if global_hot_spares is not None: self.global_hot_spares = global_hot_spares if organization is not None: self.organization = organization if profiles is not None: self.profiles = profiles - if remote_key_setting is not None: - self.remote_key_setting = remote_key_setting if retain_policy_virtual_drives is not None: self.retain_policy_virtual_drives = retain_policy_virtual_drives - if unused_disks_encryption_state is not None: - self.unused_disks_encryption_state = unused_disks_encryption_state if unused_disks_state is not None: self.unused_disks_state = unused_disks_state if virtual_drives is not None: @@ -173,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -184,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageStoragePolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -311,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageStoragePolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -322,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageStoragePolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -397,33 +387,33 @@ def name(self, name): self._name = name @property - def enable_drive_security(self): + def disk_group_policies(self): """ - Gets the enable_drive_security of this StorageStoragePolicy. - 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. + Gets the disk_group_policies of this StorageStoragePolicy. + Relationship to the used disk group policies - :return: The enable_drive_security of this StorageStoragePolicy. - :rtype: bool + :return: The disk_group_policies of this StorageStoragePolicy. + :rtype: list[StorageDiskGroupPolicyRef] """ - return self._enable_drive_security + return self._disk_group_policies - @enable_drive_security.setter - def enable_drive_security(self, enable_drive_security): + @disk_group_policies.setter + def disk_group_policies(self, disk_group_policies): """ - Sets the enable_drive_security of this StorageStoragePolicy. - 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. + Sets the disk_group_policies of this StorageStoragePolicy. + Relationship to the used disk group policies - :param enable_drive_security: The enable_drive_security of this StorageStoragePolicy. - :type: bool + :param disk_group_policies: The disk_group_policies of this StorageStoragePolicy. + :type: list[StorageDiskGroupPolicyRef] """ - self._enable_drive_security = enable_drive_security + self._disk_group_policies = disk_group_policies @property def global_hot_spares(self): """ Gets the global_hot_spares of this StorageStoragePolicy. - A collection of disks used as hot spares globally for all the RAID groups + A collection of disks used as hot spares globally for all the RAID groups :return: The global_hot_spares of this StorageStoragePolicy. :rtype: list[StorageLocalDisk] @@ -434,7 +424,7 @@ def global_hot_spares(self): def global_hot_spares(self, global_hot_spares): """ Sets the global_hot_spares of this StorageStoragePolicy. - A collection of disks used as hot spares globally for all the RAID groups + A collection of disks used as hot spares globally for all the RAID groups :param global_hot_spares: The global_hot_spares of this StorageStoragePolicy. :type: list[StorageLocalDisk] @@ -449,7 +439,7 @@ def organization(self): Organization :return: The organization of this StorageStoragePolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -460,7 +450,7 @@ def organization(self, organization): Organization :param organization: The organization of this StorageStoragePolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -472,7 +462,7 @@ def profiles(self): Relationship to the profile objects :return: The profiles of this StorageStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -483,39 +473,16 @@ def profiles(self, profiles): Relationship to the profile objects :param profiles: The profiles of this StorageStoragePolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles - @property - def remote_key_setting(self): - """ - Gets the remote_key_setting of this StorageStoragePolicy. - This is used to specify the remote KMIP server details for supporting remote key encryption - - :return: The remote_key_setting of this StorageStoragePolicy. - :rtype: StorageRemoteKeySetting - """ - return self._remote_key_setting - - @remote_key_setting.setter - def remote_key_setting(self, remote_key_setting): - """ - Sets the remote_key_setting of this StorageStoragePolicy. - This is used to specify the remote KMIP server details for supporting remote key encryption - - :param remote_key_setting: The remote_key_setting of this StorageStoragePolicy. - :type: StorageRemoteKeySetting - """ - - self._remote_key_setting = remote_key_setting - @property def retain_policy_virtual_drives(self): """ Gets the retain_policy_virtual_drives of this StorageStoragePolicy. - Retains the virtual drives defined in policy if they exist already. If this flag is false, the existing virtual drives are removed and created again based on virtual drives in the policy + Retains the virtual drives defined in policy if they exist already. If this flag is false, the existing virtual drives are removed and created again based on virtual drives in the policy :return: The retain_policy_virtual_drives of this StorageStoragePolicy. :rtype: bool @@ -526,7 +493,7 @@ def retain_policy_virtual_drives(self): def retain_policy_virtual_drives(self, retain_policy_virtual_drives): """ Sets the retain_policy_virtual_drives of this StorageStoragePolicy. - Retains the virtual drives defined in policy if they exist already. If this flag is false, the existing virtual drives are removed and created again based on virtual drives in the policy + Retains the virtual drives defined in policy if they exist already. If this flag is false, the existing virtual drives are removed and created again based on virtual drives in the policy :param retain_policy_virtual_drives: The retain_policy_virtual_drives of this StorageStoragePolicy. :type: bool @@ -534,29 +501,6 @@ def retain_policy_virtual_drives(self, retain_policy_virtual_drives): self._retain_policy_virtual_drives = retain_policy_virtual_drives - @property - def unused_disks_encryption_state(self): - """ - Gets the unused_disks_encryption_state of this StorageStoragePolicy. - Enables the encryption of the unused disks if the policy is configured with remote key - - :return: The unused_disks_encryption_state of this StorageStoragePolicy. - :rtype: bool - """ - return self._unused_disks_encryption_state - - @unused_disks_encryption_state.setter - def unused_disks_encryption_state(self, unused_disks_encryption_state): - """ - Sets the unused_disks_encryption_state of this StorageStoragePolicy. - Enables the encryption of the unused disks if the policy is configured with remote key - - :param unused_disks_encryption_state: The unused_disks_encryption_state of this StorageStoragePolicy. - :type: bool - """ - - self._unused_disks_encryption_state = unused_disks_encryption_state - @property def unused_disks_state(self): """ diff --git a/intersight/models/storage_storage_policy_list.py b/intersight/models/storage_storage_policy_list.py index f77fd6af..def371d4 100644 --- a/intersight/models/storage_storage_policy_list.py +++ b/intersight/models/storage_storage_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_storage_policy_ref.py b/intersight/models/storage_storage_policy_ref.py new file mode 100644 index 00000000..ae45de1b --- /dev/null +++ b/intersight/models/storage_storage_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageStoragePolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageStoragePolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageStoragePolicyRef. + + :return: The moid of this StorageStoragePolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageStoragePolicyRef. + + :param moid: The moid of this StorageStoragePolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageStoragePolicyRef. + + :return: The object_type of this StorageStoragePolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageStoragePolicyRef. + + :param object_type: The object_type of this StorageStoragePolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageStoragePolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_validation_task_ref.py b/intersight/models/storage_validation_task_ref.py new file mode 100644 index 00000000..0f0f4494 --- /dev/null +++ b/intersight/models/storage_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageValidationTaskRef. + + :return: The moid of this StorageValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageValidationTaskRef. + + :param moid: The moid of this StorageValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageValidationTaskRef. + + :return: The object_type of this StorageValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageValidationTaskRef. + + :param object_type: The object_type of this StorageValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_vd_member_ep.py b/intersight/models/storage_vd_member_ep.py index 9e76eb75..4a02063f 100644 --- a/intersight/models/storage_vd_member_ep.py +++ b/intersight/models/storage_vd_member_ep.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,23 @@ class StorageVdMemberEp(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'oper_qualifier_reason': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'role': 'str', 'span_id': 'str', - 'storage_virtual_drive': 'MoMoRef', + 'storage_virtual_drive': 'StorageVirtualDriveRef', 'vd_member_ep_id': 'int' } @@ -168,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageVdMemberEp. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageVdMemberEp. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageVdMemberEp. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageVdMemberEp. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -456,7 +456,7 @@ def registered_device(self): Gets the registered_device of this StorageVdMemberEp. :return: The registered_device of this StorageVdMemberEp. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -466,7 +466,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageVdMemberEp. :param registered_device: The registered_device of this StorageVdMemberEp. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -519,7 +519,7 @@ def storage_virtual_drive(self): Gets the storage_virtual_drive of this StorageVdMemberEp. :return: The storage_virtual_drive of this StorageVdMemberEp. - :rtype: MoMoRef + :rtype: StorageVirtualDriveRef """ return self._storage_virtual_drive @@ -529,7 +529,7 @@ def storage_virtual_drive(self, storage_virtual_drive): Sets the storage_virtual_drive of this StorageVdMemberEp. :param storage_virtual_drive: The storage_virtual_drive of this StorageVdMemberEp. - :type: MoMoRef + :type: StorageVirtualDriveRef """ self._storage_virtual_drive = storage_virtual_drive diff --git a/intersight/models/storage_vd_member_ep_list.py b/intersight/models/storage_vd_member_ep_list.py index 9c1abd7d..37691e0c 100644 --- a/intersight/models/storage_vd_member_ep_list.py +++ b/intersight/models/storage_vd_member_ep_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_vd_member_ep_ref.py b/intersight/models/storage_vd_member_ep_ref.py new file mode 100644 index 00000000..fd82a310 --- /dev/null +++ b/intersight/models/storage_vd_member_ep_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageVdMemberEpRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageVdMemberEpRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageVdMemberEpRef. + + :return: The moid of this StorageVdMemberEpRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageVdMemberEpRef. + + :param moid: The moid of this StorageVdMemberEpRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageVdMemberEpRef. + + :return: The object_type of this StorageVdMemberEpRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageVdMemberEpRef. + + :param object_type: The object_type of this StorageVdMemberEpRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageVdMemberEpRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_virtual_drive.py b/intersight/models/storage_virtual_drive.py index a51d639e..cb4f03d9 100644 --- a/intersight/models/storage_virtual_drive.py +++ b/intersight/models/storage_virtual_drive.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class StorageVirtualDrive(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', @@ -64,17 +64,17 @@ class StorageVirtualDrive(object): 'oper_state': 'str', 'operability': 'str', 'physical_block_size': 'str', - 'physical_disk_usages': 'list[MoMoRef]', + 'physical_disk_usages': 'list[StoragePhysicalDiskUsageRef]', 'presence': 'str', 'read_policy': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'security_flags': 'str', 'size': 'str', - 'storage_controller': 'MoMoRef', + 'storage_controller': 'StorageControllerRef', 'strip_size': 'str', 'type': 'str', 'uuid': 'str', - 'vd_member_eps': 'list[MoMoRef]', + 'vd_member_eps': 'list[StorageVdMemberEpRef]', 'vendor_uuid': 'str', 'virtual_drive_id': 'str' } @@ -303,7 +303,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageVirtualDrive. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -314,7 +314,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageVirtualDrive. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -441,7 +441,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageVirtualDrive. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -452,7 +452,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageVirtualDrive. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -990,7 +990,7 @@ def physical_disk_usages(self): Gets the physical_disk_usages of this StorageVirtualDrive. :return: The physical_disk_usages of this StorageVirtualDrive. - :rtype: list[MoMoRef] + :rtype: list[StoragePhysicalDiskUsageRef] """ return self._physical_disk_usages @@ -1000,7 +1000,7 @@ def physical_disk_usages(self, physical_disk_usages): Sets the physical_disk_usages of this StorageVirtualDrive. :param physical_disk_usages: The physical_disk_usages of this StorageVirtualDrive. - :type: list[MoMoRef] + :type: list[StoragePhysicalDiskUsageRef] """ self._physical_disk_usages = physical_disk_usages @@ -1053,7 +1053,7 @@ def registered_device(self): Gets the registered_device of this StorageVirtualDrive. :return: The registered_device of this StorageVirtualDrive. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1063,7 +1063,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageVirtualDrive. :param registered_device: The registered_device of this StorageVirtualDrive. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -1116,7 +1116,7 @@ def storage_controller(self): Gets the storage_controller of this StorageVirtualDrive. :return: The storage_controller of this StorageVirtualDrive. - :rtype: MoMoRef + :rtype: StorageControllerRef """ return self._storage_controller @@ -1126,7 +1126,7 @@ def storage_controller(self, storage_controller): Sets the storage_controller of this StorageVirtualDrive. :param storage_controller: The storage_controller of this StorageVirtualDrive. - :type: MoMoRef + :type: StorageControllerRef """ self._storage_controller = storage_controller @@ -1200,7 +1200,7 @@ def vd_member_eps(self): Gets the vd_member_eps of this StorageVirtualDrive. :return: The vd_member_eps of this StorageVirtualDrive. - :rtype: list[MoMoRef] + :rtype: list[StorageVdMemberEpRef] """ return self._vd_member_eps @@ -1210,7 +1210,7 @@ def vd_member_eps(self, vd_member_eps): Sets the vd_member_eps of this StorageVirtualDrive. :param vd_member_eps: The vd_member_eps of this StorageVirtualDrive. - :type: list[MoMoRef] + :type: list[StorageVdMemberEpRef] """ self._vd_member_eps = vd_member_eps diff --git a/intersight/models/storage_virtual_drive_config.py b/intersight/models/storage_virtual_drive_config.py index 71dd974e..9ea1879d 100644 --- a/intersight/models/storage_virtual_drive_config.py +++ b/intersight/models/storage_virtual_drive_config.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,6 +33,7 @@ class StorageVirtualDriveConfig(object): swagger_types = { 'access_policy': 'str', 'boot_drive': 'bool', + 'disk_group_name': 'str', 'disk_group_policy': 'str', 'drive_cache': 'str', 'expand_to_available': 'bool', @@ -46,6 +47,7 @@ class StorageVirtualDriveConfig(object): attribute_map = { 'access_policy': 'AccessPolicy', 'boot_drive': 'BootDrive', + 'disk_group_name': 'DiskGroupName', 'disk_group_policy': 'DiskGroupPolicy', 'drive_cache': 'DriveCache', 'expand_to_available': 'ExpandToAvailable', @@ -56,13 +58,14 @@ class StorageVirtualDriveConfig(object): 'write_policy': 'WritePolicy' } - def __init__(self, access_policy='Default', boot_drive=None, disk_group_policy=None, drive_cache='Default', expand_to_available=None, io_policy='Default', name=None, read_policy='Default', size=None, write_policy='Default'): + def __init__(self, access_policy='Default', boot_drive=None, disk_group_name=None, disk_group_policy=None, drive_cache='Default', expand_to_available=None, io_policy='Default', name=None, read_policy='Default', size=None, write_policy='Default'): """ StorageVirtualDriveConfig - a model defined in Swagger """ self._access_policy = None self._boot_drive = None + self._disk_group_name = None self._disk_group_policy = None self._drive_cache = None self._expand_to_available = None @@ -76,6 +79,8 @@ def __init__(self, access_policy='Default', boot_drive=None, disk_group_policy=N self.access_policy = access_policy if boot_drive is not None: self.boot_drive = boot_drive + if disk_group_name is not None: + self.disk_group_name = disk_group_name if disk_group_policy is not None: self.disk_group_policy = disk_group_policy if drive_cache is not None: @@ -97,7 +102,7 @@ def __init__(self, access_policy='Default', boot_drive=None, disk_group_policy=N def access_policy(self): """ Gets the access_policy of this StorageVirtualDriveConfig. - This property holds the access policy that host has on this virtual drive. Accepted values - Default, ReadWrite, ReadOnly, Blocked Default - use platform default ReadWrite - host can read from and write to the virtual drisk ReadOnlt - host can only read from the virtual disk Blocked - host can neither read nor write to the virtual disk + This property holds the access policy that host has on this virtual drive :return: The access_policy of this StorageVirtualDriveConfig. :rtype: str @@ -108,7 +113,7 @@ def access_policy(self): def access_policy(self, access_policy): """ Sets the access_policy of this StorageVirtualDriveConfig. - This property holds the access policy that host has on this virtual drive. Accepted values - Default, ReadWrite, ReadOnly, Blocked Default - use platform default ReadWrite - host can read from and write to the virtual drisk ReadOnlt - host can only read from the virtual disk Blocked - host can neither read nor write to the virtual disk + This property holds the access policy that host has on this virtual drive :param access_policy: The access_policy of this StorageVirtualDriveConfig. :type: str @@ -145,11 +150,34 @@ def boot_drive(self, boot_drive): self._boot_drive = boot_drive + @property + def disk_group_name(self): + """ + Gets the disk_group_name of this StorageVirtualDriveConfig. + Disk group policy that has the disk group in which this virtual drive needs to be created + + :return: The disk_group_name of this StorageVirtualDriveConfig. + :rtype: str + """ + return self._disk_group_name + + @disk_group_name.setter + def disk_group_name(self, disk_group_name): + """ + Sets the disk_group_name of this StorageVirtualDriveConfig. + Disk group policy that has the disk group in which this virtual drive needs to be created + + :param disk_group_name: The disk_group_name of this StorageVirtualDriveConfig. + :type: str + """ + + self._disk_group_name = disk_group_name + @property def disk_group_policy(self): """ Gets the disk_group_policy of this StorageVirtualDriveConfig. - This property expects the Moid of the disk group policy that has the disk group in which this virtual drive needs to be created + Disk group policy that has the disk group in which this virtual drive needs to be created :return: The disk_group_policy of this StorageVirtualDriveConfig. :rtype: str @@ -160,7 +188,7 @@ def disk_group_policy(self): def disk_group_policy(self, disk_group_policy): """ Sets the disk_group_policy of this StorageVirtualDriveConfig. - This property expects the Moid of the disk group policy that has the disk group in which this virtual drive needs to be created + Disk group policy that has the disk group in which this virtual drive needs to be created :param disk_group_policy: The disk_group_policy of this StorageVirtualDriveConfig. :type: str @@ -172,7 +200,7 @@ def disk_group_policy(self, disk_group_policy): def drive_cache(self): """ Gets the drive_cache of this StorageVirtualDriveConfig. - This property expect disk cache policy. Accepted values - Default, NoChange, Enable, Disable + This property expect disk cache policy :return: The drive_cache of this StorageVirtualDriveConfig. :rtype: str @@ -183,7 +211,7 @@ def drive_cache(self): def drive_cache(self, drive_cache): """ Sets the drive_cache of this StorageVirtualDriveConfig. - This property expect disk cache policy. Accepted values - Default, NoChange, Enable, Disable + This property expect disk cache policy :param drive_cache: The drive_cache of this StorageVirtualDriveConfig. :type: str @@ -201,7 +229,7 @@ def drive_cache(self, drive_cache): def expand_to_available(self): """ Gets the expand_to_available of this StorageVirtualDriveConfig. - This flag enables this virtual drive to use all the available space in the disk group. When this flag is configured, the size property is ignored. + This flag enables this virtual drive to use all the available space in the disk group. When this flag is configured, the size property is ignored :return: The expand_to_available of this StorageVirtualDriveConfig. :rtype: bool @@ -212,7 +240,7 @@ def expand_to_available(self): def expand_to_available(self, expand_to_available): """ Sets the expand_to_available of this StorageVirtualDriveConfig. - This flag enables this virtual drive to use all the available space in the disk group. When this flag is configured, the size property is ignored. + This flag enables this virtual drive to use all the available space in the disk group. When this flag is configured, the size property is ignored :param expand_to_available: The expand_to_available of this StorageVirtualDriveConfig. :type: bool @@ -224,7 +252,7 @@ def expand_to_available(self, expand_to_available): def io_policy(self): """ Gets the io_policy of this StorageVirtualDriveConfig. - This property expects the desired io mode - direct io or cached io. Accepted values - Default, DirectIo, CachedIo + This property expects the desired IO mode - direct IO or cached IO :return: The io_policy of this StorageVirtualDriveConfig. :rtype: str @@ -235,7 +263,7 @@ def io_policy(self): def io_policy(self, io_policy): """ Sets the io_policy of this StorageVirtualDriveConfig. - This property expects the desired io mode - direct io or cached io. Accepted values - Default, DirectIo, CachedIo + This property expects the desired IO mode - direct IO or cached IO :param io_policy: The io_policy of this StorageVirtualDriveConfig. :type: str @@ -253,7 +281,7 @@ def io_policy(self, io_policy): def name(self): """ Gets the name of this StorageVirtualDriveConfig. - The name of the virtual drive + The name of the virtual drive. The name can be between 1 and 15 alphanumeric characters. Spaces or any special characters other than - (hyphen), _ (underscore), : (colon), and . (period) are not allowed :return: The name of this StorageVirtualDriveConfig. :rtype: str @@ -264,7 +292,7 @@ def name(self): def name(self, name): """ Sets the name of this StorageVirtualDriveConfig. - The name of the virtual drive + The name of the virtual drive. The name can be between 1 and 15 alphanumeric characters. Spaces or any special characters other than - (hyphen), _ (underscore), : (colon), and . (period) are not allowed :param name: The name of this StorageVirtualDriveConfig. :type: str @@ -276,7 +304,7 @@ def name(self, name): def read_policy(self): """ Gets the read_policy of this StorageVirtualDriveConfig. - This property holds the read ahead mode to be used. Accepted values - Default, ReadAhead, NoReadAhead Default - use platform default ReadAhead - always read ahead into cache NoReadAhead - do not read ahead + This property holds the read ahead mode to be used :return: The read_policy of this StorageVirtualDriveConfig. :rtype: str @@ -287,7 +315,7 @@ def read_policy(self): def read_policy(self, read_policy): """ Sets the read_policy of this StorageVirtualDriveConfig. - This property holds the read ahead mode to be used. Accepted values - Default, ReadAhead, NoReadAhead Default - use platform default ReadAhead - always read ahead into cache NoReadAhead - do not read ahead + This property holds the read ahead mode to be used :param read_policy: The read_policy of this StorageVirtualDriveConfig. :type: str @@ -305,7 +333,7 @@ def read_policy(self, read_policy): def size(self): """ Gets the size of this StorageVirtualDriveConfig. - Virtual drive size in MB. This is a required field unless expandToAvailable is set to true + Virtual drive size in MB. This is a required field unless the 'Expand to Available' option is enabled :return: The size of this StorageVirtualDriveConfig. :rtype: int @@ -316,7 +344,7 @@ def size(self): def size(self, size): """ Sets the size of this StorageVirtualDriveConfig. - Virtual drive size in MB. This is a required field unless expandToAvailable is set to true + Virtual drive size in MB. This is a required field unless the 'Expand to Available' option is enabled :param size: The size of this StorageVirtualDriveConfig. :type: int @@ -328,7 +356,7 @@ def size(self, size): def write_policy(self): """ Gets the write_policy of this StorageVirtualDriveConfig. - This property holds the write mode used to write the data in this virtual drive. Accepted values - Default, WriteThrough, WriteBackGoodBbu, AlwaysWriteBack Default - use platform default WriteThrough - Data is written through the cache and to the physical drives. Performance is improved, because subsequent reads of that data can be satisfied from the cache. WriteBackGoodBbu - Data is stored in the cache, and is only written to the physical drives when space in the cache is needed. Virtual drives requesting this policy fall back to Write Through caching when the batter backup unit (BBU) cannot guarantee the safety of the cache in the event of a power failure. AlwaysWriteBack - With this policy, write caching remains Write Back even if the battery backup unit is defective or discharged. + This property holds the write mode used to write the data in this virtual drive :return: The write_policy of this StorageVirtualDriveConfig. :rtype: str @@ -339,7 +367,7 @@ def write_policy(self): def write_policy(self, write_policy): """ Sets the write_policy of this StorageVirtualDriveConfig. - This property holds the write mode used to write the data in this virtual drive. Accepted values - Default, WriteThrough, WriteBackGoodBbu, AlwaysWriteBack Default - use platform default WriteThrough - Data is written through the cache and to the physical drives. Performance is improved, because subsequent reads of that data can be satisfied from the cache. WriteBackGoodBbu - Data is stored in the cache, and is only written to the physical drives when space in the cache is needed. Virtual drives requesting this policy fall back to Write Through caching when the batter backup unit (BBU) cannot guarantee the safety of the cache in the event of a power failure. AlwaysWriteBack - With this policy, write caching remains Write Back even if the battery backup unit is defective or discharged. + This property holds the write mode used to write the data in this virtual drive :param write_policy: The write_policy of this StorageVirtualDriveConfig. :type: str diff --git a/intersight/models/storage_virtual_drive_config_ref.py b/intersight/models/storage_virtual_drive_config_ref.py new file mode 100644 index 00000000..ec0cbc0b --- /dev/null +++ b/intersight/models/storage_virtual_drive_config_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageVirtualDriveConfigRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageVirtualDriveConfigRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageVirtualDriveConfigRef. + + :return: The moid of this StorageVirtualDriveConfigRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageVirtualDriveConfigRef. + + :param moid: The moid of this StorageVirtualDriveConfigRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageVirtualDriveConfigRef. + + :return: The object_type of this StorageVirtualDriveConfigRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageVirtualDriveConfigRef. + + :param object_type: The object_type of this StorageVirtualDriveConfigRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageVirtualDriveConfigRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_virtual_drive_list.py b/intersight/models/storage_virtual_drive_list.py index 3ca4b1a9..d2503c54 100644 --- a/intersight/models/storage_virtual_drive_list.py +++ b/intersight/models/storage_virtual_drive_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_virtual_drive_ref.py b/intersight/models/storage_virtual_drive_ref.py new file mode 100644 index 00000000..a91ca2c8 --- /dev/null +++ b/intersight/models/storage_virtual_drive_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageVirtualDriveRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageVirtualDriveRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageVirtualDriveRef. + + :return: The moid of this StorageVirtualDriveRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageVirtualDriveRef. + + :param moid: The moid of this StorageVirtualDriveRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageVirtualDriveRef. + + :return: The object_type of this StorageVirtualDriveRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageVirtualDriveRef. + + :param object_type: The object_type of this StorageVirtualDriveRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageVirtualDriveRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_file_download_info.py b/intersight/models/task_file_download_info.py index 539ffa07..47998a2e 100644 --- a/intersight/models/task_file_download_info.py +++ b/intersight/models/task_file_download_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/task_file_download_info_ref.py b/intersight/models/task_file_download_info_ref.py new file mode 100644 index 00000000..9f0ba912 --- /dev/null +++ b/intersight/models/task_file_download_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskFileDownloadInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskFileDownloadInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskFileDownloadInfoRef. + + :return: The moid of this TaskFileDownloadInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskFileDownloadInfoRef. + + :param moid: The moid of this TaskFileDownloadInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskFileDownloadInfoRef. + + :return: The object_type of this TaskFileDownloadInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskFileDownloadInfoRef. + + :param object_type: The object_type of this TaskFileDownloadInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskFileDownloadInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task1_ref.py b/intersight/models/task_ucs_task1_ref.py new file mode 100644 index 00000000..44e2c9c2 --- /dev/null +++ b/intersight/models/task_ucs_task1_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask1Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask1Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask1Ref. + + :return: The moid of this TaskUcsTask1Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask1Ref. + + :param moid: The moid of this TaskUcsTask1Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask1Ref. + + :return: The object_type of this TaskUcsTask1Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask1Ref. + + :param object_type: The object_type of this TaskUcsTask1Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask1Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task2_ref.py b/intersight/models/task_ucs_task2_ref.py new file mode 100644 index 00000000..93c7cef8 --- /dev/null +++ b/intersight/models/task_ucs_task2_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask2Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask2Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask2Ref. + + :return: The moid of this TaskUcsTask2Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask2Ref. + + :param moid: The moid of this TaskUcsTask2Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask2Ref. + + :return: The object_type of this TaskUcsTask2Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask2Ref. + + :param object_type: The object_type of this TaskUcsTask2Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask2Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task3_ref.py b/intersight/models/task_ucs_task3_ref.py new file mode 100644 index 00000000..fd534f6e --- /dev/null +++ b/intersight/models/task_ucs_task3_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask3Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask3Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask3Ref. + + :return: The moid of this TaskUcsTask3Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask3Ref. + + :param moid: The moid of this TaskUcsTask3Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask3Ref. + + :return: The object_type of this TaskUcsTask3Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask3Ref. + + :param object_type: The object_type of this TaskUcsTask3Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask3Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task4_ref.py b/intersight/models/task_ucs_task4_ref.py new file mode 100644 index 00000000..e2846062 --- /dev/null +++ b/intersight/models/task_ucs_task4_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask4Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask4Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask4Ref. + + :return: The moid of this TaskUcsTask4Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask4Ref. + + :param moid: The moid of this TaskUcsTask4Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask4Ref. + + :return: The object_type of this TaskUcsTask4Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask4Ref. + + :param object_type: The object_type of this TaskUcsTask4Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask4Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task5_ref.py b/intersight/models/task_ucs_task5_ref.py new file mode 100644 index 00000000..5cf23530 --- /dev/null +++ b/intersight/models/task_ucs_task5_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask5Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask5Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask5Ref. + + :return: The moid of this TaskUcsTask5Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask5Ref. + + :param moid: The moid of this TaskUcsTask5Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask5Ref. + + :return: The object_type of this TaskUcsTask5Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask5Ref. + + :param object_type: The object_type of this TaskUcsTask5Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask5Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task6_ref.py b/intersight/models/task_ucs_task6_ref.py new file mode 100644 index 00000000..3fb8897f --- /dev/null +++ b/intersight/models/task_ucs_task6_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask6Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask6Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask6Ref. + + :return: The moid of this TaskUcsTask6Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask6Ref. + + :param moid: The moid of this TaskUcsTask6Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask6Ref. + + :return: The object_type of this TaskUcsTask6Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask6Ref. + + :param object_type: The object_type of this TaskUcsTask6Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask6Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task7_ref.py b/intersight/models/task_ucs_task7_ref.py new file mode 100644 index 00000000..506ba9ae --- /dev/null +++ b/intersight/models/task_ucs_task7_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask7Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask7Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask7Ref. + + :return: The moid of this TaskUcsTask7Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask7Ref. + + :param moid: The moid of this TaskUcsTask7Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask7Ref. + + :return: The object_type of this TaskUcsTask7Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask7Ref. + + :param object_type: The object_type of this TaskUcsTask7Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask7Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task8_ref.py b/intersight/models/task_ucs_task8_ref.py new file mode 100644 index 00000000..6e7d4727 --- /dev/null +++ b/intersight/models/task_ucs_task8_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask8Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask8Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask8Ref. + + :return: The moid of this TaskUcsTask8Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask8Ref. + + :param moid: The moid of this TaskUcsTask8Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask8Ref. + + :return: The object_type of this TaskUcsTask8Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask8Ref. + + :param object_type: The object_type of this TaskUcsTask8Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask8Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task9_ref.py b/intersight/models/task_ucs_task9_ref.py new file mode 100644 index 00000000..5173723a --- /dev/null +++ b/intersight/models/task_ucs_task9_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask9Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask9Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask9Ref. + + :return: The moid of this TaskUcsTask9Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask9Ref. + + :param moid: The moid of this TaskUcsTask9Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask9Ref. + + :return: The object_type of this TaskUcsTask9Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask9Ref. + + :param object_type: The object_type of this TaskUcsTask9Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask9Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_workflow_action.py b/intersight/models/task_workflow_action.py index 865df4ad..89fe266e 100644 --- a/intersight/models/task_workflow_action.py +++ b/intersight/models/task_workflow_action.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class TaskWorkflowAction(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'action': 'str', 'input_params': 'str', 'is_dynamic': 'bool', @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this TaskWorkflowAction. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this TaskWorkflowAction. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this TaskWorkflowAction. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this TaskWorkflowAction. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -331,7 +331,7 @@ def account(self): Gets the account of this TaskWorkflowAction. :return: The account of this TaskWorkflowAction. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -341,7 +341,7 @@ def account(self, account): Sets the account of this TaskWorkflowAction. :param account: The account of this TaskWorkflowAction. - :type: MoMoRef + :type: IamAccountRef """ self._account = account diff --git a/intersight/models/task_workflow_action_list.py b/intersight/models/task_workflow_action_list.py index a75a909b..68ab2688 100644 --- a/intersight/models/task_workflow_action_list.py +++ b/intersight/models/task_workflow_action_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/task_workflow_action_ref.py b/intersight/models/task_workflow_action_ref.py new file mode 100644 index 00000000..c9435e83 --- /dev/null +++ b/intersight/models/task_workflow_action_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskWorkflowActionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskWorkflowActionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskWorkflowActionRef. + + :return: The moid of this TaskWorkflowActionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskWorkflowActionRef. + + :param moid: The moid of this TaskWorkflowActionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskWorkflowActionRef. + + :return: The object_type of this TaskWorkflowActionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskWorkflowActionRef. + + :param object_type: The object_type of this TaskWorkflowActionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskWorkflowActionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/terminal_audit_log.py b/intersight/models/terminal_audit_log.py index 61f62f39..f969a740 100644 --- a/intersight/models/terminal_audit_log.py +++ b/intersight/models/terminal_audit_log.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,18 +32,18 @@ class TerminalAuditLog(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'device_registration': 'MoMoRef', + 'device_registration': 'AssetDeviceRegistrationRef', 'end_time': 'datetime', 'start_time': 'datetime', - 'user': 'MoMoRef' + 'user': 'IamUserRef' } attribute_map = { @@ -138,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this TerminalAuditLog. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this TerminalAuditLog. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this TerminalAuditLog. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this TerminalAuditLog. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +321,7 @@ def device_registration(self): Gets the device_registration of this TerminalAuditLog. :return: The device_registration of this TerminalAuditLog. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._device_registration @@ -331,7 +331,7 @@ def device_registration(self, device_registration): Sets the device_registration of this TerminalAuditLog. :param device_registration: The device_registration of this TerminalAuditLog. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._device_registration = device_registration @@ -388,7 +388,7 @@ def user(self): Gets the user of this TerminalAuditLog. :return: The user of this TerminalAuditLog. - :rtype: MoMoRef + :rtype: IamUserRef """ return self._user @@ -398,7 +398,7 @@ def user(self, user): Sets the user of this TerminalAuditLog. :param user: The user of this TerminalAuditLog. - :type: MoMoRef + :type: IamUserRef """ self._user = user diff --git a/intersight/models/terminal_audit_log_list.py b/intersight/models/terminal_audit_log_list.py index cfdc51d7..47368e6e 100644 --- a/intersight/models/terminal_audit_log_list.py +++ b/intersight/models/terminal_audit_log_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/terminal_audit_log_ref.py b/intersight/models/terminal_audit_log_ref.py new file mode 100644 index 00000000..07c6f875 --- /dev/null +++ b/intersight/models/terminal_audit_log_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TerminalAuditLogRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TerminalAuditLogRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TerminalAuditLogRef. + + :return: The moid of this TerminalAuditLogRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TerminalAuditLogRef. + + :param moid: The moid of this TerminalAuditLogRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TerminalAuditLogRef. + + :return: The object_type of this TerminalAuditLogRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TerminalAuditLogRef. + + :param object_type: The object_type of this TerminalAuditLogRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TerminalAuditLogRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/top_system.py b/intersight/models/top_system.py index b7e17de8..5914721d 100644 --- a/intersight/models/top_system.py +++ b/intersight/models/top_system.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,26 +32,26 @@ class TopSystem(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'compute_blades': 'list[MoMoRef]', - 'compute_rack_units': 'list[MoMoRef]', + 'compute_blades': 'list[ComputeBladeRef]', + 'compute_rack_units': 'list[ComputeRackUnitRef]', 'ipv4_address': 'str', 'ipv6_address': 'str', - 'management_controller': 'MoMoRef', + 'management_controller': 'ManagementControllerRef', 'mode': 'str', 'name': 'str', - 'network_elements': 'list[MoMoRef]', - 'registered_device': 'MoMoRef' + 'network_elements': 'list[NetworkElementRef]', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -178,7 +178,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this TopSystem. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +189,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this TopSystem. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +316,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this TopSystem. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +327,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this TopSystem. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -424,7 +424,7 @@ def compute_blades(self): Gets the compute_blades of this TopSystem. :return: The compute_blades of this TopSystem. - :rtype: list[MoMoRef] + :rtype: list[ComputeBladeRef] """ return self._compute_blades @@ -434,7 +434,7 @@ def compute_blades(self, compute_blades): Sets the compute_blades of this TopSystem. :param compute_blades: The compute_blades of this TopSystem. - :type: list[MoMoRef] + :type: list[ComputeBladeRef] """ self._compute_blades = compute_blades @@ -445,7 +445,7 @@ def compute_rack_units(self): Gets the compute_rack_units of this TopSystem. :return: The compute_rack_units of this TopSystem. - :rtype: list[MoMoRef] + :rtype: list[ComputeRackUnitRef] """ return self._compute_rack_units @@ -455,7 +455,7 @@ def compute_rack_units(self, compute_rack_units): Sets the compute_rack_units of this TopSystem. :param compute_rack_units: The compute_rack_units of this TopSystem. - :type: list[MoMoRef] + :type: list[ComputeRackUnitRef] """ self._compute_rack_units = compute_rack_units @@ -508,7 +508,7 @@ def management_controller(self): Gets the management_controller of this TopSystem. :return: The management_controller of this TopSystem. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._management_controller @@ -518,7 +518,7 @@ def management_controller(self, management_controller): Sets the management_controller of this TopSystem. :param management_controller: The management_controller of this TopSystem. - :type: MoMoRef + :type: ManagementControllerRef """ self._management_controller = management_controller @@ -571,7 +571,7 @@ def network_elements(self): Gets the network_elements of this TopSystem. :return: The network_elements of this TopSystem. - :rtype: list[MoMoRef] + :rtype: list[NetworkElementRef] """ return self._network_elements @@ -581,7 +581,7 @@ def network_elements(self, network_elements): Sets the network_elements of this TopSystem. :param network_elements: The network_elements of this TopSystem. - :type: list[MoMoRef] + :type: list[NetworkElementRef] """ self._network_elements = network_elements @@ -592,7 +592,7 @@ def registered_device(self): Gets the registered_device of this TopSystem. :return: The registered_device of this TopSystem. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -602,7 +602,7 @@ def registered_device(self, registered_device): Sets the registered_device of this TopSystem. :param registered_device: The registered_device of this TopSystem. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/top_system_list.py b/intersight/models/top_system_list.py index e3ea8434..1bae81b8 100644 --- a/intersight/models/top_system_list.py +++ b/intersight/models/top_system_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/top_system_ref.py b/intersight/models/top_system_ref.py new file mode 100644 index 00000000..5a8e41e0 --- /dev/null +++ b/intersight/models/top_system_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TopSystemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TopSystemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TopSystemRef. + + :return: The moid of this TopSystemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TopSystemRef. + + :param moid: The moid of this TopSystemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TopSystemRef. + + :return: The object_type of this TopSystemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TopSystemRef. + + :param object_type: The object_type of this TopSystemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TopSystemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ucsdconnector_inventory_message_ref.py b/intersight/models/ucsdconnector_inventory_message_ref.py new file mode 100644 index 00000000..f68ddc6e --- /dev/null +++ b/intersight/models/ucsdconnector_inventory_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UcsdconnectorInventoryMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + UcsdconnectorInventoryMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this UcsdconnectorInventoryMessageRef. + + :return: The moid of this UcsdconnectorInventoryMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this UcsdconnectorInventoryMessageRef. + + :param moid: The moid of this UcsdconnectorInventoryMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this UcsdconnectorInventoryMessageRef. + + :return: The object_type of this UcsdconnectorInventoryMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this UcsdconnectorInventoryMessageRef. + + :param object_type: The object_type of this UcsdconnectorInventoryMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UcsdconnectorInventoryMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/views_view.py b/intersight/models/views_view.py index 9498c9bb..fc5cf514 100644 --- a/intersight/models/views_view.py +++ b/intersight/models/views_view.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class ViewsView(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]' } @@ -118,7 +118,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ViewsView. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -129,7 +129,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ViewsView. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -256,7 +256,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ViewsView. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -267,7 +267,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ViewsView. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent diff --git a/intersight/models/views_view_ref.py b/intersight/models/views_view_ref.py new file mode 100644 index 00000000..3ad8d5b5 --- /dev/null +++ b/intersight/models/views_view_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ViewsViewRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ViewsViewRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ViewsViewRef. + + :return: The moid of this ViewsViewRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ViewsViewRef. + + :param moid: The moid of this ViewsViewRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ViewsViewRef. + + :return: The object_type of this ViewsViewRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ViewsViewRef. + + :param object_type: The object_type of this ViewsViewRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ViewsViewRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/vmedia_deploy_task_ref.py b/intersight/models/vmedia_deploy_task_ref.py new file mode 100644 index 00000000..04daa528 --- /dev/null +++ b/intersight/models/vmedia_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class VmediaDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + VmediaDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this VmediaDeployTaskRef. + + :return: The moid of this VmediaDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this VmediaDeployTaskRef. + + :param moid: The moid of this VmediaDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this VmediaDeployTaskRef. + + :return: The object_type of this VmediaDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this VmediaDeployTaskRef. + + :param object_type: The object_type of this VmediaDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, VmediaDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/vmedia_mapping.py b/intersight/models/vmedia_mapping.py index 88e9f369..a88e724c 100644 --- a/intersight/models/vmedia_mapping.py +++ b/intersight/models/vmedia_mapping.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,6 +34,7 @@ class VmediaMapping(object): 'authentication_protocol': 'str', 'device_type': 'str', 'host_name': 'str', + 'is_password_set': 'bool', 'mount_options': 'str', 'mount_protocol': 'str', 'password': 'str', @@ -47,6 +48,7 @@ class VmediaMapping(object): 'authentication_protocol': 'AuthenticationProtocol', 'device_type': 'DeviceType', 'host_name': 'HostName', + 'is_password_set': 'IsPasswordSet', 'mount_options': 'MountOptions', 'mount_protocol': 'MountProtocol', 'password': 'Password', @@ -56,7 +58,7 @@ class VmediaMapping(object): 'volume_name': 'VolumeName' } - def __init__(self, authentication_protocol='none', device_type='Cdd', host_name=None, mount_options=None, mount_protocol='Nfs', password=None, remote_file=None, remote_path=None, username=None, volume_name=None): + def __init__(self, authentication_protocol='none', device_type='cdd', host_name=None, is_password_set=None, mount_options=None, mount_protocol='nfs', password=None, remote_file=None, remote_path=None, username=None, volume_name=None): """ VmediaMapping - a model defined in Swagger """ @@ -64,6 +66,7 @@ def __init__(self, authentication_protocol='none', device_type='Cdd', host_name= self._authentication_protocol = None self._device_type = None self._host_name = None + self._is_password_set = None self._mount_options = None self._mount_protocol = None self._password = None @@ -78,6 +81,8 @@ def __init__(self, authentication_protocol='none', device_type='Cdd', host_name= self.device_type = device_type if host_name is not None: self.host_name = host_name + if is_password_set is not None: + self.is_password_set = is_password_set if mount_options is not None: self.mount_options = mount_options if mount_protocol is not None: @@ -126,7 +131,7 @@ def authentication_protocol(self, authentication_protocol): def device_type(self): """ Gets the device_type of this VmediaMapping. - Type of remote vMedia device. Accepted values are CDD, HDD + Type of remote Virtual Media device :return: The device_type of this VmediaMapping. :rtype: str @@ -137,12 +142,12 @@ def device_type(self): def device_type(self, device_type): """ Sets the device_type of this VmediaMapping. - Type of remote vMedia device. Accepted values are CDD, HDD + Type of remote Virtual Media device :param device_type: The device_type of this VmediaMapping. :type: str """ - allowed_values = ["Cdd", "Hdd"] + allowed_values = ["cdd", "hdd"] if device_type not in allowed_values: raise ValueError( "Invalid value for `device_type` ({0}), must be one of {1}" @@ -174,11 +179,32 @@ def host_name(self, host_name): self._host_name = host_name + @property + def is_password_set(self): + """ + Gets the is_password_set of this VmediaMapping. + + :return: The is_password_set of this VmediaMapping. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this VmediaMapping. + + :param is_password_set: The is_password_set of this VmediaMapping. + :type: bool + """ + + self._is_password_set = is_password_set + @property def mount_options(self): """ Gets the mount_options of this VmediaMapping. - Mount options for the vMedia mount type + Mount options for the Virtual Media mapping. The field can be left blank or filled in a comma separated list with the following options.\\n For NFS, supported options are ro, rw, nolock, noexec, soft, port=VALUE, timeo=VALUE, retry=VALUE.\\n For CIFS, supported options are soft, nounix, noserverino, guest.\\n For HTTP/HTTPS, the only supported option is noauto. :return: The mount_options of this VmediaMapping. :rtype: str @@ -189,7 +215,7 @@ def mount_options(self): def mount_options(self, mount_options): """ Sets the mount_options of this VmediaMapping. - Mount options for the vMedia mount type + Mount options for the Virtual Media mapping. The field can be left blank or filled in a comma separated list with the following options.\\n For NFS, supported options are ro, rw, nolock, noexec, soft, port=VALUE, timeo=VALUE, retry=VALUE.\\n For CIFS, supported options are soft, nounix, noserverino, guest.\\n For HTTP/HTTPS, the only supported option is noauto. :param mount_options: The mount_options of this VmediaMapping. :type: str @@ -201,7 +227,7 @@ def mount_options(self, mount_options): def mount_protocol(self): """ Gets the mount_protocol of this VmediaMapping. - Protocol to use to communicate with the remote server. Accepted values are NFS, CIFS, HTTP, HTTPS + Protocol to use to communicate with the remote server :return: The mount_protocol of this VmediaMapping. :rtype: str @@ -212,12 +238,12 @@ def mount_protocol(self): def mount_protocol(self, mount_protocol): """ Sets the mount_protocol of this VmediaMapping. - Protocol to use to communicate with the remote server. Accepted values are NFS, CIFS, HTTP, HTTPS + Protocol to use to communicate with the remote server :param mount_protocol: The mount_protocol of this VmediaMapping. :type: str """ - allowed_values = ["Nfs", "Cifs", "Http", "Https"] + allowed_values = ["nfs", "cifs", "http", "https"] if mount_protocol not in allowed_values: raise ValueError( "Invalid value for `mount_protocol` ({0}), must be one of {1}" @@ -253,7 +279,7 @@ def password(self, password): def remote_file(self): """ Gets the remote_file of this VmediaMapping. - Name of the ISO or other images + Name of the remote file. It should be of .img format for HDD Virtual Media mapping and .iso format for CDD Virtual Media mapping. :return: The remote_file of this VmediaMapping. :rtype: str @@ -264,7 +290,7 @@ def remote_file(self): def remote_file(self, remote_file): """ Sets the remote_file of this VmediaMapping. - Name of the ISO or other images + Name of the remote file. It should be of .img format for HDD Virtual Media mapping and .iso format for CDD Virtual Media mapping. :param remote_file: The remote_file of this VmediaMapping. :type: str @@ -276,7 +302,7 @@ def remote_file(self, remote_file): def remote_path(self): """ Gets the remote_path of this VmediaMapping. - Path to the location of the image on the remote server + Path to the location of the image on the remote server. Preferred format is /path/. :return: The remote_path of this VmediaMapping. :rtype: str @@ -287,7 +313,7 @@ def remote_path(self): def remote_path(self, remote_path): """ Sets the remote_path of this VmediaMapping. - Path to the location of the image on the remote server + Path to the location of the image on the remote server. Preferred format is /path/. :param remote_path: The remote_path of this VmediaMapping. :type: str @@ -322,7 +348,7 @@ def username(self, username): def volume_name(self): """ Gets the volume_name of this VmediaMapping. - Identity of the image for vMedia mapping + Identity of the image for Virtual Media mapping :return: The volume_name of this VmediaMapping. :rtype: str @@ -333,7 +359,7 @@ def volume_name(self): def volume_name(self, volume_name): """ Sets the volume_name of this VmediaMapping. - Identity of the image for vMedia mapping + Identity of the image for Virtual Media mapping :param volume_name: The volume_name of this VmediaMapping. :type: str diff --git a/intersight/models/vmedia_mapping_ref.py b/intersight/models/vmedia_mapping_ref.py new file mode 100644 index 00000000..e2853a7c --- /dev/null +++ b/intersight/models/vmedia_mapping_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class VmediaMappingRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + VmediaMappingRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this VmediaMappingRef. + + :return: The moid of this VmediaMappingRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this VmediaMappingRef. + + :param moid: The moid of this VmediaMappingRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this VmediaMappingRef. + + :return: The object_type of this VmediaMappingRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this VmediaMappingRef. + + :param object_type: The object_type of this VmediaMappingRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, VmediaMappingRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/vmedia_policy.py b/intersight/models/vmedia_policy.py index 69284226..1bbbd732 100644 --- a/intersight/models/vmedia_policy.py +++ b/intersight/models/vmedia_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class VmediaPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'description': 'str', 'name': 'str', @@ -46,8 +46,8 @@ class VmediaPolicy(object): 'encryption': 'bool', 'low_power_usb': 'bool', 'mappings': 'list[VmediaMapping]', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]' + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -158,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this VmediaPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this VmediaPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this VmediaPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this VmediaPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -385,7 +385,7 @@ def name(self, name): def enabled(self): """ Gets the enabled of this VmediaPolicy. - State of the vMedia service on the endpoint + State of the Virtual Media service on the endpoint :return: The enabled of this VmediaPolicy. :rtype: bool @@ -396,7 +396,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this VmediaPolicy. - State of the vMedia service on the endpoint + State of the Virtual Media service on the endpoint :param enabled: The enabled of this VmediaPolicy. :type: bool @@ -408,7 +408,7 @@ def enabled(self, enabled): def encryption(self): """ Gets the encryption of this VmediaPolicy. - If enabled, allows encryption of all vMedia communications + If enabled, allows encryption of all Virtual Media communications :return: The encryption of this VmediaPolicy. :rtype: bool @@ -419,7 +419,7 @@ def encryption(self): def encryption(self, encryption): """ Sets the encryption of this VmediaPolicy. - If enabled, allows encryption of all vMedia communications + If enabled, allows encryption of all Virtual Media communications :param encryption: The encryption of this VmediaPolicy. :type: bool @@ -431,7 +431,7 @@ def encryption(self, encryption): def low_power_usb(self): """ Gets the low_power_usb of this VmediaPolicy. - Enables Low power USB + If enabled, the virtual drives appear on the boot selection menu after mapping the image and rebooting the host :return: The low_power_usb of this VmediaPolicy. :rtype: bool @@ -442,7 +442,7 @@ def low_power_usb(self): def low_power_usb(self, low_power_usb): """ Sets the low_power_usb of this VmediaPolicy. - Enables Low power USB + If enabled, the virtual drives appear on the boot selection menu after mapping the image and rebooting the host :param low_power_usb: The low_power_usb of this VmediaPolicy. :type: bool @@ -454,7 +454,7 @@ def low_power_usb(self, low_power_usb): def mappings(self): """ Gets the mappings of this VmediaPolicy. - Adds a new vMedia mapping for images + Adds a new Virtual Media mapping for images :return: The mappings of this VmediaPolicy. :rtype: list[VmediaMapping] @@ -465,7 +465,7 @@ def mappings(self): def mappings(self, mappings): """ Sets the mappings of this VmediaPolicy. - Adds a new vMedia mapping for images + Adds a new Virtual Media mapping for images :param mappings: The mappings of this VmediaPolicy. :type: list[VmediaMapping] @@ -480,7 +480,7 @@ def organization(self): Organization :return: The organization of this VmediaPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -491,7 +491,7 @@ def organization(self, organization): Organization :param organization: The organization of this VmediaPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -503,7 +503,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this VmediaPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -514,7 +514,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this VmediaPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/vmedia_policy_list.py b/intersight/models/vmedia_policy_list.py index 553c70ca..0fafc144 100644 --- a/intersight/models/vmedia_policy_list.py +++ b/intersight/models/vmedia_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/vmedia_policy_ref.py b/intersight/models/vmedia_policy_ref.py new file mode 100644 index 00000000..72129aec --- /dev/null +++ b/intersight/models/vmedia_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class VmediaPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + VmediaPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this VmediaPolicyRef. + + :return: The moid of this VmediaPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this VmediaPolicyRef. + + :param moid: The moid of this VmediaPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this VmediaPolicyRef. + + :return: The object_type of this VmediaPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this VmediaPolicyRef. + + :param object_type: The object_type of this VmediaPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, VmediaPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/vmedia_validation_task_ref.py b/intersight/models/vmedia_validation_task_ref.py new file mode 100644 index 00000000..715e4321 --- /dev/null +++ b/intersight/models/vmedia_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class VmediaValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + VmediaValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this VmediaValidationTaskRef. + + :return: The moid of this VmediaValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this VmediaValidationTaskRef. + + :param moid: The moid of this VmediaValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this VmediaValidationTaskRef. + + :return: The object_type of this VmediaValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this VmediaValidationTaskRef. + + :param object_type: The object_type of this VmediaValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, VmediaValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_build_task_meta.py b/intersight/models/workflow_build_task_meta.py index cf9a2886..b8eaeb53 100644 --- a/intersight/models/workflow_build_task_meta.py +++ b/intersight/models/workflow_build_task_meta.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class WorkflowBuildTaskMeta(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'name': 'str', 'src': 'str', 'task_list': 'object', @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this WorkflowBuildTaskMeta. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this WorkflowBuildTaskMeta. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this WorkflowBuildTaskMeta. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this WorkflowBuildTaskMeta. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -331,7 +331,7 @@ def account(self): Gets the account of this WorkflowBuildTaskMeta. :return: The account of this WorkflowBuildTaskMeta. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -341,7 +341,7 @@ def account(self, account): Sets the account of this WorkflowBuildTaskMeta. :param account: The account of this WorkflowBuildTaskMeta. - :type: MoMoRef + :type: IamAccountRef """ self._account = account diff --git a/intersight/models/workflow_build_task_meta_list.py b/intersight/models/workflow_build_task_meta_list.py index 46c61399..d551c6e3 100644 --- a/intersight/models/workflow_build_task_meta_list.py +++ b/intersight/models/workflow_build_task_meta_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_build_task_meta_ref.py b/intersight/models/workflow_build_task_meta_ref.py new file mode 100644 index 00000000..2583fb89 --- /dev/null +++ b/intersight/models/workflow_build_task_meta_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowBuildTaskMetaRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowBuildTaskMetaRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowBuildTaskMetaRef. + + :return: The moid of this WorkflowBuildTaskMetaRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowBuildTaskMetaRef. + + :param moid: The moid of this WorkflowBuildTaskMetaRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowBuildTaskMetaRef. + + :return: The object_type of this WorkflowBuildTaskMetaRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowBuildTaskMetaRef. + + :param object_type: The object_type of this WorkflowBuildTaskMetaRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowBuildTaskMetaRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_task_info.py b/intersight/models/workflow_task_info.py index 076f1a0a..5f7824e9 100644 --- a/intersight/models/workflow_task_info.py +++ b/intersight/models/workflow_task_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,13 +32,13 @@ class WorkflowTaskInfo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'descr': 'str', 'end_time': 'datetime', @@ -52,7 +52,7 @@ class WorkflowTaskInfo(object): 'start_time': 'datetime', 'status': 'str', 'task_inst_id_list': 'list[WorkflowTaskRetryInfo]', - 'workflow_info': 'MoMoRef' + 'workflow_info': 'WorkflowWorkflowInfoRef' } attribute_map = { @@ -183,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this WorkflowTaskInfo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this WorkflowTaskInfo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this WorkflowTaskInfo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this WorkflowTaskInfo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -640,7 +640,7 @@ def workflow_info(self): Gets the workflow_info of this WorkflowTaskInfo. :return: The workflow_info of this WorkflowTaskInfo. - :rtype: MoMoRef + :rtype: WorkflowWorkflowInfoRef """ return self._workflow_info @@ -650,7 +650,7 @@ def workflow_info(self, workflow_info): Sets the workflow_info of this WorkflowTaskInfo. :param workflow_info: The workflow_info of this WorkflowTaskInfo. - :type: MoMoRef + :type: WorkflowWorkflowInfoRef """ self._workflow_info = workflow_info diff --git a/intersight/models/workflow_task_info_list.py b/intersight/models/workflow_task_info_list.py index 9336b03c..7c84d765 100644 --- a/intersight/models/workflow_task_info_list.py +++ b/intersight/models/workflow_task_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_task_info_ref.py b/intersight/models/workflow_task_info_ref.py new file mode 100644 index 00000000..8ac1b5f6 --- /dev/null +++ b/intersight/models/workflow_task_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowTaskInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowTaskInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowTaskInfoRef. + + :return: The moid of this WorkflowTaskInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowTaskInfoRef. + + :param moid: The moid of this WorkflowTaskInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowTaskInfoRef. + + :return: The object_type of this WorkflowTaskInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowTaskInfoRef. + + :param object_type: The object_type of this WorkflowTaskInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowTaskInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_task_meta.py b/intersight/models/workflow_task_meta.py index 1556b55f..15da975b 100644 --- a/intersight/models/workflow_task_meta.py +++ b/intersight/models/workflow_task_meta.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class WorkflowTaskMeta(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'action_type': 'str', 'description': 'str', 'input_keys': 'list[str]', @@ -183,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this WorkflowTaskMeta. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this WorkflowTaskMeta. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this WorkflowTaskMeta. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this WorkflowTaskMeta. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -366,7 +366,7 @@ def account(self): Gets the account of this WorkflowTaskMeta. :return: The account of this WorkflowTaskMeta. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -376,7 +376,7 @@ def account(self, account): Sets the account of this WorkflowTaskMeta. :param account: The account of this WorkflowTaskMeta. - :type: MoMoRef + :type: IamAccountRef """ self._account = account diff --git a/intersight/models/workflow_task_meta_list.py b/intersight/models/workflow_task_meta_list.py index 3f9d942d..0ceaee53 100644 --- a/intersight/models/workflow_task_meta_list.py +++ b/intersight/models/workflow_task_meta_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_task_meta_ref.py b/intersight/models/workflow_task_meta_ref.py new file mode 100644 index 00000000..583921ed --- /dev/null +++ b/intersight/models/workflow_task_meta_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowTaskMetaRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowTaskMetaRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowTaskMetaRef. + + :return: The moid of this WorkflowTaskMetaRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowTaskMetaRef. + + :param moid: The moid of this WorkflowTaskMetaRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowTaskMetaRef. + + :return: The object_type of this WorkflowTaskMetaRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowTaskMetaRef. + + :param object_type: The object_type of this WorkflowTaskMetaRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowTaskMetaRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_task_retry_info.py b/intersight/models/workflow_task_retry_info.py index 79565620..7eff9ccb 100644 --- a/intersight/models/workflow_task_retry_info.py +++ b/intersight/models/workflow_task_retry_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_task_retry_info_ref.py b/intersight/models/workflow_task_retry_info_ref.py new file mode 100644 index 00000000..44f8f5fa --- /dev/null +++ b/intersight/models/workflow_task_retry_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowTaskRetryInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowTaskRetryInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowTaskRetryInfoRef. + + :return: The moid of this WorkflowTaskRetryInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowTaskRetryInfoRef. + + :param moid: The moid of this WorkflowTaskRetryInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowTaskRetryInfoRef. + + :return: The object_type of this WorkflowTaskRetryInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowTaskRetryInfoRef. + + :param object_type: The object_type of this WorkflowTaskRetryInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowTaskRetryInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_workflow_info.py b/intersight/models/workflow_workflow_info.py index 32e3be66..ad928a97 100644 --- a/intersight/models/workflow_workflow_info.py +++ b/intersight/models/workflow_workflow_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class WorkflowWorkflowInfo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'end_time': 'datetime', 'input': 'object', 'inst_id': 'str', @@ -50,7 +50,7 @@ class WorkflowWorkflowInfo(object): 'progress': 'float', 'start_time': 'datetime', 'status': 'str', - 'task_infos': 'list[MoMoRef]', + 'task_infos': 'list[WorkflowTaskInfoRef]', 'type': 'str', 'user_id': 'str', 'workflow_ctx': 'object', @@ -198,7 +198,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this WorkflowWorkflowInfo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -209,7 +209,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this WorkflowWorkflowInfo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -336,7 +336,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this WorkflowWorkflowInfo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -347,7 +347,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this WorkflowWorkflowInfo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -382,7 +382,7 @@ def account(self): An account owns the workflow instatnce :return: The account of this WorkflowWorkflowInfo. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -393,7 +393,7 @@ def account(self, account): An account owns the workflow instatnce :param account: The account of this WorkflowWorkflowInfo. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -611,7 +611,7 @@ def task_infos(self): Gets the task_infos of this WorkflowWorkflowInfo. :return: The task_infos of this WorkflowWorkflowInfo. - :rtype: list[MoMoRef] + :rtype: list[WorkflowTaskInfoRef] """ return self._task_infos @@ -621,7 +621,7 @@ def task_infos(self, task_infos): Sets the task_infos of this WorkflowWorkflowInfo. :param task_infos: The task_infos of this WorkflowWorkflowInfo. - :type: list[MoMoRef] + :type: list[WorkflowTaskInfoRef] """ self._task_infos = task_infos diff --git a/intersight/models/workflow_workflow_info_list.py b/intersight/models/workflow_workflow_info_list.py index 0c5cbf49..f08fc19d 100644 --- a/intersight/models/workflow_workflow_info_list.py +++ b/intersight/models/workflow_workflow_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_workflow_info_ref.py b/intersight/models/workflow_workflow_info_ref.py new file mode 100644 index 00000000..a75d6967 --- /dev/null +++ b/intersight/models/workflow_workflow_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowWorkflowInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowWorkflowInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowWorkflowInfoRef. + + :return: The moid of this WorkflowWorkflowInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowWorkflowInfoRef. + + :param moid: The moid of this WorkflowWorkflowInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowWorkflowInfoRef. + + :return: The object_type of this WorkflowWorkflowInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowWorkflowInfoRef. + + :param object_type: The object_type of this WorkflowWorkflowInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowWorkflowInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_workflow_meta.py b/intersight/models/workflow_workflow_meta.py index 84516d16..632bb6f4 100644 --- a/intersight/models/workflow_workflow_meta.py +++ b/intersight/models/workflow_workflow_meta.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class WorkflowWorkflowMeta(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'description': 'str', 'input_parameters': 'list[str]', 'name': 'str', @@ -49,7 +49,7 @@ class WorkflowWorkflowMeta(object): 'src': 'str', 'tasks': 'object', 'version': 'int', - 'workflow_tasks': 'list[MoMoRef]' + 'workflow_tasks': 'list[WorkflowWorkflowTaskRef]' } attribute_map = { @@ -168,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this WorkflowWorkflowMeta. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this WorkflowWorkflowMeta. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this WorkflowWorkflowMeta. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this WorkflowWorkflowMeta. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -352,7 +352,7 @@ def account(self): The account creates the workflow meta :return: The account of this WorkflowWorkflowMeta. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -363,7 +363,7 @@ def account(self, account): The account creates the workflow meta :param account: The account of this WorkflowWorkflowMeta. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -559,7 +559,7 @@ def workflow_tasks(self): The list of tasks contained inside the workflow :return: The workflow_tasks of this WorkflowWorkflowMeta. - :rtype: list[MoMoRef] + :rtype: list[WorkflowWorkflowTaskRef] """ return self._workflow_tasks @@ -570,7 +570,7 @@ def workflow_tasks(self, workflow_tasks): The list of tasks contained inside the workflow :param workflow_tasks: The workflow_tasks of this WorkflowWorkflowMeta. - :type: list[MoMoRef] + :type: list[WorkflowWorkflowTaskRef] """ self._workflow_tasks = workflow_tasks diff --git a/intersight/models/workflow_workflow_meta_list.py b/intersight/models/workflow_workflow_meta_list.py index ac949e2c..47321314 100644 --- a/intersight/models/workflow_workflow_meta_list.py +++ b/intersight/models/workflow_workflow_meta_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_workflow_meta_ref.py b/intersight/models/workflow_workflow_meta_ref.py new file mode 100644 index 00000000..dbba5218 --- /dev/null +++ b/intersight/models/workflow_workflow_meta_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowWorkflowMetaRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowWorkflowMetaRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowWorkflowMetaRef. + + :return: The moid of this WorkflowWorkflowMetaRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowWorkflowMetaRef. + + :param moid: The moid of this WorkflowWorkflowMetaRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowWorkflowMetaRef. + + :return: The object_type of this WorkflowWorkflowMetaRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowWorkflowMetaRef. + + :param object_type: The object_type of this WorkflowWorkflowMetaRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowWorkflowMetaRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_workflow_task.py b/intersight/models/workflow_workflow_task.py index cb2dc62f..d55776d3 100644 --- a/intersight/models/workflow_workflow_task.py +++ b/intersight/models/workflow_workflow_task.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,20 @@ class WorkflowWorkflowTask(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', 'input_params': 'object', 'name': 'str', 'optional': 'bool', 'task_ref_name': 'str', 'type': 'str', - 'workflowmeta': 'MoMoRef' + 'workflowmeta': 'WorkflowWorkflowMetaRef' } attribute_map = { @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this WorkflowWorkflowTask. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this WorkflowWorkflowTask. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this WorkflowWorkflowTask. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this WorkflowWorkflowTask. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -436,7 +436,7 @@ def workflowmeta(self): Gets the workflowmeta of this WorkflowWorkflowTask. :return: The workflowmeta of this WorkflowWorkflowTask. - :rtype: MoMoRef + :rtype: WorkflowWorkflowMetaRef """ return self._workflowmeta @@ -446,7 +446,7 @@ def workflowmeta(self, workflowmeta): Sets the workflowmeta of this WorkflowWorkflowTask. :param workflowmeta: The workflowmeta of this WorkflowWorkflowTask. - :type: MoMoRef + :type: WorkflowWorkflowMetaRef """ self._workflowmeta = workflowmeta diff --git a/intersight/models/workflow_workflow_task_list.py b/intersight/models/workflow_workflow_task_list.py index 6fe054c1..ba5b6cc7 100644 --- a/intersight/models/workflow_workflow_task_list.py +++ b/intersight/models/workflow_workflow_task_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_workflow_task_ref.py b/intersight/models/workflow_workflow_task_ref.py new file mode 100644 index 00000000..ec1449cd --- /dev/null +++ b/intersight/models/workflow_workflow_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.5-612 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowWorkflowTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowWorkflowTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowWorkflowTaskRef. + + :return: The moid of this WorkflowWorkflowTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowWorkflowTaskRef. + + :param moid: The moid of this WorkflowWorkflowTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowWorkflowTaskRef. + + :return: The object_type of this WorkflowWorkflowTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowWorkflowTaskRef. + + :param object_type: The object_type of this WorkflowWorkflowTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowWorkflowTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/rest.py b/intersight/rest.py index 38da3bf2..4951b87c 100644 --- a/intersight/rest.py +++ b/intersight/rest.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.5-612 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/requirements.txt b/requirements.txt index 4c87294b..b37f38c0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ certifi >= 14.05.14 -pycrypto >= 2.6.1 -six >= 1.10 +six python_dateutil >= 2.5.3 setuptools >= 21.0.0 urllib3 >= 1.15.1 +pycrypto >= 2.6.1 requests >= 2.17.0 diff --git a/setup.py b/setup.py index 2dc5ba7e..77e5a0be 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - UCS Starship API + Intersight API - This is the UCS Starship REST API + This is the Intersight REST API OpenAPI spec version: 1.0.0 @@ -23,19 +23,19 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil", "pycrypto >= 2.6.1", "requests"] +REQUIRES = ["pycrypto", "urllib3 >= 1.15", "six", "certifi", "python-dateutil", "requests"] setup( name=NAME, version=VERSION, - description="UCS Starship API", + description="Intersight API", author_email="", url="", - keywords=["Swagger", "UCS Starship API"], + keywords=["Swagger", "Intersight API"], install_requires=REQUIRES, packages=find_packages(), include_package_data=True, long_description="""\ - This is the UCS Starship REST API + This is the Intersight REST API """ )