diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index a98fcce9..20055562 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,1420 +1,1476 @@ -.gitignore -LICENSE -README.md -README.md -cloudtower/__init__.py -cloudtower/api/__init__.py -cloudtower/api/alert_api.py -cloudtower/api/alert_notifier_api.py -cloudtower/api/alert_rule_api.py -cloudtower/api/api_info_api.py -cloudtower/api/application_api.py -cloudtower/api/brick_topo_api.py -cloudtower/api/cloud_tower_application_api.py -cloudtower/api/cloud_tower_application_package_api.py -cloudtower/api/cluster_api.py -cloudtower/api/cluster_image_api.py -cloudtower/api/cluster_settings_api.py -cloudtower/api/cluster_topo_api.py -cloudtower/api/cluster_upgrade_history_api.py -cloudtower/api/consistency_group_api.py -cloudtower/api/consistency_group_snapshot_api.py -cloudtower/api/content_library_image_api.py -cloudtower/api/content_library_vm_template_api.py -cloudtower/api/datacenter_api.py -cloudtower/api/deploy_api.py -cloudtower/api/discovered_host_api.py -cloudtower/api/disk_api.py -cloudtower/api/elf_data_store_api.py -cloudtower/api/elf_image_api.py -cloudtower/api/elf_storage_policy_api.py -cloudtower/api/entity_filter_api.py -cloudtower/api/everoute_cluster_api.py -cloudtower/api/everoute_license_api.py -cloudtower/api/everoute_package_api.py -cloudtower/api/global_alert_rule_api.py -cloudtower/api/global_settings_api.py -cloudtower/api/graph_api.py -cloudtower/api/host_api.py -cloudtower/api/ipmi_api.py -cloudtower/api/iscsi_connection_api.py -cloudtower/api/iscsi_lun_api.py -cloudtower/api/iscsi_lun_snapshot_api.py -cloudtower/api/iscsi_target_api.py -cloudtower/api/isolation_policy_api.py -cloudtower/api/label_api.py -cloudtower/api/license_api.py -cloudtower/api/log_collection_api.py -cloudtower/api/log_service_config_api.py -cloudtower/api/metrics_api.py -cloudtower/api/namespace_group_api.py -cloudtower/api/nfs_export_api.py -cloudtower/api/nfs_inode_api.py -cloudtower/api/nic_api.py -cloudtower/api/node_topo_api.py -cloudtower/api/nvmf_namespace_api.py -cloudtower/api/nvmf_namespace_snapshot_api.py -cloudtower/api/nvmf_subsystem_api.py -cloudtower/api/organization_api.py -cloudtower/api/pmem_dimm_api.py -cloudtower/api/rack_topo_api.py -cloudtower/api/report_task_api.py -cloudtower/api/report_template_api.py -cloudtower/api/security_policy_api.py -cloudtower/api/snapshot_group_api.py -cloudtower/api/snapshot_plan_api.py -cloudtower/api/snapshot_plan_task_api.py -cloudtower/api/snmp_transport_api.py -cloudtower/api/snmp_trap_receiver_api.py -cloudtower/api/svt_image_api.py -cloudtower/api/system_audit_log_api.py -cloudtower/api/table_reporter_api.py -cloudtower/api/task_api.py -cloudtower/api/upload_task_api.py -cloudtower/api/usb_device_api.py -cloudtower/api/user_api.py -cloudtower/api/user_audit_log_api.py -cloudtower/api/user_role_next_api.py -cloudtower/api/vcenter_account_api.py -cloudtower/api/vds_api.py -cloudtower/api/view_api.py -cloudtower/api/vlan_api.py -cloudtower/api/vm_api.py -cloudtower/api/vm_disk_api.py -cloudtower/api/vm_entity_filter_result_api.py -cloudtower/api/vm_folder_api.py -cloudtower/api/vm_nic_api.py -cloudtower/api/vm_placement_group_api.py -cloudtower/api/vm_snapshot_api.py -cloudtower/api/vm_template_api.py -cloudtower/api/vm_volume_api.py -cloudtower/api/vm_volume_snapshot_api.py -cloudtower/api/vsphere_esxi_account_api.py -cloudtower/api/witness_api.py -cloudtower/api/witness_service_api.py -cloudtower/api/zone_api.py -cloudtower/api/zone_topo_api.py -cloudtower/api_client.py -cloudtower/configuration.py -cloudtower/exceptions.py -cloudtower/models/__init__.py -cloudtower/models/abort_migrate_vm_across_cluster_params.py -cloudtower/models/access_mode.py -cloudtower/models/add_clusters_to_datacenter_params.py -cloudtower/models/add_clusters_to_datacenter_params_data.py -cloudtower/models/add_labels_to_resources_params.py -cloudtower/models/add_labels_to_resources_params_data.py -cloudtower/models/alert.py -cloudtower/models/alert_connection.py -cloudtower/models/alert_notifier.py -cloudtower/models/alert_notifier_connection.py -cloudtower/models/alert_notifier_order_by_input.py -cloudtower/models/alert_notifier_updation_params.py -cloudtower/models/alert_notifier_where_input.py -cloudtower/models/alert_order_by_input.py -cloudtower/models/alert_rule.py -cloudtower/models/alert_rule_connection.py -cloudtower/models/alert_rule_object.py -cloudtower/models/alert_rule_order_by_input.py -cloudtower/models/alert_rule_thresholds.py -cloudtower/models/alert_rule_unit.py -cloudtower/models/alert_rule_where_input.py -cloudtower/models/alert_where_input.py -cloudtower/models/application.py -cloudtower/models/application_connection.py -cloudtower/models/application_order_by_input.py -cloudtower/models/application_state.py -cloudtower/models/application_type.py -cloudtower/models/application_vm_spec.py -cloudtower/models/application_vm_spec_affinity_policy.py -cloudtower/models/application_vm_spec_definition.py -cloudtower/models/application_vm_spec_env.py -cloudtower/models/application_vm_spec_network.py -cloudtower/models/application_vm_spec_nic.py -cloudtower/models/application_vm_spec_placement.py -cloudtower/models/application_vm_spec_placement_situation.py -cloudtower/models/application_vm_spec_placement_verb.py -cloudtower/models/application_vm_spec_status.py -cloudtower/models/application_vm_spec_storage.py -cloudtower/models/application_where_input.py -cloudtower/models/architecture.py -cloudtower/models/batch_hosts.py -cloudtower/models/bps_unit.py -cloudtower/models/brick_phase_enum.py -cloudtower/models/brick_topo.py -cloudtower/models/brick_topo_connection.py -cloudtower/models/brick_topo_creation_params.py -cloudtower/models/brick_topo_deletion_params.py -cloudtower/models/brick_topo_move_params.py -cloudtower/models/brick_topo_move_params_data.py -cloudtower/models/brick_topo_order_by_input.py -cloudtower/models/brick_topo_updation_params.py -cloudtower/models/brick_topo_updation_params_data.py -cloudtower/models/brick_topo_where_input.py -cloudtower/models/bus.py -cloudtower/models/byte_unit.py -cloudtower/models/cancel_upload_task_params.py -cloudtower/models/clone_vm_volume_params.py -cloudtower/models/clone_vm_volume_params_data.py -cloudtower/models/cloud_init_net_work.py -cloudtower/models/cloud_init_net_work_route.py -cloudtower/models/cloud_init_network_type_enum.py -cloudtower/models/cloud_tower_application.py -cloudtower/models/cloud_tower_application_connection.py -cloudtower/models/cloud_tower_application_order_by_input.py -cloudtower/models/cloud_tower_application_package.py -cloudtower/models/cloud_tower_application_package_connection.py -cloudtower/models/cloud_tower_application_package_order_by_input.py -cloudtower/models/cloud_tower_application_package_where_input.py -cloudtower/models/cloud_tower_application_state.py -cloudtower/models/cloud_tower_application_where_input.py -cloudtower/models/cloud_tower_application_where_unique_input.py -cloudtower/models/cluster.py -cloudtower/models/cluster_connection.py -cloudtower/models/cluster_connector_error_code.py -cloudtower/models/cluster_creation_params.py -cloudtower/models/cluster_deletion_params.py -cloudtower/models/cluster_enable_iscsi_updation_params.py -cloudtower/models/cluster_ha_updation_params.py -cloudtower/models/cluster_image.py -cloudtower/models/cluster_image_connection.py -cloudtower/models/cluster_image_order_by_input.py -cloudtower/models/cluster_image_where_input.py -cloudtower/models/cluster_license_updation_params.py -cloudtower/models/cluster_license_updation_params_data.py -cloudtower/models/cluster_network_setting_updation_params.py -cloudtower/models/cluster_network_setting_updation_params_data.py -cloudtower/models/cluster_order_by_input.py -cloudtower/models/cluster_recycle_bin_creation_params.py -cloudtower/models/cluster_recycle_bin_creation_params_data.py -cloudtower/models/cluster_recycle_bin_deletion_params.py -cloudtower/models/cluster_recycle_bin_updation_params.py -cloudtower/models/cluster_settings.py -cloudtower/models/cluster_settings_connection.py -cloudtower/models/cluster_settings_order_by_input.py -cloudtower/models/cluster_settings_where_input.py -cloudtower/models/cluster_topo.py -cloudtower/models/cluster_topo_connection.py -cloudtower/models/cluster_topo_order_by_input.py -cloudtower/models/cluster_topo_where_input.py -cloudtower/models/cluster_type.py -cloudtower/models/cluster_updation_params.py -cloudtower/models/cluster_updation_params_data.py -cloudtower/models/cluster_upgrade_history.py -cloudtower/models/cluster_upgrade_history_connection.py -cloudtower/models/cluster_upgrade_history_order_by_input.py -cloudtower/models/cluster_upgrade_history_where_input.py -cloudtower/models/cluster_virtualization_updation_params.py -cloudtower/models/cluster_virtualization_updation_params_data.py -cloudtower/models/cluster_where_input.py -cloudtower/models/cluster_where_unique_input.py -cloudtower/models/column_config.py -cloudtower/models/connect_state.py -cloudtower/models/consistency_group.py -cloudtower/models/consistency_group_connection.py -cloudtower/models/consistency_group_creation_params.py -cloudtower/models/consistency_group_deletion_params.py -cloudtower/models/consistency_group_deletion_params_data.py -cloudtower/models/consistency_group_order_by_input.py -cloudtower/models/consistency_group_snapshot.py -cloudtower/models/consistency_group_snapshot_connection.py -cloudtower/models/consistency_group_snapshot_creation_params.py -cloudtower/models/consistency_group_snapshot_deletion_params.py -cloudtower/models/consistency_group_snapshot_deletion_params_data.py -cloudtower/models/consistency_group_snapshot_order_by_input.py -cloudtower/models/consistency_group_snapshot_updation_params.py -cloudtower/models/consistency_group_snapshot_where_input.py -cloudtower/models/consistency_group_updation_params.py -cloudtower/models/consistency_group_updation_params_data.py -cloudtower/models/consistency_group_where_input.py -cloudtower/models/consistent_type.py -cloudtower/models/content_library_image.py -cloudtower/models/content_library_image_connection.py -cloudtower/models/content_library_image_deletion_params.py -cloudtower/models/content_library_image_order_by_input.py -cloudtower/models/content_library_image_updation_cluster_params.py -cloudtower/models/content_library_image_updation_cluster_params_data.py -cloudtower/models/content_library_image_updation_params.py -cloudtower/models/content_library_image_updation_params_data.py -cloudtower/models/content_library_image_where_input.py -cloudtower/models/content_library_vm_template.py -cloudtower/models/content_library_vm_template_connection.py -cloudtower/models/content_library_vm_template_creation_params.py -cloudtower/models/content_library_vm_template_deletion_params.py -cloudtower/models/content_library_vm_template_order_by_input.py -cloudtower/models/content_library_vm_template_updation_cluster_params.py -cloudtower/models/content_library_vm_template_updation_cluster_params_data.py -cloudtower/models/content_library_vm_template_updation_params.py -cloudtower/models/content_library_vm_template_updation_params_data.py -cloudtower/models/content_library_vm_template_where_input.py -cloudtower/models/convert_vm_template_to_vm_params.py -cloudtower/models/cpu_fan_speed_unit.py -cloudtower/models/create_vcenter_account_params.py -cloudtower/models/create_vcenter_account_params_data.py -cloudtower/models/customize_alert_rule_updation_params.py -cloudtower/models/customize_alert_rule_updation_params_data.py -cloudtower/models/data_point.py -cloudtower/models/datacenter.py -cloudtower/models/datacenter_connection.py -cloudtower/models/datacenter_creation_params.py -cloudtower/models/datacenter_deletion_params.py -cloudtower/models/datacenter_order_by_input.py -cloudtower/models/datacenter_updation_params.py -cloudtower/models/datacenter_updation_params_data.py -cloudtower/models/datacenter_where_input.py -cloudtower/models/datacenter_where_unique_input.py -cloudtower/models/delete_brick_topo.py -cloudtower/models/delete_cloud_tower_application_package.py -cloudtower/models/delete_cloud_tower_application_package_params.py -cloudtower/models/delete_cluster.py -cloudtower/models/delete_cluster_recycle_bin.py -cloudtower/models/delete_consistency_group.py -cloudtower/models/delete_consistency_group_snapshot.py -cloudtower/models/delete_content_library_image.py -cloudtower/models/delete_content_library_vm_template.py -cloudtower/models/delete_datacenter.py -cloudtower/models/delete_elf_image.py -cloudtower/models/delete_entity_filter.py -cloudtower/models/delete_graph.py -cloudtower/models/delete_iscsi_lun.py -cloudtower/models/delete_iscsi_lun_snapshot.py -cloudtower/models/delete_iscsi_target.py -cloudtower/models/delete_label.py -cloudtower/models/delete_log_collection.py -cloudtower/models/delete_namespace_group.py -cloudtower/models/delete_nfs_export.py -cloudtower/models/delete_nvmf_namespace.py -cloudtower/models/delete_nvmf_namespace_snapshot.py -cloudtower/models/delete_nvmf_subsystem.py -cloudtower/models/delete_organization.py -cloudtower/models/delete_rack_topo.py -cloudtower/models/delete_report_template.py -cloudtower/models/delete_role.py -cloudtower/models/delete_snapshot_group.py -cloudtower/models/delete_snapshot_plan.py -cloudtower/models/delete_snmp_transport.py -cloudtower/models/delete_snmp_trap_receiver.py -cloudtower/models/delete_user.py -cloudtower/models/delete_vds.py -cloudtower/models/delete_view.py -cloudtower/models/delete_vlan.py -cloudtower/models/delete_vm.py -cloudtower/models/delete_vm_folder.py -cloudtower/models/delete_vm_placement_group.py -cloudtower/models/delete_vm_snapshot.py -cloudtower/models/delete_vm_template.py -cloudtower/models/delete_vm_volume.py -cloudtower/models/delete_vm_volume_snapshot.py -cloudtower/models/deploy.py -cloudtower/models/deploy_cloud_tower_application_params.py -cloudtower/models/deploy_connection.py -cloudtower/models/deploy_order_by_input.py -cloudtower/models/deploy_where_input.py -cloudtower/models/direction.py -cloudtower/models/discovered_host.py -cloudtower/models/disk.py -cloudtower/models/disk_connection.py -cloudtower/models/disk_function.py -cloudtower/models/disk_health_status.py -cloudtower/models/disk_mount_params.py -cloudtower/models/disk_mount_params_data.py -cloudtower/models/disk_operate_modify_disk.py -cloudtower/models/disk_order_by_input.py -cloudtower/models/disk_type.py -cloudtower/models/disk_unmount_params.py -cloudtower/models/disk_usage.py -cloudtower/models/disk_usage_status.py -cloudtower/models/disk_where_input.py -cloudtower/models/elf_data_store.py -cloudtower/models/elf_data_store_connection.py -cloudtower/models/elf_data_store_order_by_input.py -cloudtower/models/elf_data_store_type.py -cloudtower/models/elf_data_store_where_input.py -cloudtower/models/elf_image.py -cloudtower/models/elf_image_connection.py -cloudtower/models/elf_image_deletion_params.py -cloudtower/models/elf_image_order_by_input.py -cloudtower/models/elf_image_updation_params.py -cloudtower/models/elf_image_updation_params_data.py -cloudtower/models/elf_image_where_input.py -cloudtower/models/elf_storage_policy.py -cloudtower/models/elf_storage_policy_connection.py -cloudtower/models/elf_storage_policy_order_by_input.py -cloudtower/models/elf_storage_policy_where_input.py -cloudtower/models/entity_async_status.py -cloudtower/models/entity_filter.py -cloudtower/models/entity_filter_connection.py -cloudtower/models/entity_filter_creation_params.py -cloudtower/models/entity_filter_deletion_params.py -cloudtower/models/entity_filter_order_by_input.py -cloudtower/models/entity_filter_updation_params.py -cloudtower/models/entity_filter_updation_params_data.py -cloudtower/models/entity_filter_where_input.py -cloudtower/models/entity_type.py -cloudtower/models/error_body.py -cloudtower/models/everoute_cluster.py -cloudtower/models/everoute_cluster_connection.py -cloudtower/models/everoute_cluster_order_by_input.py -cloudtower/models/everoute_cluster_phase.py -cloudtower/models/everoute_cluster_where_input.py -cloudtower/models/everoute_license.py -cloudtower/models/everoute_license_connection.py -cloudtower/models/everoute_license_order_by_input.py -cloudtower/models/everoute_license_where_input.py -cloudtower/models/everoute_package.py -cloudtower/models/everoute_package_connection.py -cloudtower/models/everoute_package_order_by_input.py -cloudtower/models/everoute_package_where_input.py -cloudtower/models/execute_plan.py -cloudtower/models/extra_ip.py -cloudtower/models/filter_rule_aggregation_enum.py -cloudtower/models/filter_rule_input.py -cloudtower/models/filter_rule_metric_enum.py -cloudtower/models/filter_rule_op_enum.py -cloudtower/models/filter_status.py -cloudtower/models/force_stop_log_collection_params.py -cloudtower/models/get_alert_notifiers_connection_request_body.py -cloudtower/models/get_alert_notifiers_request_body.py -cloudtower/models/get_alert_rules_connection_request_body.py -cloudtower/models/get_alert_rules_request_body.py -cloudtower/models/get_alerts_connection_request_body.py -cloudtower/models/get_alerts_request_body.py -cloudtower/models/get_applications_connection_request_body.py -cloudtower/models/get_applications_request_body.py -cloudtower/models/get_brick_topoes_connection_request_body.py -cloudtower/models/get_brick_topoes_request_body.py -cloudtower/models/get_cloud_tower_application_packages_connection_request_body.py -cloudtower/models/get_cloud_tower_application_packages_request_body.py -cloudtower/models/get_cloud_tower_applications_connection_request_body.py -cloudtower/models/get_cloud_tower_applications_request_body.py -cloudtower/models/get_cluster_images_connection_request_body.py -cloudtower/models/get_cluster_images_request_body.py -cloudtower/models/get_cluster_metric_input.py -cloudtower/models/get_cluster_settingses_connection_request_body.py -cloudtower/models/get_cluster_settingses_request_body.py -cloudtower/models/get_cluster_topoes_connection_request_body.py -cloudtower/models/get_cluster_topoes_request_body.py -cloudtower/models/get_cluster_upgrade_histories_connection_request_body.py -cloudtower/models/get_cluster_upgrade_histories_request_body.py -cloudtower/models/get_clusters_connection_request_body.py -cloudtower/models/get_clusters_request_body.py -cloudtower/models/get_consistency_group_snapshots_connection_request_body.py -cloudtower/models/get_consistency_group_snapshots_request_body.py -cloudtower/models/get_consistency_groups_connection_request_body.py -cloudtower/models/get_consistency_groups_request_body.py -cloudtower/models/get_content_library_images_connection_request_body.py -cloudtower/models/get_content_library_images_request_body.py -cloudtower/models/get_content_library_vm_templates_connection_request_body.py -cloudtower/models/get_content_library_vm_templates_request_body.py -cloudtower/models/get_datacenters_connection_request_body.py -cloudtower/models/get_datacenters_request_body.py -cloudtower/models/get_deploys_connection_request_body.py -cloudtower/models/get_deploys_request_body.py -cloudtower/models/get_discover_hosts_request_body.py -cloudtower/models/get_disk_metric_input.py -cloudtower/models/get_disks_connection_request_body.py -cloudtower/models/get_disks_request_body.py -cloudtower/models/get_elf_data_stores_connection_request_body.py -cloudtower/models/get_elf_data_stores_request_body.py -cloudtower/models/get_elf_images_connection_request_body.py -cloudtower/models/get_elf_images_request_body.py -cloudtower/models/get_elf_storage_policies_connection_request_body.py -cloudtower/models/get_elf_storage_policies_request_body.py -cloudtower/models/get_entity_filters_connection_request_body.py -cloudtower/models/get_entity_filters_request_body.py -cloudtower/models/get_everoute_clusters_connection_request_body.py -cloudtower/models/get_everoute_clusters_request_body.py -cloudtower/models/get_everoute_licenses_connection_request_body.py -cloudtower/models/get_everoute_licenses_request_body.py -cloudtower/models/get_everoute_packages_connection_request_body.py -cloudtower/models/get_everoute_packages_request_body.py -cloudtower/models/get_global_alert_rules_connection_request_body.py -cloudtower/models/get_global_alert_rules_request_body.py -cloudtower/models/get_global_settingses_connection_request_body.py -cloudtower/models/get_global_settingses_request_body.py -cloudtower/models/get_graphs_connection_request_body.py -cloudtower/models/get_graphs_request_body.py -cloudtower/models/get_host_metric_input.py -cloudtower/models/get_host_network_metric_input.py -cloudtower/models/get_host_service_metric_input.py -cloudtower/models/get_hosts_connection_request_body.py -cloudtower/models/get_hosts_request_body.py -cloudtower/models/get_ipmis_request_body.py -cloudtower/models/get_iscsi_connections_connection_request_body.py -cloudtower/models/get_iscsi_connections_request_body.py -cloudtower/models/get_iscsi_lun_snapshots_connection_request_body.py -cloudtower/models/get_iscsi_lun_snapshots_request_body.py -cloudtower/models/get_iscsi_luns_connection_request_body.py -cloudtower/models/get_iscsi_luns_request_body.py -cloudtower/models/get_iscsi_targets_connection_request_body.py -cloudtower/models/get_iscsi_targets_request_body.py -cloudtower/models/get_isolation_policies_connection_request_body.py -cloudtower/models/get_isolation_policies_request_body.py -cloudtower/models/get_labels_connection_request_body.py -cloudtower/models/get_labels_request_body.py -cloudtower/models/get_licenses_connection_request_body.py -cloudtower/models/get_licenses_request_body.py -cloudtower/models/get_log_collections_connection_request_body.py -cloudtower/models/get_log_collections_request_body.py -cloudtower/models/get_log_service_configs_request_body.py -cloudtower/models/get_lun_metric_input.py -cloudtower/models/get_meta_leader_request_body.py -cloudtower/models/get_namespace_groups_connection_request_body.py -cloudtower/models/get_namespace_groups_request_body.py -cloudtower/models/get_nfs_exports_connection_request_body.py -cloudtower/models/get_nfs_exports_request_body.py -cloudtower/models/get_nfs_inodes_connection_request_body.py -cloudtower/models/get_nfs_inodes_request_body.py -cloudtower/models/get_nics_connection_request_body.py -cloudtower/models/get_nics_request_body.py -cloudtower/models/get_node_topoes_connection_request_body.py -cloudtower/models/get_node_topoes_request_body.py -cloudtower/models/get_nvmf_namespace_metric_input.py -cloudtower/models/get_nvmf_namespace_snapshots_connection_request_body.py -cloudtower/models/get_nvmf_namespace_snapshots_request_body.py -cloudtower/models/get_nvmf_namespaces_connection_request_body.py -cloudtower/models/get_nvmf_namespaces_request_body.py -cloudtower/models/get_nvmf_subsystems_connection_request_body.py -cloudtower/models/get_nvmf_subsystems_request_body.py -cloudtower/models/get_organizations_connection_request_body.py -cloudtower/models/get_organizations_request_body.py -cloudtower/models/get_pmem_dimms_connection_request_body.py -cloudtower/models/get_pmem_dimms_request_body.py -cloudtower/models/get_rack_topoes_connection_request_body.py -cloudtower/models/get_rack_topoes_request_body.py -cloudtower/models/get_report_tasks_connection_request_body.py -cloudtower/models/get_report_tasks_request_body.py -cloudtower/models/get_report_templates_connection_request_body.py -cloudtower/models/get_report_templates_request_body.py -cloudtower/models/get_scvm_disk_metric_input.py -cloudtower/models/get_scvm_metric_input.py -cloudtower/models/get_scvm_network_input.py -cloudtower/models/get_scvm_service_metric_input.py -cloudtower/models/get_security_policies_connection_request_body.py -cloudtower/models/get_security_policies_request_body.py -cloudtower/models/get_snapshot_groups_connection_request_body.py -cloudtower/models/get_snapshot_groups_request_body.py -cloudtower/models/get_snapshot_plan_tasks_connection_request_body.py -cloudtower/models/get_snapshot_plan_tasks_request_body.py -cloudtower/models/get_snapshot_plans_connection_request_body.py -cloudtower/models/get_snapshot_plans_request_body.py -cloudtower/models/get_snmp_transports_connection_request_body.py -cloudtower/models/get_snmp_transports_request_body.py -cloudtower/models/get_snmp_trap_receivers_connection_request_body.py -cloudtower/models/get_snmp_trap_receivers_request_body.py -cloudtower/models/get_svt_images_connection_request_body.py -cloudtower/models/get_svt_images_request_body.py -cloudtower/models/get_system_audit_logs_connection_request_body.py -cloudtower/models/get_system_audit_logs_request_body.py -cloudtower/models/get_tasks_connection_request_body.py -cloudtower/models/get_tasks_request_body.py -cloudtower/models/get_top_n_metric_input.py -cloudtower/models/get_upload_tasks_connection_request_body.py -cloudtower/models/get_upload_tasks_request_body.py -cloudtower/models/get_usb_devices_connection_request_body.py -cloudtower/models/get_usb_devices_request_body.py -cloudtower/models/get_user_audit_logs_connection_request_body.py -cloudtower/models/get_user_audit_logs_request_body.py -cloudtower/models/get_user_role_nexts_connection_request_body.py -cloudtower/models/get_user_role_nexts_request_body.py -cloudtower/models/get_users_connection_request_body.py -cloudtower/models/get_users_request_body.py -cloudtower/models/get_vcenter_accounts_connection_request_body.py -cloudtower/models/get_vcenter_accounts_request_body.py -cloudtower/models/get_vdses_connection_request_body.py -cloudtower/models/get_vdses_request_body.py -cloudtower/models/get_views_connection_request_body.py -cloudtower/models/get_views_request_body.py -cloudtower/models/get_vlans_connection_request_body.py -cloudtower/models/get_vlans_request_body.py -cloudtower/models/get_vm_disks_connection_request_body.py -cloudtower/models/get_vm_disks_request_body.py -cloudtower/models/get_vm_entity_filter_results_connection_request_body.py -cloudtower/models/get_vm_entity_filter_results_request_body.py -cloudtower/models/get_vm_folders_connection_request_body.py -cloudtower/models/get_vm_folders_request_body.py -cloudtower/models/get_vm_metric_input.py -cloudtower/models/get_vm_net_work_metric_input.py -cloudtower/models/get_vm_nics_connection_request_body.py -cloudtower/models/get_vm_nics_request_body.py -cloudtower/models/get_vm_placement_groups_connection_request_body.py -cloudtower/models/get_vm_placement_groups_request_body.py -cloudtower/models/get_vm_snapshots_connection_request_body.py -cloudtower/models/get_vm_snapshots_request_body.py -cloudtower/models/get_vm_templates_connection_request_body.py -cloudtower/models/get_vm_templates_request_body.py -cloudtower/models/get_vm_volume_metric_input.py -cloudtower/models/get_vm_volume_snapshots_connection_request_body.py -cloudtower/models/get_vm_volume_snapshots_request_body.py -cloudtower/models/get_vm_volumes_connection_request_body.py -cloudtower/models/get_vm_volumes_request_body.py -cloudtower/models/get_vms_connection_request_body.py -cloudtower/models/get_vms_request_body.py -cloudtower/models/get_vsphere_esxi_accounts_connection_request_body.py -cloudtower/models/get_vsphere_esxi_accounts_request_body.py -cloudtower/models/get_witness_metric_input.py -cloudtower/models/get_witness_services_request_body.py -cloudtower/models/get_witnesses_connection_request_body.py -cloudtower/models/get_witnesses_request_body.py -cloudtower/models/get_zone_metric_input.py -cloudtower/models/get_zone_topoes_connection_request_body.py -cloudtower/models/get_zone_topoes_request_body.py -cloudtower/models/get_zones_connection_request_body.py -cloudtower/models/get_zones_request_body.py -cloudtower/models/global_alert_rule.py -cloudtower/models/global_alert_rule_connection.py -cloudtower/models/global_alert_rule_order_by_input.py -cloudtower/models/global_alert_rule_updation_params.py -cloudtower/models/global_alert_rule_updation_params_data.py -cloudtower/models/global_alert_rule_where_input.py -cloudtower/models/global_policy_action.py -cloudtower/models/global_recycle_bin_updation_params.py -cloudtower/models/global_settings.py -cloudtower/models/global_settings_connection.py -cloudtower/models/global_settings_order_by_input.py -cloudtower/models/global_settings_where_input.py -cloudtower/models/graph.py -cloudtower/models/graph_connection.py -cloudtower/models/graph_creation_params.py -cloudtower/models/graph_deletion_params.py -cloudtower/models/graph_order_by_input.py -cloudtower/models/graph_type.py -cloudtower/models/graph_updation_params.py -cloudtower/models/graph_updation_params_data.py -cloudtower/models/graph_where_input.py -cloudtower/models/host.py -cloudtower/models/host_batch_create_disk_input.py -cloudtower/models/host_batch_create_iface_function.py -cloudtower/models/host_batch_create_iface_input.py -cloudtower/models/host_batch_create_ipmi_input.py -cloudtower/models/host_connection.py -cloudtower/models/host_creation_params.py -cloudtower/models/host_creation_params_data.py -cloudtower/models/host_order_by_input.py -cloudtower/models/host_state.py -cloudtower/models/host_status.py -cloudtower/models/host_updation_params.py -cloudtower/models/host_updation_params_data.py -cloudtower/models/host_where_input.py -cloudtower/models/hypervisor.py -cloudtower/models/install_vmtools_params.py -cloudtower/models/install_vmtools_params_data.py -cloudtower/models/ipmi.py -cloudtower/models/ipmi_order_by_input.py -cloudtower/models/ipmi_where_input.py -cloudtower/models/iscsi_connection.py -cloudtower/models/iscsi_connection_connection.py -cloudtower/models/iscsi_connection_order_by_input.py -cloudtower/models/iscsi_connection_where_input.py -cloudtower/models/iscsi_lun.py -cloudtower/models/iscsi_lun_clone_params.py -cloudtower/models/iscsi_lun_common_params.py -cloudtower/models/iscsi_lun_connection.py -cloudtower/models/iscsi_lun_creation_params.py -cloudtower/models/iscsi_lun_creation_params_all_of.py -cloudtower/models/iscsi_lun_deletion_params.py -cloudtower/models/iscsi_lun_deletion_params_data.py -cloudtower/models/iscsi_lun_order_by_input.py -cloudtower/models/iscsi_lun_rollback_params.py -cloudtower/models/iscsi_lun_snapshot.py -cloudtower/models/iscsi_lun_snapshot_connection.py -cloudtower/models/iscsi_lun_snapshot_creation_effect.py -cloudtower/models/iscsi_lun_snapshot_creation_params.py -cloudtower/models/iscsi_lun_snapshot_deletion_params.py -cloudtower/models/iscsi_lun_snapshot_order_by_input.py -cloudtower/models/iscsi_lun_snapshot_where_input.py -cloudtower/models/iscsi_lun_updation_params.py -cloudtower/models/iscsi_lun_updation_params_data.py -cloudtower/models/iscsi_lun_updation_params_data_all_of.py -cloudtower/models/iscsi_lun_where_input.py -cloudtower/models/iscsi_target.py -cloudtower/models/iscsi_target_common_params.py -cloudtower/models/iscsi_target_common_params_initiator_chaps.py -cloudtower/models/iscsi_target_connection.py -cloudtower/models/iscsi_target_creation_params.py -cloudtower/models/iscsi_target_creation_params_all_of.py -cloudtower/models/iscsi_target_deletion_params.py -cloudtower/models/iscsi_target_order_by_input.py -cloudtower/models/iscsi_target_updation_params.py -cloudtower/models/iscsi_target_where_input.py -cloudtower/models/isolation_mode.py -cloudtower/models/isolation_policy.py -cloudtower/models/isolation_policy_connection.py -cloudtower/models/isolation_policy_order_by_input.py -cloudtower/models/isolation_policy_where_input.py -cloudtower/models/label.py -cloudtower/models/label_connection.py -cloudtower/models/label_creation_params.py -cloudtower/models/label_deletion_params.py -cloudtower/models/label_order_by_input.py -cloudtower/models/label_updation_params.py -cloudtower/models/label_updation_params_data.py -cloudtower/models/label_where_input.py -cloudtower/models/license.py -cloudtower/models/license_connection.py -cloudtower/models/license_order_by_input.py -cloudtower/models/license_type.py -cloudtower/models/license_updation_params.py -cloudtower/models/license_where_input.py -cloudtower/models/log_collection.py -cloudtower/models/log_collection_connection.py -cloudtower/models/log_collection_creation_params.py -cloudtower/models/log_collection_deletion_params.py -cloudtower/models/log_collection_order_by_input.py -cloudtower/models/log_collection_service_group_params.py -cloudtower/models/log_collection_status.py -cloudtower/models/log_collection_where_input.py -cloudtower/models/log_service_config.py -cloudtower/models/log_service_configs_input.py -cloudtower/models/login_input.py -cloudtower/models/login_response.py -cloudtower/models/management_vlan_updation_params.py -cloudtower/models/management_vlan_updation_params_data.py -cloudtower/models/meta_leader.py -cloudtower/models/metric.py -cloudtower/models/metric_label.py -cloudtower/models/metric_sample.py -cloudtower/models/metric_stream.py -cloudtower/models/metric_type.py -cloudtower/models/metric_unit.py -cloudtower/models/metro_check_status_enum.py -cloudtower/models/mgt_ip_mapper.py -cloudtower/models/migrate_type.py -cloudtower/models/migrate_vm_config.py -cloudtower/models/migration_vlan_updation_params.py -cloudtower/models/mount_disks_params.py -cloudtower/models/mount_new_create_disks_params.py -cloudtower/models/mount_new_create_disks_params_vm_volume.py -cloudtower/models/namespace_group.py -cloudtower/models/namespace_group_connection.py -cloudtower/models/namespace_group_creation_params.py -cloudtower/models/namespace_group_deletion_params.py -cloudtower/models/namespace_group_order_by_input.py -cloudtower/models/namespace_group_updation_params.py -cloudtower/models/namespace_group_updation_params_data.py -cloudtower/models/namespace_group_where_input.py -cloudtower/models/nested_aggregate_alert.py -cloudtower/models/nested_aggregate_alert_notifier.py -cloudtower/models/nested_aggregate_alert_rule.py -cloudtower/models/nested_aggregate_application.py -cloudtower/models/nested_aggregate_brick_topo.py -cloudtower/models/nested_aggregate_cloud_tower_application.py -cloudtower/models/nested_aggregate_cloud_tower_application_package.py -cloudtower/models/nested_aggregate_cluster.py -cloudtower/models/nested_aggregate_cluster_image.py -cloudtower/models/nested_aggregate_cluster_settings.py -cloudtower/models/nested_aggregate_cluster_topo.py -cloudtower/models/nested_aggregate_cluster_upgrade_history.py -cloudtower/models/nested_aggregate_consistency_group.py -cloudtower/models/nested_aggregate_consistency_group_snapshot.py -cloudtower/models/nested_aggregate_content_library_image.py -cloudtower/models/nested_aggregate_content_library_vm_template.py -cloudtower/models/nested_aggregate_datacenter.py -cloudtower/models/nested_aggregate_deploy.py -cloudtower/models/nested_aggregate_disk.py -cloudtower/models/nested_aggregate_elf_data_store.py -cloudtower/models/nested_aggregate_elf_image.py -cloudtower/models/nested_aggregate_elf_storage_policy.py -cloudtower/models/nested_aggregate_entity_filter.py -cloudtower/models/nested_aggregate_everoute_cluster.py -cloudtower/models/nested_aggregate_everoute_license.py -cloudtower/models/nested_aggregate_everoute_package.py -cloudtower/models/nested_aggregate_global_alert_rule.py -cloudtower/models/nested_aggregate_global_settings.py -cloudtower/models/nested_aggregate_graph.py -cloudtower/models/nested_aggregate_host.py -cloudtower/models/nested_aggregate_iscsi_connection.py -cloudtower/models/nested_aggregate_iscsi_lun.py -cloudtower/models/nested_aggregate_iscsi_lun_snapshot.py -cloudtower/models/nested_aggregate_iscsi_target.py -cloudtower/models/nested_aggregate_isolation_policy.py -cloudtower/models/nested_aggregate_label.py -cloudtower/models/nested_aggregate_license.py -cloudtower/models/nested_aggregate_log_collection.py -cloudtower/models/nested_aggregate_namespace_group.py -cloudtower/models/nested_aggregate_nfs_export.py -cloudtower/models/nested_aggregate_nfs_inode.py -cloudtower/models/nested_aggregate_nic.py -cloudtower/models/nested_aggregate_node_topo.py -cloudtower/models/nested_aggregate_nvmf_namespace.py -cloudtower/models/nested_aggregate_nvmf_namespace_snapshot.py -cloudtower/models/nested_aggregate_nvmf_subsystem.py -cloudtower/models/nested_aggregate_organization.py -cloudtower/models/nested_aggregate_pmem_dimm.py -cloudtower/models/nested_aggregate_rack_topo.py -cloudtower/models/nested_aggregate_report_task.py -cloudtower/models/nested_aggregate_report_template.py -cloudtower/models/nested_aggregate_security_policy.py -cloudtower/models/nested_aggregate_snapshot_group.py -cloudtower/models/nested_aggregate_snapshot_plan.py -cloudtower/models/nested_aggregate_snapshot_plan_task.py -cloudtower/models/nested_aggregate_snmp_transport.py -cloudtower/models/nested_aggregate_snmp_trap_receiver.py -cloudtower/models/nested_aggregate_svt_image.py -cloudtower/models/nested_aggregate_system_audit_log.py -cloudtower/models/nested_aggregate_task.py -cloudtower/models/nested_aggregate_upload_task.py -cloudtower/models/nested_aggregate_usb_device.py -cloudtower/models/nested_aggregate_user.py -cloudtower/models/nested_aggregate_user_audit_log.py -cloudtower/models/nested_aggregate_user_role_next.py -cloudtower/models/nested_aggregate_vcenter_account.py -cloudtower/models/nested_aggregate_vds.py -cloudtower/models/nested_aggregate_view.py -cloudtower/models/nested_aggregate_vlan.py -cloudtower/models/nested_aggregate_vm.py -cloudtower/models/nested_aggregate_vm_disk.py -cloudtower/models/nested_aggregate_vm_entity_filter_result.py -cloudtower/models/nested_aggregate_vm_folder.py -cloudtower/models/nested_aggregate_vm_nic.py -cloudtower/models/nested_aggregate_vm_placement_group.py -cloudtower/models/nested_aggregate_vm_snapshot.py -cloudtower/models/nested_aggregate_vm_template.py -cloudtower/models/nested_aggregate_vm_volume.py -cloudtower/models/nested_aggregate_vm_volume_snapshot.py -cloudtower/models/nested_aggregate_vsphere_esxi_account.py -cloudtower/models/nested_aggregate_witness.py -cloudtower/models/nested_aggregate_zone.py -cloudtower/models/nested_aggregate_zone_topo.py -cloudtower/models/nested_alert_rule.py -cloudtower/models/nested_application.py -cloudtower/models/nested_auth_settings.py -cloudtower/models/nested_brick_disk_layout.py -cloudtower/models/nested_brick_power.py -cloudtower/models/nested_brick_topo.py -cloudtower/models/nested_capacity.py -cloudtower/models/nested_cloud_tower_application.py -cloudtower/models/nested_cloud_tower_application_package.py -cloudtower/models/nested_cluster.py -cloudtower/models/nested_cluster_settings.py -cloudtower/models/nested_cluster_topo.py -cloudtower/models/nested_consistency_group.py -cloudtower/models/nested_consistency_group_snapshot.py -cloudtower/models/nested_content_library_image.py -cloudtower/models/nested_content_library_vm_template.py -cloudtower/models/nested_cpu.py -cloudtower/models/nested_datacenter.py -cloudtower/models/nested_discovered_host_dimms.py -cloudtower/models/nested_discovered_host_disk.py -cloudtower/models/nested_discovered_host_iface.py -cloudtower/models/nested_disk.py -cloudtower/models/nested_disk_failure_information.py -cloudtower/models/nested_elf_image.py -cloudtower/models/nested_entity_filter.py -cloudtower/models/nested_everoute_agent_status.py -cloudtower/models/nested_everoute_cluster.py -cloudtower/models/nested_everoute_cluster_agent_status.py -cloudtower/models/nested_everoute_cluster_condition.py -cloudtower/models/nested_everoute_cluster_controller_status.py -cloudtower/models/nested_everoute_cluster_status.py -cloudtower/models/nested_everoute_cluster_vm_metrics.py -cloudtower/models/nested_everoute_cluster_whitelist.py -cloudtower/models/nested_everoute_controller_instance.py -cloudtower/models/nested_everoute_controller_status.py -cloudtower/models/nested_everoute_controller_template.py -cloudtower/models/nested_everoute_manage_vds_status.py -cloudtower/models/nested_execute_plan.py -cloudtower/models/nested_filter_rule.py -cloudtower/models/nested_frozen_disks.py -cloudtower/models/nested_frozen_nic.py -cloudtower/models/nested_frozen_vlan.py -cloudtower/models/nested_global_alert_rule.py -cloudtower/models/nested_graph.py -cloudtower/models/nested_host.py -cloudtower/models/nested_initiator_chap.py -cloudtower/models/nested_ipmi.py -cloudtower/models/nested_iscsi_lun.py -cloudtower/models/nested_iscsi_lun_snapshot.py -cloudtower/models/nested_iscsi_target.py -cloudtower/models/nested_isolation_policy.py -cloudtower/models/nested_label.py -cloudtower/models/nested_license.py -cloudtower/models/nested_metro_availability_checklist.py -cloudtower/models/nested_metro_check_item.py -cloudtower/models/nested_metro_check_result.py -cloudtower/models/nested_namespace_group.py -cloudtower/models/nested_network_policy_rule.py -cloudtower/models/nested_network_policy_rule_port.py -cloudtower/models/nested_nfs_export.py -cloudtower/models/nested_nfs_inode.py -cloudtower/models/nested_nic.py -cloudtower/models/nested_node_topo.py -cloudtower/models/nested_nvmf_namespace.py -cloudtower/models/nested_nvmf_namespace_snapshot.py -cloudtower/models/nested_nvmf_subsystem.py -cloudtower/models/nested_organization.py -cloudtower/models/nested_partition.py -cloudtower/models/nested_password_recover_qa.py -cloudtower/models/nested_password_reover_qa_item.py -cloudtower/models/nested_pmem_dimm.py -cloudtower/models/nested_position.py -cloudtower/models/nested_rack_topo.py -cloudtower/models/nested_report_task.py -cloudtower/models/nested_report_template.py -cloudtower/models/nested_resource_meta.py -cloudtower/models/nested_security_policy.py -cloudtower/models/nested_security_policy_apply.py -cloudtower/models/nested_snapshot_group.py -cloudtower/models/nested_snapshot_group_vm_disk_info.py -cloudtower/models/nested_snapshot_group_vm_info.py -cloudtower/models/nested_snapshot_plan.py -cloudtower/models/nested_snapshot_plan_task.py -cloudtower/models/nested_step.py -cloudtower/models/nested_svt_image.py -cloudtower/models/nested_tag_position.py -cloudtower/models/nested_task.py -cloudtower/models/nested_template_nic.py -cloudtower/models/nested_thresholds.py -cloudtower/models/nested_usb_device.py -cloudtower/models/nested_user.py -cloudtower/models/nested_user_role_next.py -cloudtower/models/nested_vcenter_account.py -cloudtower/models/nested_vds.py -cloudtower/models/nested_view.py -cloudtower/models/nested_vlan.py -cloudtower/models/nested_vm.py -cloudtower/models/nested_vm_disk.py -cloudtower/models/nested_vm_entity_filter_result.py -cloudtower/models/nested_vm_folder.py -cloudtower/models/nested_vm_nic.py -cloudtower/models/nested_vm_placement_group.py -cloudtower/models/nested_vm_recycle_bin.py -cloudtower/models/nested_vm_snapshot.py -cloudtower/models/nested_vm_template.py -cloudtower/models/nested_vm_volume.py -cloudtower/models/nested_vsphere_esxi_account.py -cloudtower/models/nested_witness.py -cloudtower/models/nested_zone.py -cloudtower/models/nested_zone_topo.py -cloudtower/models/network_policy_rule_port_protocol.py -cloudtower/models/network_policy_rule_type.py -cloudtower/models/network_type.py -cloudtower/models/nfs_export.py -cloudtower/models/nfs_export_connection.py -cloudtower/models/nfs_export_creation_params.py -cloudtower/models/nfs_export_deletion_params.py -cloudtower/models/nfs_export_order_by_input.py -cloudtower/models/nfs_export_updation_params.py -cloudtower/models/nfs_export_updation_params_data.py -cloudtower/models/nfs_export_where_input.py -cloudtower/models/nfs_inode.py -cloudtower/models/nfs_inode_connection.py -cloudtower/models/nfs_inode_order_by_input.py -cloudtower/models/nfs_inode_where_input.py -cloudtower/models/nic.py -cloudtower/models/nic_connection.py -cloudtower/models/nic_driver_state.py -cloudtower/models/nic_order_by_input.py -cloudtower/models/nic_updation_params.py -cloudtower/models/nic_updation_params_data.py -cloudtower/models/nic_where_input.py -cloudtower/models/node_top_updation_param.py -cloudtower/models/node_topo.py -cloudtower/models/node_topo_connection.py -cloudtower/models/node_topo_order_by_input.py -cloudtower/models/node_topo_updation_params_data.py -cloudtower/models/node_topo_where_input.py -cloudtower/models/node_topo_where_unique_input.py -cloudtower/models/notifier_language_code.py -cloudtower/models/notifier_security_mode.py -cloudtower/models/ntp_mode.py -cloudtower/models/nvmf_namespace.py -cloudtower/models/nvmf_namespace_clone_params.py -cloudtower/models/nvmf_namespace_common_params.py -cloudtower/models/nvmf_namespace_connection.py -cloudtower/models/nvmf_namespace_creation_params.py -cloudtower/models/nvmf_namespace_creation_params_all_of.py -cloudtower/models/nvmf_namespace_deletion_params.py -cloudtower/models/nvmf_namespace_order_by_input.py -cloudtower/models/nvmf_namespace_rollback_params.py -cloudtower/models/nvmf_namespace_snapshot.py -cloudtower/models/nvmf_namespace_snapshot_connection.py -cloudtower/models/nvmf_namespace_snapshot_creation_params.py -cloudtower/models/nvmf_namespace_snapshot_deletion_params.py -cloudtower/models/nvmf_namespace_snapshot_order_by_input.py -cloudtower/models/nvmf_namespace_snapshot_where_input.py -cloudtower/models/nvmf_namespace_updation_params.py -cloudtower/models/nvmf_namespace_updation_params_data.py -cloudtower/models/nvmf_namespace_where_input.py -cloudtower/models/nvmf_subsystem.py -cloudtower/models/nvmf_subsystem_common_params.py -cloudtower/models/nvmf_subsystem_connection.py -cloudtower/models/nvmf_subsystem_creation_params.py -cloudtower/models/nvmf_subsystem_creation_params_all_of.py -cloudtower/models/nvmf_subsystem_deletion_params.py -cloudtower/models/nvmf_subsystem_order_by_input.py -cloudtower/models/nvmf_subsystem_policy_type.py -cloudtower/models/nvmf_subsystem_updation_params.py -cloudtower/models/nvmf_subsystem_where_input.py -cloudtower/models/organization.py -cloudtower/models/organization_connection.py -cloudtower/models/organization_creation_params.py -cloudtower/models/organization_deletion_params.py -cloudtower/models/organization_order_by_input.py -cloudtower/models/organization_updation_params.py -cloudtower/models/organization_where_input.py -cloudtower/models/partition_usage.py -cloudtower/models/password_complexity.py -cloudtower/models/pmem_dimm.py -cloudtower/models/pmem_dimm_connection.py -cloudtower/models/pmem_dimm_order_by_input.py -cloudtower/models/pmem_dimm_where_input.py -cloudtower/models/policy_mode.py -cloudtower/models/position.py -cloudtower/models/power_position.py -cloudtower/models/protect_snapshot_status.py -cloudtower/models/rack_topo.py -cloudtower/models/rack_topo_connection.py -cloudtower/models/rack_topo_creation_params.py -cloudtower/models/rack_topo_deletion_params.py -cloudtower/models/rack_topo_order_by_input.py -cloudtower/models/rack_topo_updation_params.py -cloudtower/models/rack_topo_updation_params_data.py -cloudtower/models/rack_topo_where_input.py -cloudtower/models/remove_clusters_from_datacenter_params.py -cloudtower/models/report_resource_input_enum.py -cloudtower/models/report_task.py -cloudtower/models/report_task_connection.py -cloudtower/models/report_task_order_by_input.py -cloudtower/models/report_task_where_input.py -cloudtower/models/report_template.py -cloudtower/models/report_template_connection.py -cloudtower/models/report_template_creation_params.py -cloudtower/models/report_template_deletion_params.py -cloudtower/models/report_template_order_by_input.py -cloudtower/models/report_template_updation_params.py -cloudtower/models/report_template_updation_params_data.py -cloudtower/models/report_template_where_input.py -cloudtower/models/reporte_template_generation_params.py -cloudtower/models/resolve_alert_params.py -cloudtower/models/resource_meta.py -cloudtower/models/role_creation_params.py -cloudtower/models/role_deletion_params.py -cloudtower/models/role_updation_params.py -cloudtower/models/role_updation_params_data.py -cloudtower/models/roleaction.py -cloudtower/models/root_user_creation_params.py -cloudtower/models/security_policy.py -cloudtower/models/security_policy_connection.py -cloudtower/models/security_policy_order_by_input.py -cloudtower/models/security_policy_where_input.py -cloudtower/models/severity_enum.py -cloudtower/models/snapshot_group.py -cloudtower/models/snapshot_group_clone_param.py -cloudtower/models/snapshot_group_clone_params.py -cloudtower/models/snapshot_group_connection.py -cloudtower/models/snapshot_group_deletion_params.py -cloudtower/models/snapshot_group_keep_params.py -cloudtower/models/snapshot_group_order_by_input.py -cloudtower/models/snapshot_group_rollback_params.py -cloudtower/models/snapshot_group_where_input.py -cloudtower/models/snapshot_plan.py -cloudtower/models/snapshot_plan_connection.py -cloudtower/models/snapshot_plan_creation_params.py -cloudtower/models/snapshot_plan_deletion_params.py -cloudtower/models/snapshot_plan_execute_status.py -cloudtower/models/snapshot_plan_execute_type.py -cloudtower/models/snapshot_plan_execution_params.py -cloudtower/models/snapshot_plan_execution_params_data.py -cloudtower/models/snapshot_plan_order_by_input.py -cloudtower/models/snapshot_plan_resume_params.py -cloudtower/models/snapshot_plan_status.py -cloudtower/models/snapshot_plan_suspended_params.py -cloudtower/models/snapshot_plan_task.py -cloudtower/models/snapshot_plan_task_connection.py -cloudtower/models/snapshot_plan_task_order_by_input.py -cloudtower/models/snapshot_plan_task_type.py -cloudtower/models/snapshot_plan_task_where_input.py -cloudtower/models/snapshot_plan_updation_params.py -cloudtower/models/snapshot_plan_updation_params_data.py -cloudtower/models/snapshot_plan_where_input.py -cloudtower/models/snmp_auth_protocol.py -cloudtower/models/snmp_language_code.py -cloudtower/models/snmp_privacy_protocol.py -cloudtower/models/snmp_protocol.py -cloudtower/models/snmp_transport.py -cloudtower/models/snmp_transport_connection.py -cloudtower/models/snmp_transport_creation_params.py -cloudtower/models/snmp_transport_deletion_params.py -cloudtower/models/snmp_transport_order_by_input.py -cloudtower/models/snmp_transport_updation_params.py -cloudtower/models/snmp_transport_updation_params_data.py -cloudtower/models/snmp_transport_where_input.py -cloudtower/models/snmp_trap_receiver.py -cloudtower/models/snmp_trap_receiver_connection.py -cloudtower/models/snmp_trap_receiver_creation_params.py -cloudtower/models/snmp_trap_receiver_deletion_params.py -cloudtower/models/snmp_trap_receiver_order_by_input.py -cloudtower/models/snmp_trap_receiver_updation_params.py -cloudtower/models/snmp_trap_receiver_updation_params_data.py -cloudtower/models/snmp_trap_receiver_where_input.py -cloudtower/models/snmp_version.py -cloudtower/models/software_edition.py -cloudtower/models/step_unit.py -cloudtower/models/stop_vm_in_cutover_migration_params.py -cloudtower/models/store_connection_type.py -cloudtower/models/store_transport_type.py -cloudtower/models/svt_image.py -cloudtower/models/svt_image_connection.py -cloudtower/models/svt_image_order_by_input.py -cloudtower/models/svt_image_where_input.py -cloudtower/models/system_audit_log.py -cloudtower/models/system_audit_log_connection.py -cloudtower/models/system_audit_log_order_by_input.py -cloudtower/models/system_audit_log_where_input.py -cloudtower/models/table_reporter_params.py -cloudtower/models/table_reporter_params_filter.py -cloudtower/models/task.py -cloudtower/models/task_connection.py -cloudtower/models/task_order_by_input.py -cloudtower/models/task_status.py -cloudtower/models/task_type.py -cloudtower/models/task_where_input.py -cloudtower/models/template_cloud_init.py -cloudtower/models/time_unit.py -cloudtower/models/trigger_disk_blink_params.py -cloudtower/models/uninstall_cloud_tower_application_params.py -cloudtower/models/update_access_restriction_params.py -cloudtower/models/update_cloud_tower_application_vm_spec_params.py -cloudtower/models/update_cloud_tower_application_vm_spec_params_data.py -cloudtower/models/update_passrod_security_params.py -cloudtower/models/update_session_timeout_params.py -cloudtower/models/update_vcenter_account_params.py -cloudtower/models/update_vcenter_account_params_data.py -cloudtower/models/update_vm_volume_params.py -cloudtower/models/update_vm_volume_params_data.py -cloudtower/models/update_vsphere_esxi_account_params.py -cloudtower/models/update_vsphere_esxi_account_params_data.py -cloudtower/models/upgrade_cloud_tower_application_params.py -cloudtower/models/upgrade_cloud_tower_application_params_data.py -cloudtower/models/upload_resource_type.py -cloudtower/models/upload_task.py -cloudtower/models/upload_task_connection.py -cloudtower/models/upload_task_order_by_input.py -cloudtower/models/upload_task_status.py -cloudtower/models/upload_task_where_input.py -cloudtower/models/usb_device.py -cloudtower/models/usb_device_connection.py -cloudtower/models/usb_device_mount_params.py -cloudtower/models/usb_device_mount_params_data.py -cloudtower/models/usb_device_order_by_input.py -cloudtower/models/usb_device_status.py -cloudtower/models/usb_device_unmount_params.py -cloudtower/models/usb_device_unmount_params_data.py -cloudtower/models/usb_device_where_input.py -cloudtower/models/user.py -cloudtower/models/user_audit_log.py -cloudtower/models/user_audit_log_connection.py -cloudtower/models/user_audit_log_order_by_input.py -cloudtower/models/user_audit_log_status.py -cloudtower/models/user_audit_log_where_input.py -cloudtower/models/user_connection.py -cloudtower/models/user_creation_params.py -cloudtower/models/user_deletion_params.py -cloudtower/models/user_order_by_input.py -cloudtower/models/user_role.py -cloudtower/models/user_role_next.py -cloudtower/models/user_role_next_connection.py -cloudtower/models/user_role_next_order_by_input.py -cloudtower/models/user_role_next_where_input.py -cloudtower/models/user_role_platform.py -cloudtower/models/user_role_preset.py -cloudtower/models/user_source.py -cloudtower/models/user_updation_params.py -cloudtower/models/user_updation_params_data.py -cloudtower/models/user_where_input.py -cloudtower/models/vcenter_account.py -cloudtower/models/vcenter_account_connection.py -cloudtower/models/vcenter_account_order_by_input.py -cloudtower/models/vcenter_account_where_input.py -cloudtower/models/vcenter_account_where_unique_input.py -cloudtower/models/vds.py -cloudtower/models/vds_connection.py -cloudtower/models/vds_creation_params.py -cloudtower/models/vds_creation_with_m_access_vlan_params.py -cloudtower/models/vds_creation_with_migrate_vlan_params.py -cloudtower/models/vds_creation_with_migrate_vlan_params_all_of.py -cloudtower/models/vds_creation_with_migrate_vlan_params_all_of_vlan.py -cloudtower/models/vds_creation_with_migrate_vlan_params_all_of_vlan_extra_ip.py -cloudtower/models/vds_deletion_params.py -cloudtower/models/vds_order_by_input.py -cloudtower/models/vds_updation_params.py -cloudtower/models/vds_updation_params_data.py -cloudtower/models/vds_where_input.py -cloudtower/models/view.py -cloudtower/models/view_connection.py -cloudtower/models/view_creation_params.py -cloudtower/models/view_deletion_params.py -cloudtower/models/view_order_by_input.py -cloudtower/models/view_updation_params.py -cloudtower/models/view_updation_params_data.py -cloudtower/models/view_where_input.py -cloudtower/models/vlan.py -cloudtower/models/vlan_connection.py -cloudtower/models/vlan_deletion_params.py -cloudtower/models/vlan_mapping.py -cloudtower/models/vlan_order_by_input.py -cloudtower/models/vlan_where_input.py -cloudtower/models/vm.py -cloudtower/models/vm_add_cd_rom_params.py -cloudtower/models/vm_add_cd_rom_params_data.py -cloudtower/models/vm_add_disk_params.py -cloudtower/models/vm_add_disk_params_data.py -cloudtower/models/vm_add_disk_params_data_vm_disks.py -cloudtower/models/vm_add_folder_params.py -cloudtower/models/vm_add_folder_params_data.py -cloudtower/models/vm_add_nic_params.py -cloudtower/models/vm_add_nic_params_data.py -cloudtower/models/vm_cd_rom_params.py -cloudtower/models/vm_clock_offset.py -cloudtower/models/vm_clone_params.py -cloudtower/models/vm_connection.py -cloudtower/models/vm_create_vm_from_content_library_template_params.py -cloudtower/models/vm_create_vm_from_template_params.py -cloudtower/models/vm_creation_params.py -cloudtower/models/vm_delete_params.py -cloudtower/models/vm_delete_params_effect.py -cloudtower/models/vm_disk.py -cloudtower/models/vm_disk_connection.py -cloudtower/models/vm_disk_io_policy.py -cloudtower/models/vm_disk_io_restrict_type.py -cloudtower/models/vm_disk_operate.py -cloudtower/models/vm_disk_operate_remove_disks.py -cloudtower/models/vm_disk_order_by_input.py -cloudtower/models/vm_disk_params.py -cloudtower/models/vm_disk_type.py -cloudtower/models/vm_disk_where_input.py -cloudtower/models/vm_eject_cd_rom_params.py -cloudtower/models/vm_entity_filter_result.py -cloudtower/models/vm_entity_filter_result_connection.py -cloudtower/models/vm_entity_filter_result_order_by_input.py -cloudtower/models/vm_entity_filter_result_where_input.py -cloudtower/models/vm_expand_vm_disk_params.py -cloudtower/models/vm_firmware.py -cloudtower/models/vm_folder.py -cloudtower/models/vm_folder_connection.py -cloudtower/models/vm_folder_creation_params.py -cloudtower/models/vm_folder_deletion_params.py -cloudtower/models/vm_folder_order_by_input.py -cloudtower/models/vm_folder_updation_params.py -cloudtower/models/vm_folder_updation_params_data.py -cloudtower/models/vm_folder_where_input.py -cloudtower/models/vm_guests_operation_system.py -cloudtower/models/vm_migrate_across_cluster_params.py -cloudtower/models/vm_migrate_across_cluster_params_data.py -cloudtower/models/vm_migrate_params.py -cloudtower/models/vm_nic.py -cloudtower/models/vm_nic_connection.py -cloudtower/models/vm_nic_model.py -cloudtower/models/vm_nic_order_by_input.py -cloudtower/models/vm_nic_params.py -cloudtower/models/vm_nic_where_input.py -cloudtower/models/vm_operate_params.py -cloudtower/models/vm_order_by_input.py -cloudtower/models/vm_placement_group.py -cloudtower/models/vm_placement_group_connection.py -cloudtower/models/vm_placement_group_creation_params.py -cloudtower/models/vm_placement_group_deletion_params.py -cloudtower/models/vm_placement_group_order_by_input.py -cloudtower/models/vm_placement_group_updation_params.py -cloudtower/models/vm_placement_group_updation_params_data.py -cloudtower/models/vm_placement_group_where_input.py -cloudtower/models/vm_rebuild_params.py -cloudtower/models/vm_remove_cd_rom_params.py -cloudtower/models/vm_remove_cd_rom_params_data.py -cloudtower/models/vm_remove_disk_params.py -cloudtower/models/vm_remove_disk_params_data.py -cloudtower/models/vm_remove_nic_params.py -cloudtower/models/vm_remove_nic_params_data.py -cloudtower/models/vm_reset_guest_os_password_params.py -cloudtower/models/vm_reset_guest_os_password_params_data.py -cloudtower/models/vm_restrict_io_params_data.py -cloudtower/models/vm_rollback_params.py -cloudtower/models/vm_rollback_params_data.py -cloudtower/models/vm_snapshot.py -cloudtower/models/vm_snapshot_connection.py -cloudtower/models/vm_snapshot_creation_params.py -cloudtower/models/vm_snapshot_creation_params_data.py -cloudtower/models/vm_snapshot_deletion_params.py -cloudtower/models/vm_snapshot_order_by_input.py -cloudtower/models/vm_snapshot_where_input.py -cloudtower/models/vm_start_params.py -cloudtower/models/vm_start_params_data.py -cloudtower/models/vm_status.py -cloudtower/models/vm_template.py -cloudtower/models/vm_template_connection.py -cloudtower/models/vm_template_creation_params.py -cloudtower/models/vm_template_deletion_params.py -cloudtower/models/vm_template_order_by_input.py -cloudtower/models/vm_template_updation_params.py -cloudtower/models/vm_template_updation_params_data.py -cloudtower/models/vm_template_where_input.py -cloudtower/models/vm_toggle_cd_rom_disable_params.py -cloudtower/models/vm_tools_status.py -cloudtower/models/vm_update_advanced_options_params.py -cloudtower/models/vm_update_advanced_options_params_data.py -cloudtower/models/vm_update_disk_params.py -cloudtower/models/vm_update_disk_params_data.py -cloudtower/models/vm_update_each_disk_io_policy_params.py -cloudtower/models/vm_update_host_options_params.py -cloudtower/models/vm_update_host_options_params_data.py -cloudtower/models/vm_update_io_policy_params.py -cloudtower/models/vm_update_io_policy_params_data.py -cloudtower/models/vm_update_nic_advance_info_params.py -cloudtower/models/vm_update_nic_advance_info_params_data.py -cloudtower/models/vm_update_nic_basic_info_params.py -cloudtower/models/vm_update_nic_basic_info_params_data.py -cloudtower/models/vm_update_nic_params.py -cloudtower/models/vm_update_nic_params_data.py -cloudtower/models/vm_update_owner_params.py -cloudtower/models/vm_update_owner_params_data.py -cloudtower/models/vm_update_params.py -cloudtower/models/vm_update_params_data.py -cloudtower/models/vm_usage.py -cloudtower/models/vm_video_type.py -cloudtower/models/vm_vlan_creation_params.py -cloudtower/models/vm_vlan_updation_params.py -cloudtower/models/vm_vlan_updation_params_data.py -cloudtower/models/vm_vm_policy.py -cloudtower/models/vm_volume.py -cloudtower/models/vm_volume_connection.py -cloudtower/models/vm_volume_creation_params.py -cloudtower/models/vm_volume_deletion_params.py -cloudtower/models/vm_volume_elf_storage_policy_type.py -cloudtower/models/vm_volume_order_by_input.py -cloudtower/models/vm_volume_rebuild_params.py -cloudtower/models/vm_volume_rollback_params.py -cloudtower/models/vm_volume_snapshot.py -cloudtower/models/vm_volume_snapshot_connection.py -cloudtower/models/vm_volume_snapshot_creation_params.py -cloudtower/models/vm_volume_snapshot_deletion_params.py -cloudtower/models/vm_volume_snapshot_order_by_input.py -cloudtower/models/vm_volume_snapshot_type.py -cloudtower/models/vm_volume_snapshot_where_input.py -cloudtower/models/vm_volume_type.py -cloudtower/models/vm_volume_where_input.py -cloudtower/models/vm_volume_where_unique_input.py -cloudtower/models/vm_where_input.py -cloudtower/models/vm_where_unique_input.py -cloudtower/models/vsphere_esxi_account.py -cloudtower/models/vsphere_esxi_account_connection.py -cloudtower/models/vsphere_esxi_account_order_by_input.py -cloudtower/models/vsphere_esxi_account_where_input.py -cloudtower/models/with_task_alert.py -cloudtower/models/with_task_alert_notifier.py -cloudtower/models/with_task_batch_hosts.py -cloudtower/models/with_task_brick_topo.py -cloudtower/models/with_task_cluster.py -cloudtower/models/with_task_cluster_settings.py -cloudtower/models/with_task_consistency_group.py -cloudtower/models/with_task_consistency_group_snapshot.py -cloudtower/models/with_task_content_library_image.py -cloudtower/models/with_task_content_library_vm_template.py -cloudtower/models/with_task_datacenter.py -cloudtower/models/with_task_delete_brick_topo.py -cloudtower/models/with_task_delete_cluster.py -cloudtower/models/with_task_delete_cluster_recycle_bin.py -cloudtower/models/with_task_delete_consistency_group.py -cloudtower/models/with_task_delete_consistency_group_snapshot.py -cloudtower/models/with_task_delete_content_library_image.py -cloudtower/models/with_task_delete_content_library_vm_template.py -cloudtower/models/with_task_delete_datacenter.py -cloudtower/models/with_task_delete_elf_image.py -cloudtower/models/with_task_delete_entity_filter.py -cloudtower/models/with_task_delete_graph.py -cloudtower/models/with_task_delete_iscsi_lun.py -cloudtower/models/with_task_delete_iscsi_lun_snapshot.py -cloudtower/models/with_task_delete_iscsi_target.py -cloudtower/models/with_task_delete_label.py -cloudtower/models/with_task_delete_log_collection.py -cloudtower/models/with_task_delete_namespace_group.py -cloudtower/models/with_task_delete_nfs_export.py -cloudtower/models/with_task_delete_nvmf_namespace.py -cloudtower/models/with_task_delete_nvmf_namespace_snapshot.py -cloudtower/models/with_task_delete_nvmf_subsystem.py -cloudtower/models/with_task_delete_organization.py -cloudtower/models/with_task_delete_rack_topo.py -cloudtower/models/with_task_delete_report_template.py -cloudtower/models/with_task_delete_role.py -cloudtower/models/with_task_delete_snapshot_group.py -cloudtower/models/with_task_delete_snapshot_plan.py -cloudtower/models/with_task_delete_snmp_transport.py -cloudtower/models/with_task_delete_snmp_trap_receiver.py -cloudtower/models/with_task_delete_user.py -cloudtower/models/with_task_delete_vds.py -cloudtower/models/with_task_delete_view.py -cloudtower/models/with_task_delete_vlan.py -cloudtower/models/with_task_delete_vm.py -cloudtower/models/with_task_delete_vm_folder.py -cloudtower/models/with_task_delete_vm_placement_group.py -cloudtower/models/with_task_delete_vm_snapshot.py -cloudtower/models/with_task_delete_vm_template.py -cloudtower/models/with_task_delete_vm_volume.py -cloudtower/models/with_task_delete_vm_volume_snapshot.py -cloudtower/models/with_task_disk.py -cloudtower/models/with_task_elf_image.py -cloudtower/models/with_task_entity_filter.py -cloudtower/models/with_task_global_alert_rule.py -cloudtower/models/with_task_global_settings.py -cloudtower/models/with_task_graph.py -cloudtower/models/with_task_host.py -cloudtower/models/with_task_iscsi_lun.py -cloudtower/models/with_task_iscsi_lun_snapshot.py -cloudtower/models/with_task_iscsi_target.py -cloudtower/models/with_task_label.py -cloudtower/models/with_task_license.py -cloudtower/models/with_task_log_collection.py -cloudtower/models/with_task_login_response.py -cloudtower/models/with_task_metric.py -cloudtower/models/with_task_namespace_group.py -cloudtower/models/with_task_nfs_export.py -cloudtower/models/with_task_nic.py -cloudtower/models/with_task_node_topo.py -cloudtower/models/with_task_nvmf_namespace.py -cloudtower/models/with_task_nvmf_namespace_snapshot.py -cloudtower/models/with_task_nvmf_subsystem.py -cloudtower/models/with_task_organization.py -cloudtower/models/with_task_rack_topo.py -cloudtower/models/with_task_report_task.py -cloudtower/models/with_task_report_template.py -cloudtower/models/with_task_snapshot_group.py -cloudtower/models/with_task_snapshot_plan.py -cloudtower/models/with_task_snmp_transport.py -cloudtower/models/with_task_snmp_trap_receiver.py -cloudtower/models/with_task_usb_device.py -cloudtower/models/with_task_user.py -cloudtower/models/with_task_user_role_next.py -cloudtower/models/with_task_vcenter_account.py -cloudtower/models/with_task_vds.py -cloudtower/models/with_task_view.py -cloudtower/models/with_task_vlan.py -cloudtower/models/with_task_vm.py -cloudtower/models/with_task_vm_folder.py -cloudtower/models/with_task_vm_placement_group.py -cloudtower/models/with_task_vm_snapshot.py -cloudtower/models/with_task_vm_template.py -cloudtower/models/with_task_vm_volume.py -cloudtower/models/with_task_vm_volume_snapshot.py -cloudtower/models/with_task_vsphere_esxi_account_array.py -cloudtower/models/witness.py -cloudtower/models/witness_connection.py -cloudtower/models/witness_order_by_input.py -cloudtower/models/witness_service.py -cloudtower/models/witness_where_input.py -cloudtower/models/witness_where_unique_input.py -cloudtower/models/zone.py -cloudtower/models/zone_connection.py -cloudtower/models/zone_order_by_input.py -cloudtower/models/zone_topo.py -cloudtower/models/zone_topo_connection.py -cloudtower/models/zone_topo_order_by_input.py -cloudtower/models/zone_topo_where_input.py -cloudtower/models/zone_where_input.py -cloudtower/rest.py -cloudtower/utils.py -requirements.txt -setup.cfg -setup.py -setup.py -test-requirements.txt -tox.ini +.gitignore +LICENSE +README.md +README.md +cloudtower/__init__.py +cloudtower/api/__init__.py +cloudtower/api/alert_api.py +cloudtower/api/alert_notifier_api.py +cloudtower/api/alert_rule_api.py +cloudtower/api/api_info_api.py +cloudtower/api/application_api.py +cloudtower/api/brick_topo_api.py +cloudtower/api/cloud_tower_application_api.py +cloudtower/api/cloud_tower_application_package_api.py +cloudtower/api/cluster_api.py +cloudtower/api/cluster_image_api.py +cloudtower/api/cluster_settings_api.py +cloudtower/api/cluster_topo_api.py +cloudtower/api/cluster_upgrade_history_api.py +cloudtower/api/consistency_group_api.py +cloudtower/api/consistency_group_snapshot_api.py +cloudtower/api/content_library_image_api.py +cloudtower/api/content_library_vm_template_api.py +cloudtower/api/datacenter_api.py +cloudtower/api/deploy_api.py +cloudtower/api/discovered_host_api.py +cloudtower/api/disk_api.py +cloudtower/api/elf_data_store_api.py +cloudtower/api/elf_image_api.py +cloudtower/api/elf_storage_policy_api.py +cloudtower/api/entity_filter_api.py +cloudtower/api/everoute_cluster_api.py +cloudtower/api/everoute_license_api.py +cloudtower/api/everoute_package_api.py +cloudtower/api/global_alert_rule_api.py +cloudtower/api/global_settings_api.py +cloudtower/api/graph_api.py +cloudtower/api/host_api.py +cloudtower/api/ipmi_api.py +cloudtower/api/iscsi_connection_api.py +cloudtower/api/iscsi_lun_api.py +cloudtower/api/iscsi_lun_snapshot_api.py +cloudtower/api/iscsi_target_api.py +cloudtower/api/isolation_policy_api.py +cloudtower/api/label_api.py +cloudtower/api/license_api.py +cloudtower/api/log_collection_api.py +cloudtower/api/log_service_config_api.py +cloudtower/api/metrics_api.py +cloudtower/api/namespace_group_api.py +cloudtower/api/nfs_export_api.py +cloudtower/api/nfs_inode_api.py +cloudtower/api/nic_api.py +cloudtower/api/node_topo_api.py +cloudtower/api/nvmf_namespace_api.py +cloudtower/api/nvmf_namespace_snapshot_api.py +cloudtower/api/nvmf_subsystem_api.py +cloudtower/api/organization_api.py +cloudtower/api/ovf_api.py +cloudtower/api/pmem_dimm_api.py +cloudtower/api/rack_topo_api.py +cloudtower/api/report_task_api.py +cloudtower/api/report_template_api.py +cloudtower/api/security_group_api.py +cloudtower/api/security_policy_api.py +cloudtower/api/snapshot_group_api.py +cloudtower/api/snapshot_plan_api.py +cloudtower/api/snapshot_plan_task_api.py +cloudtower/api/snmp_transport_api.py +cloudtower/api/snmp_trap_receiver_api.py +cloudtower/api/svt_image_api.py +cloudtower/api/system_audit_log_api.py +cloudtower/api/table_reporter_api.py +cloudtower/api/task_api.py +cloudtower/api/upload_task_api.py +cloudtower/api/usb_device_api.py +cloudtower/api/user_api.py +cloudtower/api/user_audit_log_api.py +cloudtower/api/user_role_next_api.py +cloudtower/api/vcenter_account_api.py +cloudtower/api/vds_api.py +cloudtower/api/view_api.py +cloudtower/api/vlan_api.py +cloudtower/api/vm_api.py +cloudtower/api/vm_disk_api.py +cloudtower/api/vm_entity_filter_result_api.py +cloudtower/api/vm_export_file_api.py +cloudtower/api/vm_folder_api.py +cloudtower/api/vm_nic_api.py +cloudtower/api/vm_placement_group_api.py +cloudtower/api/vm_snapshot_api.py +cloudtower/api/vm_template_api.py +cloudtower/api/vm_volume_api.py +cloudtower/api/vm_volume_snapshot_api.py +cloudtower/api/vsphere_esxi_account_api.py +cloudtower/api/witness_api.py +cloudtower/api/witness_service_api.py +cloudtower/api/zone_api.py +cloudtower/api/zone_topo_api.py +cloudtower/api_client.py +cloudtower/configuration.py +cloudtower/exceptions.py +cloudtower/models/__init__.py +cloudtower/models/abort_migrate_vm_across_cluster_params.py +cloudtower/models/access_mode.py +cloudtower/models/add_clusters_to_datacenter_params.py +cloudtower/models/add_clusters_to_datacenter_params_data.py +cloudtower/models/add_labels_to_resources_params.py +cloudtower/models/add_labels_to_resources_params_data.py +cloudtower/models/alert.py +cloudtower/models/alert_connection.py +cloudtower/models/alert_notifier.py +cloudtower/models/alert_notifier_connection.py +cloudtower/models/alert_notifier_order_by_input.py +cloudtower/models/alert_notifier_updation_params.py +cloudtower/models/alert_notifier_where_input.py +cloudtower/models/alert_order_by_input.py +cloudtower/models/alert_rule.py +cloudtower/models/alert_rule_connection.py +cloudtower/models/alert_rule_object.py +cloudtower/models/alert_rule_order_by_input.py +cloudtower/models/alert_rule_thresholds.py +cloudtower/models/alert_rule_unit.py +cloudtower/models/alert_rule_where_input.py +cloudtower/models/alert_where_input.py +cloudtower/models/application.py +cloudtower/models/application_connection.py +cloudtower/models/application_order_by_input.py +cloudtower/models/application_state.py +cloudtower/models/application_type.py +cloudtower/models/application_vm_spec.py +cloudtower/models/application_vm_spec_affinity_policy.py +cloudtower/models/application_vm_spec_definition.py +cloudtower/models/application_vm_spec_env.py +cloudtower/models/application_vm_spec_network.py +cloudtower/models/application_vm_spec_nic.py +cloudtower/models/application_vm_spec_placement.py +cloudtower/models/application_vm_spec_placement_situation.py +cloudtower/models/application_vm_spec_placement_verb.py +cloudtower/models/application_vm_spec_status.py +cloudtower/models/application_vm_spec_storage.py +cloudtower/models/application_where_input.py +cloudtower/models/architecture.py +cloudtower/models/batch_hosts.py +cloudtower/models/bps_unit.py +cloudtower/models/brick_phase_enum.py +cloudtower/models/brick_topo.py +cloudtower/models/brick_topo_connection.py +cloudtower/models/brick_topo_creation_params.py +cloudtower/models/brick_topo_deletion_params.py +cloudtower/models/brick_topo_move_params.py +cloudtower/models/brick_topo_move_params_data.py +cloudtower/models/brick_topo_order_by_input.py +cloudtower/models/brick_topo_updation_params.py +cloudtower/models/brick_topo_updation_params_data.py +cloudtower/models/brick_topo_where_input.py +cloudtower/models/bus.py +cloudtower/models/byte_unit.py +cloudtower/models/cancel_upload_task_params.py +cloudtower/models/clone_vm_volume_params.py +cloudtower/models/clone_vm_volume_params_data.py +cloudtower/models/cloud_init_net_work.py +cloudtower/models/cloud_init_net_work_route.py +cloudtower/models/cloud_init_network_type_enum.py +cloudtower/models/cloud_tower_application.py +cloudtower/models/cloud_tower_application_connection.py +cloudtower/models/cloud_tower_application_order_by_input.py +cloudtower/models/cloud_tower_application_package.py +cloudtower/models/cloud_tower_application_package_connection.py +cloudtower/models/cloud_tower_application_package_order_by_input.py +cloudtower/models/cloud_tower_application_package_where_input.py +cloudtower/models/cloud_tower_application_state.py +cloudtower/models/cloud_tower_application_where_input.py +cloudtower/models/cloud_tower_application_where_unique_input.py +cloudtower/models/cluster.py +cloudtower/models/cluster_connection.py +cloudtower/models/cluster_connector_error_code.py +cloudtower/models/cluster_creation_params.py +cloudtower/models/cluster_deletion_params.py +cloudtower/models/cluster_enable_iscsi_updation_params.py +cloudtower/models/cluster_ha_updation_params.py +cloudtower/models/cluster_image.py +cloudtower/models/cluster_image_connection.py +cloudtower/models/cluster_image_order_by_input.py +cloudtower/models/cluster_image_where_input.py +cloudtower/models/cluster_license_updation_params.py +cloudtower/models/cluster_license_updation_params_data.py +cloudtower/models/cluster_network_setting_updation_params.py +cloudtower/models/cluster_network_setting_updation_params_data.py +cloudtower/models/cluster_order_by_input.py +cloudtower/models/cluster_recycle_bin_creation_params.py +cloudtower/models/cluster_recycle_bin_creation_params_data.py +cloudtower/models/cluster_recycle_bin_deletion_params.py +cloudtower/models/cluster_recycle_bin_updation_params.py +cloudtower/models/cluster_settings.py +cloudtower/models/cluster_settings_connection.py +cloudtower/models/cluster_settings_order_by_input.py +cloudtower/models/cluster_settings_where_input.py +cloudtower/models/cluster_topo.py +cloudtower/models/cluster_topo_connection.py +cloudtower/models/cluster_topo_order_by_input.py +cloudtower/models/cluster_topo_where_input.py +cloudtower/models/cluster_type.py +cloudtower/models/cluster_updation_params.py +cloudtower/models/cluster_updation_params_data.py +cloudtower/models/cluster_upgrade_history.py +cloudtower/models/cluster_upgrade_history_connection.py +cloudtower/models/cluster_upgrade_history_order_by_input.py +cloudtower/models/cluster_upgrade_history_where_input.py +cloudtower/models/cluster_virtualization_updation_params.py +cloudtower/models/cluster_virtualization_updation_params_data.py +cloudtower/models/cluster_where_input.py +cloudtower/models/cluster_where_unique_input.py +cloudtower/models/column_config.py +cloudtower/models/connect_state.py +cloudtower/models/consistency_group.py +cloudtower/models/consistency_group_connection.py +cloudtower/models/consistency_group_creation_params.py +cloudtower/models/consistency_group_deletion_params.py +cloudtower/models/consistency_group_deletion_params_data.py +cloudtower/models/consistency_group_order_by_input.py +cloudtower/models/consistency_group_snapshot.py +cloudtower/models/consistency_group_snapshot_connection.py +cloudtower/models/consistency_group_snapshot_creation_params.py +cloudtower/models/consistency_group_snapshot_deletion_params.py +cloudtower/models/consistency_group_snapshot_deletion_params_data.py +cloudtower/models/consistency_group_snapshot_order_by_input.py +cloudtower/models/consistency_group_snapshot_updation_params.py +cloudtower/models/consistency_group_snapshot_where_input.py +cloudtower/models/consistency_group_updation_params.py +cloudtower/models/consistency_group_updation_params_data.py +cloudtower/models/consistency_group_where_input.py +cloudtower/models/consistent_type.py +cloudtower/models/content_library_image.py +cloudtower/models/content_library_image_connection.py +cloudtower/models/content_library_image_deletion_params.py +cloudtower/models/content_library_image_order_by_input.py +cloudtower/models/content_library_image_updation_cluster_params.py +cloudtower/models/content_library_image_updation_cluster_params_data.py +cloudtower/models/content_library_image_updation_params.py +cloudtower/models/content_library_image_updation_params_data.py +cloudtower/models/content_library_image_where_input.py +cloudtower/models/content_library_vm_template.py +cloudtower/models/content_library_vm_template_connection.py +cloudtower/models/content_library_vm_template_creation_params.py +cloudtower/models/content_library_vm_template_deletion_params.py +cloudtower/models/content_library_vm_template_order_by_input.py +cloudtower/models/content_library_vm_template_updation_cluster_params.py +cloudtower/models/content_library_vm_template_updation_cluster_params_data.py +cloudtower/models/content_library_vm_template_updation_params.py +cloudtower/models/content_library_vm_template_updation_params_data.py +cloudtower/models/content_library_vm_template_where_input.py +cloudtower/models/convert_vm_template_to_vm_params.py +cloudtower/models/cpu_fan_speed_unit.py +cloudtower/models/create_vcenter_account_params.py +cloudtower/models/create_vcenter_account_params_data.py +cloudtower/models/customize_alert_rule_updation_params.py +cloudtower/models/customize_alert_rule_updation_params_data.py +cloudtower/models/data_point.py +cloudtower/models/datacenter.py +cloudtower/models/datacenter_connection.py +cloudtower/models/datacenter_creation_params.py +cloudtower/models/datacenter_deletion_params.py +cloudtower/models/datacenter_order_by_input.py +cloudtower/models/datacenter_updation_params.py +cloudtower/models/datacenter_updation_params_data.py +cloudtower/models/datacenter_where_input.py +cloudtower/models/datacenter_where_unique_input.py +cloudtower/models/delete_brick_topo.py +cloudtower/models/delete_cloud_tower_application_package.py +cloudtower/models/delete_cloud_tower_application_package_params.py +cloudtower/models/delete_cluster.py +cloudtower/models/delete_cluster_recycle_bin.py +cloudtower/models/delete_consistency_group.py +cloudtower/models/delete_consistency_group_snapshot.py +cloudtower/models/delete_content_library_image.py +cloudtower/models/delete_content_library_vm_template.py +cloudtower/models/delete_datacenter.py +cloudtower/models/delete_elf_image.py +cloudtower/models/delete_entity_filter.py +cloudtower/models/delete_graph.py +cloudtower/models/delete_iscsi_lun.py +cloudtower/models/delete_iscsi_lun_snapshot.py +cloudtower/models/delete_iscsi_target.py +cloudtower/models/delete_label.py +cloudtower/models/delete_log_collection.py +cloudtower/models/delete_namespace_group.py +cloudtower/models/delete_nfs_export.py +cloudtower/models/delete_nvmf_namespace.py +cloudtower/models/delete_nvmf_namespace_snapshot.py +cloudtower/models/delete_nvmf_subsystem.py +cloudtower/models/delete_organization.py +cloudtower/models/delete_rack_topo.py +cloudtower/models/delete_report_template.py +cloudtower/models/delete_role.py +cloudtower/models/delete_security_group.py +cloudtower/models/delete_security_policy.py +cloudtower/models/delete_snapshot_group.py +cloudtower/models/delete_snapshot_plan.py +cloudtower/models/delete_snmp_transport.py +cloudtower/models/delete_snmp_trap_receiver.py +cloudtower/models/delete_user.py +cloudtower/models/delete_vds.py +cloudtower/models/delete_view.py +cloudtower/models/delete_vlan.py +cloudtower/models/delete_vm.py +cloudtower/models/delete_vm_folder.py +cloudtower/models/delete_vm_placement_group.py +cloudtower/models/delete_vm_snapshot.py +cloudtower/models/delete_vm_template.py +cloudtower/models/delete_vm_volume.py +cloudtower/models/delete_vm_volume_snapshot.py +cloudtower/models/deploy.py +cloudtower/models/deploy_cloud_tower_application_params.py +cloudtower/models/deploy_connection.py +cloudtower/models/deploy_order_by_input.py +cloudtower/models/deploy_where_input.py +cloudtower/models/direction.py +cloudtower/models/discovered_host.py +cloudtower/models/disk.py +cloudtower/models/disk_connection.py +cloudtower/models/disk_function.py +cloudtower/models/disk_health_status.py +cloudtower/models/disk_mount_params.py +cloudtower/models/disk_mount_params_data.py +cloudtower/models/disk_operate_modify_disk.py +cloudtower/models/disk_order_by_input.py +cloudtower/models/disk_type.py +cloudtower/models/disk_unmount_params.py +cloudtower/models/disk_usage.py +cloudtower/models/disk_usage_status.py +cloudtower/models/disk_where_input.py +cloudtower/models/elf_data_store.py +cloudtower/models/elf_data_store_connection.py +cloudtower/models/elf_data_store_order_by_input.py +cloudtower/models/elf_data_store_type.py +cloudtower/models/elf_data_store_where_input.py +cloudtower/models/elf_image.py +cloudtower/models/elf_image_connection.py +cloudtower/models/elf_image_deletion_params.py +cloudtower/models/elf_image_order_by_input.py +cloudtower/models/elf_image_updation_params.py +cloudtower/models/elf_image_updation_params_data.py +cloudtower/models/elf_image_where_input.py +cloudtower/models/elf_storage_policy.py +cloudtower/models/elf_storage_policy_connection.py +cloudtower/models/elf_storage_policy_order_by_input.py +cloudtower/models/elf_storage_policy_where_input.py +cloudtower/models/entity_async_status.py +cloudtower/models/entity_filter.py +cloudtower/models/entity_filter_connection.py +cloudtower/models/entity_filter_creation_params.py +cloudtower/models/entity_filter_deletion_params.py +cloudtower/models/entity_filter_order_by_input.py +cloudtower/models/entity_filter_updation_params.py +cloudtower/models/entity_filter_updation_params_data.py +cloudtower/models/entity_filter_where_input.py +cloudtower/models/entity_type.py +cloudtower/models/error_body.py +cloudtower/models/everoute_cluster.py +cloudtower/models/everoute_cluster_connection.py +cloudtower/models/everoute_cluster_order_by_input.py +cloudtower/models/everoute_cluster_phase.py +cloudtower/models/everoute_cluster_where_input.py +cloudtower/models/everoute_license.py +cloudtower/models/everoute_license_connection.py +cloudtower/models/everoute_license_order_by_input.py +cloudtower/models/everoute_license_where_input.py +cloudtower/models/everoute_package.py +cloudtower/models/everoute_package_connection.py +cloudtower/models/everoute_package_order_by_input.py +cloudtower/models/everoute_package_where_input.py +cloudtower/models/execute_plan.py +cloudtower/models/export_file_download_links.py +cloudtower/models/extra_ip.py +cloudtower/models/filter_rule_aggregation_enum.py +cloudtower/models/filter_rule_input.py +cloudtower/models/filter_rule_metric_enum.py +cloudtower/models/filter_rule_op_enum.py +cloudtower/models/filter_status.py +cloudtower/models/force_stop_log_collection_params.py +cloudtower/models/get_alert_notifiers_connection_request_body.py +cloudtower/models/get_alert_notifiers_request_body.py +cloudtower/models/get_alert_rules_connection_request_body.py +cloudtower/models/get_alert_rules_request_body.py +cloudtower/models/get_alerts_connection_request_body.py +cloudtower/models/get_alerts_request_body.py +cloudtower/models/get_applications_connection_request_body.py +cloudtower/models/get_applications_request_body.py +cloudtower/models/get_brick_topoes_connection_request_body.py +cloudtower/models/get_brick_topoes_request_body.py +cloudtower/models/get_cloud_tower_application_packages_connection_request_body.py +cloudtower/models/get_cloud_tower_application_packages_request_body.py +cloudtower/models/get_cloud_tower_applications_connection_request_body.py +cloudtower/models/get_cloud_tower_applications_request_body.py +cloudtower/models/get_cluster_images_connection_request_body.py +cloudtower/models/get_cluster_images_request_body.py +cloudtower/models/get_cluster_metric_input.py +cloudtower/models/get_cluster_settingses_connection_request_body.py +cloudtower/models/get_cluster_settingses_request_body.py +cloudtower/models/get_cluster_topoes_connection_request_body.py +cloudtower/models/get_cluster_topoes_request_body.py +cloudtower/models/get_cluster_upgrade_histories_connection_request_body.py +cloudtower/models/get_cluster_upgrade_histories_request_body.py +cloudtower/models/get_clusters_connection_request_body.py +cloudtower/models/get_clusters_request_body.py +cloudtower/models/get_consistency_group_snapshots_connection_request_body.py +cloudtower/models/get_consistency_group_snapshots_request_body.py +cloudtower/models/get_consistency_groups_connection_request_body.py +cloudtower/models/get_consistency_groups_request_body.py +cloudtower/models/get_content_library_images_connection_request_body.py +cloudtower/models/get_content_library_images_request_body.py +cloudtower/models/get_content_library_vm_templates_connection_request_body.py +cloudtower/models/get_content_library_vm_templates_request_body.py +cloudtower/models/get_datacenters_connection_request_body.py +cloudtower/models/get_datacenters_request_body.py +cloudtower/models/get_deploys_connection_request_body.py +cloudtower/models/get_deploys_request_body.py +cloudtower/models/get_discover_hosts_request_body.py +cloudtower/models/get_disk_metric_input.py +cloudtower/models/get_disks_connection_request_body.py +cloudtower/models/get_disks_request_body.py +cloudtower/models/get_elf_data_stores_connection_request_body.py +cloudtower/models/get_elf_data_stores_request_body.py +cloudtower/models/get_elf_images_connection_request_body.py +cloudtower/models/get_elf_images_request_body.py +cloudtower/models/get_elf_storage_policies_connection_request_body.py +cloudtower/models/get_elf_storage_policies_request_body.py +cloudtower/models/get_entity_filters_connection_request_body.py +cloudtower/models/get_entity_filters_request_body.py +cloudtower/models/get_everoute_clusters_connection_request_body.py +cloudtower/models/get_everoute_clusters_request_body.py +cloudtower/models/get_everoute_licenses_connection_request_body.py +cloudtower/models/get_everoute_licenses_request_body.py +cloudtower/models/get_everoute_packages_connection_request_body.py +cloudtower/models/get_everoute_packages_request_body.py +cloudtower/models/get_export_file_download_links_params.py +cloudtower/models/get_global_alert_rules_connection_request_body.py +cloudtower/models/get_global_alert_rules_request_body.py +cloudtower/models/get_global_settingses_connection_request_body.py +cloudtower/models/get_global_settingses_request_body.py +cloudtower/models/get_graphs_connection_request_body.py +cloudtower/models/get_graphs_request_body.py +cloudtower/models/get_host_metric_input.py +cloudtower/models/get_host_network_metric_input.py +cloudtower/models/get_host_service_metric_input.py +cloudtower/models/get_hosts_connection_request_body.py +cloudtower/models/get_hosts_request_body.py +cloudtower/models/get_ipmis_request_body.py +cloudtower/models/get_iscsi_connections_connection_request_body.py +cloudtower/models/get_iscsi_connections_request_body.py +cloudtower/models/get_iscsi_lun_snapshots_connection_request_body.py +cloudtower/models/get_iscsi_lun_snapshots_request_body.py +cloudtower/models/get_iscsi_luns_connection_request_body.py +cloudtower/models/get_iscsi_luns_request_body.py +cloudtower/models/get_iscsi_targets_connection_request_body.py +cloudtower/models/get_iscsi_targets_request_body.py +cloudtower/models/get_isolation_policies_connection_request_body.py +cloudtower/models/get_isolation_policies_request_body.py +cloudtower/models/get_labels_connection_request_body.py +cloudtower/models/get_labels_request_body.py +cloudtower/models/get_licenses_connection_request_body.py +cloudtower/models/get_licenses_request_body.py +cloudtower/models/get_log_collections_connection_request_body.py +cloudtower/models/get_log_collections_request_body.py +cloudtower/models/get_log_service_configs_request_body.py +cloudtower/models/get_lun_metric_input.py +cloudtower/models/get_meta_leader_request_body.py +cloudtower/models/get_namespace_groups_connection_request_body.py +cloudtower/models/get_namespace_groups_request_body.py +cloudtower/models/get_nfs_exports_connection_request_body.py +cloudtower/models/get_nfs_exports_request_body.py +cloudtower/models/get_nfs_inodes_connection_request_body.py +cloudtower/models/get_nfs_inodes_request_body.py +cloudtower/models/get_nics_connection_request_body.py +cloudtower/models/get_nics_request_body.py +cloudtower/models/get_node_topoes_connection_request_body.py +cloudtower/models/get_node_topoes_request_body.py +cloudtower/models/get_nvmf_namespace_metric_input.py +cloudtower/models/get_nvmf_namespace_snapshots_connection_request_body.py +cloudtower/models/get_nvmf_namespace_snapshots_request_body.py +cloudtower/models/get_nvmf_namespaces_connection_request_body.py +cloudtower/models/get_nvmf_namespaces_request_body.py +cloudtower/models/get_nvmf_subsystems_connection_request_body.py +cloudtower/models/get_nvmf_subsystems_request_body.py +cloudtower/models/get_organizations_connection_request_body.py +cloudtower/models/get_organizations_request_body.py +cloudtower/models/get_pmem_dimms_connection_request_body.py +cloudtower/models/get_pmem_dimms_request_body.py +cloudtower/models/get_rack_topoes_connection_request_body.py +cloudtower/models/get_rack_topoes_request_body.py +cloudtower/models/get_report_tasks_connection_request_body.py +cloudtower/models/get_report_tasks_request_body.py +cloudtower/models/get_report_templates_connection_request_body.py +cloudtower/models/get_report_templates_request_body.py +cloudtower/models/get_scvm_disk_metric_input.py +cloudtower/models/get_scvm_metric_input.py +cloudtower/models/get_scvm_network_input.py +cloudtower/models/get_scvm_service_metric_input.py +cloudtower/models/get_security_groups_connection_request_body.py +cloudtower/models/get_security_groups_request_body.py +cloudtower/models/get_security_policies_connection_request_body.py +cloudtower/models/get_security_policies_request_body.py +cloudtower/models/get_snapshot_groups_connection_request_body.py +cloudtower/models/get_snapshot_groups_request_body.py +cloudtower/models/get_snapshot_plan_tasks_connection_request_body.py +cloudtower/models/get_snapshot_plan_tasks_request_body.py +cloudtower/models/get_snapshot_plans_connection_request_body.py +cloudtower/models/get_snapshot_plans_request_body.py +cloudtower/models/get_snmp_transports_connection_request_body.py +cloudtower/models/get_snmp_transports_request_body.py +cloudtower/models/get_snmp_trap_receivers_connection_request_body.py +cloudtower/models/get_snmp_trap_receivers_request_body.py +cloudtower/models/get_svt_images_connection_request_body.py +cloudtower/models/get_svt_images_request_body.py +cloudtower/models/get_system_audit_logs_connection_request_body.py +cloudtower/models/get_system_audit_logs_request_body.py +cloudtower/models/get_tasks_connection_request_body.py +cloudtower/models/get_tasks_request_body.py +cloudtower/models/get_top_n_metric_input.py +cloudtower/models/get_upload_tasks_connection_request_body.py +cloudtower/models/get_upload_tasks_request_body.py +cloudtower/models/get_usb_devices_connection_request_body.py +cloudtower/models/get_usb_devices_request_body.py +cloudtower/models/get_user_audit_logs_connection_request_body.py +cloudtower/models/get_user_audit_logs_request_body.py +cloudtower/models/get_user_role_nexts_connection_request_body.py +cloudtower/models/get_user_role_nexts_request_body.py +cloudtower/models/get_users_connection_request_body.py +cloudtower/models/get_users_request_body.py +cloudtower/models/get_vcenter_accounts_connection_request_body.py +cloudtower/models/get_vcenter_accounts_request_body.py +cloudtower/models/get_vdses_connection_request_body.py +cloudtower/models/get_vdses_request_body.py +cloudtower/models/get_views_connection_request_body.py +cloudtower/models/get_views_request_body.py +cloudtower/models/get_vlans_connection_request_body.py +cloudtower/models/get_vlans_request_body.py +cloudtower/models/get_vm_disks_connection_request_body.py +cloudtower/models/get_vm_disks_request_body.py +cloudtower/models/get_vm_entity_filter_results_connection_request_body.py +cloudtower/models/get_vm_entity_filter_results_request_body.py +cloudtower/models/get_vm_export_files_connection_request_body.py +cloudtower/models/get_vm_export_files_request_body.py +cloudtower/models/get_vm_folders_connection_request_body.py +cloudtower/models/get_vm_folders_request_body.py +cloudtower/models/get_vm_metric_input.py +cloudtower/models/get_vm_net_work_metric_input.py +cloudtower/models/get_vm_nics_connection_request_body.py +cloudtower/models/get_vm_nics_request_body.py +cloudtower/models/get_vm_placement_groups_connection_request_body.py +cloudtower/models/get_vm_placement_groups_request_body.py +cloudtower/models/get_vm_snapshots_connection_request_body.py +cloudtower/models/get_vm_snapshots_request_body.py +cloudtower/models/get_vm_templates_connection_request_body.py +cloudtower/models/get_vm_templates_request_body.py +cloudtower/models/get_vm_volume_metric_input.py +cloudtower/models/get_vm_volume_snapshots_connection_request_body.py +cloudtower/models/get_vm_volume_snapshots_request_body.py +cloudtower/models/get_vm_volumes_connection_request_body.py +cloudtower/models/get_vm_volumes_request_body.py +cloudtower/models/get_vms_connection_request_body.py +cloudtower/models/get_vms_request_body.py +cloudtower/models/get_vsphere_esxi_accounts_connection_request_body.py +cloudtower/models/get_vsphere_esxi_accounts_request_body.py +cloudtower/models/get_witness_metric_input.py +cloudtower/models/get_witness_services_request_body.py +cloudtower/models/get_witnesses_connection_request_body.py +cloudtower/models/get_witnesses_request_body.py +cloudtower/models/get_zone_metric_input.py +cloudtower/models/get_zone_topoes_connection_request_body.py +cloudtower/models/get_zone_topoes_request_body.py +cloudtower/models/get_zones_connection_request_body.py +cloudtower/models/get_zones_request_body.py +cloudtower/models/global_alert_rule.py +cloudtower/models/global_alert_rule_connection.py +cloudtower/models/global_alert_rule_order_by_input.py +cloudtower/models/global_alert_rule_updation_params.py +cloudtower/models/global_alert_rule_updation_params_data.py +cloudtower/models/global_alert_rule_where_input.py +cloudtower/models/global_policy_action.py +cloudtower/models/global_recycle_bin_updation_params.py +cloudtower/models/global_settings.py +cloudtower/models/global_settings_connection.py +cloudtower/models/global_settings_order_by_input.py +cloudtower/models/global_settings_where_input.py +cloudtower/models/graph.py +cloudtower/models/graph_connection.py +cloudtower/models/graph_creation_params.py +cloudtower/models/graph_deletion_params.py +cloudtower/models/graph_order_by_input.py +cloudtower/models/graph_type.py +cloudtower/models/graph_updation_params.py +cloudtower/models/graph_updation_params_data.py +cloudtower/models/graph_where_input.py +cloudtower/models/host.py +cloudtower/models/host_batch_create_disk_input.py +cloudtower/models/host_batch_create_iface_function.py +cloudtower/models/host_batch_create_iface_input.py +cloudtower/models/host_batch_create_ipmi_input.py +cloudtower/models/host_connection.py +cloudtower/models/host_creation_params.py +cloudtower/models/host_creation_params_data.py +cloudtower/models/host_order_by_input.py +cloudtower/models/host_state.py +cloudtower/models/host_status.py +cloudtower/models/host_updation_params.py +cloudtower/models/host_updation_params_data.py +cloudtower/models/host_where_input.py +cloudtower/models/hypervisor.py +cloudtower/models/install_vmtools_params.py +cloudtower/models/install_vmtools_params_data.py +cloudtower/models/ip_security_policy.py +cloudtower/models/ipmi.py +cloudtower/models/ipmi_order_by_input.py +cloudtower/models/ipmi_where_input.py +cloudtower/models/iscsi_connection.py +cloudtower/models/iscsi_connection_connection.py +cloudtower/models/iscsi_connection_order_by_input.py +cloudtower/models/iscsi_connection_where_input.py +cloudtower/models/iscsi_lun.py +cloudtower/models/iscsi_lun_clone_params.py +cloudtower/models/iscsi_lun_common_params.py +cloudtower/models/iscsi_lun_connection.py +cloudtower/models/iscsi_lun_creation_params.py +cloudtower/models/iscsi_lun_creation_params_all_of.py +cloudtower/models/iscsi_lun_deletion_params.py +cloudtower/models/iscsi_lun_deletion_params_data.py +cloudtower/models/iscsi_lun_order_by_input.py +cloudtower/models/iscsi_lun_rollback_params.py +cloudtower/models/iscsi_lun_snapshot.py +cloudtower/models/iscsi_lun_snapshot_connection.py +cloudtower/models/iscsi_lun_snapshot_creation_effect.py +cloudtower/models/iscsi_lun_snapshot_creation_params.py +cloudtower/models/iscsi_lun_snapshot_deletion_params.py +cloudtower/models/iscsi_lun_snapshot_order_by_input.py +cloudtower/models/iscsi_lun_snapshot_where_input.py +cloudtower/models/iscsi_lun_updation_params.py +cloudtower/models/iscsi_lun_updation_params_data.py +cloudtower/models/iscsi_lun_updation_params_data_all_of.py +cloudtower/models/iscsi_lun_where_input.py +cloudtower/models/iscsi_target.py +cloudtower/models/iscsi_target_common_params.py +cloudtower/models/iscsi_target_common_params_initiator_chaps.py +cloudtower/models/iscsi_target_connection.py +cloudtower/models/iscsi_target_creation_params.py +cloudtower/models/iscsi_target_creation_params_all_of.py +cloudtower/models/iscsi_target_deletion_params.py +cloudtower/models/iscsi_target_order_by_input.py +cloudtower/models/iscsi_target_updation_params.py +cloudtower/models/iscsi_target_where_input.py +cloudtower/models/isolation_mode.py +cloudtower/models/isolation_policy.py +cloudtower/models/isolation_policy_connection.py +cloudtower/models/isolation_policy_order_by_input.py +cloudtower/models/isolation_policy_where_input.py +cloudtower/models/label.py +cloudtower/models/label_connection.py +cloudtower/models/label_creation_params.py +cloudtower/models/label_deletion_params.py +cloudtower/models/label_order_by_input.py +cloudtower/models/label_updation_params.py +cloudtower/models/label_updation_params_data.py +cloudtower/models/label_where_input.py +cloudtower/models/license.py +cloudtower/models/license_connection.py +cloudtower/models/license_order_by_input.py +cloudtower/models/license_type.py +cloudtower/models/license_updation_params.py +cloudtower/models/license_where_input.py +cloudtower/models/log_collection.py +cloudtower/models/log_collection_connection.py +cloudtower/models/log_collection_creation_params.py +cloudtower/models/log_collection_deletion_params.py +cloudtower/models/log_collection_order_by_input.py +cloudtower/models/log_collection_service_group_params.py +cloudtower/models/log_collection_status.py +cloudtower/models/log_collection_where_input.py +cloudtower/models/log_service_config.py +cloudtower/models/log_service_configs_input.py +cloudtower/models/login_input.py +cloudtower/models/login_response.py +cloudtower/models/management_vlan_updation_params.py +cloudtower/models/management_vlan_updation_params_data.py +cloudtower/models/meta_leader.py +cloudtower/models/metric.py +cloudtower/models/metric_label.py +cloudtower/models/metric_sample.py +cloudtower/models/metric_stream.py +cloudtower/models/metric_type.py +cloudtower/models/metric_unit.py +cloudtower/models/metro_check_status_enum.py +cloudtower/models/mfa_type.py +cloudtower/models/mgt_ip_mapper.py +cloudtower/models/migrate_type.py +cloudtower/models/migrate_vm_config.py +cloudtower/models/migration_vlan_updation_params.py +cloudtower/models/mount_disks_params.py +cloudtower/models/mount_new_create_disks_params.py +cloudtower/models/mount_new_create_disks_params_vm_volume.py +cloudtower/models/namespace_group.py +cloudtower/models/namespace_group_connection.py +cloudtower/models/namespace_group_creation_params.py +cloudtower/models/namespace_group_deletion_params.py +cloudtower/models/namespace_group_order_by_input.py +cloudtower/models/namespace_group_updation_params.py +cloudtower/models/namespace_group_updation_params_data.py +cloudtower/models/namespace_group_where_input.py +cloudtower/models/nested_aggregate_alert.py +cloudtower/models/nested_aggregate_alert_notifier.py +cloudtower/models/nested_aggregate_alert_rule.py +cloudtower/models/nested_aggregate_application.py +cloudtower/models/nested_aggregate_brick_topo.py +cloudtower/models/nested_aggregate_cloud_tower_application.py +cloudtower/models/nested_aggregate_cloud_tower_application_package.py +cloudtower/models/nested_aggregate_cluster.py +cloudtower/models/nested_aggregate_cluster_image.py +cloudtower/models/nested_aggregate_cluster_settings.py +cloudtower/models/nested_aggregate_cluster_topo.py +cloudtower/models/nested_aggregate_cluster_upgrade_history.py +cloudtower/models/nested_aggregate_consistency_group.py +cloudtower/models/nested_aggregate_consistency_group_snapshot.py +cloudtower/models/nested_aggregate_content_library_image.py +cloudtower/models/nested_aggregate_content_library_vm_template.py +cloudtower/models/nested_aggregate_datacenter.py +cloudtower/models/nested_aggregate_deploy.py +cloudtower/models/nested_aggregate_disk.py +cloudtower/models/nested_aggregate_elf_data_store.py +cloudtower/models/nested_aggregate_elf_image.py +cloudtower/models/nested_aggregate_elf_storage_policy.py +cloudtower/models/nested_aggregate_entity_filter.py +cloudtower/models/nested_aggregate_everoute_cluster.py +cloudtower/models/nested_aggregate_everoute_license.py +cloudtower/models/nested_aggregate_everoute_package.py +cloudtower/models/nested_aggregate_global_alert_rule.py +cloudtower/models/nested_aggregate_global_settings.py +cloudtower/models/nested_aggregate_graph.py +cloudtower/models/nested_aggregate_host.py +cloudtower/models/nested_aggregate_iscsi_connection.py +cloudtower/models/nested_aggregate_iscsi_lun.py +cloudtower/models/nested_aggregate_iscsi_lun_snapshot.py +cloudtower/models/nested_aggregate_iscsi_target.py +cloudtower/models/nested_aggregate_isolation_policy.py +cloudtower/models/nested_aggregate_label.py +cloudtower/models/nested_aggregate_license.py +cloudtower/models/nested_aggregate_log_collection.py +cloudtower/models/nested_aggregate_namespace_group.py +cloudtower/models/nested_aggregate_nfs_export.py +cloudtower/models/nested_aggregate_nfs_inode.py +cloudtower/models/nested_aggregate_nic.py +cloudtower/models/nested_aggregate_node_topo.py +cloudtower/models/nested_aggregate_nvmf_namespace.py +cloudtower/models/nested_aggregate_nvmf_namespace_snapshot.py +cloudtower/models/nested_aggregate_nvmf_subsystem.py +cloudtower/models/nested_aggregate_organization.py +cloudtower/models/nested_aggregate_pmem_dimm.py +cloudtower/models/nested_aggregate_rack_topo.py +cloudtower/models/nested_aggregate_report_task.py +cloudtower/models/nested_aggregate_report_template.py +cloudtower/models/nested_aggregate_security_group.py +cloudtower/models/nested_aggregate_security_policy.py +cloudtower/models/nested_aggregate_snapshot_group.py +cloudtower/models/nested_aggregate_snapshot_plan.py +cloudtower/models/nested_aggregate_snapshot_plan_task.py +cloudtower/models/nested_aggregate_snmp_transport.py +cloudtower/models/nested_aggregate_snmp_trap_receiver.py +cloudtower/models/nested_aggregate_svt_image.py +cloudtower/models/nested_aggregate_system_audit_log.py +cloudtower/models/nested_aggregate_task.py +cloudtower/models/nested_aggregate_upload_task.py +cloudtower/models/nested_aggregate_usb_device.py +cloudtower/models/nested_aggregate_user.py +cloudtower/models/nested_aggregate_user_audit_log.py +cloudtower/models/nested_aggregate_user_role_next.py +cloudtower/models/nested_aggregate_vcenter_account.py +cloudtower/models/nested_aggregate_vds.py +cloudtower/models/nested_aggregate_view.py +cloudtower/models/nested_aggregate_vlan.py +cloudtower/models/nested_aggregate_vm.py +cloudtower/models/nested_aggregate_vm_disk.py +cloudtower/models/nested_aggregate_vm_entity_filter_result.py +cloudtower/models/nested_aggregate_vm_export_file.py +cloudtower/models/nested_aggregate_vm_folder.py +cloudtower/models/nested_aggregate_vm_nic.py +cloudtower/models/nested_aggregate_vm_placement_group.py +cloudtower/models/nested_aggregate_vm_snapshot.py +cloudtower/models/nested_aggregate_vm_template.py +cloudtower/models/nested_aggregate_vm_volume.py +cloudtower/models/nested_aggregate_vm_volume_snapshot.py +cloudtower/models/nested_aggregate_vsphere_esxi_account.py +cloudtower/models/nested_aggregate_witness.py +cloudtower/models/nested_aggregate_zone.py +cloudtower/models/nested_aggregate_zone_topo.py +cloudtower/models/nested_alert_rule.py +cloudtower/models/nested_application.py +cloudtower/models/nested_auth_settings.py +cloudtower/models/nested_brick_disk_layout.py +cloudtower/models/nested_brick_power.py +cloudtower/models/nested_brick_topo.py +cloudtower/models/nested_capacity.py +cloudtower/models/nested_cloud_tower_application.py +cloudtower/models/nested_cloud_tower_application_package.py +cloudtower/models/nested_cluster.py +cloudtower/models/nested_cluster_settings.py +cloudtower/models/nested_cluster_topo.py +cloudtower/models/nested_consistency_group.py +cloudtower/models/nested_consistency_group_snapshot.py +cloudtower/models/nested_content_library_image.py +cloudtower/models/nested_content_library_vm_template.py +cloudtower/models/nested_cpu.py +cloudtower/models/nested_datacenter.py +cloudtower/models/nested_discovered_host_dimms.py +cloudtower/models/nested_discovered_host_disk.py +cloudtower/models/nested_discovered_host_iface.py +cloudtower/models/nested_disk.py +cloudtower/models/nested_disk_failure_information.py +cloudtower/models/nested_elf_image.py +cloudtower/models/nested_entity_filter.py +cloudtower/models/nested_everoute_agent_status.py +cloudtower/models/nested_everoute_cluster.py +cloudtower/models/nested_everoute_cluster_agent_status.py +cloudtower/models/nested_everoute_cluster_condition.py +cloudtower/models/nested_everoute_cluster_controller_status.py +cloudtower/models/nested_everoute_cluster_status.py +cloudtower/models/nested_everoute_cluster_vm_metrics.py +cloudtower/models/nested_everoute_cluster_whitelist.py +cloudtower/models/nested_everoute_controller_instance.py +cloudtower/models/nested_everoute_controller_status.py +cloudtower/models/nested_everoute_controller_template.py +cloudtower/models/nested_everoute_manage_vds_status.py +cloudtower/models/nested_execute_plan.py +cloudtower/models/nested_filter_rule.py +cloudtower/models/nested_frozen_disks.py +cloudtower/models/nested_frozen_nic.py +cloudtower/models/nested_frozen_vlan.py +cloudtower/models/nested_global_alert_rule.py +cloudtower/models/nested_graph.py +cloudtower/models/nested_host.py +cloudtower/models/nested_initiator_chap.py +cloudtower/models/nested_ipmi.py +cloudtower/models/nested_iscsi_lun.py +cloudtower/models/nested_iscsi_lun_snapshot.py +cloudtower/models/nested_iscsi_target.py +cloudtower/models/nested_isolation_policy.py +cloudtower/models/nested_label.py +cloudtower/models/nested_label_group.py +cloudtower/models/nested_license.py +cloudtower/models/nested_metro_availability_checklist.py +cloudtower/models/nested_metro_check_item.py +cloudtower/models/nested_metro_check_result.py +cloudtower/models/nested_namespace_group.py +cloudtower/models/nested_network_policy_rule.py +cloudtower/models/nested_network_policy_rule_port.py +cloudtower/models/nested_nfs_export.py +cloudtower/models/nested_nfs_inode.py +cloudtower/models/nested_nic.py +cloudtower/models/nested_node_topo.py +cloudtower/models/nested_nvmf_namespace.py +cloudtower/models/nested_nvmf_namespace_snapshot.py +cloudtower/models/nested_nvmf_subsystem.py +cloudtower/models/nested_organization.py +cloudtower/models/nested_partition.py +cloudtower/models/nested_password_recover_qa.py +cloudtower/models/nested_password_reover_qa_item.py +cloudtower/models/nested_pmem_dimm.py +cloudtower/models/nested_position.py +cloudtower/models/nested_rack_topo.py +cloudtower/models/nested_report_task.py +cloudtower/models/nested_report_template.py +cloudtower/models/nested_resource_meta.py +cloudtower/models/nested_security_policy.py +cloudtower/models/nested_security_policy_apply.py +cloudtower/models/nested_snapshot_group.py +cloudtower/models/nested_snapshot_group_vm_disk_info.py +cloudtower/models/nested_snapshot_group_vm_info.py +cloudtower/models/nested_snapshot_plan.py +cloudtower/models/nested_snapshot_plan_task.py +cloudtower/models/nested_step.py +cloudtower/models/nested_svt_image.py +cloudtower/models/nested_tag_position.py +cloudtower/models/nested_task.py +cloudtower/models/nested_template_nic.py +cloudtower/models/nested_thresholds.py +cloudtower/models/nested_usb_device.py +cloudtower/models/nested_user.py +cloudtower/models/nested_user_role_next.py +cloudtower/models/nested_vcenter_account.py +cloudtower/models/nested_vds.py +cloudtower/models/nested_view.py +cloudtower/models/nested_vlan.py +cloudtower/models/nested_vm.py +cloudtower/models/nested_vm_disk.py +cloudtower/models/nested_vm_entity_filter_result.py +cloudtower/models/nested_vm_folder.py +cloudtower/models/nested_vm_nic.py +cloudtower/models/nested_vm_placement_group.py +cloudtower/models/nested_vm_recycle_bin.py +cloudtower/models/nested_vm_snapshot.py +cloudtower/models/nested_vm_template.py +cloudtower/models/nested_vm_volume.py +cloudtower/models/nested_vsphere_esxi_account.py +cloudtower/models/nested_witness.py +cloudtower/models/nested_zone.py +cloudtower/models/nested_zone_topo.py +cloudtower/models/network_policy_rule_port_input.py +cloudtower/models/network_policy_rule_port_protocol.py +cloudtower/models/network_policy_rule_type.py +cloudtower/models/network_type.py +cloudtower/models/nfs_export.py +cloudtower/models/nfs_export_connection.py +cloudtower/models/nfs_export_creation_params.py +cloudtower/models/nfs_export_deletion_params.py +cloudtower/models/nfs_export_order_by_input.py +cloudtower/models/nfs_export_updation_params.py +cloudtower/models/nfs_export_updation_params_data.py +cloudtower/models/nfs_export_where_input.py +cloudtower/models/nfs_inode.py +cloudtower/models/nfs_inode_connection.py +cloudtower/models/nfs_inode_order_by_input.py +cloudtower/models/nfs_inode_where_input.py +cloudtower/models/nic.py +cloudtower/models/nic_connection.py +cloudtower/models/nic_driver_state.py +cloudtower/models/nic_order_by_input.py +cloudtower/models/nic_updation_params.py +cloudtower/models/nic_updation_params_data.py +cloudtower/models/nic_where_input.py +cloudtower/models/node_top_updation_param.py +cloudtower/models/node_topo.py +cloudtower/models/node_topo_connection.py +cloudtower/models/node_topo_order_by_input.py +cloudtower/models/node_topo_updation_params_data.py +cloudtower/models/node_topo_where_input.py +cloudtower/models/node_topo_where_unique_input.py +cloudtower/models/notifier_language_code.py +cloudtower/models/notifier_security_mode.py +cloudtower/models/ntp_mode.py +cloudtower/models/nvmf_namespace.py +cloudtower/models/nvmf_namespace_clone_params.py +cloudtower/models/nvmf_namespace_common_params.py +cloudtower/models/nvmf_namespace_connection.py +cloudtower/models/nvmf_namespace_creation_params.py +cloudtower/models/nvmf_namespace_creation_params_all_of.py +cloudtower/models/nvmf_namespace_deletion_params.py +cloudtower/models/nvmf_namespace_order_by_input.py +cloudtower/models/nvmf_namespace_rollback_params.py +cloudtower/models/nvmf_namespace_snapshot.py +cloudtower/models/nvmf_namespace_snapshot_connection.py +cloudtower/models/nvmf_namespace_snapshot_creation_params.py +cloudtower/models/nvmf_namespace_snapshot_deletion_params.py +cloudtower/models/nvmf_namespace_snapshot_order_by_input.py +cloudtower/models/nvmf_namespace_snapshot_where_input.py +cloudtower/models/nvmf_namespace_updation_params.py +cloudtower/models/nvmf_namespace_updation_params_data.py +cloudtower/models/nvmf_namespace_where_input.py +cloudtower/models/nvmf_subsystem.py +cloudtower/models/nvmf_subsystem_common_params.py +cloudtower/models/nvmf_subsystem_connection.py +cloudtower/models/nvmf_subsystem_creation_params.py +cloudtower/models/nvmf_subsystem_creation_params_all_of.py +cloudtower/models/nvmf_subsystem_deletion_params.py +cloudtower/models/nvmf_subsystem_order_by_input.py +cloudtower/models/nvmf_subsystem_policy_type.py +cloudtower/models/nvmf_subsystem_updation_params.py +cloudtower/models/nvmf_subsystem_where_input.py +cloudtower/models/organization.py +cloudtower/models/organization_connection.py +cloudtower/models/organization_creation_params.py +cloudtower/models/organization_deletion_params.py +cloudtower/models/organization_order_by_input.py +cloudtower/models/organization_updation_params.py +cloudtower/models/organization_where_input.py +cloudtower/models/ovf_cpu.py +cloudtower/models/ovf_disk.py +cloudtower/models/ovf_disk_operate.py +cloudtower/models/ovf_nic.py +cloudtower/models/parsed_ovf.py +cloudtower/models/partition_usage.py +cloudtower/models/password_complexity.py +cloudtower/models/pmem_dimm.py +cloudtower/models/pmem_dimm_connection.py +cloudtower/models/pmem_dimm_order_by_input.py +cloudtower/models/pmem_dimm_where_input.py +cloudtower/models/policy_mode.py +cloudtower/models/position.py +cloudtower/models/power_position.py +cloudtower/models/protect_snapshot_status.py +cloudtower/models/rack_topo.py +cloudtower/models/rack_topo_connection.py +cloudtower/models/rack_topo_creation_params.py +cloudtower/models/rack_topo_deletion_params.py +cloudtower/models/rack_topo_order_by_input.py +cloudtower/models/rack_topo_updation_params.py +cloudtower/models/rack_topo_updation_params_data.py +cloudtower/models/rack_topo_where_input.py +cloudtower/models/remove_clusters_from_datacenter_params.py +cloudtower/models/report_resource_input_enum.py +cloudtower/models/report_task.py +cloudtower/models/report_task_connection.py +cloudtower/models/report_task_order_by_input.py +cloudtower/models/report_task_where_input.py +cloudtower/models/report_template.py +cloudtower/models/report_template_connection.py +cloudtower/models/report_template_creation_params.py +cloudtower/models/report_template_deletion_params.py +cloudtower/models/report_template_order_by_input.py +cloudtower/models/report_template_updation_params.py +cloudtower/models/report_template_updation_params_data.py +cloudtower/models/report_template_where_input.py +cloudtower/models/reporte_template_generation_params.py +cloudtower/models/resolve_alert_params.py +cloudtower/models/resource_meta.py +cloudtower/models/role_creation_params.py +cloudtower/models/role_deletion_params.py +cloudtower/models/role_updation_params.py +cloudtower/models/role_updation_params_data.py +cloudtower/models/roleaction.py +cloudtower/models/root_user_creation_params.py +cloudtower/models/security_group.py +cloudtower/models/security_group_connection.py +cloudtower/models/security_group_create_params.py +cloudtower/models/security_group_delete_params.py +cloudtower/models/security_group_order_by_input.py +cloudtower/models/security_group_update_body.py +cloudtower/models/security_group_update_params.py +cloudtower/models/security_group_where_input.py +cloudtower/models/security_policy.py +cloudtower/models/security_policy_apply_to_input.py +cloudtower/models/security_policy_apply_to_input_target.py +cloudtower/models/security_policy_connection.py +cloudtower/models/security_policy_create_params.py +cloudtower/models/security_policy_delete_params.py +cloudtower/models/security_policy_ingress_egress_input.py +cloudtower/models/security_policy_ingress_egress_input_target.py +cloudtower/models/security_policy_order_by_input.py +cloudtower/models/security_policy_update_body.py +cloudtower/models/security_policy_update_params.py +cloudtower/models/security_policy_where_input.py +cloudtower/models/severity_enum.py +cloudtower/models/snapshot_group.py +cloudtower/models/snapshot_group_clone_param.py +cloudtower/models/snapshot_group_clone_params.py +cloudtower/models/snapshot_group_connection.py +cloudtower/models/snapshot_group_deletion_params.py +cloudtower/models/snapshot_group_keep_params.py +cloudtower/models/snapshot_group_order_by_input.py +cloudtower/models/snapshot_group_rollback_params.py +cloudtower/models/snapshot_group_where_input.py +cloudtower/models/snapshot_plan.py +cloudtower/models/snapshot_plan_connection.py +cloudtower/models/snapshot_plan_creation_params.py +cloudtower/models/snapshot_plan_deletion_params.py +cloudtower/models/snapshot_plan_execute_status.py +cloudtower/models/snapshot_plan_execute_type.py +cloudtower/models/snapshot_plan_execution_params.py +cloudtower/models/snapshot_plan_execution_params_data.py +cloudtower/models/snapshot_plan_order_by_input.py +cloudtower/models/snapshot_plan_resume_params.py +cloudtower/models/snapshot_plan_status.py +cloudtower/models/snapshot_plan_suspended_params.py +cloudtower/models/snapshot_plan_task.py +cloudtower/models/snapshot_plan_task_connection.py +cloudtower/models/snapshot_plan_task_order_by_input.py +cloudtower/models/snapshot_plan_task_type.py +cloudtower/models/snapshot_plan_task_where_input.py +cloudtower/models/snapshot_plan_updation_params.py +cloudtower/models/snapshot_plan_updation_params_data.py +cloudtower/models/snapshot_plan_where_input.py +cloudtower/models/snmp_auth_protocol.py +cloudtower/models/snmp_language_code.py +cloudtower/models/snmp_privacy_protocol.py +cloudtower/models/snmp_protocol.py +cloudtower/models/snmp_transport.py +cloudtower/models/snmp_transport_connection.py +cloudtower/models/snmp_transport_creation_params.py +cloudtower/models/snmp_transport_deletion_params.py +cloudtower/models/snmp_transport_order_by_input.py +cloudtower/models/snmp_transport_updation_params.py +cloudtower/models/snmp_transport_updation_params_data.py +cloudtower/models/snmp_transport_where_input.py +cloudtower/models/snmp_trap_receiver.py +cloudtower/models/snmp_trap_receiver_connection.py +cloudtower/models/snmp_trap_receiver_creation_params.py +cloudtower/models/snmp_trap_receiver_deletion_params.py +cloudtower/models/snmp_trap_receiver_order_by_input.py +cloudtower/models/snmp_trap_receiver_updation_params.py +cloudtower/models/snmp_trap_receiver_updation_params_data.py +cloudtower/models/snmp_trap_receiver_where_input.py +cloudtower/models/snmp_version.py +cloudtower/models/software_edition.py +cloudtower/models/step_unit.py +cloudtower/models/stop_vm_in_cutover_migration_params.py +cloudtower/models/store_connection_type.py +cloudtower/models/store_transport_type.py +cloudtower/models/svt_image.py +cloudtower/models/svt_image_connection.py +cloudtower/models/svt_image_order_by_input.py +cloudtower/models/svt_image_where_input.py +cloudtower/models/system_audit_log.py +cloudtower/models/system_audit_log_connection.py +cloudtower/models/system_audit_log_order_by_input.py +cloudtower/models/system_audit_log_where_input.py +cloudtower/models/table_reporter_params.py +cloudtower/models/table_reporter_params_filter.py +cloudtower/models/task.py +cloudtower/models/task_connection.py +cloudtower/models/task_order_by_input.py +cloudtower/models/task_status.py +cloudtower/models/task_type.py +cloudtower/models/task_where_input.py +cloudtower/models/template_cloud_init.py +cloudtower/models/time_unit.py +cloudtower/models/trigger_disk_blink_params.py +cloudtower/models/uninstall_cloud_tower_application_params.py +cloudtower/models/update_access_restriction_params.py +cloudtower/models/update_cloud_tower_application_vm_spec_params.py +cloudtower/models/update_cloud_tower_application_vm_spec_params_data.py +cloudtower/models/update_passrod_security_params.py +cloudtower/models/update_session_timeout_params.py +cloudtower/models/update_vcenter_account_params.py +cloudtower/models/update_vcenter_account_params_data.py +cloudtower/models/update_vm_volume_params.py +cloudtower/models/update_vm_volume_params_data.py +cloudtower/models/update_vsphere_esxi_account_params.py +cloudtower/models/update_vsphere_esxi_account_params_data.py +cloudtower/models/upgrade_cloud_tower_application_params.py +cloudtower/models/upgrade_cloud_tower_application_params_data.py +cloudtower/models/upload_resource_type.py +cloudtower/models/upload_task.py +cloudtower/models/upload_task_connection.py +cloudtower/models/upload_task_order_by_input.py +cloudtower/models/upload_task_status.py +cloudtower/models/upload_task_where_input.py +cloudtower/models/usb_device.py +cloudtower/models/usb_device_connection.py +cloudtower/models/usb_device_mount_params.py +cloudtower/models/usb_device_mount_params_data.py +cloudtower/models/usb_device_order_by_input.py +cloudtower/models/usb_device_status.py +cloudtower/models/usb_device_unmount_params.py +cloudtower/models/usb_device_unmount_params_data.py +cloudtower/models/usb_device_where_input.py +cloudtower/models/user.py +cloudtower/models/user_audit_log.py +cloudtower/models/user_audit_log_connection.py +cloudtower/models/user_audit_log_order_by_input.py +cloudtower/models/user_audit_log_status.py +cloudtower/models/user_audit_log_where_input.py +cloudtower/models/user_connection.py +cloudtower/models/user_creation_params.py +cloudtower/models/user_deletion_params.py +cloudtower/models/user_order_by_input.py +cloudtower/models/user_role.py +cloudtower/models/user_role_next.py +cloudtower/models/user_role_next_connection.py +cloudtower/models/user_role_next_order_by_input.py +cloudtower/models/user_role_next_where_input.py +cloudtower/models/user_role_platform.py +cloudtower/models/user_role_preset.py +cloudtower/models/user_source.py +cloudtower/models/user_updation_params.py +cloudtower/models/user_updation_params_data.py +cloudtower/models/user_where_input.py +cloudtower/models/vcenter_account.py +cloudtower/models/vcenter_account_connection.py +cloudtower/models/vcenter_account_order_by_input.py +cloudtower/models/vcenter_account_where_input.py +cloudtower/models/vcenter_account_where_unique_input.py +cloudtower/models/vds.py +cloudtower/models/vds_connection.py +cloudtower/models/vds_creation_params.py +cloudtower/models/vds_creation_with_m_access_vlan_params.py +cloudtower/models/vds_creation_with_migrate_vlan_params.py +cloudtower/models/vds_creation_with_migrate_vlan_params_all_of.py +cloudtower/models/vds_creation_with_migrate_vlan_params_all_of_vlan.py +cloudtower/models/vds_creation_with_migrate_vlan_params_all_of_vlan_extra_ip.py +cloudtower/models/vds_deletion_params.py +cloudtower/models/vds_order_by_input.py +cloudtower/models/vds_updation_params.py +cloudtower/models/vds_updation_params_data.py +cloudtower/models/vds_where_input.py +cloudtower/models/view.py +cloudtower/models/view_connection.py +cloudtower/models/view_creation_params.py +cloudtower/models/view_deletion_params.py +cloudtower/models/view_order_by_input.py +cloudtower/models/view_updation_params.py +cloudtower/models/view_updation_params_data.py +cloudtower/models/view_where_input.py +cloudtower/models/vlan.py +cloudtower/models/vlan_connection.py +cloudtower/models/vlan_deletion_params.py +cloudtower/models/vlan_mapping.py +cloudtower/models/vlan_mode_type.py +cloudtower/models/vlan_order_by_input.py +cloudtower/models/vlan_where_input.py +cloudtower/models/vm.py +cloudtower/models/vm_add_cd_rom_params.py +cloudtower/models/vm_add_cd_rom_params_data.py +cloudtower/models/vm_add_disk_params.py +cloudtower/models/vm_add_disk_params_data.py +cloudtower/models/vm_add_disk_params_data_vm_disks.py +cloudtower/models/vm_add_folder_params.py +cloudtower/models/vm_add_folder_params_data.py +cloudtower/models/vm_add_nic_params.py +cloudtower/models/vm_add_nic_params_data.py +cloudtower/models/vm_cd_rom_params.py +cloudtower/models/vm_clock_offset.py +cloudtower/models/vm_clone_params.py +cloudtower/models/vm_connection.py +cloudtower/models/vm_create_vm_from_content_library_template_params.py +cloudtower/models/vm_create_vm_from_template_params.py +cloudtower/models/vm_creation_params.py +cloudtower/models/vm_delete_params.py +cloudtower/models/vm_delete_params_effect.py +cloudtower/models/vm_disk.py +cloudtower/models/vm_disk_connection.py +cloudtower/models/vm_disk_io_policy.py +cloudtower/models/vm_disk_io_restrict_type.py +cloudtower/models/vm_disk_operate.py +cloudtower/models/vm_disk_operate_remove_disks.py +cloudtower/models/vm_disk_order_by_input.py +cloudtower/models/vm_disk_params.py +cloudtower/models/vm_disk_type.py +cloudtower/models/vm_disk_where_input.py +cloudtower/models/vm_eject_cd_rom_params.py +cloudtower/models/vm_entity_filter_result.py +cloudtower/models/vm_entity_filter_result_connection.py +cloudtower/models/vm_entity_filter_result_order_by_input.py +cloudtower/models/vm_entity_filter_result_where_input.py +cloudtower/models/vm_expand_vm_disk_params.py +cloudtower/models/vm_export_file.py +cloudtower/models/vm_export_file_connection.py +cloudtower/models/vm_export_file_file.py +cloudtower/models/vm_export_file_order_by_input.py +cloudtower/models/vm_export_file_type.py +cloudtower/models/vm_export_file_where_input.py +cloudtower/models/vm_export_file_where_unique_input.py +cloudtower/models/vm_export_params.py +cloudtower/models/vm_export_params_data.py +cloudtower/models/vm_firmware.py +cloudtower/models/vm_folder.py +cloudtower/models/vm_folder_connection.py +cloudtower/models/vm_folder_creation_params.py +cloudtower/models/vm_folder_deletion_params.py +cloudtower/models/vm_folder_order_by_input.py +cloudtower/models/vm_folder_updation_params.py +cloudtower/models/vm_folder_updation_params_data.py +cloudtower/models/vm_folder_where_input.py +cloudtower/models/vm_guests_operation_system.py +cloudtower/models/vm_import_params.py +cloudtower/models/vm_migrate_across_cluster_params.py +cloudtower/models/vm_migrate_across_cluster_params_data.py +cloudtower/models/vm_migrate_params.py +cloudtower/models/vm_nic.py +cloudtower/models/vm_nic_connection.py +cloudtower/models/vm_nic_model.py +cloudtower/models/vm_nic_order_by_input.py +cloudtower/models/vm_nic_params.py +cloudtower/models/vm_nic_where_input.py +cloudtower/models/vm_operate_params.py +cloudtower/models/vm_order_by_input.py +cloudtower/models/vm_placement_group.py +cloudtower/models/vm_placement_group_connection.py +cloudtower/models/vm_placement_group_creation_params.py +cloudtower/models/vm_placement_group_deletion_params.py +cloudtower/models/vm_placement_group_order_by_input.py +cloudtower/models/vm_placement_group_updation_params.py +cloudtower/models/vm_placement_group_updation_params_data.py +cloudtower/models/vm_placement_group_where_input.py +cloudtower/models/vm_rebuild_params.py +cloudtower/models/vm_remove_cd_rom_params.py +cloudtower/models/vm_remove_cd_rom_params_data.py +cloudtower/models/vm_remove_disk_params.py +cloudtower/models/vm_remove_disk_params_data.py +cloudtower/models/vm_remove_nic_params.py +cloudtower/models/vm_remove_nic_params_data.py +cloudtower/models/vm_reset_guest_os_password_params.py +cloudtower/models/vm_reset_guest_os_password_params_data.py +cloudtower/models/vm_restrict_io_params_data.py +cloudtower/models/vm_rollback_params.py +cloudtower/models/vm_rollback_params_data.py +cloudtower/models/vm_snapshot.py +cloudtower/models/vm_snapshot_connection.py +cloudtower/models/vm_snapshot_creation_params.py +cloudtower/models/vm_snapshot_creation_params_data.py +cloudtower/models/vm_snapshot_deletion_params.py +cloudtower/models/vm_snapshot_order_by_input.py +cloudtower/models/vm_snapshot_where_input.py +cloudtower/models/vm_start_params.py +cloudtower/models/vm_start_params_data.py +cloudtower/models/vm_status.py +cloudtower/models/vm_template.py +cloudtower/models/vm_template_connection.py +cloudtower/models/vm_template_creation_params.py +cloudtower/models/vm_template_deletion_params.py +cloudtower/models/vm_template_order_by_input.py +cloudtower/models/vm_template_updation_params.py +cloudtower/models/vm_template_updation_params_data.py +cloudtower/models/vm_template_where_input.py +cloudtower/models/vm_toggle_cd_rom_disable_params.py +cloudtower/models/vm_tools_status.py +cloudtower/models/vm_update_advanced_options_params.py +cloudtower/models/vm_update_advanced_options_params_data.py +cloudtower/models/vm_update_disk_params.py +cloudtower/models/vm_update_disk_params_data.py +cloudtower/models/vm_update_each_disk_io_policy_params.py +cloudtower/models/vm_update_host_options_params.py +cloudtower/models/vm_update_host_options_params_data.py +cloudtower/models/vm_update_io_policy_params.py +cloudtower/models/vm_update_io_policy_params_data.py +cloudtower/models/vm_update_nic_advance_info_params.py +cloudtower/models/vm_update_nic_advance_info_params_data.py +cloudtower/models/vm_update_nic_basic_info_params.py +cloudtower/models/vm_update_nic_basic_info_params_data.py +cloudtower/models/vm_update_nic_params.py +cloudtower/models/vm_update_nic_params_data.py +cloudtower/models/vm_update_owner_params.py +cloudtower/models/vm_update_owner_params_data.py +cloudtower/models/vm_update_params.py +cloudtower/models/vm_update_params_data.py +cloudtower/models/vm_usage.py +cloudtower/models/vm_video_type.py +cloudtower/models/vm_vlan_creation_params.py +cloudtower/models/vm_vlan_updation_params.py +cloudtower/models/vm_vlan_updation_params_data.py +cloudtower/models/vm_vm_policy.py +cloudtower/models/vm_volume.py +cloudtower/models/vm_volume_connection.py +cloudtower/models/vm_volume_creation_params.py +cloudtower/models/vm_volume_deletion_params.py +cloudtower/models/vm_volume_elf_storage_policy_type.py +cloudtower/models/vm_volume_order_by_input.py +cloudtower/models/vm_volume_rebuild_params.py +cloudtower/models/vm_volume_rollback_params.py +cloudtower/models/vm_volume_snapshot.py +cloudtower/models/vm_volume_snapshot_connection.py +cloudtower/models/vm_volume_snapshot_creation_params.py +cloudtower/models/vm_volume_snapshot_deletion_params.py +cloudtower/models/vm_volume_snapshot_order_by_input.py +cloudtower/models/vm_volume_snapshot_type.py +cloudtower/models/vm_volume_snapshot_where_input.py +cloudtower/models/vm_volume_type.py +cloudtower/models/vm_volume_where_input.py +cloudtower/models/vm_volume_where_unique_input.py +cloudtower/models/vm_where_input.py +cloudtower/models/vm_where_unique_input.py +cloudtower/models/vmdk_cdrom_modify.py +cloudtower/models/vmdk_disk_modify.py +cloudtower/models/vsphere_esxi_account.py +cloudtower/models/vsphere_esxi_account_connection.py +cloudtower/models/vsphere_esxi_account_order_by_input.py +cloudtower/models/vsphere_esxi_account_where_input.py +cloudtower/models/with_task_alert.py +cloudtower/models/with_task_alert_notifier.py +cloudtower/models/with_task_batch_hosts.py +cloudtower/models/with_task_brick_topo.py +cloudtower/models/with_task_cluster.py +cloudtower/models/with_task_cluster_settings.py +cloudtower/models/with_task_consistency_group.py +cloudtower/models/with_task_consistency_group_snapshot.py +cloudtower/models/with_task_content_library_image.py +cloudtower/models/with_task_content_library_vm_template.py +cloudtower/models/with_task_datacenter.py +cloudtower/models/with_task_delete_brick_topo.py +cloudtower/models/with_task_delete_cluster.py +cloudtower/models/with_task_delete_cluster_recycle_bin.py +cloudtower/models/with_task_delete_consistency_group.py +cloudtower/models/with_task_delete_consistency_group_snapshot.py +cloudtower/models/with_task_delete_content_library_image.py +cloudtower/models/with_task_delete_content_library_vm_template.py +cloudtower/models/with_task_delete_datacenter.py +cloudtower/models/with_task_delete_elf_image.py +cloudtower/models/with_task_delete_entity_filter.py +cloudtower/models/with_task_delete_graph.py +cloudtower/models/with_task_delete_iscsi_lun.py +cloudtower/models/with_task_delete_iscsi_lun_snapshot.py +cloudtower/models/with_task_delete_iscsi_target.py +cloudtower/models/with_task_delete_label.py +cloudtower/models/with_task_delete_log_collection.py +cloudtower/models/with_task_delete_namespace_group.py +cloudtower/models/with_task_delete_nfs_export.py +cloudtower/models/with_task_delete_nvmf_namespace.py +cloudtower/models/with_task_delete_nvmf_namespace_snapshot.py +cloudtower/models/with_task_delete_nvmf_subsystem.py +cloudtower/models/with_task_delete_organization.py +cloudtower/models/with_task_delete_rack_topo.py +cloudtower/models/with_task_delete_report_template.py +cloudtower/models/with_task_delete_role.py +cloudtower/models/with_task_delete_security_group.py +cloudtower/models/with_task_delete_security_policy.py +cloudtower/models/with_task_delete_snapshot_group.py +cloudtower/models/with_task_delete_snapshot_plan.py +cloudtower/models/with_task_delete_snmp_transport.py +cloudtower/models/with_task_delete_snmp_trap_receiver.py +cloudtower/models/with_task_delete_user.py +cloudtower/models/with_task_delete_vds.py +cloudtower/models/with_task_delete_view.py +cloudtower/models/with_task_delete_vlan.py +cloudtower/models/with_task_delete_vm.py +cloudtower/models/with_task_delete_vm_folder.py +cloudtower/models/with_task_delete_vm_placement_group.py +cloudtower/models/with_task_delete_vm_snapshot.py +cloudtower/models/with_task_delete_vm_template.py +cloudtower/models/with_task_delete_vm_volume.py +cloudtower/models/with_task_delete_vm_volume_snapshot.py +cloudtower/models/with_task_disk.py +cloudtower/models/with_task_elf_image.py +cloudtower/models/with_task_entity_filter.py +cloudtower/models/with_task_global_alert_rule.py +cloudtower/models/with_task_global_settings.py +cloudtower/models/with_task_graph.py +cloudtower/models/with_task_host.py +cloudtower/models/with_task_iscsi_lun.py +cloudtower/models/with_task_iscsi_lun_snapshot.py +cloudtower/models/with_task_iscsi_target.py +cloudtower/models/with_task_label.py +cloudtower/models/with_task_license.py +cloudtower/models/with_task_log_collection.py +cloudtower/models/with_task_login_response.py +cloudtower/models/with_task_metric.py +cloudtower/models/with_task_namespace_group.py +cloudtower/models/with_task_nfs_export.py +cloudtower/models/with_task_nic.py +cloudtower/models/with_task_node_topo.py +cloudtower/models/with_task_nvmf_namespace.py +cloudtower/models/with_task_nvmf_namespace_snapshot.py +cloudtower/models/with_task_nvmf_subsystem.py +cloudtower/models/with_task_organization.py +cloudtower/models/with_task_rack_topo.py +cloudtower/models/with_task_report_task.py +cloudtower/models/with_task_report_template.py +cloudtower/models/with_task_security_group.py +cloudtower/models/with_task_security_policy.py +cloudtower/models/with_task_snapshot_group.py +cloudtower/models/with_task_snapshot_plan.py +cloudtower/models/with_task_snmp_transport.py +cloudtower/models/with_task_snmp_trap_receiver.py +cloudtower/models/with_task_usb_device.py +cloudtower/models/with_task_user.py +cloudtower/models/with_task_user_role_next.py +cloudtower/models/with_task_vcenter_account.py +cloudtower/models/with_task_vds.py +cloudtower/models/with_task_view.py +cloudtower/models/with_task_vlan.py +cloudtower/models/with_task_vm.py +cloudtower/models/with_task_vm_export_file.py +cloudtower/models/with_task_vm_folder.py +cloudtower/models/with_task_vm_placement_group.py +cloudtower/models/with_task_vm_snapshot.py +cloudtower/models/with_task_vm_template.py +cloudtower/models/with_task_vm_volume.py +cloudtower/models/with_task_vm_volume_snapshot.py +cloudtower/models/with_task_vsphere_esxi_account_array.py +cloudtower/models/witness.py +cloudtower/models/witness_connection.py +cloudtower/models/witness_order_by_input.py +cloudtower/models/witness_service.py +cloudtower/models/witness_where_input.py +cloudtower/models/witness_where_unique_input.py +cloudtower/models/zone.py +cloudtower/models/zone_connection.py +cloudtower/models/zone_order_by_input.py +cloudtower/models/zone_topo.py +cloudtower/models/zone_topo_connection.py +cloudtower/models/zone_topo_order_by_input.py +cloudtower/models/zone_topo_where_input.py +cloudtower/models/zone_where_input.py +cloudtower/rest.py +cloudtower/utils.py +requirements.txt +setup.cfg +setup.py +setup.py +test-requirements.txt +tox.ini diff --git a/README.md b/README.md index 7f378b38..d1b6ebff 100644 --- a/README.md +++ b/README.md @@ -11,14 +11,14 @@ Python 环境下的 Cloudtower SDK,适用于 2.7 与 3.4 以上版本。 - ### whl ```shell - pip install cloudtower_sdk-2.8.0-py2.py3-none-any.whl + pip install cloudtower_sdk-2.9.0-py2.py3-none-any.whl ``` - ### tar.gz ```shell - tar xvzf cloudtower-sdk-2.8.0.tar.gz - cd cloudtower-sdk-2.8.0 + tar xvzf cloudtower-sdk-2.9.0.tar.gz + cd cloudtower-sdk-2.9.0 python setup.py install ``` diff --git a/RELEASENOTE.md b/RELEASENOTE.md index 732c268e..17570077 100644 --- a/RELEASENOTE.md +++ b/RELEASENOTE.md @@ -1,12 +1,21 @@ # RELEASE NOTE -## release 日期 2022-05-04 +v2.9.0 release (tower version 3.0.0) +## release 日期 2023-07-03 + +- feature: [SecurityGroupApi] 支持创建,更新与删除安全组 +- feature: [SecurityPolicy] 支持创建,更新与删除自定义安全策略 +- feature: [OvfApi], [VmExportFileApi], [VmApi] 支持虚拟机的导入与导出 +- feature: [VlanApi] 支持 trunk vlan 的创建与编辑 +- feature: [UserApi] [Login] 支持使用 authn_id 登陆,旧 LDAP 登陆方式被废弃 +- optimize: 为 [Host], [Nic], [UsbDevice], [VmVolume], [VmVolumeSnapshot] 添加了 `EntityAsyncStatus` 已判断资源目前的状态 +## release 日期 2023-05-04 v2.8.0 release - optimize: VlanApi: [vm_vlan_creation_params], [vm_vlan_updation_params_data], [management_vlan_updation_params_data] 限制 `VlanId` 范围为 0~4095 -## release 日期 2022-03-22 +## release 日期 2023-03-22 v2.7.0 release diff --git a/cloudtower/__init__.py b/cloudtower/__init__.py index d96727da..88f4a167 100644 --- a/cloudtower/__init__.py +++ b/cloudtower/__init__.py @@ -3,7 +3,7 @@ # flake8: noqa from __future__ import absolute_import -__version__ = "2.8.0" +__version__ = "2.9.0" # import apis into sdk package from cloudtower.api.alert_api import AlertApi @@ -58,10 +58,12 @@ from cloudtower.api.nvmf_namespace_snapshot_api import NvmfNamespaceSnapshotApi from cloudtower.api.nvmf_subsystem_api import NvmfSubsystemApi from cloudtower.api.organization_api import OrganizationApi +from cloudtower.api.ovf_api import OvfApi from cloudtower.api.pmem_dimm_api import PmemDimmApi from cloudtower.api.rack_topo_api import RackTopoApi from cloudtower.api.report_task_api import ReportTaskApi from cloudtower.api.report_template_api import ReportTemplateApi +from cloudtower.api.security_group_api import SecurityGroupApi from cloudtower.api.security_policy_api import SecurityPolicyApi from cloudtower.api.snapshot_group_api import SnapshotGroupApi from cloudtower.api.snapshot_plan_api import SnapshotPlanApi @@ -84,6 +86,7 @@ from cloudtower.api.vm_api import VmApi from cloudtower.api.vm_disk_api import VmDiskApi from cloudtower.api.vm_entity_filter_result_api import VmEntityFilterResultApi +from cloudtower.api.vm_export_file_api import VmExportFileApi from cloudtower.api.vm_folder_api import VmFolderApi from cloudtower.api.vm_nic_api import VmNicApi from cloudtower.api.vm_placement_group_api import VmPlacementGroupApi @@ -299,6 +302,8 @@ from cloudtower.models.delete_rack_topo import DeleteRackTopo from cloudtower.models.delete_report_template import DeleteReportTemplate from cloudtower.models.delete_role import DeleteRole +from cloudtower.models.delete_security_group import DeleteSecurityGroup +from cloudtower.models.delete_security_policy import DeleteSecurityPolicy from cloudtower.models.delete_snapshot_group import DeleteSnapshotGroup from cloudtower.models.delete_snapshot_plan import DeleteSnapshotPlan from cloudtower.models.delete_snmp_transport import DeleteSnmpTransport @@ -375,6 +380,7 @@ from cloudtower.models.everoute_package_order_by_input import EveroutePackageOrderByInput from cloudtower.models.everoute_package_where_input import EveroutePackageWhereInput from cloudtower.models.execute_plan import ExecutePlan +from cloudtower.models.export_file_download_links import ExportFileDownloadLinks from cloudtower.models.extra_ip import ExtraIp from cloudtower.models.filter_rule_aggregation_enum import FilterRuleAggregationEnum from cloudtower.models.filter_rule_input import FilterRuleInput @@ -437,6 +443,7 @@ from cloudtower.models.get_everoute_licenses_request_body import GetEverouteLicensesRequestBody from cloudtower.models.get_everoute_packages_connection_request_body import GetEveroutePackagesConnectionRequestBody from cloudtower.models.get_everoute_packages_request_body import GetEveroutePackagesRequestBody +from cloudtower.models.get_export_file_download_links_params import GetExportFileDownloadLinksParams from cloudtower.models.get_global_alert_rules_connection_request_body import GetGlobalAlertRulesConnectionRequestBody from cloudtower.models.get_global_alert_rules_request_body import GetGlobalAlertRulesRequestBody from cloudtower.models.get_global_settingses_connection_request_body import GetGlobalSettingsesConnectionRequestBody @@ -499,6 +506,8 @@ from cloudtower.models.get_scvm_metric_input import GetScvmMetricInput from cloudtower.models.get_scvm_network_input import GetScvmNetworkInput from cloudtower.models.get_scvm_service_metric_input import GetScvmServiceMetricInput +from cloudtower.models.get_security_groups_connection_request_body import GetSecurityGroupsConnectionRequestBody +from cloudtower.models.get_security_groups_request_body import GetSecurityGroupsRequestBody from cloudtower.models.get_security_policies_connection_request_body import GetSecurityPoliciesConnectionRequestBody from cloudtower.models.get_security_policies_request_body import GetSecurityPoliciesRequestBody from cloudtower.models.get_snapshot_groups_connection_request_body import GetSnapshotGroupsConnectionRequestBody @@ -540,6 +549,8 @@ from cloudtower.models.get_vm_disks_request_body import GetVmDisksRequestBody from cloudtower.models.get_vm_entity_filter_results_connection_request_body import GetVmEntityFilterResultsConnectionRequestBody from cloudtower.models.get_vm_entity_filter_results_request_body import GetVmEntityFilterResultsRequestBody +from cloudtower.models.get_vm_export_files_connection_request_body import GetVmExportFilesConnectionRequestBody +from cloudtower.models.get_vm_export_files_request_body import GetVmExportFilesRequestBody from cloudtower.models.get_vm_folders_connection_request_body import GetVmFoldersConnectionRequestBody from cloudtower.models.get_vm_folders_request_body import GetVmFoldersRequestBody from cloudtower.models.get_vm_metric_input import GetVmMetricInput @@ -606,6 +617,7 @@ from cloudtower.models.host_updation_params_data import HostUpdationParamsData from cloudtower.models.host_where_input import HostWhereInput from cloudtower.models.hypervisor import Hypervisor +from cloudtower.models.ip_security_policy import IPSecurityPolicy from cloudtower.models.install_vmtools_params import InstallVmtoolsParams from cloudtower.models.install_vmtools_params_data import InstallVmtoolsParamsData from cloudtower.models.ipmi import Ipmi @@ -687,6 +699,7 @@ from cloudtower.models.metric_type import MetricType from cloudtower.models.metric_unit import MetricUnit from cloudtower.models.metro_check_status_enum import MetroCheckStatusEnum +from cloudtower.models.mfa_type import MfaType from cloudtower.models.mgt_ip_mapper import MgtIpMapper from cloudtower.models.migrate_type import MigrateType from cloudtower.models.migrate_vm_config import MigrateVmConfig @@ -753,6 +766,7 @@ from cloudtower.models.nested_aggregate_rack_topo import NestedAggregateRackTopo from cloudtower.models.nested_aggregate_report_task import NestedAggregateReportTask from cloudtower.models.nested_aggregate_report_template import NestedAggregateReportTemplate +from cloudtower.models.nested_aggregate_security_group import NestedAggregateSecurityGroup from cloudtower.models.nested_aggregate_security_policy import NestedAggregateSecurityPolicy from cloudtower.models.nested_aggregate_snapshot_group import NestedAggregateSnapshotGroup from cloudtower.models.nested_aggregate_snapshot_plan import NestedAggregateSnapshotPlan @@ -774,6 +788,7 @@ from cloudtower.models.nested_aggregate_vm import NestedAggregateVm from cloudtower.models.nested_aggregate_vm_disk import NestedAggregateVmDisk from cloudtower.models.nested_aggregate_vm_entity_filter_result import NestedAggregateVmEntityFilterResult +from cloudtower.models.nested_aggregate_vm_export_file import NestedAggregateVmExportFile from cloudtower.models.nested_aggregate_vm_folder import NestedAggregateVmFolder from cloudtower.models.nested_aggregate_vm_nic import NestedAggregateVmNic from cloudtower.models.nested_aggregate_vm_placement_group import NestedAggregateVmPlacementGroup @@ -837,6 +852,7 @@ from cloudtower.models.nested_iscsi_target import NestedIscsiTarget from cloudtower.models.nested_isolation_policy import NestedIsolationPolicy from cloudtower.models.nested_label import NestedLabel +from cloudtower.models.nested_label_group import NestedLabelGroup from cloudtower.models.nested_license import NestedLicense from cloudtower.models.nested_metro_availability_checklist import NestedMetroAvailabilityChecklist from cloudtower.models.nested_metro_check_item import NestedMetroCheckItem @@ -895,6 +911,7 @@ from cloudtower.models.nested_witness import NestedWitness from cloudtower.models.nested_zone import NestedZone from cloudtower.models.nested_zone_topo import NestedZoneTopo +from cloudtower.models.network_policy_rule_port_input import NetworkPolicyRulePortInput from cloudtower.models.network_policy_rule_port_protocol import NetworkPolicyRulePortProtocol from cloudtower.models.network_policy_rule_type import NetworkPolicyRuleType from cloudtower.models.network_type import NetworkType @@ -962,6 +979,11 @@ from cloudtower.models.organization_order_by_input import OrganizationOrderByInput from cloudtower.models.organization_updation_params import OrganizationUpdationParams from cloudtower.models.organization_where_input import OrganizationWhereInput +from cloudtower.models.ovf_cpu import OvfCpu +from cloudtower.models.ovf_disk import OvfDisk +from cloudtower.models.ovf_disk_operate import OvfDiskOperate +from cloudtower.models.ovf_nic import OvfNic +from cloudtower.models.parsed_ovf import ParsedOVF from cloudtower.models.partition_usage import PartitionUsage from cloudtower.models.password_complexity import PasswordComplexity from cloudtower.models.pmem_dimm import PmemDimm @@ -1003,9 +1025,25 @@ from cloudtower.models.role_updation_params import RoleUpdationParams from cloudtower.models.role_updation_params_data import RoleUpdationParamsData from cloudtower.models.root_user_creation_params import RootUserCreationParams +from cloudtower.models.security_group import SecurityGroup +from cloudtower.models.security_group_connection import SecurityGroupConnection +from cloudtower.models.security_group_create_params import SecurityGroupCreateParams +from cloudtower.models.security_group_delete_params import SecurityGroupDeleteParams +from cloudtower.models.security_group_order_by_input import SecurityGroupOrderByInput +from cloudtower.models.security_group_update_body import SecurityGroupUpdateBody +from cloudtower.models.security_group_update_params import SecurityGroupUpdateParams +from cloudtower.models.security_group_where_input import SecurityGroupWhereInput from cloudtower.models.security_policy import SecurityPolicy +from cloudtower.models.security_policy_apply_to_input import SecurityPolicyApplyToInput +from cloudtower.models.security_policy_apply_to_input_target import SecurityPolicyApplyToInputTarget from cloudtower.models.security_policy_connection import SecurityPolicyConnection +from cloudtower.models.security_policy_create_params import SecurityPolicyCreateParams +from cloudtower.models.security_policy_delete_params import SecurityPolicyDeleteParams +from cloudtower.models.security_policy_ingress_egress_input import SecurityPolicyIngressEgressInput +from cloudtower.models.security_policy_ingress_egress_input_target import SecurityPolicyIngressEgressInputTarget from cloudtower.models.security_policy_order_by_input import SecurityPolicyOrderByInput +from cloudtower.models.security_policy_update_body import SecurityPolicyUpdateBody +from cloudtower.models.security_policy_update_params import SecurityPolicyUpdateParams from cloudtower.models.security_policy_where_input import SecurityPolicyWhereInput from cloudtower.models.severity_enum import SeverityEnum from cloudtower.models.snapshot_group import SnapshotGroup @@ -1162,6 +1200,7 @@ from cloudtower.models.vlan_connection import VlanConnection from cloudtower.models.vlan_deletion_params import VlanDeletionParams from cloudtower.models.vlan_mapping import VlanMapping +from cloudtower.models.vlan_mode_type import VlanModeType from cloudtower.models.vlan_order_by_input import VlanOrderByInput from cloudtower.models.vlan_where_input import VlanWhereInput from cloudtower.models.vm import Vm @@ -1199,6 +1238,15 @@ from cloudtower.models.vm_entity_filter_result_order_by_input import VmEntityFilterResultOrderByInput from cloudtower.models.vm_entity_filter_result_where_input import VmEntityFilterResultWhereInput from cloudtower.models.vm_expand_vm_disk_params import VmExpandVmDiskParams +from cloudtower.models.vm_export_file import VmExportFile +from cloudtower.models.vm_export_file_connection import VmExportFileConnection +from cloudtower.models.vm_export_file_file import VmExportFileFile +from cloudtower.models.vm_export_file_order_by_input import VmExportFileOrderByInput +from cloudtower.models.vm_export_file_type import VmExportFileType +from cloudtower.models.vm_export_file_where_input import VmExportFileWhereInput +from cloudtower.models.vm_export_file_where_unique_input import VmExportFileWhereUniqueInput +from cloudtower.models.vm_export_params import VmExportParams +from cloudtower.models.vm_export_params_data import VmExportParamsData from cloudtower.models.vm_firmware import VmFirmware from cloudtower.models.vm_folder import VmFolder from cloudtower.models.vm_folder_connection import VmFolderConnection @@ -1209,6 +1257,7 @@ from cloudtower.models.vm_folder_updation_params_data import VmFolderUpdationParamsData from cloudtower.models.vm_folder_where_input import VmFolderWhereInput from cloudtower.models.vm_guests_operation_system import VmGuestsOperationSystem +from cloudtower.models.vm_import_params import VmImportParams from cloudtower.models.vm_migrate_across_cluster_params import VmMigrateAcrossClusterParams from cloudtower.models.vm_migrate_across_cluster_params_data import VmMigrateAcrossClusterParamsData from cloudtower.models.vm_migrate_params import VmMigrateParams @@ -1305,6 +1354,8 @@ from cloudtower.models.vm_volume_where_unique_input import VmVolumeWhereUniqueInput from cloudtower.models.vm_where_input import VmWhereInput from cloudtower.models.vm_where_unique_input import VmWhereUniqueInput +from cloudtower.models.vmdk_cdrom_modify import VmdkCdromModify +from cloudtower.models.vmdk_disk_modify import VmdkDiskModify from cloudtower.models.vsphere_esxi_account import VsphereEsxiAccount from cloudtower.models.vsphere_esxi_account_connection import VsphereEsxiAccountConnection from cloudtower.models.vsphere_esxi_account_order_by_input import VsphereEsxiAccountOrderByInput @@ -1345,6 +1396,8 @@ from cloudtower.models.with_task_delete_rack_topo import WithTaskDeleteRackTopo from cloudtower.models.with_task_delete_report_template import WithTaskDeleteReportTemplate from cloudtower.models.with_task_delete_role import WithTaskDeleteRole +from cloudtower.models.with_task_delete_security_group import WithTaskDeleteSecurityGroup +from cloudtower.models.with_task_delete_security_policy import WithTaskDeleteSecurityPolicy from cloudtower.models.with_task_delete_snapshot_group import WithTaskDeleteSnapshotGroup from cloudtower.models.with_task_delete_snapshot_plan import WithTaskDeleteSnapshotPlan from cloudtower.models.with_task_delete_snmp_transport import WithTaskDeleteSnmpTransport @@ -1386,6 +1439,8 @@ from cloudtower.models.with_task_rack_topo import WithTaskRackTopo from cloudtower.models.with_task_report_task import WithTaskReportTask from cloudtower.models.with_task_report_template import WithTaskReportTemplate +from cloudtower.models.with_task_security_group import WithTaskSecurityGroup +from cloudtower.models.with_task_security_policy import WithTaskSecurityPolicy from cloudtower.models.with_task_snapshot_group import WithTaskSnapshotGroup from cloudtower.models.with_task_snapshot_plan import WithTaskSnapshotPlan from cloudtower.models.with_task_snmp_transport import WithTaskSnmpTransport @@ -1398,6 +1453,7 @@ from cloudtower.models.with_task_view import WithTaskView from cloudtower.models.with_task_vlan import WithTaskVlan from cloudtower.models.with_task_vm import WithTaskVm +from cloudtower.models.with_task_vm_export_file import WithTaskVmExportFile from cloudtower.models.with_task_vm_folder import WithTaskVmFolder from cloudtower.models.with_task_vm_placement_group import WithTaskVmPlacementGroup from cloudtower.models.with_task_vm_snapshot import WithTaskVmSnapshot diff --git a/cloudtower/api/__init__.py b/cloudtower/api/__init__.py index 690fe4ab..f4d768c3 100644 --- a/cloudtower/api/__init__.py +++ b/cloudtower/api/__init__.py @@ -55,10 +55,12 @@ from cloudtower.api.nvmf_namespace_snapshot_api import NvmfNamespaceSnapshotApi from cloudtower.api.nvmf_subsystem_api import NvmfSubsystemApi from cloudtower.api.organization_api import OrganizationApi +from cloudtower.api.ovf_api import OvfApi from cloudtower.api.pmem_dimm_api import PmemDimmApi from cloudtower.api.rack_topo_api import RackTopoApi from cloudtower.api.report_task_api import ReportTaskApi from cloudtower.api.report_template_api import ReportTemplateApi +from cloudtower.api.security_group_api import SecurityGroupApi from cloudtower.api.security_policy_api import SecurityPolicyApi from cloudtower.api.snapshot_group_api import SnapshotGroupApi from cloudtower.api.snapshot_plan_api import SnapshotPlanApi @@ -81,6 +83,7 @@ from cloudtower.api.vm_api import VmApi from cloudtower.api.vm_disk_api import VmDiskApi from cloudtower.api.vm_entity_filter_result_api import VmEntityFilterResultApi +from cloudtower.api.vm_export_file_api import VmExportFileApi from cloudtower.api.vm_folder_api import VmFolderApi from cloudtower.api.vm_nic_api import VmNicApi from cloudtower.api.vm_placement_group_api import VmPlacementGroupApi diff --git a/cloudtower/api/elf_image_api.py b/cloudtower/api/elf_image_api.py index 4a2c7680..75c8a71a 100644 --- a/cloudtower/api/elf_image_api.py +++ b/cloudtower/api/elf_image_api.py @@ -44,6 +44,8 @@ def create_elf_image(self, file, **kwargs): # noqa: E501 :type name: str :param size: :type size: str + :param size_unit: + :type size_unit: str :param description: :type description: str :param upload_task_id: @@ -85,6 +87,8 @@ def create_elf_image_with_http_info(self, file, **kwargs): # noqa: E501 :type name: str :param size: :type size: str + :param size_unit: + :type size_unit: str :param description: :type description: str :param upload_task_id: @@ -121,6 +125,7 @@ def create_elf_image_with_http_info(self, file, **kwargs): # noqa: E501 'cluster_id', 'name', 'size', + 'size_unit', 'description', 'upload_task_id' ] @@ -169,6 +174,8 @@ def create_elf_image_with_http_info(self, file, **kwargs): # noqa: E501 form_params.append(('name', local_var_params['name'])) # noqa: E501 if 'size' in local_var_params: form_params.append(('size', local_var_params['size'])) # noqa: E501 + if 'size_unit' in local_var_params: + form_params.append(('size_unit', local_var_params['size_unit'])) # noqa: E501 if 'description' in local_var_params: form_params.append(('description', local_var_params['description'])) # noqa: E501 if 'upload_task_id' in local_var_params: diff --git a/cloudtower/api/ovf_api.py b/cloudtower/api/ovf_api.py new file mode 100644 index 00000000..c17ed4a8 --- /dev/null +++ b/cloudtower/api/ovf_api.py @@ -0,0 +1,528 @@ +# coding: utf-8 +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudtower.api_client import ApiClient +from cloudtower.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class OvfApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_export_file_download_links(self, get_export_file_download_links_params, **kwargs): # noqa: E501 + """get_export_file_download_links # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_export_file_download_links(get_export_file_download_links_params, async_req=True) + >>> result = thread.get() + + :param get_export_file_download_links_params: (required) + :type get_export_file_download_links_params: GetExportFileDownloadLinksParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: list[ExportFileDownloadLinks] + """ + kwargs['_return_http_data_only'] = True + return self.get_export_file_download_links_with_http_info(get_export_file_download_links_params, **kwargs) # noqa: E501 + + def get_export_file_download_links_with_http_info(self, get_export_file_download_links_params, **kwargs): # noqa: E501 + """get_export_file_download_links # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_export_file_download_links_with_http_info(get_export_file_download_links_params, async_req=True) + >>> result = thread.get() + + :param get_export_file_download_links_params: (required) + :type get_export_file_download_links_params: GetExportFileDownloadLinksParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(list[ExportFileDownloadLinks], status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'get_export_file_download_links_params', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_export_file_download_links" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'get_export_file_download_links_params' is set + if self.api_client.client_side_validation and ('get_export_file_download_links_params' not in local_var_params or # noqa: E501 + local_var_params['get_export_file_download_links_params'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `get_export_file_download_links_params` when calling `get_export_file_download_links`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'get_export_file_download_links_params' in local_var_params: + body_params = local_var_params['get_export_file_download_links_params'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "list[ExportFileDownloadLinks]", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/get-export-file-download-links', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def parse_ovf(self, file, cluster_id, **kwargs): # noqa: E501 + """parse_ovf # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.parse_ovf(file, cluster_id, async_req=True) + >>> result = thread.get() + + :param file: (required) + :type file: file + :param cluster_id: (required) + :type cluster_id: str + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ParsedOVF + """ + kwargs['_return_http_data_only'] = True + return self.parse_ovf_with_http_info(file, cluster_id, **kwargs) # noqa: E501 + + def parse_ovf_with_http_info(self, file, cluster_id, **kwargs): # noqa: E501 + """parse_ovf # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.parse_ovf_with_http_info(file, cluster_id, async_req=True) + >>> result = thread.get() + + :param file: (required) + :type file: file + :param cluster_id: (required) + :type cluster_id: str + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ParsedOVF, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'file', + 'cluster_id', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method parse_ovf" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'file' is set + if self.api_client.client_side_validation and ('file' not in local_var_params or # noqa: E501 + local_var_params['file'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `file` when calling `parse_ovf`") # noqa: E501 + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `parse_ovf`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + if 'file' in local_var_params: + local_var_files['file'] = local_var_params['file'] # noqa: E501 + if 'cluster_id' in local_var_params: + form_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501 + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['multipart/form-data'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "ParsedOVF", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/parse-ovf', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def upload_elf_file(self, file, **kwargs): # noqa: E501 + """upload_elf_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.upload_elf_file(file, async_req=True) + >>> result = thread.get() + + :param file: (required) + :type file: file + :param content_language: + :type content_language: str + :param cluster_id: + :type cluster_id: str + :param name: + :type name: str + :param size: + :type size: str + :param size_unit: + :type size_unit: str + :param upload_task_id: + :type upload_task_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UploadTask + """ + kwargs['_return_http_data_only'] = True + return self.upload_elf_file_with_http_info(file, **kwargs) # noqa: E501 + + def upload_elf_file_with_http_info(self, file, **kwargs): # noqa: E501 + """upload_elf_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.upload_elf_file_with_http_info(file, async_req=True) + >>> result = thread.get() + + :param file: (required) + :type file: file + :param content_language: + :type content_language: str + :param cluster_id: + :type cluster_id: str + :param name: + :type name: str + :param size: + :type size: str + :param size_unit: + :type size_unit: str + :param upload_task_id: + :type upload_task_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UploadTask, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'file', + 'content_language', + 'cluster_id', + 'name', + 'size', + 'size_unit', + 'upload_task_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method upload_elf_file" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'file' is set + if self.api_client.client_side_validation and ('file' not in local_var_params or # noqa: E501 + local_var_params['file'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `file` when calling `upload_elf_file`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + if 'file' in local_var_params: + local_var_files['file'] = local_var_params['file'] # noqa: E501 + if 'cluster_id' in local_var_params: + form_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501 + if 'name' in local_var_params: + form_params.append(('name', local_var_params['name'])) # noqa: E501 + if 'size' in local_var_params: + form_params.append(('size', local_var_params['size'])) # noqa: E501 + if 'size_unit' in local_var_params: + form_params.append(('size_unit', local_var_params['size_unit'])) # noqa: E501 + if 'upload_task_id' in local_var_params: + form_params.append(('upload_task_id', local_var_params['upload_task_id'])) # noqa: E501 + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['multipart/form-data'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "UploadTask", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/upload-elf-file', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/cloudtower/api/security_group_api.py b/cloudtower/api/security_group_api.py new file mode 100644 index 00000000..6398fe7f --- /dev/null +++ b/cloudtower/api/security_group_api.py @@ -0,0 +1,786 @@ +# coding: utf-8 +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudtower.api_client import ApiClient +from cloudtower.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SecurityGroupApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_security_group(self, security_group_create_params, **kwargs): # noqa: E501 + """create_security_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_security_group(security_group_create_params, async_req=True) + >>> result = thread.get() + + :param security_group_create_params: (required) + :type security_group_create_params: SecurityGroupCreateParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: WithTaskSecurityGroup + """ + kwargs['_return_http_data_only'] = True + return self.create_security_group_with_http_info(security_group_create_params, **kwargs) # noqa: E501 + + def create_security_group_with_http_info(self, security_group_create_params, **kwargs): # noqa: E501 + """create_security_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_security_group_with_http_info(security_group_create_params, async_req=True) + >>> result = thread.get() + + :param security_group_create_params: (required) + :type security_group_create_params: SecurityGroupCreateParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(WithTaskSecurityGroup, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'security_group_create_params', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_security_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'security_group_create_params' is set + if self.api_client.client_side_validation and ('security_group_create_params' not in local_var_params or # noqa: E501 + local_var_params['security_group_create_params'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `security_group_create_params` when calling `create_security_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'security_group_create_params' in local_var_params: + body_params = local_var_params['security_group_create_params'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "WithTaskSecurityGroup", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/create-security-group', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def delete_security_group(self, security_group_delete_params, **kwargs): # noqa: E501 + """delete_security_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_security_group(security_group_delete_params, async_req=True) + >>> result = thread.get() + + :param security_group_delete_params: (required) + :type security_group_delete_params: SecurityGroupDeleteParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: list[WithTaskDeleteSecurityGroup] + """ + kwargs['_return_http_data_only'] = True + return self.delete_security_group_with_http_info(security_group_delete_params, **kwargs) # noqa: E501 + + def delete_security_group_with_http_info(self, security_group_delete_params, **kwargs): # noqa: E501 + """delete_security_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_security_group_with_http_info(security_group_delete_params, async_req=True) + >>> result = thread.get() + + :param security_group_delete_params: (required) + :type security_group_delete_params: SecurityGroupDeleteParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(list[WithTaskDeleteSecurityGroup], status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'security_group_delete_params', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_security_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'security_group_delete_params' is set + if self.api_client.client_side_validation and ('security_group_delete_params' not in local_var_params or # noqa: E501 + local_var_params['security_group_delete_params'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `security_group_delete_params` when calling `delete_security_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'security_group_delete_params' in local_var_params: + body_params = local_var_params['security_group_delete_params'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "list[WithTaskDeleteSecurityGroup]", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/delete-security-group', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def get_security_groups(self, get_security_groups_request_body, **kwargs): # noqa: E501 + """get_security_groups # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_security_groups(get_security_groups_request_body, async_req=True) + >>> result = thread.get() + + :param get_security_groups_request_body: (required) + :type get_security_groups_request_body: GetSecurityGroupsRequestBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: list[SecurityGroup] + """ + kwargs['_return_http_data_only'] = True + return self.get_security_groups_with_http_info(get_security_groups_request_body, **kwargs) # noqa: E501 + + def get_security_groups_with_http_info(self, get_security_groups_request_body, **kwargs): # noqa: E501 + """get_security_groups # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_security_groups_with_http_info(get_security_groups_request_body, async_req=True) + >>> result = thread.get() + + :param get_security_groups_request_body: (required) + :type get_security_groups_request_body: GetSecurityGroupsRequestBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(list[SecurityGroup], status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'get_security_groups_request_body', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_security_groups" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'get_security_groups_request_body' is set + if self.api_client.client_side_validation and ('get_security_groups_request_body' not in local_var_params or # noqa: E501 + local_var_params['get_security_groups_request_body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `get_security_groups_request_body` when calling `get_security_groups`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'get_security_groups_request_body' in local_var_params: + body_params = local_var_params['get_security_groups_request_body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "list[SecurityGroup]", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/get-security-groups', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def get_security_groups_connection(self, get_security_groups_connection_request_body, **kwargs): # noqa: E501 + """get_security_groups_connection # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_security_groups_connection(get_security_groups_connection_request_body, async_req=True) + >>> result = thread.get() + + :param get_security_groups_connection_request_body: (required) + :type get_security_groups_connection_request_body: GetSecurityGroupsConnectionRequestBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SecurityGroupConnection + """ + kwargs['_return_http_data_only'] = True + return self.get_security_groups_connection_with_http_info(get_security_groups_connection_request_body, **kwargs) # noqa: E501 + + def get_security_groups_connection_with_http_info(self, get_security_groups_connection_request_body, **kwargs): # noqa: E501 + """get_security_groups_connection # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_security_groups_connection_with_http_info(get_security_groups_connection_request_body, async_req=True) + >>> result = thread.get() + + :param get_security_groups_connection_request_body: (required) + :type get_security_groups_connection_request_body: GetSecurityGroupsConnectionRequestBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SecurityGroupConnection, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'get_security_groups_connection_request_body', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_security_groups_connection" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'get_security_groups_connection_request_body' is set + if self.api_client.client_side_validation and ('get_security_groups_connection_request_body' not in local_var_params or # noqa: E501 + local_var_params['get_security_groups_connection_request_body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `get_security_groups_connection_request_body` when calling `get_security_groups_connection`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'get_security_groups_connection_request_body' in local_var_params: + body_params = local_var_params['get_security_groups_connection_request_body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "SecurityGroupConnection", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/get-security-groups-connection', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def update_security_group(self, security_group_update_body, **kwargs): # noqa: E501 + """update_security_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_security_group(security_group_update_body, async_req=True) + >>> result = thread.get() + + :param security_group_update_body: (required) + :type security_group_update_body: SecurityGroupUpdateBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: list[WithTaskSecurityGroup] + """ + kwargs['_return_http_data_only'] = True + return self.update_security_group_with_http_info(security_group_update_body, **kwargs) # noqa: E501 + + def update_security_group_with_http_info(self, security_group_update_body, **kwargs): # noqa: E501 + """update_security_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_security_group_with_http_info(security_group_update_body, async_req=True) + >>> result = thread.get() + + :param security_group_update_body: (required) + :type security_group_update_body: SecurityGroupUpdateBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(list[WithTaskSecurityGroup], status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'security_group_update_body', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method update_security_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'security_group_update_body' is set + if self.api_client.client_side_validation and ('security_group_update_body' not in local_var_params or # noqa: E501 + local_var_params['security_group_update_body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `security_group_update_body` when calling `update_security_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'security_group_update_body' in local_var_params: + body_params = local_var_params['security_group_update_body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "list[WithTaskSecurityGroup]", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/update-security-group', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/cloudtower/api/security_policy_api.py b/cloudtower/api/security_policy_api.py index 3a62630c..75ce0396 100644 --- a/cloudtower/api/security_policy_api.py +++ b/cloudtower/api/security_policy_api.py @@ -25,6 +25,310 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client + def create_security_policy(self, security_policy_create_params, **kwargs): # noqa: E501 + """create_security_policy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_security_policy(security_policy_create_params, async_req=True) + >>> result = thread.get() + + :param security_policy_create_params: (required) + :type security_policy_create_params: SecurityPolicyCreateParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: WithTaskSecurityPolicy + """ + kwargs['_return_http_data_only'] = True + return self.create_security_policy_with_http_info(security_policy_create_params, **kwargs) # noqa: E501 + + def create_security_policy_with_http_info(self, security_policy_create_params, **kwargs): # noqa: E501 + """create_security_policy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_security_policy_with_http_info(security_policy_create_params, async_req=True) + >>> result = thread.get() + + :param security_policy_create_params: (required) + :type security_policy_create_params: SecurityPolicyCreateParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(WithTaskSecurityPolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'security_policy_create_params', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_security_policy" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'security_policy_create_params' is set + if self.api_client.client_side_validation and ('security_policy_create_params' not in local_var_params or # noqa: E501 + local_var_params['security_policy_create_params'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `security_policy_create_params` when calling `create_security_policy`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'security_policy_create_params' in local_var_params: + body_params = local_var_params['security_policy_create_params'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "WithTaskSecurityPolicy", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/create-security-policy', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def delete_security_policy(self, security_policy_delete_params, **kwargs): # noqa: E501 + """delete_security_policy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_security_policy(security_policy_delete_params, async_req=True) + >>> result = thread.get() + + :param security_policy_delete_params: (required) + :type security_policy_delete_params: SecurityPolicyDeleteParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: list[WithTaskDeleteSecurityPolicy] + """ + kwargs['_return_http_data_only'] = True + return self.delete_security_policy_with_http_info(security_policy_delete_params, **kwargs) # noqa: E501 + + def delete_security_policy_with_http_info(self, security_policy_delete_params, **kwargs): # noqa: E501 + """delete_security_policy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_security_policy_with_http_info(security_policy_delete_params, async_req=True) + >>> result = thread.get() + + :param security_policy_delete_params: (required) + :type security_policy_delete_params: SecurityPolicyDeleteParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(list[WithTaskDeleteSecurityPolicy], status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'security_policy_delete_params', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_security_policy" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'security_policy_delete_params' is set + if self.api_client.client_side_validation and ('security_policy_delete_params' not in local_var_params or # noqa: E501 + local_var_params['security_policy_delete_params'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `security_policy_delete_params` when calling `delete_security_policy`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'security_policy_delete_params' in local_var_params: + body_params = local_var_params['security_policy_delete_params'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "list[WithTaskDeleteSecurityPolicy]", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/delete-security-policy', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + def get_security_policies(self, get_security_policies_request_body, **kwargs): # noqa: E501 """get_security_policies # noqa: E501 @@ -328,3 +632,155 @@ def get_security_policies_connection_with_http_info(self, get_security_policies_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) + + def update_security_policy(self, security_policy_update_body, **kwargs): # noqa: E501 + """update_security_policy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_security_policy(security_policy_update_body, async_req=True) + >>> result = thread.get() + + :param security_policy_update_body: (required) + :type security_policy_update_body: SecurityPolicyUpdateBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: list[WithTaskSecurityPolicy] + """ + kwargs['_return_http_data_only'] = True + return self.update_security_policy_with_http_info(security_policy_update_body, **kwargs) # noqa: E501 + + def update_security_policy_with_http_info(self, security_policy_update_body, **kwargs): # noqa: E501 + """update_security_policy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_security_policy_with_http_info(security_policy_update_body, async_req=True) + >>> result = thread.get() + + :param security_policy_update_body: (required) + :type security_policy_update_body: SecurityPolicyUpdateBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(list[WithTaskSecurityPolicy], status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'security_policy_update_body', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method update_security_policy" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'security_policy_update_body' is set + if self.api_client.client_side_validation and ('security_policy_update_body' not in local_var_params or # noqa: E501 + local_var_params['security_policy_update_body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `security_policy_update_body` when calling `update_security_policy`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'security_policy_update_body' in local_var_params: + body_params = local_var_params['security_policy_update_body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "list[WithTaskSecurityPolicy]", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/update-security-policy', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/cloudtower/api/vm_api.py b/cloudtower/api/vm_api.py index 9ec2bb57..337dea12 100644 --- a/cloudtower/api/vm_api.py +++ b/cloudtower/api/vm_api.py @@ -2002,6 +2002,159 @@ def expand_vm_disk_with_http_info(self, vm_expand_vm_disk_params, **kwargs): # collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) + def export_vm(self, vm_export_params, **kwargs): # noqa: E501 + """export_vm # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.export_vm(vm_export_params, async_req=True) + >>> result = thread.get() + + :param vm_export_params: (required) + :type vm_export_params: VmExportParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: list[WithTaskVmExportFile] + """ + kwargs['_return_http_data_only'] = True + return self.export_vm_with_http_info(vm_export_params, **kwargs) # noqa: E501 + + def export_vm_with_http_info(self, vm_export_params, **kwargs): # noqa: E501 + """export_vm # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.export_vm_with_http_info(vm_export_params, async_req=True) + >>> result = thread.get() + + :param vm_export_params: (required) + :type vm_export_params: VmExportParams + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(list[WithTaskVmExportFile], status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'vm_export_params', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method export_vm" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'vm_export_params' is set + if self.api_client.client_side_validation and ('vm_export_params' not in local_var_params or # noqa: E501 + local_var_params['vm_export_params'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `vm_export_params` when calling `export_vm`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'vm_export_params' in local_var_params: + body_params = local_var_params['vm_export_params'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "list[WithTaskVmExportFile]", + 304: None, + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/export-vm', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + def force_restart_vm(self, vm_operate_params, **kwargs): # noqa: E501 """force_restart_vm # noqa: E501 @@ -2458,6 +2611,158 @@ def get_vms_connection_with_http_info(self, get_vms_connection_request_body, **k collection_formats=collection_formats, _request_auth=local_var_params.get('_request_auth')) + def import_vm(self, vm_import_params, **kwargs): # noqa: E501 + """import_vm # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.import_vm(vm_import_params, async_req=True) + >>> result = thread.get() + + :param vm_import_params: (required) + :type vm_import_params: list[VmImportParams] + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: list[WithTaskVm] + """ + kwargs['_return_http_data_only'] = True + return self.import_vm_with_http_info(vm_import_params, **kwargs) # noqa: E501 + + def import_vm_with_http_info(self, vm_import_params, **kwargs): # noqa: E501 + """import_vm # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.import_vm_with_http_info(vm_import_params, async_req=True) + >>> result = thread.get() + + :param vm_import_params: (required) + :type vm_import_params: list[VmImportParams] + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(list[WithTaskVm], status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'vm_import_params', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method import_vm" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'vm_import_params' is set + if self.api_client.client_side_validation and ('vm_import_params' not in local_var_params or # noqa: E501 + local_var_params['vm_import_params'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `vm_import_params` when calling `import_vm`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'vm_import_params' in local_var_params: + body_params = local_var_params['vm_import_params'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "list[WithTaskVm]", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/import-vm', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + def install_vmtools(self, install_vmtools_params, **kwargs): # noqa: E501 """install_vmtools # noqa: E501 diff --git a/cloudtower/api/vm_export_file_api.py b/cloudtower/api/vm_export_file_api.py new file mode 100644 index 00000000..94e9f0cb --- /dev/null +++ b/cloudtower/api/vm_export_file_api.py @@ -0,0 +1,330 @@ +# coding: utf-8 +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudtower.api_client import ApiClient +from cloudtower.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class VmExportFileApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_vm_export_files(self, get_vm_export_files_request_body, **kwargs): # noqa: E501 + """get_vm_export_files # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_vm_export_files(get_vm_export_files_request_body, async_req=True) + >>> result = thread.get() + + :param get_vm_export_files_request_body: (required) + :type get_vm_export_files_request_body: GetVmExportFilesRequestBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: list[VmExportFile] + """ + kwargs['_return_http_data_only'] = True + return self.get_vm_export_files_with_http_info(get_vm_export_files_request_body, **kwargs) # noqa: E501 + + def get_vm_export_files_with_http_info(self, get_vm_export_files_request_body, **kwargs): # noqa: E501 + """get_vm_export_files # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_vm_export_files_with_http_info(get_vm_export_files_request_body, async_req=True) + >>> result = thread.get() + + :param get_vm_export_files_request_body: (required) + :type get_vm_export_files_request_body: GetVmExportFilesRequestBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(list[VmExportFile], status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'get_vm_export_files_request_body', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_vm_export_files" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'get_vm_export_files_request_body' is set + if self.api_client.client_side_validation and ('get_vm_export_files_request_body' not in local_var_params or # noqa: E501 + local_var_params['get_vm_export_files_request_body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `get_vm_export_files_request_body` when calling `get_vm_export_files`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'get_vm_export_files_request_body' in local_var_params: + body_params = local_var_params['get_vm_export_files_request_body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "list[VmExportFile]", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/get-vm-export-files', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def get_vm_export_files_connection(self, get_vm_export_files_connection_request_body, **kwargs): # noqa: E501 + """get_vm_export_files_connection # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_vm_export_files_connection(get_vm_export_files_connection_request_body, async_req=True) + >>> result = thread.get() + + :param get_vm_export_files_connection_request_body: (required) + :type get_vm_export_files_connection_request_body: GetVmExportFilesConnectionRequestBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: VmExportFileConnection + """ + kwargs['_return_http_data_only'] = True + return self.get_vm_export_files_connection_with_http_info(get_vm_export_files_connection_request_body, **kwargs) # noqa: E501 + + def get_vm_export_files_connection_with_http_info(self, get_vm_export_files_connection_request_body, **kwargs): # noqa: E501 + """get_vm_export_files_connection # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_vm_export_files_connection_with_http_info(get_vm_export_files_connection_request_body, async_req=True) + >>> result = thread.get() + + :param get_vm_export_files_connection_request_body: (required) + :type get_vm_export_files_connection_request_body: GetVmExportFilesConnectionRequestBody + :param content_language: + :type content_language: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(VmExportFileConnection, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'get_vm_export_files_connection_request_body', + 'content_language' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_vm_export_files_connection" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'get_vm_export_files_connection_request_body' is set + if self.api_client.client_side_validation and ('get_vm_export_files_connection_request_body' not in local_var_params or # noqa: E501 + local_var_params['get_vm_export_files_connection_request_body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `get_vm_export_files_connection_request_body` when calling `get_vm_export_files_connection`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'content_language' in local_var_params: + header_params['content-language'] = local_var_params['content_language'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'get_vm_export_files_connection_request_body' in local_var_params: + body_params = local_var_params['get_vm_export_files_connection_request_body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['Authorization'] # noqa: E501 + + response_types_map = { + 200: "VmExportFileConnection", + 400: "ErrorBody", + 404: "ErrorBody", + 500: "ErrorBody", + } + + return self.api_client.call_api( + '/get-vm-export-files-connection', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/cloudtower/api_client.py b/cloudtower/api_client.py index 0d49fb57..5df97dc2 100644 --- a/cloudtower/api_client.py +++ b/cloudtower/api_client.py @@ -4,7 +4,7 @@ cloudtower operation API and SDK # noqa: E501 - The version of the OpenAPI document: 2.8.0 + The version of the OpenAPI document: 2.9.0 Contact: info@smartx.com Generated by: https://openapi-generator.tech """ @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2.8.0/python' + self.user_agent = 'OpenAPI-Generator/2.9.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudtower/configuration.py b/cloudtower/configuration.py index 98add774..d96c6a34 100644 --- a/cloudtower/configuration.py +++ b/cloudtower/configuration.py @@ -398,8 +398,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 2.8.0\n"\ - "SDK Package Version: 2.8.0".\ + "Version of the API: 2.9.0\n"\ + "SDK Package Version: 2.9.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/cloudtower/models/__init__.py b/cloudtower/models/__init__.py index aaa4dc3e..ae4ded11 100644 --- a/cloudtower/models/__init__.py +++ b/cloudtower/models/__init__.py @@ -196,6 +196,8 @@ from cloudtower.models.delete_rack_topo import DeleteRackTopo from cloudtower.models.delete_report_template import DeleteReportTemplate from cloudtower.models.delete_role import DeleteRole +from cloudtower.models.delete_security_group import DeleteSecurityGroup +from cloudtower.models.delete_security_policy import DeleteSecurityPolicy from cloudtower.models.delete_snapshot_group import DeleteSnapshotGroup from cloudtower.models.delete_snapshot_plan import DeleteSnapshotPlan from cloudtower.models.delete_snmp_transport import DeleteSnmpTransport @@ -272,6 +274,7 @@ from cloudtower.models.everoute_package_order_by_input import EveroutePackageOrderByInput from cloudtower.models.everoute_package_where_input import EveroutePackageWhereInput from cloudtower.models.execute_plan import ExecutePlan +from cloudtower.models.export_file_download_links import ExportFileDownloadLinks from cloudtower.models.extra_ip import ExtraIp from cloudtower.models.filter_rule_aggregation_enum import FilterRuleAggregationEnum from cloudtower.models.filter_rule_input import FilterRuleInput @@ -334,6 +337,7 @@ from cloudtower.models.get_everoute_licenses_request_body import GetEverouteLicensesRequestBody from cloudtower.models.get_everoute_packages_connection_request_body import GetEveroutePackagesConnectionRequestBody from cloudtower.models.get_everoute_packages_request_body import GetEveroutePackagesRequestBody +from cloudtower.models.get_export_file_download_links_params import GetExportFileDownloadLinksParams from cloudtower.models.get_global_alert_rules_connection_request_body import GetGlobalAlertRulesConnectionRequestBody from cloudtower.models.get_global_alert_rules_request_body import GetGlobalAlertRulesRequestBody from cloudtower.models.get_global_settingses_connection_request_body import GetGlobalSettingsesConnectionRequestBody @@ -396,6 +400,8 @@ from cloudtower.models.get_scvm_metric_input import GetScvmMetricInput from cloudtower.models.get_scvm_network_input import GetScvmNetworkInput from cloudtower.models.get_scvm_service_metric_input import GetScvmServiceMetricInput +from cloudtower.models.get_security_groups_connection_request_body import GetSecurityGroupsConnectionRequestBody +from cloudtower.models.get_security_groups_request_body import GetSecurityGroupsRequestBody from cloudtower.models.get_security_policies_connection_request_body import GetSecurityPoliciesConnectionRequestBody from cloudtower.models.get_security_policies_request_body import GetSecurityPoliciesRequestBody from cloudtower.models.get_snapshot_groups_connection_request_body import GetSnapshotGroupsConnectionRequestBody @@ -437,6 +443,8 @@ from cloudtower.models.get_vm_disks_request_body import GetVmDisksRequestBody from cloudtower.models.get_vm_entity_filter_results_connection_request_body import GetVmEntityFilterResultsConnectionRequestBody from cloudtower.models.get_vm_entity_filter_results_request_body import GetVmEntityFilterResultsRequestBody +from cloudtower.models.get_vm_export_files_connection_request_body import GetVmExportFilesConnectionRequestBody +from cloudtower.models.get_vm_export_files_request_body import GetVmExportFilesRequestBody from cloudtower.models.get_vm_folders_connection_request_body import GetVmFoldersConnectionRequestBody from cloudtower.models.get_vm_folders_request_body import GetVmFoldersRequestBody from cloudtower.models.get_vm_metric_input import GetVmMetricInput @@ -503,6 +511,7 @@ from cloudtower.models.host_updation_params_data import HostUpdationParamsData from cloudtower.models.host_where_input import HostWhereInput from cloudtower.models.hypervisor import Hypervisor +from cloudtower.models.ip_security_policy import IPSecurityPolicy from cloudtower.models.install_vmtools_params import InstallVmtoolsParams from cloudtower.models.install_vmtools_params_data import InstallVmtoolsParamsData from cloudtower.models.ipmi import Ipmi @@ -584,6 +593,7 @@ from cloudtower.models.metric_type import MetricType from cloudtower.models.metric_unit import MetricUnit from cloudtower.models.metro_check_status_enum import MetroCheckStatusEnum +from cloudtower.models.mfa_type import MfaType from cloudtower.models.mgt_ip_mapper import MgtIpMapper from cloudtower.models.migrate_type import MigrateType from cloudtower.models.migrate_vm_config import MigrateVmConfig @@ -650,6 +660,7 @@ from cloudtower.models.nested_aggregate_rack_topo import NestedAggregateRackTopo from cloudtower.models.nested_aggregate_report_task import NestedAggregateReportTask from cloudtower.models.nested_aggregate_report_template import NestedAggregateReportTemplate +from cloudtower.models.nested_aggregate_security_group import NestedAggregateSecurityGroup from cloudtower.models.nested_aggregate_security_policy import NestedAggregateSecurityPolicy from cloudtower.models.nested_aggregate_snapshot_group import NestedAggregateSnapshotGroup from cloudtower.models.nested_aggregate_snapshot_plan import NestedAggregateSnapshotPlan @@ -671,6 +682,7 @@ from cloudtower.models.nested_aggregate_vm import NestedAggregateVm from cloudtower.models.nested_aggregate_vm_disk import NestedAggregateVmDisk from cloudtower.models.nested_aggregate_vm_entity_filter_result import NestedAggregateVmEntityFilterResult +from cloudtower.models.nested_aggregate_vm_export_file import NestedAggregateVmExportFile from cloudtower.models.nested_aggregate_vm_folder import NestedAggregateVmFolder from cloudtower.models.nested_aggregate_vm_nic import NestedAggregateVmNic from cloudtower.models.nested_aggregate_vm_placement_group import NestedAggregateVmPlacementGroup @@ -734,6 +746,7 @@ from cloudtower.models.nested_iscsi_target import NestedIscsiTarget from cloudtower.models.nested_isolation_policy import NestedIsolationPolicy from cloudtower.models.nested_label import NestedLabel +from cloudtower.models.nested_label_group import NestedLabelGroup from cloudtower.models.nested_license import NestedLicense from cloudtower.models.nested_metro_availability_checklist import NestedMetroAvailabilityChecklist from cloudtower.models.nested_metro_check_item import NestedMetroCheckItem @@ -792,6 +805,7 @@ from cloudtower.models.nested_witness import NestedWitness from cloudtower.models.nested_zone import NestedZone from cloudtower.models.nested_zone_topo import NestedZoneTopo +from cloudtower.models.network_policy_rule_port_input import NetworkPolicyRulePortInput from cloudtower.models.network_policy_rule_port_protocol import NetworkPolicyRulePortProtocol from cloudtower.models.network_policy_rule_type import NetworkPolicyRuleType from cloudtower.models.network_type import NetworkType @@ -859,6 +873,11 @@ from cloudtower.models.organization_order_by_input import OrganizationOrderByInput from cloudtower.models.organization_updation_params import OrganizationUpdationParams from cloudtower.models.organization_where_input import OrganizationWhereInput +from cloudtower.models.ovf_cpu import OvfCpu +from cloudtower.models.ovf_disk import OvfDisk +from cloudtower.models.ovf_disk_operate import OvfDiskOperate +from cloudtower.models.ovf_nic import OvfNic +from cloudtower.models.parsed_ovf import ParsedOVF from cloudtower.models.partition_usage import PartitionUsage from cloudtower.models.password_complexity import PasswordComplexity from cloudtower.models.pmem_dimm import PmemDimm @@ -900,9 +919,25 @@ from cloudtower.models.role_updation_params import RoleUpdationParams from cloudtower.models.role_updation_params_data import RoleUpdationParamsData from cloudtower.models.root_user_creation_params import RootUserCreationParams +from cloudtower.models.security_group import SecurityGroup +from cloudtower.models.security_group_connection import SecurityGroupConnection +from cloudtower.models.security_group_create_params import SecurityGroupCreateParams +from cloudtower.models.security_group_delete_params import SecurityGroupDeleteParams +from cloudtower.models.security_group_order_by_input import SecurityGroupOrderByInput +from cloudtower.models.security_group_update_body import SecurityGroupUpdateBody +from cloudtower.models.security_group_update_params import SecurityGroupUpdateParams +from cloudtower.models.security_group_where_input import SecurityGroupWhereInput from cloudtower.models.security_policy import SecurityPolicy +from cloudtower.models.security_policy_apply_to_input import SecurityPolicyApplyToInput +from cloudtower.models.security_policy_apply_to_input_target import SecurityPolicyApplyToInputTarget from cloudtower.models.security_policy_connection import SecurityPolicyConnection +from cloudtower.models.security_policy_create_params import SecurityPolicyCreateParams +from cloudtower.models.security_policy_delete_params import SecurityPolicyDeleteParams +from cloudtower.models.security_policy_ingress_egress_input import SecurityPolicyIngressEgressInput +from cloudtower.models.security_policy_ingress_egress_input_target import SecurityPolicyIngressEgressInputTarget from cloudtower.models.security_policy_order_by_input import SecurityPolicyOrderByInput +from cloudtower.models.security_policy_update_body import SecurityPolicyUpdateBody +from cloudtower.models.security_policy_update_params import SecurityPolicyUpdateParams from cloudtower.models.security_policy_where_input import SecurityPolicyWhereInput from cloudtower.models.severity_enum import SeverityEnum from cloudtower.models.snapshot_group import SnapshotGroup @@ -1059,6 +1094,7 @@ from cloudtower.models.vlan_connection import VlanConnection from cloudtower.models.vlan_deletion_params import VlanDeletionParams from cloudtower.models.vlan_mapping import VlanMapping +from cloudtower.models.vlan_mode_type import VlanModeType from cloudtower.models.vlan_order_by_input import VlanOrderByInput from cloudtower.models.vlan_where_input import VlanWhereInput from cloudtower.models.vm import Vm @@ -1096,6 +1132,15 @@ from cloudtower.models.vm_entity_filter_result_order_by_input import VmEntityFilterResultOrderByInput from cloudtower.models.vm_entity_filter_result_where_input import VmEntityFilterResultWhereInput from cloudtower.models.vm_expand_vm_disk_params import VmExpandVmDiskParams +from cloudtower.models.vm_export_file import VmExportFile +from cloudtower.models.vm_export_file_connection import VmExportFileConnection +from cloudtower.models.vm_export_file_file import VmExportFileFile +from cloudtower.models.vm_export_file_order_by_input import VmExportFileOrderByInput +from cloudtower.models.vm_export_file_type import VmExportFileType +from cloudtower.models.vm_export_file_where_input import VmExportFileWhereInput +from cloudtower.models.vm_export_file_where_unique_input import VmExportFileWhereUniqueInput +from cloudtower.models.vm_export_params import VmExportParams +from cloudtower.models.vm_export_params_data import VmExportParamsData from cloudtower.models.vm_firmware import VmFirmware from cloudtower.models.vm_folder import VmFolder from cloudtower.models.vm_folder_connection import VmFolderConnection @@ -1106,6 +1151,7 @@ from cloudtower.models.vm_folder_updation_params_data import VmFolderUpdationParamsData from cloudtower.models.vm_folder_where_input import VmFolderWhereInput from cloudtower.models.vm_guests_operation_system import VmGuestsOperationSystem +from cloudtower.models.vm_import_params import VmImportParams from cloudtower.models.vm_migrate_across_cluster_params import VmMigrateAcrossClusterParams from cloudtower.models.vm_migrate_across_cluster_params_data import VmMigrateAcrossClusterParamsData from cloudtower.models.vm_migrate_params import VmMigrateParams @@ -1202,6 +1248,8 @@ from cloudtower.models.vm_volume_where_unique_input import VmVolumeWhereUniqueInput from cloudtower.models.vm_where_input import VmWhereInput from cloudtower.models.vm_where_unique_input import VmWhereUniqueInput +from cloudtower.models.vmdk_cdrom_modify import VmdkCdromModify +from cloudtower.models.vmdk_disk_modify import VmdkDiskModify from cloudtower.models.vsphere_esxi_account import VsphereEsxiAccount from cloudtower.models.vsphere_esxi_account_connection import VsphereEsxiAccountConnection from cloudtower.models.vsphere_esxi_account_order_by_input import VsphereEsxiAccountOrderByInput @@ -1242,6 +1290,8 @@ from cloudtower.models.with_task_delete_rack_topo import WithTaskDeleteRackTopo from cloudtower.models.with_task_delete_report_template import WithTaskDeleteReportTemplate from cloudtower.models.with_task_delete_role import WithTaskDeleteRole +from cloudtower.models.with_task_delete_security_group import WithTaskDeleteSecurityGroup +from cloudtower.models.with_task_delete_security_policy import WithTaskDeleteSecurityPolicy from cloudtower.models.with_task_delete_snapshot_group import WithTaskDeleteSnapshotGroup from cloudtower.models.with_task_delete_snapshot_plan import WithTaskDeleteSnapshotPlan from cloudtower.models.with_task_delete_snmp_transport import WithTaskDeleteSnmpTransport @@ -1283,6 +1333,8 @@ from cloudtower.models.with_task_rack_topo import WithTaskRackTopo from cloudtower.models.with_task_report_task import WithTaskReportTask from cloudtower.models.with_task_report_template import WithTaskReportTemplate +from cloudtower.models.with_task_security_group import WithTaskSecurityGroup +from cloudtower.models.with_task_security_policy import WithTaskSecurityPolicy from cloudtower.models.with_task_snapshot_group import WithTaskSnapshotGroup from cloudtower.models.with_task_snapshot_plan import WithTaskSnapshotPlan from cloudtower.models.with_task_snmp_transport import WithTaskSnmpTransport @@ -1295,6 +1347,7 @@ from cloudtower.models.with_task_view import WithTaskView from cloudtower.models.with_task_vlan import WithTaskVlan from cloudtower.models.with_task_vm import WithTaskVm +from cloudtower.models.with_task_vm_export_file import WithTaskVmExportFile from cloudtower.models.with_task_vm_folder import WithTaskVmFolder from cloudtower.models.with_task_vm_placement_group import WithTaskVmPlacementGroup from cloudtower.models.with_task_vm_snapshot import WithTaskVmSnapshot diff --git a/cloudtower/models/alert.py b/cloudtower/models/alert.py index 80d723bd..495fa33c 100644 --- a/cloudtower/models/alert.py +++ b/cloudtower/models/alert.py @@ -102,8 +102,7 @@ def __init__(self, **kwargs): # noqa: E501 self.alert_rule = kwargs.get("alert_rule", None) if "cause" in kwargs: self.cause = kwargs["cause"] - if "cluster" in kwargs: - self.cluster = kwargs["cluster"] + self.cluster = kwargs.get("cluster", None) self.create_time = kwargs.get("create_time", None) self.disk = kwargs.get("disk", None) if "ended" in kwargs: @@ -199,8 +198,6 @@ def cluster(self, cluster): :param cluster: The cluster of this Alert. # noqa: E501 :type cluster: NestedCluster """ - if self.local_vars_configuration.client_side_validation and cluster is None: # noqa: E501 - raise ValueError("Invalid value for `cluster`, must not be `None`") # noqa: E501 self._cluster = cluster diff --git a/cloudtower/models/alert_notifier.py b/cloudtower/models/alert_notifier.py index 44b33c4b..f16eb7a7 100644 --- a/cloudtower/models/alert_notifier.py +++ b/cloudtower/models/alert_notifier.py @@ -25,11 +25,14 @@ class AlertNotifier(object): and the value is json key in definition. """ openapi_types = { + 'clusters': 'list[NestedCluster]', 'disabled': 'bool', 'email_from': 'str', 'email_tos': 'list[str]', + 'entity_async_status': 'EntityAsyncStatus', 'id': 'str', 'language_code': 'NotifierLanguageCode', + 'name': 'str', 'notice_severities': 'list[str]', 'security_mode': 'NotifierSecurityMode', 'smtp_server_host': 'str', @@ -38,11 +41,14 @@ class AlertNotifier(object): } attribute_map = { + 'clusters': 'clusters', 'disabled': 'disabled', 'email_from': 'email_from', 'email_tos': 'email_tos', + 'entity_async_status': 'entityAsyncStatus', 'id': 'id', 'language_code': 'language_code', + 'name': 'name', 'notice_severities': 'notice_severities', 'security_mode': 'security_mode', 'smtp_server_host': 'smtp_server_host', @@ -54,11 +60,14 @@ def __init__(self, **kwargs): # noqa: E501 """AlertNotifier - a model defined in OpenAPI""" # noqa: E501 self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + self._clusters = None self._disabled = None self._email_from = None self._email_tos = None + self._entity_async_status = None self._id = None self._language_code = None + self._name = None self._notice_severities = None self._security_mode = None self._smtp_server_host = None @@ -66,14 +75,17 @@ def __init__(self, **kwargs): # noqa: E501 self._username = None self.discriminator = None + self.clusters = kwargs.get("clusters", None) if "disabled" in kwargs: self.disabled = kwargs["disabled"] self.email_from = kwargs.get("email_from", None) if "email_tos" in kwargs: self.email_tos = kwargs["email_tos"] + self.entity_async_status = kwargs.get("entity_async_status", None) if "id" in kwargs: self.id = kwargs["id"] self.language_code = kwargs.get("language_code", None) + self.name = kwargs.get("name", None) if "notice_severities" in kwargs: self.notice_severities = kwargs["notice_severities"] self.security_mode = kwargs.get("security_mode", None) @@ -81,6 +93,27 @@ def __init__(self, **kwargs): # noqa: E501 self.smtp_server_port = kwargs.get("smtp_server_port", None) self.username = kwargs.get("username", None) + @property + def clusters(self): + """Gets the clusters of this AlertNotifier. # noqa: E501 + + + :return: The clusters of this AlertNotifier. # noqa: E501 + :rtype: list[NestedCluster] + """ + return self._clusters + + @clusters.setter + def clusters(self, clusters): + """Sets the clusters of this AlertNotifier. + + + :param clusters: The clusters of this AlertNotifier. # noqa: E501 + :type clusters: list[NestedCluster] + """ + + self._clusters = clusters + @property def disabled(self): """Gets the disabled of this AlertNotifier. # noqa: E501 @@ -148,6 +181,27 @@ def email_tos(self, email_tos): self._email_tos = email_tos + @property + def entity_async_status(self): + """Gets the entity_async_status of this AlertNotifier. # noqa: E501 + + + :return: The entity_async_status of this AlertNotifier. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this AlertNotifier. + + + :param entity_async_status: The entity_async_status of this AlertNotifier. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + @property def id(self): """Gets the id of this AlertNotifier. # noqa: E501 @@ -192,6 +246,27 @@ def language_code(self, language_code): self._language_code = language_code + @property + def name(self): + """Gets the name of this AlertNotifier. # noqa: E501 + + + :return: The name of this AlertNotifier. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AlertNotifier. + + + :param name: The name of this AlertNotifier. # noqa: E501 + :type name: str + """ + + self._name = name + @property def notice_severities(self): """Gets the notice_severities of this AlertNotifier. # noqa: E501 diff --git a/cloudtower/models/alert_notifier_order_by_input.py b/cloudtower/models/alert_notifier_order_by_input.py index e1615ec3..77c120ad 100644 --- a/cloudtower/models/alert_notifier_order_by_input.py +++ b/cloudtower/models/alert_notifier_order_by_input.py @@ -24,10 +24,14 @@ class AlertNotifierOrderByInput(object): DISABLED_DESC = "disabled_DESC" EMAIL_FROM_ASC = "email_from_ASC" EMAIL_FROM_DESC = "email_from_DESC" + ENTITYASYNCSTATUS_ASC = "entityAsyncStatus_ASC" + ENTITYASYNCSTATUS_DESC = "entityAsyncStatus_DESC" ID_ASC = "id_ASC" ID_DESC = "id_DESC" LANGUAGE_CODE_ASC = "language_code_ASC" LANGUAGE_CODE_DESC = "language_code_DESC" + NAME_ASC = "name_ASC" + NAME_DESC = "name_DESC" SECURITY_MODE_ASC = "security_mode_ASC" SECURITY_MODE_DESC = "security_mode_DESC" SMTP_SERVER_HOST_ASC = "smtp_server_host_ASC" @@ -37,7 +41,7 @@ class AlertNotifierOrderByInput(object): USERNAME_ASC = "username_ASC" USERNAME_DESC = "username_DESC" - allowable_values = [DISABLED_ASC, DISABLED_DESC, EMAIL_FROM_ASC, EMAIL_FROM_DESC, ID_ASC, ID_DESC, LANGUAGE_CODE_ASC, LANGUAGE_CODE_DESC, SECURITY_MODE_ASC, SECURITY_MODE_DESC, SMTP_SERVER_HOST_ASC, SMTP_SERVER_HOST_DESC, SMTP_SERVER_PORT_ASC, SMTP_SERVER_PORT_DESC, USERNAME_ASC, USERNAME_DESC] # noqa: E501 + allowable_values = [DISABLED_ASC, DISABLED_DESC, EMAIL_FROM_ASC, EMAIL_FROM_DESC, ENTITYASYNCSTATUS_ASC, ENTITYASYNCSTATUS_DESC, ID_ASC, ID_DESC, LANGUAGE_CODE_ASC, LANGUAGE_CODE_DESC, NAME_ASC, NAME_DESC, SECURITY_MODE_ASC, SECURITY_MODE_DESC, SMTP_SERVER_HOST_ASC, SMTP_SERVER_HOST_DESC, SMTP_SERVER_PORT_ASC, SMTP_SERVER_PORT_DESC, USERNAME_ASC, USERNAME_DESC] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/alert_notifier_where_input.py b/cloudtower/models/alert_notifier_where_input.py index 93ab6ba7..70908387 100644 --- a/cloudtower/models/alert_notifier_where_input.py +++ b/cloudtower/models/alert_notifier_where_input.py @@ -26,6 +26,9 @@ class AlertNotifierWhereInput(object): """ openapi_types = { '_and': 'list[AlertNotifierWhereInput]', + 'clusters_every': 'ClusterWhereInput', + 'clusters_none': 'ClusterWhereInput', + 'clusters_some': 'ClusterWhereInput', 'disabled': 'bool', 'disabled_not': 'bool', 'email_from': 'str', @@ -42,6 +45,10 @@ class AlertNotifierWhereInput(object): 'email_from_not_in': 'list[str]', 'email_from_not_starts_with': 'str', 'email_from_starts_with': 'str', + 'entity_async_status': 'EntityAsyncStatus', + 'entity_async_status_in': 'list[EntityAsyncStatus]', + 'entity_async_status_not': 'EntityAsyncStatus', + 'entity_async_status_not_in': 'list[EntityAsyncStatus]', 'id': 'str', 'id_contains': 'str', 'id_ends_with': 'str', @@ -60,6 +67,20 @@ class AlertNotifierWhereInput(object): 'language_code_in': 'list[NotifierLanguageCode]', 'language_code_not': 'NotifierLanguageCode', 'language_code_not_in': 'list[NotifierLanguageCode]', + 'name': 'str', + 'name_contains': 'str', + 'name_ends_with': 'str', + 'name_gt': 'str', + 'name_gte': 'str', + 'name_in': 'list[str]', + 'name_lt': 'str', + 'name_lte': 'str', + 'name_not': 'str', + 'name_not_contains': 'str', + 'name_not_ends_with': 'str', + 'name_not_in': 'list[str]', + 'name_not_starts_with': 'str', + 'name_starts_with': 'str', '_not': 'list[AlertNotifierWhereInput]', '_or': 'list[AlertNotifierWhereInput]', 'security_mode': 'NotifierSecurityMode', @@ -106,6 +127,9 @@ class AlertNotifierWhereInput(object): attribute_map = { '_and': 'AND', + 'clusters_every': 'clusters_every', + 'clusters_none': 'clusters_none', + 'clusters_some': 'clusters_some', 'disabled': 'disabled', 'disabled_not': 'disabled_not', 'email_from': 'email_from', @@ -122,6 +146,10 @@ class AlertNotifierWhereInput(object): 'email_from_not_in': 'email_from_not_in', 'email_from_not_starts_with': 'email_from_not_starts_with', 'email_from_starts_with': 'email_from_starts_with', + 'entity_async_status': 'entityAsyncStatus', + 'entity_async_status_in': 'entityAsyncStatus_in', + 'entity_async_status_not': 'entityAsyncStatus_not', + 'entity_async_status_not_in': 'entityAsyncStatus_not_in', 'id': 'id', 'id_contains': 'id_contains', 'id_ends_with': 'id_ends_with', @@ -140,6 +168,20 @@ class AlertNotifierWhereInput(object): 'language_code_in': 'language_code_in', 'language_code_not': 'language_code_not', 'language_code_not_in': 'language_code_not_in', + 'name': 'name', + 'name_contains': 'name_contains', + 'name_ends_with': 'name_ends_with', + 'name_gt': 'name_gt', + 'name_gte': 'name_gte', + 'name_in': 'name_in', + 'name_lt': 'name_lt', + 'name_lte': 'name_lte', + 'name_not': 'name_not', + 'name_not_contains': 'name_not_contains', + 'name_not_ends_with': 'name_not_ends_with', + 'name_not_in': 'name_not_in', + 'name_not_starts_with': 'name_not_starts_with', + 'name_starts_with': 'name_starts_with', '_not': 'NOT', '_or': 'OR', 'security_mode': 'security_mode', @@ -189,6 +231,9 @@ def __init__(self, **kwargs): # noqa: E501 self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) self.__and = None + self._clusters_every = None + self._clusters_none = None + self._clusters_some = None self._disabled = None self._disabled_not = None self._email_from = None @@ -205,6 +250,10 @@ def __init__(self, **kwargs): # noqa: E501 self._email_from_not_in = None self._email_from_not_starts_with = None self._email_from_starts_with = None + self._entity_async_status = None + self._entity_async_status_in = None + self._entity_async_status_not = None + self._entity_async_status_not_in = None self._id = None self._id_contains = None self._id_ends_with = None @@ -223,6 +272,20 @@ def __init__(self, **kwargs): # noqa: E501 self._language_code_in = None self._language_code_not = None self._language_code_not_in = None + self._name = None + self._name_contains = None + self._name_ends_with = None + self._name_gt = None + self._name_gte = None + self._name_in = None + self._name_lt = None + self._name_lte = None + self._name_not = None + self._name_not_contains = None + self._name_not_ends_with = None + self._name_not_in = None + self._name_not_starts_with = None + self._name_starts_with = None self.__not = None self.__or = None self._security_mode = None @@ -268,6 +331,9 @@ def __init__(self, **kwargs): # noqa: E501 self.discriminator = None self._and = kwargs.get("_and", None) + self.clusters_every = kwargs.get("clusters_every", None) + self.clusters_none = kwargs.get("clusters_none", None) + self.clusters_some = kwargs.get("clusters_some", None) self.disabled = kwargs.get("disabled", None) self.disabled_not = kwargs.get("disabled_not", None) self.email_from = kwargs.get("email_from", None) @@ -284,6 +350,10 @@ def __init__(self, **kwargs): # noqa: E501 self.email_from_not_in = kwargs.get("email_from_not_in", None) self.email_from_not_starts_with = kwargs.get("email_from_not_starts_with", None) self.email_from_starts_with = kwargs.get("email_from_starts_with", None) + self.entity_async_status = kwargs.get("entity_async_status", None) + self.entity_async_status_in = kwargs.get("entity_async_status_in", None) + self.entity_async_status_not = kwargs.get("entity_async_status_not", None) + self.entity_async_status_not_in = kwargs.get("entity_async_status_not_in", None) self.id = kwargs.get("id", None) self.id_contains = kwargs.get("id_contains", None) self.id_ends_with = kwargs.get("id_ends_with", None) @@ -302,6 +372,20 @@ def __init__(self, **kwargs): # noqa: E501 self.language_code_in = kwargs.get("language_code_in", None) self.language_code_not = kwargs.get("language_code_not", None) self.language_code_not_in = kwargs.get("language_code_not_in", None) + self.name = kwargs.get("name", None) + self.name_contains = kwargs.get("name_contains", None) + self.name_ends_with = kwargs.get("name_ends_with", None) + self.name_gt = kwargs.get("name_gt", None) + self.name_gte = kwargs.get("name_gte", None) + self.name_in = kwargs.get("name_in", None) + self.name_lt = kwargs.get("name_lt", None) + self.name_lte = kwargs.get("name_lte", None) + self.name_not = kwargs.get("name_not", None) + self.name_not_contains = kwargs.get("name_not_contains", None) + self.name_not_ends_with = kwargs.get("name_not_ends_with", None) + self.name_not_in = kwargs.get("name_not_in", None) + self.name_not_starts_with = kwargs.get("name_not_starts_with", None) + self.name_starts_with = kwargs.get("name_starts_with", None) self._not = kwargs.get("_not", None) self._or = kwargs.get("_or", None) self.security_mode = kwargs.get("security_mode", None) @@ -366,6 +450,69 @@ def _and(self, _and): self.__and = _and + @property + def clusters_every(self): + """Gets the clusters_every of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The clusters_every of this AlertNotifierWhereInput. # noqa: E501 + :rtype: ClusterWhereInput + """ + return self._clusters_every + + @clusters_every.setter + def clusters_every(self, clusters_every): + """Sets the clusters_every of this AlertNotifierWhereInput. + + + :param clusters_every: The clusters_every of this AlertNotifierWhereInput. # noqa: E501 + :type clusters_every: ClusterWhereInput + """ + + self._clusters_every = clusters_every + + @property + def clusters_none(self): + """Gets the clusters_none of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The clusters_none of this AlertNotifierWhereInput. # noqa: E501 + :rtype: ClusterWhereInput + """ + return self._clusters_none + + @clusters_none.setter + def clusters_none(self, clusters_none): + """Sets the clusters_none of this AlertNotifierWhereInput. + + + :param clusters_none: The clusters_none of this AlertNotifierWhereInput. # noqa: E501 + :type clusters_none: ClusterWhereInput + """ + + self._clusters_none = clusters_none + + @property + def clusters_some(self): + """Gets the clusters_some of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The clusters_some of this AlertNotifierWhereInput. # noqa: E501 + :rtype: ClusterWhereInput + """ + return self._clusters_some + + @clusters_some.setter + def clusters_some(self, clusters_some): + """Sets the clusters_some of this AlertNotifierWhereInput. + + + :param clusters_some: The clusters_some of this AlertNotifierWhereInput. # noqa: E501 + :type clusters_some: ClusterWhereInput + """ + + self._clusters_some = clusters_some + @property def disabled(self): """Gets the disabled of this AlertNotifierWhereInput. # noqa: E501 @@ -702,6 +849,90 @@ def email_from_starts_with(self, email_from_starts_with): self._email_from_starts_with = email_from_starts_with + @property + def entity_async_status(self): + """Gets the entity_async_status of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The entity_async_status of this AlertNotifierWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this AlertNotifierWhereInput. + + + :param entity_async_status: The entity_async_status of this AlertNotifierWhereInput. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + + @property + def entity_async_status_in(self): + """Gets the entity_async_status_in of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The entity_async_status_in of this AlertNotifierWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_in + + @entity_async_status_in.setter + def entity_async_status_in(self, entity_async_status_in): + """Sets the entity_async_status_in of this AlertNotifierWhereInput. + + + :param entity_async_status_in: The entity_async_status_in of this AlertNotifierWhereInput. # noqa: E501 + :type entity_async_status_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_in = entity_async_status_in + + @property + def entity_async_status_not(self): + """Gets the entity_async_status_not of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The entity_async_status_not of this AlertNotifierWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status_not + + @entity_async_status_not.setter + def entity_async_status_not(self, entity_async_status_not): + """Sets the entity_async_status_not of this AlertNotifierWhereInput. + + + :param entity_async_status_not: The entity_async_status_not of this AlertNotifierWhereInput. # noqa: E501 + :type entity_async_status_not: EntityAsyncStatus + """ + + self._entity_async_status_not = entity_async_status_not + + @property + def entity_async_status_not_in(self): + """Gets the entity_async_status_not_in of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The entity_async_status_not_in of this AlertNotifierWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_not_in + + @entity_async_status_not_in.setter + def entity_async_status_not_in(self, entity_async_status_not_in): + """Sets the entity_async_status_not_in of this AlertNotifierWhereInput. + + + :param entity_async_status_not_in: The entity_async_status_not_in of this AlertNotifierWhereInput. # noqa: E501 + :type entity_async_status_not_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_not_in = entity_async_status_not_in + @property def id(self): """Gets the id of this AlertNotifierWhereInput. # noqa: E501 @@ -1080,6 +1311,300 @@ def language_code_not_in(self, language_code_not_in): self._language_code_not_in = language_code_not_in + @property + def name(self): + """Gets the name of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AlertNotifierWhereInput. + + + :param name: The name of this AlertNotifierWhereInput. # noqa: E501 + :type name: str + """ + + self._name = name + + @property + def name_contains(self): + """Gets the name_contains of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_contains of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_contains + + @name_contains.setter + def name_contains(self, name_contains): + """Sets the name_contains of this AlertNotifierWhereInput. + + + :param name_contains: The name_contains of this AlertNotifierWhereInput. # noqa: E501 + :type name_contains: str + """ + + self._name_contains = name_contains + + @property + def name_ends_with(self): + """Gets the name_ends_with of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_ends_with of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_ends_with + + @name_ends_with.setter + def name_ends_with(self, name_ends_with): + """Sets the name_ends_with of this AlertNotifierWhereInput. + + + :param name_ends_with: The name_ends_with of this AlertNotifierWhereInput. # noqa: E501 + :type name_ends_with: str + """ + + self._name_ends_with = name_ends_with + + @property + def name_gt(self): + """Gets the name_gt of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_gt of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_gt + + @name_gt.setter + def name_gt(self, name_gt): + """Sets the name_gt of this AlertNotifierWhereInput. + + + :param name_gt: The name_gt of this AlertNotifierWhereInput. # noqa: E501 + :type name_gt: str + """ + + self._name_gt = name_gt + + @property + def name_gte(self): + """Gets the name_gte of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_gte of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_gte + + @name_gte.setter + def name_gte(self, name_gte): + """Sets the name_gte of this AlertNotifierWhereInput. + + + :param name_gte: The name_gte of this AlertNotifierWhereInput. # noqa: E501 + :type name_gte: str + """ + + self._name_gte = name_gte + + @property + def name_in(self): + """Gets the name_in of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_in of this AlertNotifierWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._name_in + + @name_in.setter + def name_in(self, name_in): + """Sets the name_in of this AlertNotifierWhereInput. + + + :param name_in: The name_in of this AlertNotifierWhereInput. # noqa: E501 + :type name_in: list[str] + """ + + self._name_in = name_in + + @property + def name_lt(self): + """Gets the name_lt of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_lt of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_lt + + @name_lt.setter + def name_lt(self, name_lt): + """Sets the name_lt of this AlertNotifierWhereInput. + + + :param name_lt: The name_lt of this AlertNotifierWhereInput. # noqa: E501 + :type name_lt: str + """ + + self._name_lt = name_lt + + @property + def name_lte(self): + """Gets the name_lte of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_lte of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_lte + + @name_lte.setter + def name_lte(self, name_lte): + """Sets the name_lte of this AlertNotifierWhereInput. + + + :param name_lte: The name_lte of this AlertNotifierWhereInput. # noqa: E501 + :type name_lte: str + """ + + self._name_lte = name_lte + + @property + def name_not(self): + """Gets the name_not of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_not of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_not + + @name_not.setter + def name_not(self, name_not): + """Sets the name_not of this AlertNotifierWhereInput. + + + :param name_not: The name_not of this AlertNotifierWhereInput. # noqa: E501 + :type name_not: str + """ + + self._name_not = name_not + + @property + def name_not_contains(self): + """Gets the name_not_contains of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_not_contains of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_not_contains + + @name_not_contains.setter + def name_not_contains(self, name_not_contains): + """Sets the name_not_contains of this AlertNotifierWhereInput. + + + :param name_not_contains: The name_not_contains of this AlertNotifierWhereInput. # noqa: E501 + :type name_not_contains: str + """ + + self._name_not_contains = name_not_contains + + @property + def name_not_ends_with(self): + """Gets the name_not_ends_with of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_not_ends_with of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_not_ends_with + + @name_not_ends_with.setter + def name_not_ends_with(self, name_not_ends_with): + """Sets the name_not_ends_with of this AlertNotifierWhereInput. + + + :param name_not_ends_with: The name_not_ends_with of this AlertNotifierWhereInput. # noqa: E501 + :type name_not_ends_with: str + """ + + self._name_not_ends_with = name_not_ends_with + + @property + def name_not_in(self): + """Gets the name_not_in of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_not_in of this AlertNotifierWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._name_not_in + + @name_not_in.setter + def name_not_in(self, name_not_in): + """Sets the name_not_in of this AlertNotifierWhereInput. + + + :param name_not_in: The name_not_in of this AlertNotifierWhereInput. # noqa: E501 + :type name_not_in: list[str] + """ + + self._name_not_in = name_not_in + + @property + def name_not_starts_with(self): + """Gets the name_not_starts_with of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_not_starts_with of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_not_starts_with + + @name_not_starts_with.setter + def name_not_starts_with(self, name_not_starts_with): + """Sets the name_not_starts_with of this AlertNotifierWhereInput. + + + :param name_not_starts_with: The name_not_starts_with of this AlertNotifierWhereInput. # noqa: E501 + :type name_not_starts_with: str + """ + + self._name_not_starts_with = name_not_starts_with + + @property + def name_starts_with(self): + """Gets the name_starts_with of this AlertNotifierWhereInput. # noqa: E501 + + + :return: The name_starts_with of this AlertNotifierWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_starts_with + + @name_starts_with.setter + def name_starts_with(self, name_starts_with): + """Sets the name_starts_with of this AlertNotifierWhereInput. + + + :param name_starts_with: The name_starts_with of this AlertNotifierWhereInput. # noqa: E501 + :type name_starts_with: str + """ + + self._name_starts_with = name_starts_with + @property def _not(self): """Gets the _not of this AlertNotifierWhereInput. # noqa: E501 diff --git a/cloudtower/models/alert_rule.py b/cloudtower/models/alert_rule.py index b2d6c92c..c197864c 100644 --- a/cloudtower/models/alert_rule.py +++ b/cloudtower/models/alert_rule.py @@ -57,8 +57,7 @@ def __init__(self, **kwargs): # noqa: E501 self._thresholds = None self.discriminator = None - if "cluster" in kwargs: - self.cluster = kwargs["cluster"] + self.cluster = kwargs.get("cluster", None) if "customized" in kwargs: self.customized = kwargs["customized"] if "disabled" in kwargs: @@ -90,8 +89,6 @@ def cluster(self, cluster): :param cluster: The cluster of this AlertRule. # noqa: E501 :type cluster: NestedCluster """ - if self.local_vars_configuration.client_side_validation and cluster is None: # noqa: E501 - raise ValueError("Invalid value for `cluster`, must not be `None`") # noqa: E501 self._cluster = cluster diff --git a/cloudtower/models/alert_rule_unit.py b/cloudtower/models/alert_rule_unit.py index f322745d..0df04b3f 100644 --- a/cloudtower/models/alert_rule_unit.py +++ b/cloudtower/models/alert_rule_unit.py @@ -25,12 +25,13 @@ class AlertRuleUnit(object): BYTE_PER_SECOND = "BYTE_PER_SECOND" CELSIUS = "CELSIUS" HERTZ = "HERTZ" + MICROSECOND = "MICROSECOND" NANOSECOND = "NANOSECOND" PERCENT = "PERCENT" SECOND = "SECOND" UNIT_UNSPECIFIED = "UNIT_UNSPECIFIED" - allowable_values = [BIT, BYTE, BYTE_PER_SECOND, CELSIUS, HERTZ, NANOSECOND, PERCENT, SECOND, UNIT_UNSPECIFIED] # noqa: E501 + allowable_values = [BIT, BYTE, BYTE_PER_SECOND, CELSIUS, HERTZ, MICROSECOND, NANOSECOND, PERCENT, SECOND, UNIT_UNSPECIFIED] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/cloud_tower_application.py b/cloudtower/models/cloud_tower_application.py index 43116695..cee359e8 100644 --- a/cloudtower/models/cloud_tower_application.py +++ b/cloudtower/models/cloud_tower_application.py @@ -25,6 +25,7 @@ class CloudTowerApplication(object): and the value is json key in definition. """ openapi_types = { + 'entity_async_status': 'EntityAsyncStatus', 'id': 'str', 'instance_statuses': 'object', 'name': 'str', @@ -39,6 +40,7 @@ class CloudTowerApplication(object): } attribute_map = { + 'entity_async_status': 'entityAsyncStatus', 'id': 'id', 'instance_statuses': 'instanceStatuses', 'name': 'name', @@ -56,6 +58,7 @@ def __init__(self, **kwargs): # noqa: E501 """CloudTowerApplication - a model defined in OpenAPI""" # noqa: E501 self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + self._entity_async_status = None self._id = None self._instance_statuses = None self._name = None @@ -69,6 +72,7 @@ def __init__(self, **kwargs): # noqa: E501 self._vm_spec = None self.discriminator = None + self.entity_async_status = kwargs.get("entity_async_status", None) if "id" in kwargs: self.id = kwargs["id"] if "instance_statuses" in kwargs: @@ -87,6 +91,27 @@ def __init__(self, **kwargs): # noqa: E501 if "vm_spec" in kwargs: self.vm_spec = kwargs["vm_spec"] + @property + def entity_async_status(self): + """Gets the entity_async_status of this CloudTowerApplication. # noqa: E501 + + + :return: The entity_async_status of this CloudTowerApplication. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this CloudTowerApplication. + + + :param entity_async_status: The entity_async_status of this CloudTowerApplication. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + @property def id(self): """Gets the id of this CloudTowerApplication. # noqa: E501 diff --git a/cloudtower/models/cloud_tower_application_order_by_input.py b/cloudtower/models/cloud_tower_application_order_by_input.py index c666a58c..62c056a8 100644 --- a/cloudtower/models/cloud_tower_application_order_by_input.py +++ b/cloudtower/models/cloud_tower_application_order_by_input.py @@ -20,6 +20,8 @@ class CloudTowerApplicationOrderByInput(object): """ allowed enum values """ + ENTITYASYNCSTATUS_ASC = "entityAsyncStatus_ASC" + ENTITYASYNCSTATUS_DESC = "entityAsyncStatus_DESC" ID_ASC = "id_ASC" ID_DESC = "id_DESC" INSTANCESTATUSES_ASC = "instanceStatuses_ASC" @@ -39,7 +41,7 @@ class CloudTowerApplicationOrderByInput(object): VMSPEC_ASC = "vmSpec_ASC" VMSPEC_DESC = "vmSpec_DESC" - allowable_values = [ID_ASC, ID_DESC, INSTANCESTATUSES_ASC, INSTANCESTATUSES_DESC, NAME_ASC, NAME_DESC, PLACEMENTSITUATION_ASC, PLACEMENTSITUATION_DESC, PLACEMENTVERB_ASC, PLACEMENTVERB_DESC, RESOURCEVERSION_ASC, RESOURCEVERSION_DESC, STATE_ASC, STATE_DESC, TARGETPACKAGE_ASC, TARGETPACKAGE_DESC, VMSPEC_ASC, VMSPEC_DESC] # noqa: E501 + allowable_values = [ENTITYASYNCSTATUS_ASC, ENTITYASYNCSTATUS_DESC, ID_ASC, ID_DESC, INSTANCESTATUSES_ASC, INSTANCESTATUSES_DESC, NAME_ASC, NAME_DESC, PLACEMENTSITUATION_ASC, PLACEMENTSITUATION_DESC, PLACEMENTVERB_ASC, PLACEMENTVERB_DESC, RESOURCEVERSION_ASC, RESOURCEVERSION_DESC, STATE_ASC, STATE_DESC, TARGETPACKAGE_ASC, TARGETPACKAGE_DESC, VMSPEC_ASC, VMSPEC_DESC] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/cloud_tower_application_where_input.py b/cloudtower/models/cloud_tower_application_where_input.py index 3e82548b..4b448a41 100644 --- a/cloudtower/models/cloud_tower_application_where_input.py +++ b/cloudtower/models/cloud_tower_application_where_input.py @@ -26,6 +26,10 @@ class CloudTowerApplicationWhereInput(object): """ openapi_types = { '_and': 'list[CloudTowerApplicationWhereInput]', + 'entity_async_status': 'EntityAsyncStatus', + 'entity_async_status_in': 'list[EntityAsyncStatus]', + 'entity_async_status_not': 'EntityAsyncStatus', + 'entity_async_status_not_in': 'list[EntityAsyncStatus]', 'id': 'str', 'id_contains': 'str', 'id_ends_with': 'str', @@ -116,6 +120,10 @@ class CloudTowerApplicationWhereInput(object): attribute_map = { '_and': 'AND', + 'entity_async_status': 'entityAsyncStatus', + 'entity_async_status_in': 'entityAsyncStatus_in', + 'entity_async_status_not': 'entityAsyncStatus_not', + 'entity_async_status_not_in': 'entityAsyncStatus_not_in', 'id': 'id', 'id_contains': 'id_contains', 'id_ends_with': 'id_ends_with', @@ -209,6 +217,10 @@ def __init__(self, **kwargs): # noqa: E501 self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) self.__and = None + self._entity_async_status = None + self._entity_async_status_in = None + self._entity_async_status_not = None + self._entity_async_status_not_in = None self._id = None self._id_contains = None self._id_ends_with = None @@ -298,6 +310,10 @@ def __init__(self, **kwargs): # noqa: E501 self.discriminator = None self._and = kwargs.get("_and", None) + self.entity_async_status = kwargs.get("entity_async_status", None) + self.entity_async_status_in = kwargs.get("entity_async_status_in", None) + self.entity_async_status_not = kwargs.get("entity_async_status_not", None) + self.entity_async_status_not_in = kwargs.get("entity_async_status_not_in", None) self.id = kwargs.get("id", None) self.id_contains = kwargs.get("id_contains", None) self.id_ends_with = kwargs.get("id_ends_with", None) @@ -406,6 +422,90 @@ def _and(self, _and): self.__and = _and + @property + def entity_async_status(self): + """Gets the entity_async_status of this CloudTowerApplicationWhereInput. # noqa: E501 + + + :return: The entity_async_status of this CloudTowerApplicationWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this CloudTowerApplicationWhereInput. + + + :param entity_async_status: The entity_async_status of this CloudTowerApplicationWhereInput. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + + @property + def entity_async_status_in(self): + """Gets the entity_async_status_in of this CloudTowerApplicationWhereInput. # noqa: E501 + + + :return: The entity_async_status_in of this CloudTowerApplicationWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_in + + @entity_async_status_in.setter + def entity_async_status_in(self, entity_async_status_in): + """Sets the entity_async_status_in of this CloudTowerApplicationWhereInput. + + + :param entity_async_status_in: The entity_async_status_in of this CloudTowerApplicationWhereInput. # noqa: E501 + :type entity_async_status_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_in = entity_async_status_in + + @property + def entity_async_status_not(self): + """Gets the entity_async_status_not of this CloudTowerApplicationWhereInput. # noqa: E501 + + + :return: The entity_async_status_not of this CloudTowerApplicationWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status_not + + @entity_async_status_not.setter + def entity_async_status_not(self, entity_async_status_not): + """Sets the entity_async_status_not of this CloudTowerApplicationWhereInput. + + + :param entity_async_status_not: The entity_async_status_not of this CloudTowerApplicationWhereInput. # noqa: E501 + :type entity_async_status_not: EntityAsyncStatus + """ + + self._entity_async_status_not = entity_async_status_not + + @property + def entity_async_status_not_in(self): + """Gets the entity_async_status_not_in of this CloudTowerApplicationWhereInput. # noqa: E501 + + + :return: The entity_async_status_not_in of this CloudTowerApplicationWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_not_in + + @entity_async_status_not_in.setter + def entity_async_status_not_in(self, entity_async_status_not_in): + """Sets the entity_async_status_not_in of this CloudTowerApplicationWhereInput. + + + :param entity_async_status_not_in: The entity_async_status_not_in of this CloudTowerApplicationWhereInput. # noqa: E501 + :type entity_async_status_not_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_not_in = entity_async_status_not_in + @property def id(self): """Gets the id of this CloudTowerApplicationWhereInput. # noqa: E501 diff --git a/cloudtower/models/cluster_settings.py b/cloudtower/models/cluster_settings.py index a6183f9d..98fdd032 100644 --- a/cloudtower/models/cluster_settings.py +++ b/cloudtower/models/cluster_settings.py @@ -27,6 +27,7 @@ class ClusterSettings(object): openapi_types = { 'cluster': 'NestedCluster', 'default_ha': 'bool', + 'default_storage_policy': 'VmVolumeElfStoragePolicyType', 'enabled_iscsi': 'bool', 'id': 'str', 'vm_recycle_bin': 'NestedVmRecycleBin' @@ -35,6 +36,7 @@ class ClusterSettings(object): attribute_map = { 'cluster': 'cluster', 'default_ha': 'default_ha', + 'default_storage_policy': 'default_storage_policy', 'enabled_iscsi': 'enabled_iscsi', 'id': 'id', 'vm_recycle_bin': 'vm_recycle_bin' @@ -46,6 +48,7 @@ def __init__(self, **kwargs): # noqa: E501 self._cluster = None self._default_ha = None + self._default_storage_policy = None self._enabled_iscsi = None self._id = None self._vm_recycle_bin = None @@ -54,6 +57,7 @@ def __init__(self, **kwargs): # noqa: E501 if "cluster" in kwargs: self.cluster = kwargs["cluster"] self.default_ha = kwargs.get("default_ha", None) + self.default_storage_policy = kwargs.get("default_storage_policy", None) self.enabled_iscsi = kwargs.get("enabled_iscsi", None) if "id" in kwargs: self.id = kwargs["id"] @@ -103,6 +107,27 @@ def default_ha(self, default_ha): self._default_ha = default_ha + @property + def default_storage_policy(self): + """Gets the default_storage_policy of this ClusterSettings. # noqa: E501 + + + :return: The default_storage_policy of this ClusterSettings. # noqa: E501 + :rtype: VmVolumeElfStoragePolicyType + """ + return self._default_storage_policy + + @default_storage_policy.setter + def default_storage_policy(self, default_storage_policy): + """Sets the default_storage_policy of this ClusterSettings. + + + :param default_storage_policy: The default_storage_policy of this ClusterSettings. # noqa: E501 + :type default_storage_policy: VmVolumeElfStoragePolicyType + """ + + self._default_storage_policy = default_storage_policy + @property def enabled_iscsi(self): """Gets the enabled_iscsi of this ClusterSettings. # noqa: E501 diff --git a/cloudtower/models/cluster_settings_order_by_input.py b/cloudtower/models/cluster_settings_order_by_input.py index a3f5610d..0e5f9a52 100644 --- a/cloudtower/models/cluster_settings_order_by_input.py +++ b/cloudtower/models/cluster_settings_order_by_input.py @@ -22,6 +22,8 @@ class ClusterSettingsOrderByInput(object): """ DEFAULT_HA_ASC = "default_ha_ASC" DEFAULT_HA_DESC = "default_ha_DESC" + DEFAULT_STORAGE_POLICY_ASC = "default_storage_policy_ASC" + DEFAULT_STORAGE_POLICY_DESC = "default_storage_policy_DESC" ENABLED_ISCSI_ASC = "enabled_iscsi_ASC" ENABLED_ISCSI_DESC = "enabled_iscsi_DESC" ID_ASC = "id_ASC" @@ -29,7 +31,7 @@ class ClusterSettingsOrderByInput(object): VM_RECYCLE_BIN_ASC = "vm_recycle_bin_ASC" VM_RECYCLE_BIN_DESC = "vm_recycle_bin_DESC" - allowable_values = [DEFAULT_HA_ASC, DEFAULT_HA_DESC, ENABLED_ISCSI_ASC, ENABLED_ISCSI_DESC, ID_ASC, ID_DESC, VM_RECYCLE_BIN_ASC, VM_RECYCLE_BIN_DESC] # noqa: E501 + allowable_values = [DEFAULT_HA_ASC, DEFAULT_HA_DESC, DEFAULT_STORAGE_POLICY_ASC, DEFAULT_STORAGE_POLICY_DESC, ENABLED_ISCSI_ASC, ENABLED_ISCSI_DESC, ID_ASC, ID_DESC, VM_RECYCLE_BIN_ASC, VM_RECYCLE_BIN_DESC] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/cluster_settings_where_input.py b/cloudtower/models/cluster_settings_where_input.py index 5829e457..27ef9941 100644 --- a/cloudtower/models/cluster_settings_where_input.py +++ b/cloudtower/models/cluster_settings_where_input.py @@ -29,6 +29,10 @@ class ClusterSettingsWhereInput(object): 'cluster': 'ClusterWhereInput', 'default_ha': 'bool', 'default_ha_not': 'bool', + 'default_storage_policy': 'VmVolumeElfStoragePolicyType', + 'default_storage_policy_in': 'list[VmVolumeElfStoragePolicyType]', + 'default_storage_policy_not': 'VmVolumeElfStoragePolicyType', + 'default_storage_policy_not_in': 'list[VmVolumeElfStoragePolicyType]', 'enabled_iscsi': 'bool', 'enabled_iscsi_not': 'bool', 'id': 'str', @@ -54,6 +58,10 @@ class ClusterSettingsWhereInput(object): 'cluster': 'cluster', 'default_ha': 'default_ha', 'default_ha_not': 'default_ha_not', + 'default_storage_policy': 'default_storage_policy', + 'default_storage_policy_in': 'default_storage_policy_in', + 'default_storage_policy_not': 'default_storage_policy_not', + 'default_storage_policy_not_in': 'default_storage_policy_not_in', 'enabled_iscsi': 'enabled_iscsi', 'enabled_iscsi_not': 'enabled_iscsi_not', 'id': 'id', @@ -82,6 +90,10 @@ def __init__(self, **kwargs): # noqa: E501 self._cluster = None self._default_ha = None self._default_ha_not = None + self._default_storage_policy = None + self._default_storage_policy_in = None + self._default_storage_policy_not = None + self._default_storage_policy_not_in = None self._enabled_iscsi = None self._enabled_iscsi_not = None self._id = None @@ -106,6 +118,10 @@ def __init__(self, **kwargs): # noqa: E501 self.cluster = kwargs.get("cluster", None) self.default_ha = kwargs.get("default_ha", None) self.default_ha_not = kwargs.get("default_ha_not", None) + self.default_storage_policy = kwargs.get("default_storage_policy", None) + self.default_storage_policy_in = kwargs.get("default_storage_policy_in", None) + self.default_storage_policy_not = kwargs.get("default_storage_policy_not", None) + self.default_storage_policy_not_in = kwargs.get("default_storage_policy_not_in", None) self.enabled_iscsi = kwargs.get("enabled_iscsi", None) self.enabled_iscsi_not = kwargs.get("enabled_iscsi_not", None) self.id = kwargs.get("id", None) @@ -209,6 +225,90 @@ def default_ha_not(self, default_ha_not): self._default_ha_not = default_ha_not + @property + def default_storage_policy(self): + """Gets the default_storage_policy of this ClusterSettingsWhereInput. # noqa: E501 + + + :return: The default_storage_policy of this ClusterSettingsWhereInput. # noqa: E501 + :rtype: VmVolumeElfStoragePolicyType + """ + return self._default_storage_policy + + @default_storage_policy.setter + def default_storage_policy(self, default_storage_policy): + """Sets the default_storage_policy of this ClusterSettingsWhereInput. + + + :param default_storage_policy: The default_storage_policy of this ClusterSettingsWhereInput. # noqa: E501 + :type default_storage_policy: VmVolumeElfStoragePolicyType + """ + + self._default_storage_policy = default_storage_policy + + @property + def default_storage_policy_in(self): + """Gets the default_storage_policy_in of this ClusterSettingsWhereInput. # noqa: E501 + + + :return: The default_storage_policy_in of this ClusterSettingsWhereInput. # noqa: E501 + :rtype: list[VmVolumeElfStoragePolicyType] + """ + return self._default_storage_policy_in + + @default_storage_policy_in.setter + def default_storage_policy_in(self, default_storage_policy_in): + """Sets the default_storage_policy_in of this ClusterSettingsWhereInput. + + + :param default_storage_policy_in: The default_storage_policy_in of this ClusterSettingsWhereInput. # noqa: E501 + :type default_storage_policy_in: list[VmVolumeElfStoragePolicyType] + """ + + self._default_storage_policy_in = default_storage_policy_in + + @property + def default_storage_policy_not(self): + """Gets the default_storage_policy_not of this ClusterSettingsWhereInput. # noqa: E501 + + + :return: The default_storage_policy_not of this ClusterSettingsWhereInput. # noqa: E501 + :rtype: VmVolumeElfStoragePolicyType + """ + return self._default_storage_policy_not + + @default_storage_policy_not.setter + def default_storage_policy_not(self, default_storage_policy_not): + """Sets the default_storage_policy_not of this ClusterSettingsWhereInput. + + + :param default_storage_policy_not: The default_storage_policy_not of this ClusterSettingsWhereInput. # noqa: E501 + :type default_storage_policy_not: VmVolumeElfStoragePolicyType + """ + + self._default_storage_policy_not = default_storage_policy_not + + @property + def default_storage_policy_not_in(self): + """Gets the default_storage_policy_not_in of this ClusterSettingsWhereInput. # noqa: E501 + + + :return: The default_storage_policy_not_in of this ClusterSettingsWhereInput. # noqa: E501 + :rtype: list[VmVolumeElfStoragePolicyType] + """ + return self._default_storage_policy_not_in + + @default_storage_policy_not_in.setter + def default_storage_policy_not_in(self, default_storage_policy_not_in): + """Sets the default_storage_policy_not_in of this ClusterSettingsWhereInput. + + + :param default_storage_policy_not_in: The default_storage_policy_not_in of this ClusterSettingsWhereInput. # noqa: E501 + :type default_storage_policy_not_in: list[VmVolumeElfStoragePolicyType] + """ + + self._default_storage_policy_not_in = default_storage_policy_not_in + @property def enabled_iscsi(self): """Gets the enabled_iscsi of this ClusterSettingsWhereInput. # noqa: E501 diff --git a/cloudtower/models/delete_security_group.py b/cloudtower/models/delete_security_group.py new file mode 100644 index 00000000..51f377b1 --- /dev/null +++ b/cloudtower/models/delete_security_group.py @@ -0,0 +1,120 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class DeleteSecurityGroup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, **kwargs): # noqa: E501 + """DeleteSecurityGroup - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._id = None + self.discriminator = None + + if "id" in kwargs: + self.id = kwargs["id"] + + @property + def id(self): + """Gets the id of this DeleteSecurityGroup. # noqa: E501 + + + :return: The id of this DeleteSecurityGroup. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeleteSecurityGroup. + + + :param id: The id of this DeleteSecurityGroup. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteSecurityGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DeleteSecurityGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/delete_security_policy.py b/cloudtower/models/delete_security_policy.py new file mode 100644 index 00000000..c6e537fd --- /dev/null +++ b/cloudtower/models/delete_security_policy.py @@ -0,0 +1,120 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class DeleteSecurityPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, **kwargs): # noqa: E501 + """DeleteSecurityPolicy - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._id = None + self.discriminator = None + + if "id" in kwargs: + self.id = kwargs["id"] + + @property + def id(self): + """Gets the id of this DeleteSecurityPolicy. # noqa: E501 + + + :return: The id of this DeleteSecurityPolicy. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeleteSecurityPolicy. + + + :param id: The id of this DeleteSecurityPolicy. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteSecurityPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DeleteSecurityPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/export_file_download_links.py b/cloudtower/models/export_file_download_links.py new file mode 100644 index 00000000..bed0832e --- /dev/null +++ b/cloudtower/models/export_file_download_links.py @@ -0,0 +1,148 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class ExportFileDownloadLinks(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'link': 'str', + 'filename': 'str' + } + + attribute_map = { + 'link': 'link', + 'filename': 'filename' + } + + def __init__(self, **kwargs): # noqa: E501 + """ExportFileDownloadLinks - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._link = None + self._filename = None + self.discriminator = None + + if "link" in kwargs: + self.link = kwargs["link"] + if "filename" in kwargs: + self.filename = kwargs["filename"] + + @property + def link(self): + """Gets the link of this ExportFileDownloadLinks. # noqa: E501 + + + :return: The link of this ExportFileDownloadLinks. # noqa: E501 + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this ExportFileDownloadLinks. + + + :param link: The link of this ExportFileDownloadLinks. # noqa: E501 + :type link: str + """ + if self.local_vars_configuration.client_side_validation and link is None: # noqa: E501 + raise ValueError("Invalid value for `link`, must not be `None`") # noqa: E501 + + self._link = link + + @property + def filename(self): + """Gets the filename of this ExportFileDownloadLinks. # noqa: E501 + + + :return: The filename of this ExportFileDownloadLinks. # noqa: E501 + :rtype: str + """ + return self._filename + + @filename.setter + def filename(self, filename): + """Sets the filename of this ExportFileDownloadLinks. + + + :param filename: The filename of this ExportFileDownloadLinks. # noqa: E501 + :type filename: str + """ + if self.local_vars_configuration.client_side_validation and filename is None: # noqa: E501 + raise ValueError("Invalid value for `filename`, must not be `None`") # noqa: E501 + + self._filename = filename + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExportFileDownloadLinks): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ExportFileDownloadLinks): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/get_export_file_download_links_params.py b/cloudtower/models/get_export_file_download_links_params.py new file mode 100644 index 00000000..1134c9d6 --- /dev/null +++ b/cloudtower/models/get_export_file_download_links_params.py @@ -0,0 +1,120 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class GetExportFileDownloadLinksParams(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'where': 'VmExportFileWhereUniqueInput' + } + + attribute_map = { + 'where': 'where' + } + + def __init__(self, **kwargs): # noqa: E501 + """GetExportFileDownloadLinksParams - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._where = None + self.discriminator = None + + if "where" in kwargs: + self.where = kwargs["where"] + + @property + def where(self): + """Gets the where of this GetExportFileDownloadLinksParams. # noqa: E501 + + + :return: The where of this GetExportFileDownloadLinksParams. # noqa: E501 + :rtype: VmExportFileWhereUniqueInput + """ + return self._where + + @where.setter + def where(self, where): + """Sets the where of this GetExportFileDownloadLinksParams. + + + :param where: The where of this GetExportFileDownloadLinksParams. # noqa: E501 + :type where: VmExportFileWhereUniqueInput + """ + if self.local_vars_configuration.client_side_validation and where is None: # noqa: E501 + raise ValueError("Invalid value for `where`, must not be `None`") # noqa: E501 + + self._where = where + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetExportFileDownloadLinksParams): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GetExportFileDownloadLinksParams): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/get_security_groups_connection_request_body.py b/cloudtower/models/get_security_groups_connection_request_body.py new file mode 100644 index 00000000..be134e0c --- /dev/null +++ b/cloudtower/models/get_security_groups_connection_request_body.py @@ -0,0 +1,267 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class GetSecurityGroupsConnectionRequestBody(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'after': 'str', + 'before': 'str', + 'first': 'int', + 'last': 'int', + 'order_by': 'SecurityGroupOrderByInput', + 'skip': 'int', + 'where': 'SecurityGroupWhereInput' + } + + attribute_map = { + 'after': 'after', + 'before': 'before', + 'first': 'first', + 'last': 'last', + 'order_by': 'orderBy', + 'skip': 'skip', + 'where': 'where' + } + + def __init__(self, **kwargs): # noqa: E501 + """GetSecurityGroupsConnectionRequestBody - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._after = None + self._before = None + self._first = None + self._last = None + self._order_by = None + self._skip = None + self._where = None + self.discriminator = None + + self.after = kwargs.get("after", None) + self.before = kwargs.get("before", None) + self.first = kwargs.get("first", None) + self.last = kwargs.get("last", None) + self.order_by = kwargs.get("order_by", None) + self.skip = kwargs.get("skip", None) + self.where = kwargs.get("where", None) + + @property + def after(self): + """Gets the after of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + + + :return: The after of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :rtype: str + """ + return self._after + + @after.setter + def after(self, after): + """Sets the after of this GetSecurityGroupsConnectionRequestBody. + + + :param after: The after of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :type after: str + """ + + self._after = after + + @property + def before(self): + """Gets the before of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + + + :return: The before of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :rtype: str + """ + return self._before + + @before.setter + def before(self, before): + """Sets the before of this GetSecurityGroupsConnectionRequestBody. + + + :param before: The before of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :type before: str + """ + + self._before = before + + @property + def first(self): + """Gets the first of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + + + :return: The first of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :rtype: int + """ + return self._first + + @first.setter + def first(self, first): + """Sets the first of this GetSecurityGroupsConnectionRequestBody. + + + :param first: The first of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :type first: int + """ + + self._first = first + + @property + def last(self): + """Gets the last of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + + + :return: The last of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :rtype: int + """ + return self._last + + @last.setter + def last(self, last): + """Sets the last of this GetSecurityGroupsConnectionRequestBody. + + + :param last: The last of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :type last: int + """ + + self._last = last + + @property + def order_by(self): + """Gets the order_by of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + + + :return: The order_by of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :rtype: SecurityGroupOrderByInput + """ + return self._order_by + + @order_by.setter + def order_by(self, order_by): + """Sets the order_by of this GetSecurityGroupsConnectionRequestBody. + + + :param order_by: The order_by of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :type order_by: SecurityGroupOrderByInput + """ + + self._order_by = order_by + + @property + def skip(self): + """Gets the skip of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + + + :return: The skip of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :rtype: int + """ + return self._skip + + @skip.setter + def skip(self, skip): + """Sets the skip of this GetSecurityGroupsConnectionRequestBody. + + + :param skip: The skip of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :type skip: int + """ + + self._skip = skip + + @property + def where(self): + """Gets the where of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + + + :return: The where of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :rtype: SecurityGroupWhereInput + """ + return self._where + + @where.setter + def where(self, where): + """Sets the where of this GetSecurityGroupsConnectionRequestBody. + + + :param where: The where of this GetSecurityGroupsConnectionRequestBody. # noqa: E501 + :type where: SecurityGroupWhereInput + """ + + self._where = where + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetSecurityGroupsConnectionRequestBody): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GetSecurityGroupsConnectionRequestBody): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/get_security_groups_request_body.py b/cloudtower/models/get_security_groups_request_body.py new file mode 100644 index 00000000..427ab4ca --- /dev/null +++ b/cloudtower/models/get_security_groups_request_body.py @@ -0,0 +1,267 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class GetSecurityGroupsRequestBody(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'after': 'str', + 'before': 'str', + 'first': 'int', + 'last': 'int', + 'order_by': 'SecurityGroupOrderByInput', + 'skip': 'int', + 'where': 'SecurityGroupWhereInput' + } + + attribute_map = { + 'after': 'after', + 'before': 'before', + 'first': 'first', + 'last': 'last', + 'order_by': 'orderBy', + 'skip': 'skip', + 'where': 'where' + } + + def __init__(self, **kwargs): # noqa: E501 + """GetSecurityGroupsRequestBody - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._after = None + self._before = None + self._first = None + self._last = None + self._order_by = None + self._skip = None + self._where = None + self.discriminator = None + + self.after = kwargs.get("after", None) + self.before = kwargs.get("before", None) + self.first = kwargs.get("first", None) + self.last = kwargs.get("last", None) + self.order_by = kwargs.get("order_by", None) + self.skip = kwargs.get("skip", None) + self.where = kwargs.get("where", None) + + @property + def after(self): + """Gets the after of this GetSecurityGroupsRequestBody. # noqa: E501 + + + :return: The after of this GetSecurityGroupsRequestBody. # noqa: E501 + :rtype: str + """ + return self._after + + @after.setter + def after(self, after): + """Sets the after of this GetSecurityGroupsRequestBody. + + + :param after: The after of this GetSecurityGroupsRequestBody. # noqa: E501 + :type after: str + """ + + self._after = after + + @property + def before(self): + """Gets the before of this GetSecurityGroupsRequestBody. # noqa: E501 + + + :return: The before of this GetSecurityGroupsRequestBody. # noqa: E501 + :rtype: str + """ + return self._before + + @before.setter + def before(self, before): + """Sets the before of this GetSecurityGroupsRequestBody. + + + :param before: The before of this GetSecurityGroupsRequestBody. # noqa: E501 + :type before: str + """ + + self._before = before + + @property + def first(self): + """Gets the first of this GetSecurityGroupsRequestBody. # noqa: E501 + + + :return: The first of this GetSecurityGroupsRequestBody. # noqa: E501 + :rtype: int + """ + return self._first + + @first.setter + def first(self, first): + """Sets the first of this GetSecurityGroupsRequestBody. + + + :param first: The first of this GetSecurityGroupsRequestBody. # noqa: E501 + :type first: int + """ + + self._first = first + + @property + def last(self): + """Gets the last of this GetSecurityGroupsRequestBody. # noqa: E501 + + + :return: The last of this GetSecurityGroupsRequestBody. # noqa: E501 + :rtype: int + """ + return self._last + + @last.setter + def last(self, last): + """Sets the last of this GetSecurityGroupsRequestBody. + + + :param last: The last of this GetSecurityGroupsRequestBody. # noqa: E501 + :type last: int + """ + + self._last = last + + @property + def order_by(self): + """Gets the order_by of this GetSecurityGroupsRequestBody. # noqa: E501 + + + :return: The order_by of this GetSecurityGroupsRequestBody. # noqa: E501 + :rtype: SecurityGroupOrderByInput + """ + return self._order_by + + @order_by.setter + def order_by(self, order_by): + """Sets the order_by of this GetSecurityGroupsRequestBody. + + + :param order_by: The order_by of this GetSecurityGroupsRequestBody. # noqa: E501 + :type order_by: SecurityGroupOrderByInput + """ + + self._order_by = order_by + + @property + def skip(self): + """Gets the skip of this GetSecurityGroupsRequestBody. # noqa: E501 + + + :return: The skip of this GetSecurityGroupsRequestBody. # noqa: E501 + :rtype: int + """ + return self._skip + + @skip.setter + def skip(self, skip): + """Sets the skip of this GetSecurityGroupsRequestBody. + + + :param skip: The skip of this GetSecurityGroupsRequestBody. # noqa: E501 + :type skip: int + """ + + self._skip = skip + + @property + def where(self): + """Gets the where of this GetSecurityGroupsRequestBody. # noqa: E501 + + + :return: The where of this GetSecurityGroupsRequestBody. # noqa: E501 + :rtype: SecurityGroupWhereInput + """ + return self._where + + @where.setter + def where(self, where): + """Sets the where of this GetSecurityGroupsRequestBody. + + + :param where: The where of this GetSecurityGroupsRequestBody. # noqa: E501 + :type where: SecurityGroupWhereInput + """ + + self._where = where + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetSecurityGroupsRequestBody): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GetSecurityGroupsRequestBody): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/get_vm_export_files_connection_request_body.py b/cloudtower/models/get_vm_export_files_connection_request_body.py new file mode 100644 index 00000000..7a0ef90a --- /dev/null +++ b/cloudtower/models/get_vm_export_files_connection_request_body.py @@ -0,0 +1,267 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class GetVmExportFilesConnectionRequestBody(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'after': 'str', + 'before': 'str', + 'first': 'int', + 'last': 'int', + 'order_by': 'VmExportFileOrderByInput', + 'skip': 'int', + 'where': 'VmExportFileWhereInput' + } + + attribute_map = { + 'after': 'after', + 'before': 'before', + 'first': 'first', + 'last': 'last', + 'order_by': 'orderBy', + 'skip': 'skip', + 'where': 'where' + } + + def __init__(self, **kwargs): # noqa: E501 + """GetVmExportFilesConnectionRequestBody - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._after = None + self._before = None + self._first = None + self._last = None + self._order_by = None + self._skip = None + self._where = None + self.discriminator = None + + self.after = kwargs.get("after", None) + self.before = kwargs.get("before", None) + self.first = kwargs.get("first", None) + self.last = kwargs.get("last", None) + self.order_by = kwargs.get("order_by", None) + self.skip = kwargs.get("skip", None) + self.where = kwargs.get("where", None) + + @property + def after(self): + """Gets the after of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + + + :return: The after of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :rtype: str + """ + return self._after + + @after.setter + def after(self, after): + """Sets the after of this GetVmExportFilesConnectionRequestBody. + + + :param after: The after of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :type after: str + """ + + self._after = after + + @property + def before(self): + """Gets the before of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + + + :return: The before of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :rtype: str + """ + return self._before + + @before.setter + def before(self, before): + """Sets the before of this GetVmExportFilesConnectionRequestBody. + + + :param before: The before of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :type before: str + """ + + self._before = before + + @property + def first(self): + """Gets the first of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + + + :return: The first of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :rtype: int + """ + return self._first + + @first.setter + def first(self, first): + """Sets the first of this GetVmExportFilesConnectionRequestBody. + + + :param first: The first of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :type first: int + """ + + self._first = first + + @property + def last(self): + """Gets the last of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + + + :return: The last of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :rtype: int + """ + return self._last + + @last.setter + def last(self, last): + """Sets the last of this GetVmExportFilesConnectionRequestBody. + + + :param last: The last of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :type last: int + """ + + self._last = last + + @property + def order_by(self): + """Gets the order_by of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + + + :return: The order_by of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :rtype: VmExportFileOrderByInput + """ + return self._order_by + + @order_by.setter + def order_by(self, order_by): + """Sets the order_by of this GetVmExportFilesConnectionRequestBody. + + + :param order_by: The order_by of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :type order_by: VmExportFileOrderByInput + """ + + self._order_by = order_by + + @property + def skip(self): + """Gets the skip of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + + + :return: The skip of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :rtype: int + """ + return self._skip + + @skip.setter + def skip(self, skip): + """Sets the skip of this GetVmExportFilesConnectionRequestBody. + + + :param skip: The skip of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :type skip: int + """ + + self._skip = skip + + @property + def where(self): + """Gets the where of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + + + :return: The where of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :rtype: VmExportFileWhereInput + """ + return self._where + + @where.setter + def where(self, where): + """Sets the where of this GetVmExportFilesConnectionRequestBody. + + + :param where: The where of this GetVmExportFilesConnectionRequestBody. # noqa: E501 + :type where: VmExportFileWhereInput + """ + + self._where = where + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetVmExportFilesConnectionRequestBody): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GetVmExportFilesConnectionRequestBody): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/get_vm_export_files_request_body.py b/cloudtower/models/get_vm_export_files_request_body.py new file mode 100644 index 00000000..3fc71ae0 --- /dev/null +++ b/cloudtower/models/get_vm_export_files_request_body.py @@ -0,0 +1,267 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class GetVmExportFilesRequestBody(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'after': 'str', + 'before': 'str', + 'first': 'int', + 'last': 'int', + 'order_by': 'VmExportFileOrderByInput', + 'skip': 'int', + 'where': 'VmExportFileWhereInput' + } + + attribute_map = { + 'after': 'after', + 'before': 'before', + 'first': 'first', + 'last': 'last', + 'order_by': 'orderBy', + 'skip': 'skip', + 'where': 'where' + } + + def __init__(self, **kwargs): # noqa: E501 + """GetVmExportFilesRequestBody - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._after = None + self._before = None + self._first = None + self._last = None + self._order_by = None + self._skip = None + self._where = None + self.discriminator = None + + self.after = kwargs.get("after", None) + self.before = kwargs.get("before", None) + self.first = kwargs.get("first", None) + self.last = kwargs.get("last", None) + self.order_by = kwargs.get("order_by", None) + self.skip = kwargs.get("skip", None) + self.where = kwargs.get("where", None) + + @property + def after(self): + """Gets the after of this GetVmExportFilesRequestBody. # noqa: E501 + + + :return: The after of this GetVmExportFilesRequestBody. # noqa: E501 + :rtype: str + """ + return self._after + + @after.setter + def after(self, after): + """Sets the after of this GetVmExportFilesRequestBody. + + + :param after: The after of this GetVmExportFilesRequestBody. # noqa: E501 + :type after: str + """ + + self._after = after + + @property + def before(self): + """Gets the before of this GetVmExportFilesRequestBody. # noqa: E501 + + + :return: The before of this GetVmExportFilesRequestBody. # noqa: E501 + :rtype: str + """ + return self._before + + @before.setter + def before(self, before): + """Sets the before of this GetVmExportFilesRequestBody. + + + :param before: The before of this GetVmExportFilesRequestBody. # noqa: E501 + :type before: str + """ + + self._before = before + + @property + def first(self): + """Gets the first of this GetVmExportFilesRequestBody. # noqa: E501 + + + :return: The first of this GetVmExportFilesRequestBody. # noqa: E501 + :rtype: int + """ + return self._first + + @first.setter + def first(self, first): + """Sets the first of this GetVmExportFilesRequestBody. + + + :param first: The first of this GetVmExportFilesRequestBody. # noqa: E501 + :type first: int + """ + + self._first = first + + @property + def last(self): + """Gets the last of this GetVmExportFilesRequestBody. # noqa: E501 + + + :return: The last of this GetVmExportFilesRequestBody. # noqa: E501 + :rtype: int + """ + return self._last + + @last.setter + def last(self, last): + """Sets the last of this GetVmExportFilesRequestBody. + + + :param last: The last of this GetVmExportFilesRequestBody. # noqa: E501 + :type last: int + """ + + self._last = last + + @property + def order_by(self): + """Gets the order_by of this GetVmExportFilesRequestBody. # noqa: E501 + + + :return: The order_by of this GetVmExportFilesRequestBody. # noqa: E501 + :rtype: VmExportFileOrderByInput + """ + return self._order_by + + @order_by.setter + def order_by(self, order_by): + """Sets the order_by of this GetVmExportFilesRequestBody. + + + :param order_by: The order_by of this GetVmExportFilesRequestBody. # noqa: E501 + :type order_by: VmExportFileOrderByInput + """ + + self._order_by = order_by + + @property + def skip(self): + """Gets the skip of this GetVmExportFilesRequestBody. # noqa: E501 + + + :return: The skip of this GetVmExportFilesRequestBody. # noqa: E501 + :rtype: int + """ + return self._skip + + @skip.setter + def skip(self, skip): + """Sets the skip of this GetVmExportFilesRequestBody. + + + :param skip: The skip of this GetVmExportFilesRequestBody. # noqa: E501 + :type skip: int + """ + + self._skip = skip + + @property + def where(self): + """Gets the where of this GetVmExportFilesRequestBody. # noqa: E501 + + + :return: The where of this GetVmExportFilesRequestBody. # noqa: E501 + :rtype: VmExportFileWhereInput + """ + return self._where + + @where.setter + def where(self, where): + """Sets the where of this GetVmExportFilesRequestBody. + + + :param where: The where of this GetVmExportFilesRequestBody. # noqa: E501 + :type where: VmExportFileWhereInput + """ + + self._where = where + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetVmExportFilesRequestBody): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GetVmExportFilesRequestBody): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/host.py b/cloudtower/models/host.py index 2d33e440..f7a672a9 100644 --- a/cloudtower/models/host.py +++ b/cloudtower/models/host.py @@ -39,6 +39,7 @@ class Host(object): 'cpu_vendor': 'str', 'data_ip': 'str', 'disks': 'list[NestedDisk]', + 'entity_async_status': 'EntityAsyncStatus', 'failure_data_space': 'int', 'hdd_data_capacity': 'int', 'hdd_disk_count': 'int', @@ -109,6 +110,7 @@ class Host(object): 'cpu_vendor': 'cpu_vendor', 'data_ip': 'data_ip', 'disks': 'disks', + 'entity_async_status': 'entityAsyncStatus', 'failure_data_space': 'failure_data_space', 'hdd_data_capacity': 'hdd_data_capacity', 'hdd_disk_count': 'hdd_disk_count', @@ -182,6 +184,7 @@ def __init__(self, **kwargs): # noqa: E501 self._cpu_vendor = None self._data_ip = None self._disks = None + self._entity_async_status = None self._failure_data_space = None self._hdd_data_capacity = None self._hdd_disk_count = None @@ -260,6 +263,7 @@ def __init__(self, **kwargs): # noqa: E501 self.cpu_vendor = kwargs.get("cpu_vendor", None) self.data_ip = kwargs.get("data_ip", None) self.disks = kwargs.get("disks", None) + self.entity_async_status = kwargs.get("entity_async_status", None) if "failure_data_space" in kwargs: self.failure_data_space = kwargs["failure_data_space"] if "hdd_data_capacity" in kwargs: @@ -653,6 +657,27 @@ def disks(self, disks): self._disks = disks + @property + def entity_async_status(self): + """Gets the entity_async_status of this Host. # noqa: E501 + + + :return: The entity_async_status of this Host. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this Host. + + + :param entity_async_status: The entity_async_status of this Host. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + @property def failure_data_space(self): """Gets the failure_data_space of this Host. # noqa: E501 diff --git a/cloudtower/models/host_order_by_input.py b/cloudtower/models/host_order_by_input.py index 48038084..8009ffac 100644 --- a/cloudtower/models/host_order_by_input.py +++ b/cloudtower/models/host_order_by_input.py @@ -38,6 +38,8 @@ class HostOrderByInput(object): CPU_VENDOR_DESC = "cpu_vendor_DESC" DATA_IP_ASC = "data_ip_ASC" DATA_IP_DESC = "data_ip_DESC" + ENTITYASYNCSTATUS_ASC = "entityAsyncStatus_ASC" + ENTITYASYNCSTATUS_DESC = "entityAsyncStatus_DESC" FAILURE_DATA_SPACE_ASC = "failure_data_space_ASC" FAILURE_DATA_SPACE_DESC = "failure_data_space_DESC" HDD_DATA_CAPACITY_ASC = "hdd_data_capacity_ASC" @@ -129,7 +131,7 @@ class HostOrderByInput(object): WITH_FASTER_SSD_AS_CACHE_ASC = "with_faster_ssd_as_cache_ASC" WITH_FASTER_SSD_AS_CACHE_DESC = "with_faster_ssd_as_cache_DESC" - allowable_values = [ACCESS_IP_ASC, ACCESS_IP_DESC, ALLOCATABLE_MEMORY_BYTES_ASC, ALLOCATABLE_MEMORY_BYTES_DESC, CHUNK_ID_ASC, CHUNK_ID_DESC, CPU_BRAND_ASC, CPU_BRAND_DESC, CPU_FAN_SPEED_UNIT_ASC, CPU_FAN_SPEED_UNIT_DESC, CPU_HZ_PER_CORE_ASC, CPU_HZ_PER_CORE_DESC, CPU_MODEL_ASC, CPU_MODEL_DESC, CPU_VENDOR_ASC, CPU_VENDOR_DESC, DATA_IP_ASC, DATA_IP_DESC, FAILURE_DATA_SPACE_ASC, FAILURE_DATA_SPACE_DESC, HDD_DATA_CAPACITY_ASC, HDD_DATA_CAPACITY_DESC, HDD_DISK_COUNT_ASC, HDD_DISK_COUNT_DESC, HYPERVISOR_IP_ASC, HYPERVISOR_IP_DESC, ID_ASC, ID_DESC, IS_OS_IN_RAID1_ASC, IS_OS_IN_RAID1_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, LSM_CAP_DISK_SAFE_UMOUNT_ASC, LSM_CAP_DISK_SAFE_UMOUNT_DESC, MANAGEMENT_IP_ASC, MANAGEMENT_IP_DESC, MODEL_ASC, MODEL_DESC, NAME_ASC, NAME_DESC, NESTED_VIRTUALIZATION_ASC, NESTED_VIRTUALIZATION_DESC, NIC_COUNT_ASC, NIC_COUNT_DESC, NODE_TOPO_LOCAL_ID_ASC, NODE_TOPO_LOCAL_ID_DESC, OS_MEMORY_BYTES_ASC, OS_MEMORY_BYTES_DESC, OS_VERSION_ASC, OS_VERSION_DESC, PMEM_DIMM_CAPACITY_ASC, PMEM_DIMM_CAPACITY_DESC, PMEM_DIMM_COUNT_ASC, PMEM_DIMM_COUNT_DESC, PMEM_DISK_COUNT_ASC, PMEM_DISK_COUNT_DESC, PROVISIONED_CPU_CORES_ASC, PROVISIONED_CPU_CORES_DESC, PROVISIONED_MEMORY_BYTES_ASC, PROVISIONED_MEMORY_BYTES_DESC, RUNNING_PAUSE_VM_MEMORY_BYTES_ASC, RUNNING_PAUSE_VM_MEMORY_BYTES_DESC, RUNNING_VM_NUM_ASC, RUNNING_VM_NUM_DESC, SCVM_CPU_ASC, SCVM_CPU_DESC, SCVM_MEMORY_ASC, SCVM_MEMORY_DESC, SCVM_NAME_ASC, SCVM_NAME_DESC, SERIAL_ASC, SERIAL_DESC, SSD_DATA_CAPACITY_ASC, SSD_DATA_CAPACITY_DESC, SSD_DISK_COUNT_ASC, SSD_DISK_COUNT_DESC, STATE_ASC, STATE_DESC, STATUS_ASC, STATUS_DESC, STOPPED_VM_NUM_ASC, STOPPED_VM_NUM_DESC, SUSPENDED_VM_NUM_ASC, SUSPENDED_VM_NUM_DESC, TOTAL_CACHE_CAPACITY_ASC, TOTAL_CACHE_CAPACITY_DESC, TOTAL_CPU_CORES_ASC, TOTAL_CPU_CORES_DESC, TOTAL_CPU_HZ_ASC, TOTAL_CPU_HZ_DESC, TOTAL_CPU_SOCKETS_ASC, TOTAL_CPU_SOCKETS_DESC, TOTAL_DATA_CAPACITY_ASC, TOTAL_DATA_CAPACITY_DESC, TOTAL_MEMORY_BYTES_ASC, TOTAL_MEMORY_BYTES_DESC, USED_CPU_HZ_ASC, USED_CPU_HZ_DESC, USED_DATA_SPACE_ASC, USED_DATA_SPACE_DESC, USED_MEMORY_BYTES_ASC, USED_MEMORY_BYTES_DESC, VM_NUM_ASC, VM_NUM_DESC, VMOTION_IP_ASC, VMOTION_IP_DESC, WITH_FASTER_SSD_AS_CACHE_ASC, WITH_FASTER_SSD_AS_CACHE_DESC] # noqa: E501 + allowable_values = [ACCESS_IP_ASC, ACCESS_IP_DESC, ALLOCATABLE_MEMORY_BYTES_ASC, ALLOCATABLE_MEMORY_BYTES_DESC, CHUNK_ID_ASC, CHUNK_ID_DESC, CPU_BRAND_ASC, CPU_BRAND_DESC, CPU_FAN_SPEED_UNIT_ASC, CPU_FAN_SPEED_UNIT_DESC, CPU_HZ_PER_CORE_ASC, CPU_HZ_PER_CORE_DESC, CPU_MODEL_ASC, CPU_MODEL_DESC, CPU_VENDOR_ASC, CPU_VENDOR_DESC, DATA_IP_ASC, DATA_IP_DESC, ENTITYASYNCSTATUS_ASC, ENTITYASYNCSTATUS_DESC, FAILURE_DATA_SPACE_ASC, FAILURE_DATA_SPACE_DESC, HDD_DATA_CAPACITY_ASC, HDD_DATA_CAPACITY_DESC, HDD_DISK_COUNT_ASC, HDD_DISK_COUNT_DESC, HYPERVISOR_IP_ASC, HYPERVISOR_IP_DESC, ID_ASC, ID_DESC, IS_OS_IN_RAID1_ASC, IS_OS_IN_RAID1_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, LSM_CAP_DISK_SAFE_UMOUNT_ASC, LSM_CAP_DISK_SAFE_UMOUNT_DESC, MANAGEMENT_IP_ASC, MANAGEMENT_IP_DESC, MODEL_ASC, MODEL_DESC, NAME_ASC, NAME_DESC, NESTED_VIRTUALIZATION_ASC, NESTED_VIRTUALIZATION_DESC, NIC_COUNT_ASC, NIC_COUNT_DESC, NODE_TOPO_LOCAL_ID_ASC, NODE_TOPO_LOCAL_ID_DESC, OS_MEMORY_BYTES_ASC, OS_MEMORY_BYTES_DESC, OS_VERSION_ASC, OS_VERSION_DESC, PMEM_DIMM_CAPACITY_ASC, PMEM_DIMM_CAPACITY_DESC, PMEM_DIMM_COUNT_ASC, PMEM_DIMM_COUNT_DESC, PMEM_DISK_COUNT_ASC, PMEM_DISK_COUNT_DESC, PROVISIONED_CPU_CORES_ASC, PROVISIONED_CPU_CORES_DESC, PROVISIONED_MEMORY_BYTES_ASC, PROVISIONED_MEMORY_BYTES_DESC, RUNNING_PAUSE_VM_MEMORY_BYTES_ASC, RUNNING_PAUSE_VM_MEMORY_BYTES_DESC, RUNNING_VM_NUM_ASC, RUNNING_VM_NUM_DESC, SCVM_CPU_ASC, SCVM_CPU_DESC, SCVM_MEMORY_ASC, SCVM_MEMORY_DESC, SCVM_NAME_ASC, SCVM_NAME_DESC, SERIAL_ASC, SERIAL_DESC, SSD_DATA_CAPACITY_ASC, SSD_DATA_CAPACITY_DESC, SSD_DISK_COUNT_ASC, SSD_DISK_COUNT_DESC, STATE_ASC, STATE_DESC, STATUS_ASC, STATUS_DESC, STOPPED_VM_NUM_ASC, STOPPED_VM_NUM_DESC, SUSPENDED_VM_NUM_ASC, SUSPENDED_VM_NUM_DESC, TOTAL_CACHE_CAPACITY_ASC, TOTAL_CACHE_CAPACITY_DESC, TOTAL_CPU_CORES_ASC, TOTAL_CPU_CORES_DESC, TOTAL_CPU_HZ_ASC, TOTAL_CPU_HZ_DESC, TOTAL_CPU_SOCKETS_ASC, TOTAL_CPU_SOCKETS_DESC, TOTAL_DATA_CAPACITY_ASC, TOTAL_DATA_CAPACITY_DESC, TOTAL_MEMORY_BYTES_ASC, TOTAL_MEMORY_BYTES_DESC, USED_CPU_HZ_ASC, USED_CPU_HZ_DESC, USED_DATA_SPACE_ASC, USED_DATA_SPACE_DESC, USED_MEMORY_BYTES_ASC, USED_MEMORY_BYTES_DESC, VM_NUM_ASC, VM_NUM_DESC, VMOTION_IP_ASC, VMOTION_IP_DESC, WITH_FASTER_SSD_AS_CACHE_ASC, WITH_FASTER_SSD_AS_CACHE_DESC] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/host_where_input.py b/cloudtower/models/host_where_input.py index 2941b494..1c46ef65 100644 --- a/cloudtower/models/host_where_input.py +++ b/cloudtower/models/host_where_input.py @@ -134,6 +134,10 @@ class HostWhereInput(object): 'disks_every': 'DiskWhereInput', 'disks_none': 'DiskWhereInput', 'disks_some': 'DiskWhereInput', + 'entity_async_status': 'EntityAsyncStatus', + 'entity_async_status_in': 'list[EntityAsyncStatus]', + 'entity_async_status_not': 'EntityAsyncStatus', + 'entity_async_status_not_in': 'list[EntityAsyncStatus]', 'failure_data_space': 'int', 'failure_data_space_gt': 'int', 'failure_data_space_gte': 'int', @@ -660,6 +664,10 @@ class HostWhereInput(object): 'disks_every': 'disks_every', 'disks_none': 'disks_none', 'disks_some': 'disks_some', + 'entity_async_status': 'entityAsyncStatus', + 'entity_async_status_in': 'entityAsyncStatus_in', + 'entity_async_status_not': 'entityAsyncStatus_not', + 'entity_async_status_not_in': 'entityAsyncStatus_not_in', 'failure_data_space': 'failure_data_space', 'failure_data_space_gt': 'failure_data_space_gt', 'failure_data_space_gte': 'failure_data_space_gte', @@ -1189,6 +1197,10 @@ def __init__(self, **kwargs): # noqa: E501 self._disks_every = None self._disks_none = None self._disks_some = None + self._entity_async_status = None + self._entity_async_status_in = None + self._entity_async_status_not = None + self._entity_async_status_not_in = None self._failure_data_space = None self._failure_data_space_gt = None self._failure_data_space_gte = None @@ -1714,6 +1726,10 @@ def __init__(self, **kwargs): # noqa: E501 self.disks_every = kwargs.get("disks_every", None) self.disks_none = kwargs.get("disks_none", None) self.disks_some = kwargs.get("disks_some", None) + self.entity_async_status = kwargs.get("entity_async_status", None) + self.entity_async_status_in = kwargs.get("entity_async_status_in", None) + self.entity_async_status_not = kwargs.get("entity_async_status_not", None) + self.entity_async_status_not_in = kwargs.get("entity_async_status_not_in", None) self.failure_data_space = kwargs.get("failure_data_space", None) self.failure_data_space_gt = kwargs.get("failure_data_space_gt", None) self.failure_data_space_gte = kwargs.get("failure_data_space_gte", None) @@ -4418,6 +4434,90 @@ def disks_some(self, disks_some): self._disks_some = disks_some + @property + def entity_async_status(self): + """Gets the entity_async_status of this HostWhereInput. # noqa: E501 + + + :return: The entity_async_status of this HostWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this HostWhereInput. + + + :param entity_async_status: The entity_async_status of this HostWhereInput. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + + @property + def entity_async_status_in(self): + """Gets the entity_async_status_in of this HostWhereInput. # noqa: E501 + + + :return: The entity_async_status_in of this HostWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_in + + @entity_async_status_in.setter + def entity_async_status_in(self, entity_async_status_in): + """Sets the entity_async_status_in of this HostWhereInput. + + + :param entity_async_status_in: The entity_async_status_in of this HostWhereInput. # noqa: E501 + :type entity_async_status_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_in = entity_async_status_in + + @property + def entity_async_status_not(self): + """Gets the entity_async_status_not of this HostWhereInput. # noqa: E501 + + + :return: The entity_async_status_not of this HostWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status_not + + @entity_async_status_not.setter + def entity_async_status_not(self, entity_async_status_not): + """Sets the entity_async_status_not of this HostWhereInput. + + + :param entity_async_status_not: The entity_async_status_not of this HostWhereInput. # noqa: E501 + :type entity_async_status_not: EntityAsyncStatus + """ + + self._entity_async_status_not = entity_async_status_not + + @property + def entity_async_status_not_in(self): + """Gets the entity_async_status_not_in of this HostWhereInput. # noqa: E501 + + + :return: The entity_async_status_not_in of this HostWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_not_in + + @entity_async_status_not_in.setter + def entity_async_status_not_in(self, entity_async_status_not_in): + """Sets the entity_async_status_not_in of this HostWhereInput. + + + :param entity_async_status_not_in: The entity_async_status_not_in of this HostWhereInput. # noqa: E501 + :type entity_async_status_not_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_not_in = entity_async_status_not_in + @property def failure_data_space(self): """Gets the failure_data_space of this HostWhereInput. # noqa: E501 diff --git a/cloudtower/models/ip_security_policy.py b/cloudtower/models/ip_security_policy.py new file mode 100644 index 00000000..d04fa11f --- /dev/null +++ b/cloudtower/models/ip_security_policy.py @@ -0,0 +1,146 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class IPSecurityPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'except_ip_block': 'list[str]', + 'ip_block': 'str' + } + + attribute_map = { + 'except_ip_block': 'except_ip_block', + 'ip_block': 'ip_block' + } + + def __init__(self, **kwargs): # noqa: E501 + """IPSecurityPolicy - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._except_ip_block = None + self._ip_block = None + self.discriminator = None + + if "except_ip_block" in kwargs: + self.except_ip_block = kwargs["except_ip_block"] + if "ip_block" in kwargs: + self.ip_block = kwargs["ip_block"] + + @property + def except_ip_block(self): + """Gets the except_ip_block of this IPSecurityPolicy. # noqa: E501 + + + :return: The except_ip_block of this IPSecurityPolicy. # noqa: E501 + :rtype: list[str] + """ + return self._except_ip_block + + @except_ip_block.setter + def except_ip_block(self, except_ip_block): + """Sets the except_ip_block of this IPSecurityPolicy. + + + :param except_ip_block: The except_ip_block of this IPSecurityPolicy. # noqa: E501 + :type except_ip_block: list[str] + """ + + self._except_ip_block = except_ip_block + + @property + def ip_block(self): + """Gets the ip_block of this IPSecurityPolicy. # noqa: E501 + + + :return: The ip_block of this IPSecurityPolicy. # noqa: E501 + :rtype: str + """ + return self._ip_block + + @ip_block.setter + def ip_block(self, ip_block): + """Sets the ip_block of this IPSecurityPolicy. + + + :param ip_block: The ip_block of this IPSecurityPolicy. # noqa: E501 + :type ip_block: str + """ + if self.local_vars_configuration.client_side_validation and ip_block is None: # noqa: E501 + raise ValueError("Invalid value for `ip_block`, must not be `None`") # noqa: E501 + + self._ip_block = ip_block + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IPSecurityPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, IPSecurityPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/login_input.py b/cloudtower/models/login_input.py index 2b8dc14d..20455a80 100644 --- a/cloudtower/models/login_input.py +++ b/cloudtower/models/login_input.py @@ -27,13 +27,17 @@ class LoginInput(object): openapi_types = { 'username': 'str', 'source': 'UserSource', - 'password': 'str' + 'password': 'str', + 'mfa_type': 'MfaType', + 'auth_config_id': 'str' } attribute_map = { 'username': 'username', 'source': 'source', - 'password': 'password' + 'password': 'password', + 'mfa_type': 'mfa_type', + 'auth_config_id': 'auth_config_id' } def __init__(self, **kwargs): # noqa: E501 @@ -43,14 +47,17 @@ def __init__(self, **kwargs): # noqa: E501 self._username = None self._source = None self._password = None + self._mfa_type = None + self._auth_config_id = None self.discriminator = None if "username" in kwargs: self.username = kwargs["username"] - if "source" in kwargs: - self.source = kwargs["source"] + self.source = kwargs.get("source", None) if "password" in kwargs: self.password = kwargs["password"] + self.mfa_type = kwargs.get("mfa_type", None) + self.auth_config_id = kwargs.get("auth_config_id", None) @property def username(self): @@ -93,8 +100,6 @@ def source(self, source): :param source: The source of this LoginInput. # noqa: E501 :type source: UserSource """ - if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 - raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 self._source = source @@ -121,6 +126,48 @@ def password(self, password): self._password = password + @property + def mfa_type(self): + """Gets the mfa_type of this LoginInput. # noqa: E501 + + + :return: The mfa_type of this LoginInput. # noqa: E501 + :rtype: MfaType + """ + return self._mfa_type + + @mfa_type.setter + def mfa_type(self, mfa_type): + """Sets the mfa_type of this LoginInput. + + + :param mfa_type: The mfa_type of this LoginInput. # noqa: E501 + :type mfa_type: MfaType + """ + + self._mfa_type = mfa_type + + @property + def auth_config_id(self): + """Gets the auth_config_id of this LoginInput. # noqa: E501 + + + :return: The auth_config_id of this LoginInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id + + @auth_config_id.setter + def auth_config_id(self, auth_config_id): + """Sets the auth_config_id of this LoginInput. + + + :param auth_config_id: The auth_config_id of this LoginInput. # noqa: E501 + :type auth_config_id: str + """ + + self._auth_config_id = auth_config_id + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/cloudtower/models/metric_label.py b/cloudtower/models/metric_label.py index fa28154d..8773f369 100644 --- a/cloudtower/models/metric_label.py +++ b/cloudtower/models/metric_label.py @@ -42,6 +42,7 @@ class MetricLabel(object): 'network': 'str', 'mac': 'str', 'host': 'str', + 'esxi_uuid': 'str', 'device': 'str', 'cluster': 'str', 'chunk': 'str', @@ -66,6 +67,7 @@ class MetricLabel(object): 'network': '_network', 'mac': '_mac', 'host': '_host', + 'esxi_uuid': '_esxi_uuid', 'device': '_device', 'cluster': '_cluster', 'chunk': '_chunk', @@ -93,6 +95,7 @@ def __init__(self, **kwargs): # noqa: E501 self._network = None self._mac = None self._host = None + self._esxi_uuid = None self._device = None self._cluster = None self._chunk = None @@ -116,6 +119,7 @@ def __init__(self, **kwargs): # noqa: E501 self.network = kwargs.get("network", None) self.mac = kwargs.get("mac", None) self.host = kwargs.get("host", None) + self.esxi_uuid = kwargs.get("esxi_uuid", None) self.device = kwargs.get("device", None) self.cluster = kwargs.get("cluster", None) self.chunk = kwargs.get("chunk", None) @@ -479,6 +483,27 @@ def host(self, host): self._host = host + @property + def esxi_uuid(self): + """Gets the esxi_uuid of this MetricLabel. # noqa: E501 + + + :return: The esxi_uuid of this MetricLabel. # noqa: E501 + :rtype: str + """ + return self._esxi_uuid + + @esxi_uuid.setter + def esxi_uuid(self, esxi_uuid): + """Sets the esxi_uuid of this MetricLabel. + + + :param esxi_uuid: The esxi_uuid of this MetricLabel. # noqa: E501 + :type esxi_uuid: str + """ + + self._esxi_uuid = esxi_uuid + @property def device(self): """Gets the device of this MetricLabel. # noqa: E501 diff --git a/cloudtower/models/mfa_type.py b/cloudtower/models/mfa_type.py new file mode 100644 index 00000000..8eea47c8 --- /dev/null +++ b/cloudtower/models/mfa_type.py @@ -0,0 +1,97 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class MfaType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + MAIL = "Mail" + + allowable_values = [MAIL] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, **kwargs): # noqa: E501 + """MfaType - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + self.discriminator = None + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MfaType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MfaType): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/nested_aggregate_security_group.py b/cloudtower/models/nested_aggregate_security_group.py new file mode 100644 index 00000000..5980a0e1 --- /dev/null +++ b/cloudtower/models/nested_aggregate_security_group.py @@ -0,0 +1,120 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class NestedAggregateSecurityGroup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'count': 'int' + } + + attribute_map = { + 'count': 'count' + } + + def __init__(self, **kwargs): # noqa: E501 + """NestedAggregateSecurityGroup - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._count = None + self.discriminator = None + + if "count" in kwargs: + self.count = kwargs["count"] + + @property + def count(self): + """Gets the count of this NestedAggregateSecurityGroup. # noqa: E501 + + + :return: The count of this NestedAggregateSecurityGroup. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this NestedAggregateSecurityGroup. + + + :param count: The count of this NestedAggregateSecurityGroup. # noqa: E501 + :type count: int + """ + if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501 + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NestedAggregateSecurityGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NestedAggregateSecurityGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/nested_aggregate_vm_export_file.py b/cloudtower/models/nested_aggregate_vm_export_file.py new file mode 100644 index 00000000..cf51f0d1 --- /dev/null +++ b/cloudtower/models/nested_aggregate_vm_export_file.py @@ -0,0 +1,120 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class NestedAggregateVmExportFile(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'count': 'int' + } + + attribute_map = { + 'count': 'count' + } + + def __init__(self, **kwargs): # noqa: E501 + """NestedAggregateVmExportFile - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._count = None + self.discriminator = None + + if "count" in kwargs: + self.count = kwargs["count"] + + @property + def count(self): + """Gets the count of this NestedAggregateVmExportFile. # noqa: E501 + + + :return: The count of this NestedAggregateVmExportFile. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this NestedAggregateVmExportFile. + + + :param count: The count of this NestedAggregateVmExportFile. # noqa: E501 + :type count: int + """ + if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501 + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NestedAggregateVmExportFile): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NestedAggregateVmExportFile): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/nested_label_group.py b/cloudtower/models/nested_label_group.py new file mode 100644 index 00000000..95c18c4a --- /dev/null +++ b/cloudtower/models/nested_label_group.py @@ -0,0 +1,120 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class NestedLabelGroup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'labels': 'list[NestedLabel]' + } + + attribute_map = { + 'labels': 'labels' + } + + def __init__(self, **kwargs): # noqa: E501 + """NestedLabelGroup - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._labels = None + self.discriminator = None + + if "labels" in kwargs: + self.labels = kwargs["labels"] + + @property + def labels(self): + """Gets the labels of this NestedLabelGroup. # noqa: E501 + + + :return: The labels of this NestedLabelGroup. # noqa: E501 + :rtype: list[NestedLabel] + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this NestedLabelGroup. + + + :param labels: The labels of this NestedLabelGroup. # noqa: E501 + :type labels: list[NestedLabel] + """ + if self.local_vars_configuration.client_side_validation and labels is None: # noqa: E501 + raise ValueError("Invalid value for `labels`, must not be `None`") # noqa: E501 + + self._labels = labels + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NestedLabelGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NestedLabelGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/network_policy_rule_port_input.py b/cloudtower/models/network_policy_rule_port_input.py new file mode 100644 index 00000000..95a37854 --- /dev/null +++ b/cloudtower/models/network_policy_rule_port_input.py @@ -0,0 +1,146 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class NetworkPolicyRulePortInput(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'protocol': 'NetworkPolicyRulePortProtocol', + 'port': 'str' + } + + attribute_map = { + 'protocol': 'protocol', + 'port': 'port' + } + + def __init__(self, **kwargs): # noqa: E501 + """NetworkPolicyRulePortInput - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._protocol = None + self._port = None + self.discriminator = None + + if "protocol" in kwargs: + self.protocol = kwargs["protocol"] + if "port" in kwargs: + self.port = kwargs["port"] + + @property + def protocol(self): + """Gets the protocol of this NetworkPolicyRulePortInput. # noqa: E501 + + + :return: The protocol of this NetworkPolicyRulePortInput. # noqa: E501 + :rtype: NetworkPolicyRulePortProtocol + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this NetworkPolicyRulePortInput. + + + :param protocol: The protocol of this NetworkPolicyRulePortInput. # noqa: E501 + :type protocol: NetworkPolicyRulePortProtocol + """ + if self.local_vars_configuration.client_side_validation and protocol is None: # noqa: E501 + raise ValueError("Invalid value for `protocol`, must not be `None`") # noqa: E501 + + self._protocol = protocol + + @property + def port(self): + """Gets the port of this NetworkPolicyRulePortInput. # noqa: E501 + + + :return: The port of this NetworkPolicyRulePortInput. # noqa: E501 + :rtype: str + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this NetworkPolicyRulePortInput. + + + :param port: The port of this NetworkPolicyRulePortInput. # noqa: E501 + :type port: str + """ + + self._port = port + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworkPolicyRulePortInput): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NetworkPolicyRulePortInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/nic.py b/cloudtower/models/nic.py index 032fa063..3f1b268e 100644 --- a/cloudtower/models/nic.py +++ b/cloudtower/models/nic.py @@ -27,6 +27,7 @@ class Nic(object): openapi_types = { 'driver': 'str', 'driver_state': 'NicDriverState', + 'entity_async_status': 'EntityAsyncStatus', 'gateway_ip': 'str', 'host': 'NestedHost', 'ibdev': 'str', @@ -56,6 +57,7 @@ class Nic(object): attribute_map = { 'driver': 'driver', 'driver_state': 'driver_state', + 'entity_async_status': 'entityAsyncStatus', 'gateway_ip': 'gateway_ip', 'host': 'host', 'ibdev': 'ibdev', @@ -88,6 +90,7 @@ def __init__(self, **kwargs): # noqa: E501 self._driver = None self._driver_state = None + self._entity_async_status = None self._gateway_ip = None self._host = None self._ibdev = None @@ -116,6 +119,7 @@ def __init__(self, **kwargs): # noqa: E501 self.driver = kwargs.get("driver", None) self.driver_state = kwargs.get("driver_state", None) + self.entity_async_status = kwargs.get("entity_async_status", None) self.gateway_ip = kwargs.get("gateway_ip", None) if "host" in kwargs: self.host = kwargs["host"] @@ -192,6 +196,27 @@ def driver_state(self, driver_state): self._driver_state = driver_state + @property + def entity_async_status(self): + """Gets the entity_async_status of this Nic. # noqa: E501 + + + :return: The entity_async_status of this Nic. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this Nic. + + + :param entity_async_status: The entity_async_status of this Nic. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + @property def gateway_ip(self): """Gets the gateway_ip of this Nic. # noqa: E501 diff --git a/cloudtower/models/nic_order_by_input.py b/cloudtower/models/nic_order_by_input.py index 180ee82a..a36cb814 100644 --- a/cloudtower/models/nic_order_by_input.py +++ b/cloudtower/models/nic_order_by_input.py @@ -24,6 +24,8 @@ class NicOrderByInput(object): DRIVER_DESC = "driver_DESC" DRIVER_STATE_ASC = "driver_state_ASC" DRIVER_STATE_DESC = "driver_state_DESC" + ENTITYASYNCSTATUS_ASC = "entityAsyncStatus_ASC" + ENTITYASYNCSTATUS_DESC = "entityAsyncStatus_DESC" GATEWAY_IP_ASC = "gateway_ip_ASC" GATEWAY_IP_DESC = "gateway_ip_DESC" IBDEV_ASC = "ibdev_ASC" @@ -67,7 +69,7 @@ class NicOrderByInput(object): USED_VF_NUM_ASC = "used_vf_num_ASC" USED_VF_NUM_DESC = "used_vf_num_DESC" - allowable_values = [DRIVER_ASC, DRIVER_DESC, DRIVER_STATE_ASC, DRIVER_STATE_DESC, GATEWAY_IP_ASC, GATEWAY_IP_DESC, IBDEV_ASC, IBDEV_DESC, ID_ASC, ID_DESC, IP_ADDRESS_ASC, IP_ADDRESS_DESC, IS_SRIOV_ASC, IS_SRIOV_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, MAC_ADDRESS_ASC, MAC_ADDRESS_DESC, MAX_VF_NUM_ASC, MAX_VF_NUM_DESC, MODEL_ASC, MODEL_DESC, MTU_ASC, MTU_DESC, NAME_ASC, NAME_DESC, NIC_UUID_ASC, NIC_UUID_DESC, PHYSICAL_ASC, PHYSICAL_DESC, RDMA_ENABLED_ASC, RDMA_ENABLED_DESC, RUNNING_ASC, RUNNING_DESC, SPEED_ASC, SPEED_DESC, SUBNET_MASK_ASC, SUBNET_MASK_DESC, TOTAL_VF_NUM_ASC, TOTAL_VF_NUM_DESC, TYPE_ASC, TYPE_DESC, UP_ASC, UP_DESC, USED_VF_NUM_ASC, USED_VF_NUM_DESC] # noqa: E501 + allowable_values = [DRIVER_ASC, DRIVER_DESC, DRIVER_STATE_ASC, DRIVER_STATE_DESC, ENTITYASYNCSTATUS_ASC, ENTITYASYNCSTATUS_DESC, GATEWAY_IP_ASC, GATEWAY_IP_DESC, IBDEV_ASC, IBDEV_DESC, ID_ASC, ID_DESC, IP_ADDRESS_ASC, IP_ADDRESS_DESC, IS_SRIOV_ASC, IS_SRIOV_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, MAC_ADDRESS_ASC, MAC_ADDRESS_DESC, MAX_VF_NUM_ASC, MAX_VF_NUM_DESC, MODEL_ASC, MODEL_DESC, MTU_ASC, MTU_DESC, NAME_ASC, NAME_DESC, NIC_UUID_ASC, NIC_UUID_DESC, PHYSICAL_ASC, PHYSICAL_DESC, RDMA_ENABLED_ASC, RDMA_ENABLED_DESC, RUNNING_ASC, RUNNING_DESC, SPEED_ASC, SPEED_DESC, SUBNET_MASK_ASC, SUBNET_MASK_DESC, TOTAL_VF_NUM_ASC, TOTAL_VF_NUM_DESC, TYPE_ASC, TYPE_DESC, UP_ASC, UP_DESC, USED_VF_NUM_ASC, USED_VF_NUM_DESC] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/nic_where_input.py b/cloudtower/models/nic_where_input.py index 4a7bdeb4..cdb20a89 100644 --- a/cloudtower/models/nic_where_input.py +++ b/cloudtower/models/nic_where_input.py @@ -44,6 +44,10 @@ class NicWhereInput(object): 'driver_state_in': 'list[NicDriverState]', 'driver_state_not': 'NicDriverState', 'driver_state_not_in': 'list[NicDriverState]', + 'entity_async_status': 'EntityAsyncStatus', + 'entity_async_status_in': 'list[EntityAsyncStatus]', + 'entity_async_status_not': 'EntityAsyncStatus', + 'entity_async_status_not_in': 'list[EntityAsyncStatus]', 'gateway_ip': 'str', 'gateway_ip_contains': 'str', 'gateway_ip_ends_with': 'str', @@ -267,6 +271,10 @@ class NicWhereInput(object): 'driver_state_in': 'driver_state_in', 'driver_state_not': 'driver_state_not', 'driver_state_not_in': 'driver_state_not_in', + 'entity_async_status': 'entityAsyncStatus', + 'entity_async_status_in': 'entityAsyncStatus_in', + 'entity_async_status_not': 'entityAsyncStatus_not', + 'entity_async_status_not_in': 'entityAsyncStatus_not_in', 'gateway_ip': 'gateway_ip', 'gateway_ip_contains': 'gateway_ip_contains', 'gateway_ip_ends_with': 'gateway_ip_ends_with', @@ -493,6 +501,10 @@ def __init__(self, **kwargs): # noqa: E501 self._driver_state_in = None self._driver_state_not = None self._driver_state_not_in = None + self._entity_async_status = None + self._entity_async_status_in = None + self._entity_async_status_not = None + self._entity_async_status_not_in = None self._gateway_ip = None self._gateway_ip_contains = None self._gateway_ip_ends_with = None @@ -715,6 +727,10 @@ def __init__(self, **kwargs): # noqa: E501 self.driver_state_in = kwargs.get("driver_state_in", None) self.driver_state_not = kwargs.get("driver_state_not", None) self.driver_state_not_in = kwargs.get("driver_state_not_in", None) + self.entity_async_status = kwargs.get("entity_async_status", None) + self.entity_async_status_in = kwargs.get("entity_async_status_in", None) + self.entity_async_status_not = kwargs.get("entity_async_status_not", None) + self.entity_async_status_not_in = kwargs.get("entity_async_status_not_in", None) self.gateway_ip = kwargs.get("gateway_ip", None) self.gateway_ip_contains = kwargs.get("gateway_ip_contains", None) self.gateway_ip_ends_with = kwargs.get("gateway_ip_ends_with", None) @@ -1316,6 +1332,90 @@ def driver_state_not_in(self, driver_state_not_in): self._driver_state_not_in = driver_state_not_in + @property + def entity_async_status(self): + """Gets the entity_async_status of this NicWhereInput. # noqa: E501 + + + :return: The entity_async_status of this NicWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this NicWhereInput. + + + :param entity_async_status: The entity_async_status of this NicWhereInput. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + + @property + def entity_async_status_in(self): + """Gets the entity_async_status_in of this NicWhereInput. # noqa: E501 + + + :return: The entity_async_status_in of this NicWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_in + + @entity_async_status_in.setter + def entity_async_status_in(self, entity_async_status_in): + """Sets the entity_async_status_in of this NicWhereInput. + + + :param entity_async_status_in: The entity_async_status_in of this NicWhereInput. # noqa: E501 + :type entity_async_status_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_in = entity_async_status_in + + @property + def entity_async_status_not(self): + """Gets the entity_async_status_not of this NicWhereInput. # noqa: E501 + + + :return: The entity_async_status_not of this NicWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status_not + + @entity_async_status_not.setter + def entity_async_status_not(self, entity_async_status_not): + """Sets the entity_async_status_not of this NicWhereInput. + + + :param entity_async_status_not: The entity_async_status_not of this NicWhereInput. # noqa: E501 + :type entity_async_status_not: EntityAsyncStatus + """ + + self._entity_async_status_not = entity_async_status_not + + @property + def entity_async_status_not_in(self): + """Gets the entity_async_status_not_in of this NicWhereInput. # noqa: E501 + + + :return: The entity_async_status_not_in of this NicWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_not_in + + @entity_async_status_not_in.setter + def entity_async_status_not_in(self, entity_async_status_not_in): + """Sets the entity_async_status_not_in of this NicWhereInput. + + + :param entity_async_status_not_in: The entity_async_status_not_in of this NicWhereInput. # noqa: E501 + :type entity_async_status_not_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_not_in = entity_async_status_not_in + @property def gateway_ip(self): """Gets the gateway_ip of this NicWhereInput. # noqa: E501 diff --git a/cloudtower/models/ovf_cpu.py b/cloudtower/models/ovf_cpu.py new file mode 100644 index 00000000..4fcff5c1 --- /dev/null +++ b/cloudtower/models/ovf_cpu.py @@ -0,0 +1,148 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class OvfCpu(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'sockets': 'int', + 'cores': 'int' + } + + attribute_map = { + 'sockets': 'sockets', + 'cores': 'cores' + } + + def __init__(self, **kwargs): # noqa: E501 + """OvfCpu - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._sockets = None + self._cores = None + self.discriminator = None + + if "sockets" in kwargs: + self.sockets = kwargs["sockets"] + if "cores" in kwargs: + self.cores = kwargs["cores"] + + @property + def sockets(self): + """Gets the sockets of this OvfCpu. # noqa: E501 + + + :return: The sockets of this OvfCpu. # noqa: E501 + :rtype: int + """ + return self._sockets + + @sockets.setter + def sockets(self, sockets): + """Sets the sockets of this OvfCpu. + + + :param sockets: The sockets of this OvfCpu. # noqa: E501 + :type sockets: int + """ + if self.local_vars_configuration.client_side_validation and sockets is None: # noqa: E501 + raise ValueError("Invalid value for `sockets`, must not be `None`") # noqa: E501 + + self._sockets = sockets + + @property + def cores(self): + """Gets the cores of this OvfCpu. # noqa: E501 + + + :return: The cores of this OvfCpu. # noqa: E501 + :rtype: int + """ + return self._cores + + @cores.setter + def cores(self, cores): + """Sets the cores of this OvfCpu. + + + :param cores: The cores of this OvfCpu. # noqa: E501 + :type cores: int + """ + if self.local_vars_configuration.client_side_validation and cores is None: # noqa: E501 + raise ValueError("Invalid value for `cores`, must not be `None`") # noqa: E501 + + self._cores = cores + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OvfCpu): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, OvfCpu): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/ovf_disk.py b/cloudtower/models/ovf_disk.py new file mode 100644 index 00000000..a2c85b03 --- /dev/null +++ b/cloudtower/models/ovf_disk.py @@ -0,0 +1,204 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class OvfDisk(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'size': 'int', + 'type': 'VmDiskType', + 'bus': 'Bus', + 'name': 'str' + } + + attribute_map = { + 'size': 'size', + 'type': 'type', + 'bus': 'bus', + 'name': 'name' + } + + def __init__(self, **kwargs): # noqa: E501 + """OvfDisk - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._size = None + self._type = None + self._bus = None + self._name = None + self.discriminator = None + + if "size" in kwargs: + self.size = kwargs["size"] + if "type" in kwargs: + self.type = kwargs["type"] + if "bus" in kwargs: + self.bus = kwargs["bus"] + if "name" in kwargs: + self.name = kwargs["name"] + + @property + def size(self): + """Gets the size of this OvfDisk. # noqa: E501 + + + :return: The size of this OvfDisk. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this OvfDisk. + + + :param size: The size of this OvfDisk. # noqa: E501 + :type size: int + """ + if self.local_vars_configuration.client_side_validation and size is None: # noqa: E501 + raise ValueError("Invalid value for `size`, must not be `None`") # noqa: E501 + + self._size = size + + @property + def type(self): + """Gets the type of this OvfDisk. # noqa: E501 + + + :return: The type of this OvfDisk. # noqa: E501 + :rtype: VmDiskType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this OvfDisk. + + + :param type: The type of this OvfDisk. # noqa: E501 + :type type: VmDiskType + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def bus(self): + """Gets the bus of this OvfDisk. # noqa: E501 + + + :return: The bus of this OvfDisk. # noqa: E501 + :rtype: Bus + """ + return self._bus + + @bus.setter + def bus(self, bus): + """Sets the bus of this OvfDisk. + + + :param bus: The bus of this OvfDisk. # noqa: E501 + :type bus: Bus + """ + if self.local_vars_configuration.client_side_validation and bus is None: # noqa: E501 + raise ValueError("Invalid value for `bus`, must not be `None`") # noqa: E501 + + self._bus = bus + + @property + def name(self): + """Gets the name of this OvfDisk. # noqa: E501 + + + :return: The name of this OvfDisk. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this OvfDisk. + + + :param name: The name of this OvfDisk. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OvfDisk): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, OvfDisk): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/ovf_disk_operate.py b/cloudtower/models/ovf_disk_operate.py new file mode 100644 index 00000000..721325a5 --- /dev/null +++ b/cloudtower/models/ovf_disk_operate.py @@ -0,0 +1,170 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class OvfDiskOperate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'new_disks': 'VmDiskParams', + 'modify_cd_roms': 'list[VmdkCdromModify]', + 'modify_vmdk_disks': 'list[VmdkDiskModify]' + } + + attribute_map = { + 'new_disks': 'new_disks', + 'modify_cd_roms': 'modify_cd_roms', + 'modify_vmdk_disks': 'modify_vmdk_disks' + } + + def __init__(self, **kwargs): # noqa: E501 + """OvfDiskOperate - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._new_disks = None + self._modify_cd_roms = None + self._modify_vmdk_disks = None + self.discriminator = None + + if "new_disks" in kwargs: + self.new_disks = kwargs["new_disks"] + if "modify_cd_roms" in kwargs: + self.modify_cd_roms = kwargs["modify_cd_roms"] + if "modify_vmdk_disks" in kwargs: + self.modify_vmdk_disks = kwargs["modify_vmdk_disks"] + + @property + def new_disks(self): + """Gets the new_disks of this OvfDiskOperate. # noqa: E501 + + + :return: The new_disks of this OvfDiskOperate. # noqa: E501 + :rtype: VmDiskParams + """ + return self._new_disks + + @new_disks.setter + def new_disks(self, new_disks): + """Sets the new_disks of this OvfDiskOperate. + + + :param new_disks: The new_disks of this OvfDiskOperate. # noqa: E501 + :type new_disks: VmDiskParams + """ + + self._new_disks = new_disks + + @property + def modify_cd_roms(self): + """Gets the modify_cd_roms of this OvfDiskOperate. # noqa: E501 + + + :return: The modify_cd_roms of this OvfDiskOperate. # noqa: E501 + :rtype: list[VmdkCdromModify] + """ + return self._modify_cd_roms + + @modify_cd_roms.setter + def modify_cd_roms(self, modify_cd_roms): + """Sets the modify_cd_roms of this OvfDiskOperate. + + + :param modify_cd_roms: The modify_cd_roms of this OvfDiskOperate. # noqa: E501 + :type modify_cd_roms: list[VmdkCdromModify] + """ + + self._modify_cd_roms = modify_cd_roms + + @property + def modify_vmdk_disks(self): + """Gets the modify_vmdk_disks of this OvfDiskOperate. # noqa: E501 + + + :return: The modify_vmdk_disks of this OvfDiskOperate. # noqa: E501 + :rtype: list[VmdkDiskModify] + """ + return self._modify_vmdk_disks + + @modify_vmdk_disks.setter + def modify_vmdk_disks(self, modify_vmdk_disks): + """Sets the modify_vmdk_disks of this OvfDiskOperate. + + + :param modify_vmdk_disks: The modify_vmdk_disks of this OvfDiskOperate. # noqa: E501 + :type modify_vmdk_disks: list[VmdkDiskModify] + """ + + self._modify_vmdk_disks = modify_vmdk_disks + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OvfDiskOperate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, OvfDiskOperate): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/ovf_nic.py b/cloudtower/models/ovf_nic.py new file mode 100644 index 00000000..979b1900 --- /dev/null +++ b/cloudtower/models/ovf_nic.py @@ -0,0 +1,120 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class OvfNic(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'mac': 'str' + } + + attribute_map = { + 'mac': 'mac' + } + + def __init__(self, **kwargs): # noqa: E501 + """OvfNic - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._mac = None + self.discriminator = None + + if "mac" in kwargs: + self.mac = kwargs["mac"] + + @property + def mac(self): + """Gets the mac of this OvfNic. # noqa: E501 + + + :return: The mac of this OvfNic. # noqa: E501 + :rtype: str + """ + return self._mac + + @mac.setter + def mac(self, mac): + """Sets the mac of this OvfNic. + + + :param mac: The mac of this OvfNic. # noqa: E501 + :type mac: str + """ + if self.local_vars_configuration.client_side_validation and mac is None: # noqa: E501 + raise ValueError("Invalid value for `mac`, must not be `None`") # noqa: E501 + + self._mac = mac + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OvfNic): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, OvfNic): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/parsed_ovf.py b/cloudtower/models/parsed_ovf.py new file mode 100644 index 00000000..5c4db88c --- /dev/null +++ b/cloudtower/models/parsed_ovf.py @@ -0,0 +1,314 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class ParsedOVF(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'firmware': 'VmFirmware', + 'disks': 'list[OvfDisk]', + 'nics': 'list[OvfNic]', + 'memory': 'int', + 'cpu': 'OvfCpu', + 'vcpu': 'int', + 'description': 'str', + 'name': 'str' + } + + attribute_map = { + 'firmware': 'firmware', + 'disks': 'disks', + 'nics': 'nics', + 'memory': 'memory', + 'cpu': 'cpu', + 'vcpu': 'vcpu', + 'description': 'description', + 'name': 'name' + } + + def __init__(self, **kwargs): # noqa: E501 + """ParsedOVF - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._firmware = None + self._disks = None + self._nics = None + self._memory = None + self._cpu = None + self._vcpu = None + self._description = None + self._name = None + self.discriminator = None + + if "firmware" in kwargs: + self.firmware = kwargs["firmware"] + if "disks" in kwargs: + self.disks = kwargs["disks"] + if "nics" in kwargs: + self.nics = kwargs["nics"] + if "memory" in kwargs: + self.memory = kwargs["memory"] + if "cpu" in kwargs: + self.cpu = kwargs["cpu"] + if "vcpu" in kwargs: + self.vcpu = kwargs["vcpu"] + if "description" in kwargs: + self.description = kwargs["description"] + if "name" in kwargs: + self.name = kwargs["name"] + + @property + def firmware(self): + """Gets the firmware of this ParsedOVF. # noqa: E501 + + + :return: The firmware of this ParsedOVF. # noqa: E501 + :rtype: VmFirmware + """ + return self._firmware + + @firmware.setter + def firmware(self, firmware): + """Sets the firmware of this ParsedOVF. + + + :param firmware: The firmware of this ParsedOVF. # noqa: E501 + :type firmware: VmFirmware + """ + if self.local_vars_configuration.client_side_validation and firmware is None: # noqa: E501 + raise ValueError("Invalid value for `firmware`, must not be `None`") # noqa: E501 + + self._firmware = firmware + + @property + def disks(self): + """Gets the disks of this ParsedOVF. # noqa: E501 + + + :return: The disks of this ParsedOVF. # noqa: E501 + :rtype: list[OvfDisk] + """ + return self._disks + + @disks.setter + def disks(self, disks): + """Sets the disks of this ParsedOVF. + + + :param disks: The disks of this ParsedOVF. # noqa: E501 + :type disks: list[OvfDisk] + """ + if self.local_vars_configuration.client_side_validation and disks is None: # noqa: E501 + raise ValueError("Invalid value for `disks`, must not be `None`") # noqa: E501 + + self._disks = disks + + @property + def nics(self): + """Gets the nics of this ParsedOVF. # noqa: E501 + + + :return: The nics of this ParsedOVF. # noqa: E501 + :rtype: list[OvfNic] + """ + return self._nics + + @nics.setter + def nics(self, nics): + """Sets the nics of this ParsedOVF. + + + :param nics: The nics of this ParsedOVF. # noqa: E501 + :type nics: list[OvfNic] + """ + if self.local_vars_configuration.client_side_validation and nics is None: # noqa: E501 + raise ValueError("Invalid value for `nics`, must not be `None`") # noqa: E501 + + self._nics = nics + + @property + def memory(self): + """Gets the memory of this ParsedOVF. # noqa: E501 + + + :return: The memory of this ParsedOVF. # noqa: E501 + :rtype: int + """ + return self._memory + + @memory.setter + def memory(self, memory): + """Sets the memory of this ParsedOVF. + + + :param memory: The memory of this ParsedOVF. # noqa: E501 + :type memory: int + """ + if self.local_vars_configuration.client_side_validation and memory is None: # noqa: E501 + raise ValueError("Invalid value for `memory`, must not be `None`") # noqa: E501 + + self._memory = memory + + @property + def cpu(self): + """Gets the cpu of this ParsedOVF. # noqa: E501 + + + :return: The cpu of this ParsedOVF. # noqa: E501 + :rtype: OvfCpu + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """Sets the cpu of this ParsedOVF. + + + :param cpu: The cpu of this ParsedOVF. # noqa: E501 + :type cpu: OvfCpu + """ + if self.local_vars_configuration.client_side_validation and cpu is None: # noqa: E501 + raise ValueError("Invalid value for `cpu`, must not be `None`") # noqa: E501 + + self._cpu = cpu + + @property + def vcpu(self): + """Gets the vcpu of this ParsedOVF. # noqa: E501 + + + :return: The vcpu of this ParsedOVF. # noqa: E501 + :rtype: int + """ + return self._vcpu + + @vcpu.setter + def vcpu(self, vcpu): + """Sets the vcpu of this ParsedOVF. + + + :param vcpu: The vcpu of this ParsedOVF. # noqa: E501 + :type vcpu: int + """ + if self.local_vars_configuration.client_side_validation and vcpu is None: # noqa: E501 + raise ValueError("Invalid value for `vcpu`, must not be `None`") # noqa: E501 + + self._vcpu = vcpu + + @property + def description(self): + """Gets the description of this ParsedOVF. # noqa: E501 + + + :return: The description of this ParsedOVF. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ParsedOVF. + + + :param description: The description of this ParsedOVF. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this ParsedOVF. # noqa: E501 + + + :return: The name of this ParsedOVF. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ParsedOVF. + + + :param name: The name of this ParsedOVF. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ParsedOVF): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ParsedOVF): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/role_creation_params.py b/cloudtower/models/role_creation_params.py index 664a7d93..b16f4da5 100644 --- a/cloudtower/models/role_creation_params.py +++ b/cloudtower/models/role_creation_params.py @@ -90,6 +90,9 @@ def name(self, name): """ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 self._name = name diff --git a/cloudtower/models/role_updation_params_data.py b/cloudtower/models/role_updation_params_data.py index 2df0e1fc..1c0c4156 100644 --- a/cloudtower/models/role_updation_params_data.py +++ b/cloudtower/models/role_updation_params_data.py @@ -86,6 +86,9 @@ def name(self, name): :param name: The name of this RoleUpdationParamsData. # noqa: E501 :type name: str """ + if (self.local_vars_configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 self._name = name diff --git a/cloudtower/models/roleaction.py b/cloudtower/models/roleaction.py index 44fb75cb..be6da647 100644 --- a/cloudtower/models/roleaction.py +++ b/cloudtower/models/roleaction.py @@ -47,6 +47,7 @@ class ROLEACTION(object): VM_OPERATION_CLONE = "VM_OPERATION_CLONE" VM_OPERATION_INSTALL_TOOLS = "VM_OPERATION_INSTALL_TOOLS" VM_IMPORT_EXPORT = "VM_IMPORT_EXPORT" + CREATE_VM_TEMPLATE = "CREATE_VM_TEMPLATE" MANAGE_VM_TEMPLATE = "MANAGE_VM_TEMPLATE" VM_TEMPLATE_IMPORT_EXPORT = "VM_TEMPLATE_IMPORT_EXPORT" MANAGE_VM_SNAPSHOT = "MANAGE_VM_SNAPSHOT" @@ -63,7 +64,8 @@ class ROLEACTION(object): MANAGE_ENTITY_FILTER = "MANAGE_ENTITY_FILTER" MANAGE_CLUSTER_BASIC_INFO = "MANAGE_CLUSTER_BASIC_INFO" MANAGE_CLUSTER_LICENCE = "MANAGE_CLUSTER_LICENCE" - MANAGE_CLUSTER_SNMP = "MANAGE_CLUSTER_SNMP" + MANAGE_CLUSTER_SNMP_TRANSPORT = "MANAGE_CLUSTER_SNMP_TRANSPORT" + MANAGE_SNMP_TRAP = "MANAGE_SNMP_TRAP" MANAGE_CLUSTER_VIP = "MANAGE_CLUSTER_VIP" MANAGE_CLUSTER_MANAGEMENT_IP = "MANAGE_CLUSTER_MANAGEMENT_IP" MANAGE_DNS_SERVER = "MANAGE_DNS_SERVER" @@ -75,6 +77,8 @@ class ROLEACTION(object): MANAGE_CLUSTER_HA = "MANAGE_CLUSTER_HA" MANAGE_SSL_CERTIFICATE = "MANAGE_SSL_CERTIFICATE" MANAGE_LOG_COLLECTION = "MANAGE_LOG_COLLECTION" + MANAGE_SYSLOG = "MANAGE_SYSLOG" + MANAGE_LOG_FIND = "MANAGE_LOG_FIND" MANAGE_LABEL = "MANAGE_LABEL" MANAGE_USER_AND_ROLE = "MANAGE_USER_AND_ROLE" MANAGE_PASSWORD_SETTINGS = "MANAGE_PASSWORD_SETTINGS" @@ -94,7 +98,7 @@ class ROLEACTION(object): MANAGE_ORGANIZATION_NAME = "MANAGE_ORGANIZATION_NAME" MANAGE_CLOUD_TOWER_LICENSE = "MANAGE_CLOUD_TOWER_LICENSE" MANAGE_CONSISTENCY_GROUP = "MANAGE_CONSISTENCY_GROUP" - MANAGE_SR_IOV_NIC = "MANAGE_SR_IOV_NIC" + MANAGE_NIC = "MANAGE_NIC" MANAGE_CLUSTER_ISCSI = "MANAGE_CLUSTER_ISCSI" MANAGE_BACKUP_LICENSE = "MANAGE_BACKUP_LICENSE" MANAGE_BACKUP_PACKAGE = "MANAGE_BACKUP_PACKAGE" @@ -114,6 +118,9 @@ class ROLEACTION(object): UPGRADE_EVEROUTE_CLUSTER = "UPGRADE_EVEROUTE_CLUSTER" MANAGE_EVEROUTE_CLUSTER_ASSOCIATION = "MANAGE_EVEROUTE_CLUSTER_ASSOCIATION" MANAGE_EVEROUTE_CLUSTER_GLOBAL_POLICY = "MANAGE_EVEROUTE_CLUSTER_GLOBAL_POLICY" + MANAGE_LDAP_AD_CONFIG = "MANAGE_LDAP_AD_CONFIG" + MANAGE_MFA_CONFIG = "MANAGE_MFA_CONFIG" + MANAGE_DEFAULT_LOGIN_OPTION = "MANAGE_DEFAULT_LOGIN_OPTION" MANAGE_CLUSTER_STORAGE_POLICY = "MANAGE_CLUSTER_STORAGE_POLICY" MANAGE_SKS_SERVICE = "MANAGE_SKS_SERVICE" MANAGE_SKS_LICENSE = "MANAGE_SKS_LICENSE" @@ -124,8 +131,12 @@ class ROLEACTION(object): DOWNLOAD_SKS_WORKLOAD_CLUSTER_KUBECONFIG = "DOWNLOAD_SKS_WORKLOAD_CLUSTER_KUBECONFIG" MANAGE_OBSERVABILITY_PACKAGE = "MANAGE_OBSERVABILITY_PACKAGE" MANAGE_OBSERVABILITY_SERVICE = "MANAGE_OBSERVABILITY_SERVICE" + CONFIG_DYNAMIC_RESOURCE_SCHEDULE = "CONFIG_DYNAMIC_RESOURCE_SCHEDULE" + GENERATE_DRS_PROPOSALS = "GENERATE_DRS_PROPOSALS" + APPLY_DRS_PROPOSAL = "APPLY_DRS_PROPOSAL" + MANAGE_AGENT_MESH = "MANAGE_AGENT_MESH" - allowable_values = [_, MANAGE_DATA_CENTER, MANAGE_CLUSTER_CONNECTION, MANAGE_HOST, MANAGE_NIC_MTU, MANAGE_DISK, MANAGE_HARDWARE_TOPO, MANAGE_USB_DEVICE, MANAGE_GPU_DEVICE, MANAGE_VDS, MANAGE_VLAN, MANAGE_SYSTEM_VLAN, MANAGE_ISCSI_DATA_STORE, MANAGE_NFS_DATA_STORE, MANAGE_NVMF_DATA_STORE, CREATE_VM, UPDATE_VM, DELETE_VM, UPDATE_VM_ADVANCED_SETTING, UPDATE_VM_GUEST, VM_OPERATION_OPEN_TERMINAL, VM_OPERATION_MIGRATE, VM_OPERATION_VM_FOLDER, VM_OPERATION_VM_POWER, VM_OPERATION_CLONE, VM_OPERATION_INSTALL_TOOLS, VM_IMPORT_EXPORT, MANAGE_VM_TEMPLATE, VM_TEMPLATE_IMPORT_EXPORT, MANAGE_VM_SNAPSHOT, MANAGE_VM_VOLUME, VM_VOLUME_IMPORT_EXPORT, MANAGE_ISO, QUERY_SENSITIVE_RESOURCE_LIST, QUERY_SENSITIVE_RESOURCE, MANAGE_SENSITIVE_RESOURCE, MANAGE_VM_PLACEMENT_GROUP, MANAGE_SNAPSHOT_PLAN, MANAGE_ALERT, MANAGE_MONITOR_VIEW, MANAGE_ENTITY_FILTER, MANAGE_CLUSTER_BASIC_INFO, MANAGE_CLUSTER_LICENCE, MANAGE_CLUSTER_SNMP, MANAGE_CLUSTER_VIP, MANAGE_CLUSTER_MANAGEMENT_IP, MANAGE_DNS_SERVER, MANAGE_NTP_SERVER, MANAGE_IPMI, MANAGE_CLUSTER_VM_CPU_MODEL, MANAGE_CLUSTER_VM_TOOLS, MANAGE_CLUSTER_HOT_MIGRATION, MANAGE_CLUSTER_HA, MANAGE_SSL_CERTIFICATE, MANAGE_LOG_COLLECTION, MANAGE_LABEL, MANAGE_USER_AND_ROLE, MANAGE_PASSWORD_SETTINGS, MANAGE_ACCESS_CONTROL, MANAGE_SESSION_EXPIRATION, MANAGE_VCENTER_ASSOCIATION, MANAGE_ESXI_ASSOCIATION, MANAGE_AUDIT_LOG, MANAGE_ALERT_EMAIL_SETTING, MANAGE_SMTP_SERVER, MANAGE_CLUSTER_UPGRADE, MANAGE_VM_RECYCLE_BIN_SETTING, MANAGE_REPORT, MANAGE_SHARING_VM_TOOLS, MANAGE_ADVANCED_MONITOR, MANAGE_THIRD_PARTY_DRIVER, MANAGE_ORGANIZATION_NAME, MANAGE_CLOUD_TOWER_LICENSE, MANAGE_CONSISTENCY_GROUP, MANAGE_SR_IOV_NIC, MANAGE_CLUSTER_ISCSI, MANAGE_BACKUP_LICENSE, MANAGE_BACKUP_PACKAGE, MANAGE_BACKUP_SERVICE, MANAGE_BACKUP_STORE_REPOSITORY, MANAGE_BACKUP_PLAN, MANAGE_BACKUP_TASK, MANAGE_BACKUP_RESTORE_POINT, MANAGE_BACKUP_RESTORE_POINT_TASK, MANAGE_SECURITY_POLICY, MANAGE_SECURITY_GROUP, ISOLATE_VM, MANAGE_EVEROUTE_LICENSE, MANAGE_EVEROUTE_PACKAGE, DEPLOY_EVEROUTE_CLUSTER, UNDEPLOY_EVEROUTE_CLUSTER, UPGRADE_EVEROUTE_CLUSTER, MANAGE_EVEROUTE_CLUSTER_ASSOCIATION, MANAGE_EVEROUTE_CLUSTER_GLOBAL_POLICY, MANAGE_CLUSTER_STORAGE_POLICY, MANAGE_SKS_SERVICE, MANAGE_SKS_LICENSE, CONFIGURE_SKS_SERVICE, CREATE_SKS_WORKLOAD_CLUSTER, DELETE_SKS_WORKLOAD_CLUSTER, UPDATE_SKS_WORKLOAD_CLUSTER, DOWNLOAD_SKS_WORKLOAD_CLUSTER_KUBECONFIG, MANAGE_OBSERVABILITY_PACKAGE, MANAGE_OBSERVABILITY_SERVICE] # noqa: E501 + allowable_values = [_, MANAGE_DATA_CENTER, MANAGE_CLUSTER_CONNECTION, MANAGE_HOST, MANAGE_NIC_MTU, MANAGE_DISK, MANAGE_HARDWARE_TOPO, MANAGE_USB_DEVICE, MANAGE_GPU_DEVICE, MANAGE_VDS, MANAGE_VLAN, MANAGE_SYSTEM_VLAN, MANAGE_ISCSI_DATA_STORE, MANAGE_NFS_DATA_STORE, MANAGE_NVMF_DATA_STORE, CREATE_VM, UPDATE_VM, DELETE_VM, UPDATE_VM_ADVANCED_SETTING, UPDATE_VM_GUEST, VM_OPERATION_OPEN_TERMINAL, VM_OPERATION_MIGRATE, VM_OPERATION_VM_FOLDER, VM_OPERATION_VM_POWER, VM_OPERATION_CLONE, VM_OPERATION_INSTALL_TOOLS, VM_IMPORT_EXPORT, CREATE_VM_TEMPLATE, MANAGE_VM_TEMPLATE, VM_TEMPLATE_IMPORT_EXPORT, MANAGE_VM_SNAPSHOT, MANAGE_VM_VOLUME, VM_VOLUME_IMPORT_EXPORT, MANAGE_ISO, QUERY_SENSITIVE_RESOURCE_LIST, QUERY_SENSITIVE_RESOURCE, MANAGE_SENSITIVE_RESOURCE, MANAGE_VM_PLACEMENT_GROUP, MANAGE_SNAPSHOT_PLAN, MANAGE_ALERT, MANAGE_MONITOR_VIEW, MANAGE_ENTITY_FILTER, MANAGE_CLUSTER_BASIC_INFO, MANAGE_CLUSTER_LICENCE, MANAGE_CLUSTER_SNMP_TRANSPORT, MANAGE_SNMP_TRAP, MANAGE_CLUSTER_VIP, MANAGE_CLUSTER_MANAGEMENT_IP, MANAGE_DNS_SERVER, MANAGE_NTP_SERVER, MANAGE_IPMI, MANAGE_CLUSTER_VM_CPU_MODEL, MANAGE_CLUSTER_VM_TOOLS, MANAGE_CLUSTER_HOT_MIGRATION, MANAGE_CLUSTER_HA, MANAGE_SSL_CERTIFICATE, MANAGE_LOG_COLLECTION, MANAGE_SYSLOG, MANAGE_LOG_FIND, MANAGE_LABEL, MANAGE_USER_AND_ROLE, MANAGE_PASSWORD_SETTINGS, MANAGE_ACCESS_CONTROL, MANAGE_SESSION_EXPIRATION, MANAGE_VCENTER_ASSOCIATION, MANAGE_ESXI_ASSOCIATION, MANAGE_AUDIT_LOG, MANAGE_ALERT_EMAIL_SETTING, MANAGE_SMTP_SERVER, MANAGE_CLUSTER_UPGRADE, MANAGE_VM_RECYCLE_BIN_SETTING, MANAGE_REPORT, MANAGE_SHARING_VM_TOOLS, MANAGE_ADVANCED_MONITOR, MANAGE_THIRD_PARTY_DRIVER, MANAGE_ORGANIZATION_NAME, MANAGE_CLOUD_TOWER_LICENSE, MANAGE_CONSISTENCY_GROUP, MANAGE_NIC, MANAGE_CLUSTER_ISCSI, MANAGE_BACKUP_LICENSE, MANAGE_BACKUP_PACKAGE, MANAGE_BACKUP_SERVICE, MANAGE_BACKUP_STORE_REPOSITORY, MANAGE_BACKUP_PLAN, MANAGE_BACKUP_TASK, MANAGE_BACKUP_RESTORE_POINT, MANAGE_BACKUP_RESTORE_POINT_TASK, MANAGE_SECURITY_POLICY, MANAGE_SECURITY_GROUP, ISOLATE_VM, MANAGE_EVEROUTE_LICENSE, MANAGE_EVEROUTE_PACKAGE, DEPLOY_EVEROUTE_CLUSTER, UNDEPLOY_EVEROUTE_CLUSTER, UPGRADE_EVEROUTE_CLUSTER, MANAGE_EVEROUTE_CLUSTER_ASSOCIATION, MANAGE_EVEROUTE_CLUSTER_GLOBAL_POLICY, MANAGE_LDAP_AD_CONFIG, MANAGE_MFA_CONFIG, MANAGE_DEFAULT_LOGIN_OPTION, MANAGE_CLUSTER_STORAGE_POLICY, MANAGE_SKS_SERVICE, MANAGE_SKS_LICENSE, CONFIGURE_SKS_SERVICE, CREATE_SKS_WORKLOAD_CLUSTER, DELETE_SKS_WORKLOAD_CLUSTER, UPDATE_SKS_WORKLOAD_CLUSTER, DOWNLOAD_SKS_WORKLOAD_CLUSTER_KUBECONFIG, MANAGE_OBSERVABILITY_PACKAGE, MANAGE_OBSERVABILITY_SERVICE, CONFIG_DYNAMIC_RESOURCE_SCHEDULE, GENERATE_DRS_PROPOSALS, APPLY_DRS_PROPOSAL, MANAGE_AGENT_MESH] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/security_group.py b/cloudtower/models/security_group.py new file mode 100644 index 00000000..d29bba74 --- /dev/null +++ b/cloudtower/models/security_group.py @@ -0,0 +1,301 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityGroup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'description': 'str', + 'everoute_cluster': 'NestedEverouteCluster', + 'id': 'str', + 'isolation_policies': 'list[NestedIsolationPolicy]', + 'label_groups': 'list[NestedLabelGroup]', + 'name': 'str', + 'security_policies': 'list[NestedSecurityPolicy]', + 'vms': 'list[NestedVm]' + } + + attribute_map = { + 'description': 'description', + 'everoute_cluster': 'everoute_cluster', + 'id': 'id', + 'isolation_policies': 'isolation_policies', + 'label_groups': 'label_groups', + 'name': 'name', + 'security_policies': 'security_policies', + 'vms': 'vms' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityGroup - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._description = None + self._everoute_cluster = None + self._id = None + self._isolation_policies = None + self._label_groups = None + self._name = None + self._security_policies = None + self._vms = None + self.discriminator = None + + self.description = kwargs.get("description", None) + if "everoute_cluster" in kwargs: + self.everoute_cluster = kwargs["everoute_cluster"] + if "id" in kwargs: + self.id = kwargs["id"] + self.isolation_policies = kwargs.get("isolation_policies", None) + self.label_groups = kwargs.get("label_groups", None) + if "name" in kwargs: + self.name = kwargs["name"] + self.security_policies = kwargs.get("security_policies", None) + self.vms = kwargs.get("vms", None) + + @property + def description(self): + """Gets the description of this SecurityGroup. # noqa: E501 + + + :return: The description of this SecurityGroup. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this SecurityGroup. + + + :param description: The description of this SecurityGroup. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def everoute_cluster(self): + """Gets the everoute_cluster of this SecurityGroup. # noqa: E501 + + + :return: The everoute_cluster of this SecurityGroup. # noqa: E501 + :rtype: NestedEverouteCluster + """ + return self._everoute_cluster + + @everoute_cluster.setter + def everoute_cluster(self, everoute_cluster): + """Sets the everoute_cluster of this SecurityGroup. + + + :param everoute_cluster: The everoute_cluster of this SecurityGroup. # noqa: E501 + :type everoute_cluster: NestedEverouteCluster + """ + if self.local_vars_configuration.client_side_validation and everoute_cluster is None: # noqa: E501 + raise ValueError("Invalid value for `everoute_cluster`, must not be `None`") # noqa: E501 + + self._everoute_cluster = everoute_cluster + + @property + def id(self): + """Gets the id of this SecurityGroup. # noqa: E501 + + + :return: The id of this SecurityGroup. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SecurityGroup. + + + :param id: The id of this SecurityGroup. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def isolation_policies(self): + """Gets the isolation_policies of this SecurityGroup. # noqa: E501 + + + :return: The isolation_policies of this SecurityGroup. # noqa: E501 + :rtype: list[NestedIsolationPolicy] + """ + return self._isolation_policies + + @isolation_policies.setter + def isolation_policies(self, isolation_policies): + """Sets the isolation_policies of this SecurityGroup. + + + :param isolation_policies: The isolation_policies of this SecurityGroup. # noqa: E501 + :type isolation_policies: list[NestedIsolationPolicy] + """ + + self._isolation_policies = isolation_policies + + @property + def label_groups(self): + """Gets the label_groups of this SecurityGroup. # noqa: E501 + + + :return: The label_groups of this SecurityGroup. # noqa: E501 + :rtype: list[NestedLabelGroup] + """ + return self._label_groups + + @label_groups.setter + def label_groups(self, label_groups): + """Sets the label_groups of this SecurityGroup. + + + :param label_groups: The label_groups of this SecurityGroup. # noqa: E501 + :type label_groups: list[NestedLabelGroup] + """ + + self._label_groups = label_groups + + @property + def name(self): + """Gets the name of this SecurityGroup. # noqa: E501 + + + :return: The name of this SecurityGroup. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SecurityGroup. + + + :param name: The name of this SecurityGroup. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def security_policies(self): + """Gets the security_policies of this SecurityGroup. # noqa: E501 + + + :return: The security_policies of this SecurityGroup. # noqa: E501 + :rtype: list[NestedSecurityPolicy] + """ + return self._security_policies + + @security_policies.setter + def security_policies(self, security_policies): + """Sets the security_policies of this SecurityGroup. + + + :param security_policies: The security_policies of this SecurityGroup. # noqa: E501 + :type security_policies: list[NestedSecurityPolicy] + """ + + self._security_policies = security_policies + + @property + def vms(self): + """Gets the vms of this SecurityGroup. # noqa: E501 + + + :return: The vms of this SecurityGroup. # noqa: E501 + :rtype: list[NestedVm] + """ + return self._vms + + @vms.setter + def vms(self, vms): + """Sets the vms of this SecurityGroup. + + + :param vms: The vms of this SecurityGroup. # noqa: E501 + :type vms: list[NestedVm] + """ + + self._vms = vms + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_group_connection.py b/cloudtower/models/security_group_connection.py new file mode 100644 index 00000000..76d65a5d --- /dev/null +++ b/cloudtower/models/security_group_connection.py @@ -0,0 +1,120 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityGroupConnection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'aggregate': 'NestedAggregateSecurityGroup' + } + + attribute_map = { + 'aggregate': 'aggregate' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityGroupConnection - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._aggregate = None + self.discriminator = None + + if "aggregate" in kwargs: + self.aggregate = kwargs["aggregate"] + + @property + def aggregate(self): + """Gets the aggregate of this SecurityGroupConnection. # noqa: E501 + + + :return: The aggregate of this SecurityGroupConnection. # noqa: E501 + :rtype: NestedAggregateSecurityGroup + """ + return self._aggregate + + @aggregate.setter + def aggregate(self, aggregate): + """Sets the aggregate of this SecurityGroupConnection. + + + :param aggregate: The aggregate of this SecurityGroupConnection. # noqa: E501 + :type aggregate: NestedAggregateSecurityGroup + """ + if self.local_vars_configuration.client_side_validation and aggregate is None: # noqa: E501 + raise ValueError("Invalid value for `aggregate`, must not be `None`") # noqa: E501 + + self._aggregate = aggregate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityGroupConnection): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityGroupConnection): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_group_create_params.py b/cloudtower/models/security_group_create_params.py new file mode 100644 index 00000000..9c153758 --- /dev/null +++ b/cloudtower/models/security_group_create_params.py @@ -0,0 +1,232 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityGroupCreateParams(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'vms': 'VmWhereInput', + 'label_groups': 'list[LabelWhereInput]', + 'description': 'str', + 'everoute_cluster_id': 'str', + 'name': 'str' + } + + attribute_map = { + 'vms': 'vms', + 'label_groups': 'label_groups', + 'description': 'description', + 'everoute_cluster_id': 'everoute_cluster_id', + 'name': 'name' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityGroupCreateParams - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._vms = None + self._label_groups = None + self._description = None + self._everoute_cluster_id = None + self._name = None + self.discriminator = None + + if "vms" in kwargs: + self.vms = kwargs["vms"] + if "label_groups" in kwargs: + self.label_groups = kwargs["label_groups"] + if "description" in kwargs: + self.description = kwargs["description"] + if "everoute_cluster_id" in kwargs: + self.everoute_cluster_id = kwargs["everoute_cluster_id"] + if "name" in kwargs: + self.name = kwargs["name"] + + @property + def vms(self): + """Gets the vms of this SecurityGroupCreateParams. # noqa: E501 + + + :return: The vms of this SecurityGroupCreateParams. # noqa: E501 + :rtype: VmWhereInput + """ + return self._vms + + @vms.setter + def vms(self, vms): + """Sets the vms of this SecurityGroupCreateParams. + + + :param vms: The vms of this SecurityGroupCreateParams. # noqa: E501 + :type vms: VmWhereInput + """ + + self._vms = vms + + @property + def label_groups(self): + """Gets the label_groups of this SecurityGroupCreateParams. # noqa: E501 + + + :return: The label_groups of this SecurityGroupCreateParams. # noqa: E501 + :rtype: list[LabelWhereInput] + """ + return self._label_groups + + @label_groups.setter + def label_groups(self, label_groups): + """Sets the label_groups of this SecurityGroupCreateParams. + + + :param label_groups: The label_groups of this SecurityGroupCreateParams. # noqa: E501 + :type label_groups: list[LabelWhereInput] + """ + if (self.local_vars_configuration.client_side_validation and + label_groups is not None and len(label_groups) < 1): + raise ValueError("Invalid value for `label_groups`, number of items must be greater than or equal to `1`") # noqa: E501 + + self._label_groups = label_groups + + @property + def description(self): + """Gets the description of this SecurityGroupCreateParams. # noqa: E501 + + + :return: The description of this SecurityGroupCreateParams. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this SecurityGroupCreateParams. + + + :param description: The description of this SecurityGroupCreateParams. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def everoute_cluster_id(self): + """Gets the everoute_cluster_id of this SecurityGroupCreateParams. # noqa: E501 + + + :return: The everoute_cluster_id of this SecurityGroupCreateParams. # noqa: E501 + :rtype: str + """ + return self._everoute_cluster_id + + @everoute_cluster_id.setter + def everoute_cluster_id(self, everoute_cluster_id): + """Sets the everoute_cluster_id of this SecurityGroupCreateParams. + + + :param everoute_cluster_id: The everoute_cluster_id of this SecurityGroupCreateParams. # noqa: E501 + :type everoute_cluster_id: str + """ + if self.local_vars_configuration.client_side_validation and everoute_cluster_id is None: # noqa: E501 + raise ValueError("Invalid value for `everoute_cluster_id`, must not be `None`") # noqa: E501 + + self._everoute_cluster_id = everoute_cluster_id + + @property + def name(self): + """Gets the name of this SecurityGroupCreateParams. # noqa: E501 + + + :return: The name of this SecurityGroupCreateParams. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SecurityGroupCreateParams. + + + :param name: The name of this SecurityGroupCreateParams. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + + self._name = name + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityGroupCreateParams): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityGroupCreateParams): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_group_delete_params.py b/cloudtower/models/security_group_delete_params.py new file mode 100644 index 00000000..8b3e48d5 --- /dev/null +++ b/cloudtower/models/security_group_delete_params.py @@ -0,0 +1,120 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityGroupDeleteParams(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'where': 'SecurityGroupWhereInput' + } + + attribute_map = { + 'where': 'where' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityGroupDeleteParams - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._where = None + self.discriminator = None + + if "where" in kwargs: + self.where = kwargs["where"] + + @property + def where(self): + """Gets the where of this SecurityGroupDeleteParams. # noqa: E501 + + + :return: The where of this SecurityGroupDeleteParams. # noqa: E501 + :rtype: SecurityGroupWhereInput + """ + return self._where + + @where.setter + def where(self, where): + """Sets the where of this SecurityGroupDeleteParams. + + + :param where: The where of this SecurityGroupDeleteParams. # noqa: E501 + :type where: SecurityGroupWhereInput + """ + if self.local_vars_configuration.client_side_validation and where is None: # noqa: E501 + raise ValueError("Invalid value for `where`, must not be `None`") # noqa: E501 + + self._where = where + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityGroupDeleteParams): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityGroupDeleteParams): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_group_order_by_input.py b/cloudtower/models/security_group_order_by_input.py new file mode 100644 index 00000000..179a0b22 --- /dev/null +++ b/cloudtower/models/security_group_order_by_input.py @@ -0,0 +1,104 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityGroupOrderByInput(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + DESCRIPTION_ASC = "description_ASC" + DESCRIPTION_DESC = "description_DESC" + ID_ASC = "id_ASC" + ID_DESC = "id_DESC" + LABEL_GROUPS_ASC = "label_groups_ASC" + LABEL_GROUPS_DESC = "label_groups_DESC" + NAME_ASC = "name_ASC" + NAME_DESC = "name_DESC" + + allowable_values = [DESCRIPTION_ASC, DESCRIPTION_DESC, ID_ASC, ID_DESC, LABEL_GROUPS_ASC, LABEL_GROUPS_DESC, NAME_ASC, NAME_DESC] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityGroupOrderByInput - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + self.discriminator = None + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityGroupOrderByInput): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityGroupOrderByInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_group_update_body.py b/cloudtower/models/security_group_update_body.py new file mode 100644 index 00000000..ed4be463 --- /dev/null +++ b/cloudtower/models/security_group_update_body.py @@ -0,0 +1,148 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityGroupUpdateBody(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'SecurityGroupUpdateParams', + 'where': 'SecurityGroupWhereInput' + } + + attribute_map = { + 'data': 'data', + 'where': 'where' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityGroupUpdateBody - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._data = None + self._where = None + self.discriminator = None + + if "data" in kwargs: + self.data = kwargs["data"] + if "where" in kwargs: + self.where = kwargs["where"] + + @property + def data(self): + """Gets the data of this SecurityGroupUpdateBody. # noqa: E501 + + + :return: The data of this SecurityGroupUpdateBody. # noqa: E501 + :rtype: SecurityGroupUpdateParams + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this SecurityGroupUpdateBody. + + + :param data: The data of this SecurityGroupUpdateBody. # noqa: E501 + :type data: SecurityGroupUpdateParams + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + @property + def where(self): + """Gets the where of this SecurityGroupUpdateBody. # noqa: E501 + + + :return: The where of this SecurityGroupUpdateBody. # noqa: E501 + :rtype: SecurityGroupWhereInput + """ + return self._where + + @where.setter + def where(self, where): + """Sets the where of this SecurityGroupUpdateBody. + + + :param where: The where of this SecurityGroupUpdateBody. # noqa: E501 + :type where: SecurityGroupWhereInput + """ + if self.local_vars_configuration.client_side_validation and where is None: # noqa: E501 + raise ValueError("Invalid value for `where`, must not be `None`") # noqa: E501 + + self._where = where + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityGroupUpdateBody): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityGroupUpdateBody): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_group_update_params.py b/cloudtower/models/security_group_update_params.py new file mode 100644 index 00000000..1a25c3fd --- /dev/null +++ b/cloudtower/models/security_group_update_params.py @@ -0,0 +1,196 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityGroupUpdateParams(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'label_groups': 'list[LabelWhereInput]', + 'vms': 'VmWhereInput', + 'description': 'str', + 'name': 'str' + } + + attribute_map = { + 'label_groups': 'label_groups', + 'vms': 'vms', + 'description': 'description', + 'name': 'name' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityGroupUpdateParams - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._label_groups = None + self._vms = None + self._description = None + self._name = None + self.discriminator = None + + if "label_groups" in kwargs: + self.label_groups = kwargs["label_groups"] + if "vms" in kwargs: + self.vms = kwargs["vms"] + if "description" in kwargs: + self.description = kwargs["description"] + if "name" in kwargs: + self.name = kwargs["name"] + + @property + def label_groups(self): + """Gets the label_groups of this SecurityGroupUpdateParams. # noqa: E501 + + + :return: The label_groups of this SecurityGroupUpdateParams. # noqa: E501 + :rtype: list[LabelWhereInput] + """ + return self._label_groups + + @label_groups.setter + def label_groups(self, label_groups): + """Sets the label_groups of this SecurityGroupUpdateParams. + + + :param label_groups: The label_groups of this SecurityGroupUpdateParams. # noqa: E501 + :type label_groups: list[LabelWhereInput] + """ + + self._label_groups = label_groups + + @property + def vms(self): + """Gets the vms of this SecurityGroupUpdateParams. # noqa: E501 + + + :return: The vms of this SecurityGroupUpdateParams. # noqa: E501 + :rtype: VmWhereInput + """ + return self._vms + + @vms.setter + def vms(self, vms): + """Sets the vms of this SecurityGroupUpdateParams. + + + :param vms: The vms of this SecurityGroupUpdateParams. # noqa: E501 + :type vms: VmWhereInput + """ + + self._vms = vms + + @property + def description(self): + """Gets the description of this SecurityGroupUpdateParams. # noqa: E501 + + + :return: The description of this SecurityGroupUpdateParams. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this SecurityGroupUpdateParams. + + + :param description: The description of this SecurityGroupUpdateParams. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this SecurityGroupUpdateParams. # noqa: E501 + + + :return: The name of this SecurityGroupUpdateParams. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SecurityGroupUpdateParams. + + + :param name: The name of this SecurityGroupUpdateParams. # noqa: E501 + :type name: str + """ + + self._name = name + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityGroupUpdateParams): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityGroupUpdateParams): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_group_where_input.py b/cloudtower/models/security_group_where_input.py new file mode 100644 index 00000000..3b86523f --- /dev/null +++ b/cloudtower/models/security_group_where_input.py @@ -0,0 +1,1467 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityGroupWhereInput(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + '_and': 'list[SecurityGroupWhereInput]', + 'description': 'str', + 'description_contains': 'str', + 'description_ends_with': 'str', + 'description_gt': 'str', + 'description_gte': 'str', + 'description_in': 'list[str]', + 'description_lt': 'str', + 'description_lte': 'str', + 'description_not': 'str', + 'description_not_contains': 'str', + 'description_not_ends_with': 'str', + 'description_not_in': 'list[str]', + 'description_not_starts_with': 'str', + 'description_starts_with': 'str', + 'everoute_cluster': 'EverouteClusterWhereInput', + 'id': 'str', + 'id_contains': 'str', + 'id_ends_with': 'str', + 'id_gt': 'str', + 'id_gte': 'str', + 'id_in': 'list[str]', + 'id_lt': 'str', + 'id_lte': 'str', + 'id_not': 'str', + 'id_not_contains': 'str', + 'id_not_ends_with': 'str', + 'id_not_in': 'list[str]', + 'id_not_starts_with': 'str', + 'id_starts_with': 'str', + 'isolation_policies_every': 'IsolationPolicyWhereInput', + 'isolation_policies_none': 'IsolationPolicyWhereInput', + 'isolation_policies_some': 'IsolationPolicyWhereInput', + 'name': 'str', + 'name_contains': 'str', + 'name_ends_with': 'str', + 'name_gt': 'str', + 'name_gte': 'str', + 'name_in': 'list[str]', + 'name_lt': 'str', + 'name_lte': 'str', + 'name_not': 'str', + 'name_not_contains': 'str', + 'name_not_ends_with': 'str', + 'name_not_in': 'list[str]', + 'name_not_starts_with': 'str', + 'name_starts_with': 'str', + '_not': 'list[SecurityGroupWhereInput]', + '_or': 'list[SecurityGroupWhereInput]', + 'security_policies_every': 'SecurityPolicyWhereInput', + 'security_policies_none': 'SecurityPolicyWhereInput', + 'security_policies_some': 'SecurityPolicyWhereInput', + 'vms_every': 'VmWhereInput', + 'vms_none': 'VmWhereInput', + 'vms_some': 'VmWhereInput' + } + + attribute_map = { + '_and': 'AND', + 'description': 'description', + 'description_contains': 'description_contains', + 'description_ends_with': 'description_ends_with', + 'description_gt': 'description_gt', + 'description_gte': 'description_gte', + 'description_in': 'description_in', + 'description_lt': 'description_lt', + 'description_lte': 'description_lte', + 'description_not': 'description_not', + 'description_not_contains': 'description_not_contains', + 'description_not_ends_with': 'description_not_ends_with', + 'description_not_in': 'description_not_in', + 'description_not_starts_with': 'description_not_starts_with', + 'description_starts_with': 'description_starts_with', + 'everoute_cluster': 'everoute_cluster', + 'id': 'id', + 'id_contains': 'id_contains', + 'id_ends_with': 'id_ends_with', + 'id_gt': 'id_gt', + 'id_gte': 'id_gte', + 'id_in': 'id_in', + 'id_lt': 'id_lt', + 'id_lte': 'id_lte', + 'id_not': 'id_not', + 'id_not_contains': 'id_not_contains', + 'id_not_ends_with': 'id_not_ends_with', + 'id_not_in': 'id_not_in', + 'id_not_starts_with': 'id_not_starts_with', + 'id_starts_with': 'id_starts_with', + 'isolation_policies_every': 'isolation_policies_every', + 'isolation_policies_none': 'isolation_policies_none', + 'isolation_policies_some': 'isolation_policies_some', + 'name': 'name', + 'name_contains': 'name_contains', + 'name_ends_with': 'name_ends_with', + 'name_gt': 'name_gt', + 'name_gte': 'name_gte', + 'name_in': 'name_in', + 'name_lt': 'name_lt', + 'name_lte': 'name_lte', + 'name_not': 'name_not', + 'name_not_contains': 'name_not_contains', + 'name_not_ends_with': 'name_not_ends_with', + 'name_not_in': 'name_not_in', + 'name_not_starts_with': 'name_not_starts_with', + 'name_starts_with': 'name_starts_with', + '_not': 'NOT', + '_or': 'OR', + 'security_policies_every': 'security_policies_every', + 'security_policies_none': 'security_policies_none', + 'security_policies_some': 'security_policies_some', + 'vms_every': 'vms_every', + 'vms_none': 'vms_none', + 'vms_some': 'vms_some' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityGroupWhereInput - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self.__and = None + self._description = None + self._description_contains = None + self._description_ends_with = None + self._description_gt = None + self._description_gte = None + self._description_in = None + self._description_lt = None + self._description_lte = None + self._description_not = None + self._description_not_contains = None + self._description_not_ends_with = None + self._description_not_in = None + self._description_not_starts_with = None + self._description_starts_with = None + self._everoute_cluster = None + self._id = None + self._id_contains = None + self._id_ends_with = None + self._id_gt = None + self._id_gte = None + self._id_in = None + self._id_lt = None + self._id_lte = None + self._id_not = None + self._id_not_contains = None + self._id_not_ends_with = None + self._id_not_in = None + self._id_not_starts_with = None + self._id_starts_with = None + self._isolation_policies_every = None + self._isolation_policies_none = None + self._isolation_policies_some = None + self._name = None + self._name_contains = None + self._name_ends_with = None + self._name_gt = None + self._name_gte = None + self._name_in = None + self._name_lt = None + self._name_lte = None + self._name_not = None + self._name_not_contains = None + self._name_not_ends_with = None + self._name_not_in = None + self._name_not_starts_with = None + self._name_starts_with = None + self.__not = None + self.__or = None + self._security_policies_every = None + self._security_policies_none = None + self._security_policies_some = None + self._vms_every = None + self._vms_none = None + self._vms_some = None + self.discriminator = None + + self._and = kwargs.get("_and", None) + self.description = kwargs.get("description", None) + self.description_contains = kwargs.get("description_contains", None) + self.description_ends_with = kwargs.get("description_ends_with", None) + self.description_gt = kwargs.get("description_gt", None) + self.description_gte = kwargs.get("description_gte", None) + self.description_in = kwargs.get("description_in", None) + self.description_lt = kwargs.get("description_lt", None) + self.description_lte = kwargs.get("description_lte", None) + self.description_not = kwargs.get("description_not", None) + self.description_not_contains = kwargs.get("description_not_contains", None) + self.description_not_ends_with = kwargs.get("description_not_ends_with", None) + self.description_not_in = kwargs.get("description_not_in", None) + self.description_not_starts_with = kwargs.get("description_not_starts_with", None) + self.description_starts_with = kwargs.get("description_starts_with", None) + self.everoute_cluster = kwargs.get("everoute_cluster", None) + self.id = kwargs.get("id", None) + self.id_contains = kwargs.get("id_contains", None) + self.id_ends_with = kwargs.get("id_ends_with", None) + self.id_gt = kwargs.get("id_gt", None) + self.id_gte = kwargs.get("id_gte", None) + self.id_in = kwargs.get("id_in", None) + self.id_lt = kwargs.get("id_lt", None) + self.id_lte = kwargs.get("id_lte", None) + self.id_not = kwargs.get("id_not", None) + self.id_not_contains = kwargs.get("id_not_contains", None) + self.id_not_ends_with = kwargs.get("id_not_ends_with", None) + self.id_not_in = kwargs.get("id_not_in", None) + self.id_not_starts_with = kwargs.get("id_not_starts_with", None) + self.id_starts_with = kwargs.get("id_starts_with", None) + self.isolation_policies_every = kwargs.get("isolation_policies_every", None) + self.isolation_policies_none = kwargs.get("isolation_policies_none", None) + self.isolation_policies_some = kwargs.get("isolation_policies_some", None) + self.name = kwargs.get("name", None) + self.name_contains = kwargs.get("name_contains", None) + self.name_ends_with = kwargs.get("name_ends_with", None) + self.name_gt = kwargs.get("name_gt", None) + self.name_gte = kwargs.get("name_gte", None) + self.name_in = kwargs.get("name_in", None) + self.name_lt = kwargs.get("name_lt", None) + self.name_lte = kwargs.get("name_lte", None) + self.name_not = kwargs.get("name_not", None) + self.name_not_contains = kwargs.get("name_not_contains", None) + self.name_not_ends_with = kwargs.get("name_not_ends_with", None) + self.name_not_in = kwargs.get("name_not_in", None) + self.name_not_starts_with = kwargs.get("name_not_starts_with", None) + self.name_starts_with = kwargs.get("name_starts_with", None) + self._not = kwargs.get("_not", None) + self._or = kwargs.get("_or", None) + self.security_policies_every = kwargs.get("security_policies_every", None) + self.security_policies_none = kwargs.get("security_policies_none", None) + self.security_policies_some = kwargs.get("security_policies_some", None) + self.vms_every = kwargs.get("vms_every", None) + self.vms_none = kwargs.get("vms_none", None) + self.vms_some = kwargs.get("vms_some", None) + + @property + def _and(self): + """Gets the _and of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The _and of this SecurityGroupWhereInput. # noqa: E501 + :rtype: list[SecurityGroupWhereInput] + """ + return self.__and + + @_and.setter + def _and(self, _and): + """Sets the _and of this SecurityGroupWhereInput. + + + :param _and: The _and of this SecurityGroupWhereInput. # noqa: E501 + :type _and: list[SecurityGroupWhereInput] + """ + + self.__and = _and + + @property + def description(self): + """Gets the description of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this SecurityGroupWhereInput. + + + :param description: The description of this SecurityGroupWhereInput. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def description_contains(self): + """Gets the description_contains of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_contains of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description_contains + + @description_contains.setter + def description_contains(self, description_contains): + """Sets the description_contains of this SecurityGroupWhereInput. + + + :param description_contains: The description_contains of this SecurityGroupWhereInput. # noqa: E501 + :type description_contains: str + """ + + self._description_contains = description_contains + + @property + def description_ends_with(self): + """Gets the description_ends_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description_ends_with + + @description_ends_with.setter + def description_ends_with(self, description_ends_with): + """Sets the description_ends_with of this SecurityGroupWhereInput. + + + :param description_ends_with: The description_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :type description_ends_with: str + """ + + self._description_ends_with = description_ends_with + + @property + def description_gt(self): + """Gets the description_gt of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_gt of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description_gt + + @description_gt.setter + def description_gt(self, description_gt): + """Sets the description_gt of this SecurityGroupWhereInput. + + + :param description_gt: The description_gt of this SecurityGroupWhereInput. # noqa: E501 + :type description_gt: str + """ + + self._description_gt = description_gt + + @property + def description_gte(self): + """Gets the description_gte of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_gte of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description_gte + + @description_gte.setter + def description_gte(self, description_gte): + """Sets the description_gte of this SecurityGroupWhereInput. + + + :param description_gte: The description_gte of this SecurityGroupWhereInput. # noqa: E501 + :type description_gte: str + """ + + self._description_gte = description_gte + + @property + def description_in(self): + """Gets the description_in of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_in of this SecurityGroupWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._description_in + + @description_in.setter + def description_in(self, description_in): + """Sets the description_in of this SecurityGroupWhereInput. + + + :param description_in: The description_in of this SecurityGroupWhereInput. # noqa: E501 + :type description_in: list[str] + """ + + self._description_in = description_in + + @property + def description_lt(self): + """Gets the description_lt of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_lt of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description_lt + + @description_lt.setter + def description_lt(self, description_lt): + """Sets the description_lt of this SecurityGroupWhereInput. + + + :param description_lt: The description_lt of this SecurityGroupWhereInput. # noqa: E501 + :type description_lt: str + """ + + self._description_lt = description_lt + + @property + def description_lte(self): + """Gets the description_lte of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_lte of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description_lte + + @description_lte.setter + def description_lte(self, description_lte): + """Sets the description_lte of this SecurityGroupWhereInput. + + + :param description_lte: The description_lte of this SecurityGroupWhereInput. # noqa: E501 + :type description_lte: str + """ + + self._description_lte = description_lte + + @property + def description_not(self): + """Gets the description_not of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_not of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description_not + + @description_not.setter + def description_not(self, description_not): + """Sets the description_not of this SecurityGroupWhereInput. + + + :param description_not: The description_not of this SecurityGroupWhereInput. # noqa: E501 + :type description_not: str + """ + + self._description_not = description_not + + @property + def description_not_contains(self): + """Gets the description_not_contains of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_not_contains of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description_not_contains + + @description_not_contains.setter + def description_not_contains(self, description_not_contains): + """Sets the description_not_contains of this SecurityGroupWhereInput. + + + :param description_not_contains: The description_not_contains of this SecurityGroupWhereInput. # noqa: E501 + :type description_not_contains: str + """ + + self._description_not_contains = description_not_contains + + @property + def description_not_ends_with(self): + """Gets the description_not_ends_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_not_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description_not_ends_with + + @description_not_ends_with.setter + def description_not_ends_with(self, description_not_ends_with): + """Sets the description_not_ends_with of this SecurityGroupWhereInput. + + + :param description_not_ends_with: The description_not_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :type description_not_ends_with: str + """ + + self._description_not_ends_with = description_not_ends_with + + @property + def description_not_in(self): + """Gets the description_not_in of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_not_in of this SecurityGroupWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._description_not_in + + @description_not_in.setter + def description_not_in(self, description_not_in): + """Sets the description_not_in of this SecurityGroupWhereInput. + + + :param description_not_in: The description_not_in of this SecurityGroupWhereInput. # noqa: E501 + :type description_not_in: list[str] + """ + + self._description_not_in = description_not_in + + @property + def description_not_starts_with(self): + """Gets the description_not_starts_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_not_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description_not_starts_with + + @description_not_starts_with.setter + def description_not_starts_with(self, description_not_starts_with): + """Sets the description_not_starts_with of this SecurityGroupWhereInput. + + + :param description_not_starts_with: The description_not_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :type description_not_starts_with: str + """ + + self._description_not_starts_with = description_not_starts_with + + @property + def description_starts_with(self): + """Gets the description_starts_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The description_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._description_starts_with + + @description_starts_with.setter + def description_starts_with(self, description_starts_with): + """Sets the description_starts_with of this SecurityGroupWhereInput. + + + :param description_starts_with: The description_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :type description_starts_with: str + """ + + self._description_starts_with = description_starts_with + + @property + def everoute_cluster(self): + """Gets the everoute_cluster of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The everoute_cluster of this SecurityGroupWhereInput. # noqa: E501 + :rtype: EverouteClusterWhereInput + """ + return self._everoute_cluster + + @everoute_cluster.setter + def everoute_cluster(self, everoute_cluster): + """Sets the everoute_cluster of this SecurityGroupWhereInput. + + + :param everoute_cluster: The everoute_cluster of this SecurityGroupWhereInput. # noqa: E501 + :type everoute_cluster: EverouteClusterWhereInput + """ + + self._everoute_cluster = everoute_cluster + + @property + def id(self): + """Gets the id of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SecurityGroupWhereInput. + + + :param id: The id of this SecurityGroupWhereInput. # noqa: E501 + :type id: str + """ + + self._id = id + + @property + def id_contains(self): + """Gets the id_contains of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_contains of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_contains + + @id_contains.setter + def id_contains(self, id_contains): + """Sets the id_contains of this SecurityGroupWhereInput. + + + :param id_contains: The id_contains of this SecurityGroupWhereInput. # noqa: E501 + :type id_contains: str + """ + + self._id_contains = id_contains + + @property + def id_ends_with(self): + """Gets the id_ends_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_ends_with + + @id_ends_with.setter + def id_ends_with(self, id_ends_with): + """Sets the id_ends_with of this SecurityGroupWhereInput. + + + :param id_ends_with: The id_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :type id_ends_with: str + """ + + self._id_ends_with = id_ends_with + + @property + def id_gt(self): + """Gets the id_gt of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_gt of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_gt + + @id_gt.setter + def id_gt(self, id_gt): + """Sets the id_gt of this SecurityGroupWhereInput. + + + :param id_gt: The id_gt of this SecurityGroupWhereInput. # noqa: E501 + :type id_gt: str + """ + + self._id_gt = id_gt + + @property + def id_gte(self): + """Gets the id_gte of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_gte of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_gte + + @id_gte.setter + def id_gte(self, id_gte): + """Sets the id_gte of this SecurityGroupWhereInput. + + + :param id_gte: The id_gte of this SecurityGroupWhereInput. # noqa: E501 + :type id_gte: str + """ + + self._id_gte = id_gte + + @property + def id_in(self): + """Gets the id_in of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_in of this SecurityGroupWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._id_in + + @id_in.setter + def id_in(self, id_in): + """Sets the id_in of this SecurityGroupWhereInput. + + + :param id_in: The id_in of this SecurityGroupWhereInput. # noqa: E501 + :type id_in: list[str] + """ + + self._id_in = id_in + + @property + def id_lt(self): + """Gets the id_lt of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_lt of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_lt + + @id_lt.setter + def id_lt(self, id_lt): + """Sets the id_lt of this SecurityGroupWhereInput. + + + :param id_lt: The id_lt of this SecurityGroupWhereInput. # noqa: E501 + :type id_lt: str + """ + + self._id_lt = id_lt + + @property + def id_lte(self): + """Gets the id_lte of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_lte of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_lte + + @id_lte.setter + def id_lte(self, id_lte): + """Sets the id_lte of this SecurityGroupWhereInput. + + + :param id_lte: The id_lte of this SecurityGroupWhereInput. # noqa: E501 + :type id_lte: str + """ + + self._id_lte = id_lte + + @property + def id_not(self): + """Gets the id_not of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_not of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_not + + @id_not.setter + def id_not(self, id_not): + """Sets the id_not of this SecurityGroupWhereInput. + + + :param id_not: The id_not of this SecurityGroupWhereInput. # noqa: E501 + :type id_not: str + """ + + self._id_not = id_not + + @property + def id_not_contains(self): + """Gets the id_not_contains of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_not_contains of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_not_contains + + @id_not_contains.setter + def id_not_contains(self, id_not_contains): + """Sets the id_not_contains of this SecurityGroupWhereInput. + + + :param id_not_contains: The id_not_contains of this SecurityGroupWhereInput. # noqa: E501 + :type id_not_contains: str + """ + + self._id_not_contains = id_not_contains + + @property + def id_not_ends_with(self): + """Gets the id_not_ends_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_not_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_not_ends_with + + @id_not_ends_with.setter + def id_not_ends_with(self, id_not_ends_with): + """Sets the id_not_ends_with of this SecurityGroupWhereInput. + + + :param id_not_ends_with: The id_not_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :type id_not_ends_with: str + """ + + self._id_not_ends_with = id_not_ends_with + + @property + def id_not_in(self): + """Gets the id_not_in of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_not_in of this SecurityGroupWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._id_not_in + + @id_not_in.setter + def id_not_in(self, id_not_in): + """Sets the id_not_in of this SecurityGroupWhereInput. + + + :param id_not_in: The id_not_in of this SecurityGroupWhereInput. # noqa: E501 + :type id_not_in: list[str] + """ + + self._id_not_in = id_not_in + + @property + def id_not_starts_with(self): + """Gets the id_not_starts_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_not_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_not_starts_with + + @id_not_starts_with.setter + def id_not_starts_with(self, id_not_starts_with): + """Sets the id_not_starts_with of this SecurityGroupWhereInput. + + + :param id_not_starts_with: The id_not_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :type id_not_starts_with: str + """ + + self._id_not_starts_with = id_not_starts_with + + @property + def id_starts_with(self): + """Gets the id_starts_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The id_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_starts_with + + @id_starts_with.setter + def id_starts_with(self, id_starts_with): + """Sets the id_starts_with of this SecurityGroupWhereInput. + + + :param id_starts_with: The id_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :type id_starts_with: str + """ + + self._id_starts_with = id_starts_with + + @property + def isolation_policies_every(self): + """Gets the isolation_policies_every of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The isolation_policies_every of this SecurityGroupWhereInput. # noqa: E501 + :rtype: IsolationPolicyWhereInput + """ + return self._isolation_policies_every + + @isolation_policies_every.setter + def isolation_policies_every(self, isolation_policies_every): + """Sets the isolation_policies_every of this SecurityGroupWhereInput. + + + :param isolation_policies_every: The isolation_policies_every of this SecurityGroupWhereInput. # noqa: E501 + :type isolation_policies_every: IsolationPolicyWhereInput + """ + + self._isolation_policies_every = isolation_policies_every + + @property + def isolation_policies_none(self): + """Gets the isolation_policies_none of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The isolation_policies_none of this SecurityGroupWhereInput. # noqa: E501 + :rtype: IsolationPolicyWhereInput + """ + return self._isolation_policies_none + + @isolation_policies_none.setter + def isolation_policies_none(self, isolation_policies_none): + """Sets the isolation_policies_none of this SecurityGroupWhereInput. + + + :param isolation_policies_none: The isolation_policies_none of this SecurityGroupWhereInput. # noqa: E501 + :type isolation_policies_none: IsolationPolicyWhereInput + """ + + self._isolation_policies_none = isolation_policies_none + + @property + def isolation_policies_some(self): + """Gets the isolation_policies_some of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The isolation_policies_some of this SecurityGroupWhereInput. # noqa: E501 + :rtype: IsolationPolicyWhereInput + """ + return self._isolation_policies_some + + @isolation_policies_some.setter + def isolation_policies_some(self, isolation_policies_some): + """Sets the isolation_policies_some of this SecurityGroupWhereInput. + + + :param isolation_policies_some: The isolation_policies_some of this SecurityGroupWhereInput. # noqa: E501 + :type isolation_policies_some: IsolationPolicyWhereInput + """ + + self._isolation_policies_some = isolation_policies_some + + @property + def name(self): + """Gets the name of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SecurityGroupWhereInput. + + + :param name: The name of this SecurityGroupWhereInput. # noqa: E501 + :type name: str + """ + + self._name = name + + @property + def name_contains(self): + """Gets the name_contains of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_contains of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_contains + + @name_contains.setter + def name_contains(self, name_contains): + """Sets the name_contains of this SecurityGroupWhereInput. + + + :param name_contains: The name_contains of this SecurityGroupWhereInput. # noqa: E501 + :type name_contains: str + """ + + self._name_contains = name_contains + + @property + def name_ends_with(self): + """Gets the name_ends_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_ends_with + + @name_ends_with.setter + def name_ends_with(self, name_ends_with): + """Sets the name_ends_with of this SecurityGroupWhereInput. + + + :param name_ends_with: The name_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :type name_ends_with: str + """ + + self._name_ends_with = name_ends_with + + @property + def name_gt(self): + """Gets the name_gt of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_gt of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_gt + + @name_gt.setter + def name_gt(self, name_gt): + """Sets the name_gt of this SecurityGroupWhereInput. + + + :param name_gt: The name_gt of this SecurityGroupWhereInput. # noqa: E501 + :type name_gt: str + """ + + self._name_gt = name_gt + + @property + def name_gte(self): + """Gets the name_gte of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_gte of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_gte + + @name_gte.setter + def name_gte(self, name_gte): + """Sets the name_gte of this SecurityGroupWhereInput. + + + :param name_gte: The name_gte of this SecurityGroupWhereInput. # noqa: E501 + :type name_gte: str + """ + + self._name_gte = name_gte + + @property + def name_in(self): + """Gets the name_in of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_in of this SecurityGroupWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._name_in + + @name_in.setter + def name_in(self, name_in): + """Sets the name_in of this SecurityGroupWhereInput. + + + :param name_in: The name_in of this SecurityGroupWhereInput. # noqa: E501 + :type name_in: list[str] + """ + + self._name_in = name_in + + @property + def name_lt(self): + """Gets the name_lt of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_lt of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_lt + + @name_lt.setter + def name_lt(self, name_lt): + """Sets the name_lt of this SecurityGroupWhereInput. + + + :param name_lt: The name_lt of this SecurityGroupWhereInput. # noqa: E501 + :type name_lt: str + """ + + self._name_lt = name_lt + + @property + def name_lte(self): + """Gets the name_lte of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_lte of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_lte + + @name_lte.setter + def name_lte(self, name_lte): + """Sets the name_lte of this SecurityGroupWhereInput. + + + :param name_lte: The name_lte of this SecurityGroupWhereInput. # noqa: E501 + :type name_lte: str + """ + + self._name_lte = name_lte + + @property + def name_not(self): + """Gets the name_not of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_not of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_not + + @name_not.setter + def name_not(self, name_not): + """Sets the name_not of this SecurityGroupWhereInput. + + + :param name_not: The name_not of this SecurityGroupWhereInput. # noqa: E501 + :type name_not: str + """ + + self._name_not = name_not + + @property + def name_not_contains(self): + """Gets the name_not_contains of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_not_contains of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_not_contains + + @name_not_contains.setter + def name_not_contains(self, name_not_contains): + """Sets the name_not_contains of this SecurityGroupWhereInput. + + + :param name_not_contains: The name_not_contains of this SecurityGroupWhereInput. # noqa: E501 + :type name_not_contains: str + """ + + self._name_not_contains = name_not_contains + + @property + def name_not_ends_with(self): + """Gets the name_not_ends_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_not_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_not_ends_with + + @name_not_ends_with.setter + def name_not_ends_with(self, name_not_ends_with): + """Sets the name_not_ends_with of this SecurityGroupWhereInput. + + + :param name_not_ends_with: The name_not_ends_with of this SecurityGroupWhereInput. # noqa: E501 + :type name_not_ends_with: str + """ + + self._name_not_ends_with = name_not_ends_with + + @property + def name_not_in(self): + """Gets the name_not_in of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_not_in of this SecurityGroupWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._name_not_in + + @name_not_in.setter + def name_not_in(self, name_not_in): + """Sets the name_not_in of this SecurityGroupWhereInput. + + + :param name_not_in: The name_not_in of this SecurityGroupWhereInput. # noqa: E501 + :type name_not_in: list[str] + """ + + self._name_not_in = name_not_in + + @property + def name_not_starts_with(self): + """Gets the name_not_starts_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_not_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_not_starts_with + + @name_not_starts_with.setter + def name_not_starts_with(self, name_not_starts_with): + """Sets the name_not_starts_with of this SecurityGroupWhereInput. + + + :param name_not_starts_with: The name_not_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :type name_not_starts_with: str + """ + + self._name_not_starts_with = name_not_starts_with + + @property + def name_starts_with(self): + """Gets the name_starts_with of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The name_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :rtype: str + """ + return self._name_starts_with + + @name_starts_with.setter + def name_starts_with(self, name_starts_with): + """Sets the name_starts_with of this SecurityGroupWhereInput. + + + :param name_starts_with: The name_starts_with of this SecurityGroupWhereInput. # noqa: E501 + :type name_starts_with: str + """ + + self._name_starts_with = name_starts_with + + @property + def _not(self): + """Gets the _not of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The _not of this SecurityGroupWhereInput. # noqa: E501 + :rtype: list[SecurityGroupWhereInput] + """ + return self.__not + + @_not.setter + def _not(self, _not): + """Sets the _not of this SecurityGroupWhereInput. + + + :param _not: The _not of this SecurityGroupWhereInput. # noqa: E501 + :type _not: list[SecurityGroupWhereInput] + """ + + self.__not = _not + + @property + def _or(self): + """Gets the _or of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The _or of this SecurityGroupWhereInput. # noqa: E501 + :rtype: list[SecurityGroupWhereInput] + """ + return self.__or + + @_or.setter + def _or(self, _or): + """Sets the _or of this SecurityGroupWhereInput. + + + :param _or: The _or of this SecurityGroupWhereInput. # noqa: E501 + :type _or: list[SecurityGroupWhereInput] + """ + + self.__or = _or + + @property + def security_policies_every(self): + """Gets the security_policies_every of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The security_policies_every of this SecurityGroupWhereInput. # noqa: E501 + :rtype: SecurityPolicyWhereInput + """ + return self._security_policies_every + + @security_policies_every.setter + def security_policies_every(self, security_policies_every): + """Sets the security_policies_every of this SecurityGroupWhereInput. + + + :param security_policies_every: The security_policies_every of this SecurityGroupWhereInput. # noqa: E501 + :type security_policies_every: SecurityPolicyWhereInput + """ + + self._security_policies_every = security_policies_every + + @property + def security_policies_none(self): + """Gets the security_policies_none of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The security_policies_none of this SecurityGroupWhereInput. # noqa: E501 + :rtype: SecurityPolicyWhereInput + """ + return self._security_policies_none + + @security_policies_none.setter + def security_policies_none(self, security_policies_none): + """Sets the security_policies_none of this SecurityGroupWhereInput. + + + :param security_policies_none: The security_policies_none of this SecurityGroupWhereInput. # noqa: E501 + :type security_policies_none: SecurityPolicyWhereInput + """ + + self._security_policies_none = security_policies_none + + @property + def security_policies_some(self): + """Gets the security_policies_some of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The security_policies_some of this SecurityGroupWhereInput. # noqa: E501 + :rtype: SecurityPolicyWhereInput + """ + return self._security_policies_some + + @security_policies_some.setter + def security_policies_some(self, security_policies_some): + """Sets the security_policies_some of this SecurityGroupWhereInput. + + + :param security_policies_some: The security_policies_some of this SecurityGroupWhereInput. # noqa: E501 + :type security_policies_some: SecurityPolicyWhereInput + """ + + self._security_policies_some = security_policies_some + + @property + def vms_every(self): + """Gets the vms_every of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The vms_every of this SecurityGroupWhereInput. # noqa: E501 + :rtype: VmWhereInput + """ + return self._vms_every + + @vms_every.setter + def vms_every(self, vms_every): + """Sets the vms_every of this SecurityGroupWhereInput. + + + :param vms_every: The vms_every of this SecurityGroupWhereInput. # noqa: E501 + :type vms_every: VmWhereInput + """ + + self._vms_every = vms_every + + @property + def vms_none(self): + """Gets the vms_none of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The vms_none of this SecurityGroupWhereInput. # noqa: E501 + :rtype: VmWhereInput + """ + return self._vms_none + + @vms_none.setter + def vms_none(self, vms_none): + """Sets the vms_none of this SecurityGroupWhereInput. + + + :param vms_none: The vms_none of this SecurityGroupWhereInput. # noqa: E501 + :type vms_none: VmWhereInput + """ + + self._vms_none = vms_none + + @property + def vms_some(self): + """Gets the vms_some of this SecurityGroupWhereInput. # noqa: E501 + + + :return: The vms_some of this SecurityGroupWhereInput. # noqa: E501 + :rtype: VmWhereInput + """ + return self._vms_some + + @vms_some.setter + def vms_some(self, vms_some): + """Sets the vms_some of this SecurityGroupWhereInput. + + + :param vms_some: The vms_some of this SecurityGroupWhereInput. # noqa: E501 + :type vms_some: VmWhereInput + """ + + self._vms_some = vms_some + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityGroupWhereInput): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityGroupWhereInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_policy_apply_to_input.py b/cloudtower/models/security_policy_apply_to_input.py new file mode 100644 index 00000000..21d4daa4 --- /dev/null +++ b/cloudtower/models/security_policy_apply_to_input.py @@ -0,0 +1,146 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityPolicyApplyToInput(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'communicable': 'bool', + 'target': 'SecurityPolicyApplyToInputTarget' + } + + attribute_map = { + 'communicable': 'communicable', + 'target': 'target' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityPolicyApplyToInput - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._communicable = None + self._target = None + self.discriminator = None + + if "communicable" in kwargs: + self.communicable = kwargs["communicable"] + if "target" in kwargs: + self.target = kwargs["target"] + + @property + def communicable(self): + """Gets the communicable of this SecurityPolicyApplyToInput. # noqa: E501 + + + :return: The communicable of this SecurityPolicyApplyToInput. # noqa: E501 + :rtype: bool + """ + return self._communicable + + @communicable.setter + def communicable(self, communicable): + """Sets the communicable of this SecurityPolicyApplyToInput. + + + :param communicable: The communicable of this SecurityPolicyApplyToInput. # noqa: E501 + :type communicable: bool + """ + + self._communicable = communicable + + @property + def target(self): + """Gets the target of this SecurityPolicyApplyToInput. # noqa: E501 + + + :return: The target of this SecurityPolicyApplyToInput. # noqa: E501 + :rtype: SecurityPolicyApplyToInputTarget + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this SecurityPolicyApplyToInput. + + + :param target: The target of this SecurityPolicyApplyToInput. # noqa: E501 + :type target: SecurityPolicyApplyToInputTarget + """ + if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501 + raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 + + self._target = target + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityPolicyApplyToInput): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityPolicyApplyToInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_policy_apply_to_input_target.py b/cloudtower/models/security_policy_apply_to_input_target.py new file mode 100644 index 00000000..80c4909e --- /dev/null +++ b/cloudtower/models/security_policy_apply_to_input_target.py @@ -0,0 +1,144 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityPolicyApplyToInputTarget(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'security_groups': 'SecurityGroupWhereInput', + 'label_groups': 'list[LabelWhereInput]' + } + + attribute_map = { + 'security_groups': 'security_groups', + 'label_groups': 'label_groups' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityPolicyApplyToInputTarget - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._security_groups = None + self._label_groups = None + self.discriminator = None + + if "security_groups" in kwargs: + self.security_groups = kwargs["security_groups"] + if "label_groups" in kwargs: + self.label_groups = kwargs["label_groups"] + + @property + def security_groups(self): + """Gets the security_groups of this SecurityPolicyApplyToInputTarget. # noqa: E501 + + + :return: The security_groups of this SecurityPolicyApplyToInputTarget. # noqa: E501 + :rtype: SecurityGroupWhereInput + """ + return self._security_groups + + @security_groups.setter + def security_groups(self, security_groups): + """Sets the security_groups of this SecurityPolicyApplyToInputTarget. + + + :param security_groups: The security_groups of this SecurityPolicyApplyToInputTarget. # noqa: E501 + :type security_groups: SecurityGroupWhereInput + """ + + self._security_groups = security_groups + + @property + def label_groups(self): + """Gets the label_groups of this SecurityPolicyApplyToInputTarget. # noqa: E501 + + + :return: The label_groups of this SecurityPolicyApplyToInputTarget. # noqa: E501 + :rtype: list[LabelWhereInput] + """ + return self._label_groups + + @label_groups.setter + def label_groups(self, label_groups): + """Sets the label_groups of this SecurityPolicyApplyToInputTarget. + + + :param label_groups: The label_groups of this SecurityPolicyApplyToInputTarget. # noqa: E501 + :type label_groups: list[LabelWhereInput] + """ + + self._label_groups = label_groups + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityPolicyApplyToInputTarget): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityPolicyApplyToInputTarget): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_policy_create_params.py b/cloudtower/models/security_policy_create_params.py new file mode 100644 index 00000000..93cb4940 --- /dev/null +++ b/cloudtower/models/security_policy_create_params.py @@ -0,0 +1,284 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityPolicyCreateParams(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'ingress': 'list[SecurityPolicyIngressEgressInput]', + 'egress': 'list[SecurityPolicyIngressEgressInput]', + 'apply_to': 'list[SecurityPolicyApplyToInput]', + 'policy_mode': 'PolicyMode', + 'everoute_cluster_id': 'str', + 'description': 'str', + 'name': 'str' + } + + attribute_map = { + 'ingress': 'ingress', + 'egress': 'egress', + 'apply_to': 'apply_to', + 'policy_mode': 'policy_mode', + 'everoute_cluster_id': 'everoute_cluster_id', + 'description': 'description', + 'name': 'name' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityPolicyCreateParams - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._ingress = None + self._egress = None + self._apply_to = None + self._policy_mode = None + self._everoute_cluster_id = None + self._description = None + self._name = None + self.discriminator = None + + if "ingress" in kwargs: + self.ingress = kwargs["ingress"] + if "egress" in kwargs: + self.egress = kwargs["egress"] + if "apply_to" in kwargs: + self.apply_to = kwargs["apply_to"] + if "policy_mode" in kwargs: + self.policy_mode = kwargs["policy_mode"] + if "everoute_cluster_id" in kwargs: + self.everoute_cluster_id = kwargs["everoute_cluster_id"] + if "description" in kwargs: + self.description = kwargs["description"] + if "name" in kwargs: + self.name = kwargs["name"] + + @property + def ingress(self): + """Gets the ingress of this SecurityPolicyCreateParams. # noqa: E501 + + + :return: The ingress of this SecurityPolicyCreateParams. # noqa: E501 + :rtype: list[SecurityPolicyIngressEgressInput] + """ + return self._ingress + + @ingress.setter + def ingress(self, ingress): + """Sets the ingress of this SecurityPolicyCreateParams. + + + :param ingress: The ingress of this SecurityPolicyCreateParams. # noqa: E501 + :type ingress: list[SecurityPolicyIngressEgressInput] + """ + + self._ingress = ingress + + @property + def egress(self): + """Gets the egress of this SecurityPolicyCreateParams. # noqa: E501 + + + :return: The egress of this SecurityPolicyCreateParams. # noqa: E501 + :rtype: list[SecurityPolicyIngressEgressInput] + """ + return self._egress + + @egress.setter + def egress(self, egress): + """Sets the egress of this SecurityPolicyCreateParams. + + + :param egress: The egress of this SecurityPolicyCreateParams. # noqa: E501 + :type egress: list[SecurityPolicyIngressEgressInput] + """ + + self._egress = egress + + @property + def apply_to(self): + """Gets the apply_to of this SecurityPolicyCreateParams. # noqa: E501 + + + :return: The apply_to of this SecurityPolicyCreateParams. # noqa: E501 + :rtype: list[SecurityPolicyApplyToInput] + """ + return self._apply_to + + @apply_to.setter + def apply_to(self, apply_to): + """Sets the apply_to of this SecurityPolicyCreateParams. + + + :param apply_to: The apply_to of this SecurityPolicyCreateParams. # noqa: E501 + :type apply_to: list[SecurityPolicyApplyToInput] + """ + if (self.local_vars_configuration.client_side_validation and + apply_to is not None and len(apply_to) < 1): + raise ValueError("Invalid value for `apply_to`, number of items must be greater than or equal to `1`") # noqa: E501 + + self._apply_to = apply_to + + @property + def policy_mode(self): + """Gets the policy_mode of this SecurityPolicyCreateParams. # noqa: E501 + + + :return: The policy_mode of this SecurityPolicyCreateParams. # noqa: E501 + :rtype: PolicyMode + """ + return self._policy_mode + + @policy_mode.setter + def policy_mode(self, policy_mode): + """Sets the policy_mode of this SecurityPolicyCreateParams. + + + :param policy_mode: The policy_mode of this SecurityPolicyCreateParams. # noqa: E501 + :type policy_mode: PolicyMode + """ + + self._policy_mode = policy_mode + + @property + def everoute_cluster_id(self): + """Gets the everoute_cluster_id of this SecurityPolicyCreateParams. # noqa: E501 + + + :return: The everoute_cluster_id of this SecurityPolicyCreateParams. # noqa: E501 + :rtype: str + """ + return self._everoute_cluster_id + + @everoute_cluster_id.setter + def everoute_cluster_id(self, everoute_cluster_id): + """Sets the everoute_cluster_id of this SecurityPolicyCreateParams. + + + :param everoute_cluster_id: The everoute_cluster_id of this SecurityPolicyCreateParams. # noqa: E501 + :type everoute_cluster_id: str + """ + if self.local_vars_configuration.client_side_validation and everoute_cluster_id is None: # noqa: E501 + raise ValueError("Invalid value for `everoute_cluster_id`, must not be `None`") # noqa: E501 + + self._everoute_cluster_id = everoute_cluster_id + + @property + def description(self): + """Gets the description of this SecurityPolicyCreateParams. # noqa: E501 + + + :return: The description of this SecurityPolicyCreateParams. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this SecurityPolicyCreateParams. + + + :param description: The description of this SecurityPolicyCreateParams. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this SecurityPolicyCreateParams. # noqa: E501 + + + :return: The name of this SecurityPolicyCreateParams. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SecurityPolicyCreateParams. + + + :param name: The name of this SecurityPolicyCreateParams. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + + self._name = name + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityPolicyCreateParams): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityPolicyCreateParams): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_policy_delete_params.py b/cloudtower/models/security_policy_delete_params.py new file mode 100644 index 00000000..5d163a98 --- /dev/null +++ b/cloudtower/models/security_policy_delete_params.py @@ -0,0 +1,120 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityPolicyDeleteParams(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'where': 'SecurityPolicyWhereInput' + } + + attribute_map = { + 'where': 'where' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityPolicyDeleteParams - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._where = None + self.discriminator = None + + if "where" in kwargs: + self.where = kwargs["where"] + + @property + def where(self): + """Gets the where of this SecurityPolicyDeleteParams. # noqa: E501 + + + :return: The where of this SecurityPolicyDeleteParams. # noqa: E501 + :rtype: SecurityPolicyWhereInput + """ + return self._where + + @where.setter + def where(self, where): + """Sets the where of this SecurityPolicyDeleteParams. + + + :param where: The where of this SecurityPolicyDeleteParams. # noqa: E501 + :type where: SecurityPolicyWhereInput + """ + if self.local_vars_configuration.client_side_validation and where is None: # noqa: E501 + raise ValueError("Invalid value for `where`, must not be `None`") # noqa: E501 + + self._where = where + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityPolicyDeleteParams): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityPolicyDeleteParams): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_policy_ingress_egress_input.py b/cloudtower/models/security_policy_ingress_egress_input.py new file mode 100644 index 00000000..1b3f22f6 --- /dev/null +++ b/cloudtower/models/security_policy_ingress_egress_input.py @@ -0,0 +1,146 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityPolicyIngressEgressInput(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'ports': 'list[NetworkPolicyRulePortInput]', + 'target': 'SecurityPolicyIngressEgressInputTarget' + } + + attribute_map = { + 'ports': 'ports', + 'target': 'target' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityPolicyIngressEgressInput - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._ports = None + self._target = None + self.discriminator = None + + if "ports" in kwargs: + self.ports = kwargs["ports"] + if "target" in kwargs: + self.target = kwargs["target"] + + @property + def ports(self): + """Gets the ports of this SecurityPolicyIngressEgressInput. # noqa: E501 + + + :return: The ports of this SecurityPolicyIngressEgressInput. # noqa: E501 + :rtype: list[NetworkPolicyRulePortInput] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """Sets the ports of this SecurityPolicyIngressEgressInput. + + + :param ports: The ports of this SecurityPolicyIngressEgressInput. # noqa: E501 + :type ports: list[NetworkPolicyRulePortInput] + """ + + self._ports = ports + + @property + def target(self): + """Gets the target of this SecurityPolicyIngressEgressInput. # noqa: E501 + + + :return: The target of this SecurityPolicyIngressEgressInput. # noqa: E501 + :rtype: SecurityPolicyIngressEgressInputTarget + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this SecurityPolicyIngressEgressInput. + + + :param target: The target of this SecurityPolicyIngressEgressInput. # noqa: E501 + :type target: SecurityPolicyIngressEgressInputTarget + """ + if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501 + raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 + + self._target = target + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityPolicyIngressEgressInput): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityPolicyIngressEgressInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_policy_ingress_egress_input_target.py b/cloudtower/models/security_policy_ingress_egress_input_target.py new file mode 100644 index 00000000..240f1876 --- /dev/null +++ b/cloudtower/models/security_policy_ingress_egress_input_target.py @@ -0,0 +1,170 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityPolicyIngressEgressInputTarget(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'security_groups': 'SecurityGroupWhereInput', + 'ips': 'list[IPSecurityPolicy]', + 'label_groups': 'list[LabelWhereInput]' + } + + attribute_map = { + 'security_groups': 'security_groups', + 'ips': 'ips', + 'label_groups': 'label_groups' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityPolicyIngressEgressInputTarget - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._security_groups = None + self._ips = None + self._label_groups = None + self.discriminator = None + + if "security_groups" in kwargs: + self.security_groups = kwargs["security_groups"] + if "ips" in kwargs: + self.ips = kwargs["ips"] + if "label_groups" in kwargs: + self.label_groups = kwargs["label_groups"] + + @property + def security_groups(self): + """Gets the security_groups of this SecurityPolicyIngressEgressInputTarget. # noqa: E501 + + + :return: The security_groups of this SecurityPolicyIngressEgressInputTarget. # noqa: E501 + :rtype: SecurityGroupWhereInput + """ + return self._security_groups + + @security_groups.setter + def security_groups(self, security_groups): + """Sets the security_groups of this SecurityPolicyIngressEgressInputTarget. + + + :param security_groups: The security_groups of this SecurityPolicyIngressEgressInputTarget. # noqa: E501 + :type security_groups: SecurityGroupWhereInput + """ + + self._security_groups = security_groups + + @property + def ips(self): + """Gets the ips of this SecurityPolicyIngressEgressInputTarget. # noqa: E501 + + + :return: The ips of this SecurityPolicyIngressEgressInputTarget. # noqa: E501 + :rtype: list[IPSecurityPolicy] + """ + return self._ips + + @ips.setter + def ips(self, ips): + """Sets the ips of this SecurityPolicyIngressEgressInputTarget. + + + :param ips: The ips of this SecurityPolicyIngressEgressInputTarget. # noqa: E501 + :type ips: list[IPSecurityPolicy] + """ + + self._ips = ips + + @property + def label_groups(self): + """Gets the label_groups of this SecurityPolicyIngressEgressInputTarget. # noqa: E501 + + + :return: The label_groups of this SecurityPolicyIngressEgressInputTarget. # noqa: E501 + :rtype: list[LabelWhereInput] + """ + return self._label_groups + + @label_groups.setter + def label_groups(self, label_groups): + """Sets the label_groups of this SecurityPolicyIngressEgressInputTarget. + + + :param label_groups: The label_groups of this SecurityPolicyIngressEgressInputTarget. # noqa: E501 + :type label_groups: list[LabelWhereInput] + """ + + self._label_groups = label_groups + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityPolicyIngressEgressInputTarget): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityPolicyIngressEgressInputTarget): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_policy_update_body.py b/cloudtower/models/security_policy_update_body.py new file mode 100644 index 00000000..07b62e9c --- /dev/null +++ b/cloudtower/models/security_policy_update_body.py @@ -0,0 +1,148 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityPolicyUpdateBody(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'SecurityPolicyUpdateParams', + 'where': 'SecurityPolicyWhereInput' + } + + attribute_map = { + 'data': 'data', + 'where': 'where' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityPolicyUpdateBody - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._data = None + self._where = None + self.discriminator = None + + if "data" in kwargs: + self.data = kwargs["data"] + if "where" in kwargs: + self.where = kwargs["where"] + + @property + def data(self): + """Gets the data of this SecurityPolicyUpdateBody. # noqa: E501 + + + :return: The data of this SecurityPolicyUpdateBody. # noqa: E501 + :rtype: SecurityPolicyUpdateParams + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this SecurityPolicyUpdateBody. + + + :param data: The data of this SecurityPolicyUpdateBody. # noqa: E501 + :type data: SecurityPolicyUpdateParams + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + @property + def where(self): + """Gets the where of this SecurityPolicyUpdateBody. # noqa: E501 + + + :return: The where of this SecurityPolicyUpdateBody. # noqa: E501 + :rtype: SecurityPolicyWhereInput + """ + return self._where + + @where.setter + def where(self, where): + """Sets the where of this SecurityPolicyUpdateBody. + + + :param where: The where of this SecurityPolicyUpdateBody. # noqa: E501 + :type where: SecurityPolicyWhereInput + """ + if self.local_vars_configuration.client_side_validation and where is None: # noqa: E501 + raise ValueError("Invalid value for `where`, must not be `None`") # noqa: E501 + + self._where = where + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityPolicyUpdateBody): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityPolicyUpdateBody): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/security_policy_update_params.py b/cloudtower/models/security_policy_update_params.py new file mode 100644 index 00000000..484937db --- /dev/null +++ b/cloudtower/models/security_policy_update_params.py @@ -0,0 +1,196 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class SecurityPolicyUpdateParams(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'ingress': 'list[SecurityPolicyIngressEgressInput]', + 'egress': 'list[SecurityPolicyIngressEgressInput]', + 'apply_to': 'list[SecurityPolicyApplyToInput]', + 'policy_mode': 'PolicyMode' + } + + attribute_map = { + 'ingress': 'ingress', + 'egress': 'egress', + 'apply_to': 'apply_to', + 'policy_mode': 'policy_mode' + } + + def __init__(self, **kwargs): # noqa: E501 + """SecurityPolicyUpdateParams - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._ingress = None + self._egress = None + self._apply_to = None + self._policy_mode = None + self.discriminator = None + + if "ingress" in kwargs: + self.ingress = kwargs["ingress"] + if "egress" in kwargs: + self.egress = kwargs["egress"] + if "apply_to" in kwargs: + self.apply_to = kwargs["apply_to"] + if "policy_mode" in kwargs: + self.policy_mode = kwargs["policy_mode"] + + @property + def ingress(self): + """Gets the ingress of this SecurityPolicyUpdateParams. # noqa: E501 + + + :return: The ingress of this SecurityPolicyUpdateParams. # noqa: E501 + :rtype: list[SecurityPolicyIngressEgressInput] + """ + return self._ingress + + @ingress.setter + def ingress(self, ingress): + """Sets the ingress of this SecurityPolicyUpdateParams. + + + :param ingress: The ingress of this SecurityPolicyUpdateParams. # noqa: E501 + :type ingress: list[SecurityPolicyIngressEgressInput] + """ + + self._ingress = ingress + + @property + def egress(self): + """Gets the egress of this SecurityPolicyUpdateParams. # noqa: E501 + + + :return: The egress of this SecurityPolicyUpdateParams. # noqa: E501 + :rtype: list[SecurityPolicyIngressEgressInput] + """ + return self._egress + + @egress.setter + def egress(self, egress): + """Sets the egress of this SecurityPolicyUpdateParams. + + + :param egress: The egress of this SecurityPolicyUpdateParams. # noqa: E501 + :type egress: list[SecurityPolicyIngressEgressInput] + """ + + self._egress = egress + + @property + def apply_to(self): + """Gets the apply_to of this SecurityPolicyUpdateParams. # noqa: E501 + + + :return: The apply_to of this SecurityPolicyUpdateParams. # noqa: E501 + :rtype: list[SecurityPolicyApplyToInput] + """ + return self._apply_to + + @apply_to.setter + def apply_to(self, apply_to): + """Sets the apply_to of this SecurityPolicyUpdateParams. + + + :param apply_to: The apply_to of this SecurityPolicyUpdateParams. # noqa: E501 + :type apply_to: list[SecurityPolicyApplyToInput] + """ + + self._apply_to = apply_to + + @property + def policy_mode(self): + """Gets the policy_mode of this SecurityPolicyUpdateParams. # noqa: E501 + + + :return: The policy_mode of this SecurityPolicyUpdateParams. # noqa: E501 + :rtype: PolicyMode + """ + return self._policy_mode + + @policy_mode.setter + def policy_mode(self, policy_mode): + """Sets the policy_mode of this SecurityPolicyUpdateParams. + + + :param policy_mode: The policy_mode of this SecurityPolicyUpdateParams. # noqa: E501 + :type policy_mode: PolicyMode + """ + + self._policy_mode = policy_mode + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityPolicyUpdateParams): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityPolicyUpdateParams): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/usb_device.py b/cloudtower/models/usb_device.py index c97cfdab..3fe04e15 100644 --- a/cloudtower/models/usb_device.py +++ b/cloudtower/models/usb_device.py @@ -27,6 +27,7 @@ class UsbDevice(object): openapi_types = { 'binded': 'bool', 'description': 'str', + 'entity_async_status': 'EntityAsyncStatus', 'host': 'NestedHost', 'id': 'str', 'local_created_at': 'str', @@ -43,6 +44,7 @@ class UsbDevice(object): attribute_map = { 'binded': 'binded', 'description': 'description', + 'entity_async_status': 'entityAsyncStatus', 'host': 'host', 'id': 'id', 'local_created_at': 'local_created_at', @@ -62,6 +64,7 @@ def __init__(self, **kwargs): # noqa: E501 self._binded = None self._description = None + self._entity_async_status = None self._host = None self._id = None self._local_created_at = None @@ -79,6 +82,7 @@ def __init__(self, **kwargs): # noqa: E501 self.binded = kwargs["binded"] if "description" in kwargs: self.description = kwargs["description"] + self.entity_async_status = kwargs.get("entity_async_status", None) if "host" in kwargs: self.host = kwargs["host"] if "id" in kwargs: @@ -146,6 +150,27 @@ def description(self, description): self._description = description + @property + def entity_async_status(self): + """Gets the entity_async_status of this UsbDevice. # noqa: E501 + + + :return: The entity_async_status of this UsbDevice. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this UsbDevice. + + + :param entity_async_status: The entity_async_status of this UsbDevice. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + @property def host(self): """Gets the host of this UsbDevice. # noqa: E501 diff --git a/cloudtower/models/usb_device_order_by_input.py b/cloudtower/models/usb_device_order_by_input.py index a8eacbcf..a36a4a1f 100644 --- a/cloudtower/models/usb_device_order_by_input.py +++ b/cloudtower/models/usb_device_order_by_input.py @@ -24,6 +24,8 @@ class UsbDeviceOrderByInput(object): BINDED_DESC = "binded_DESC" DESCRIPTION_ASC = "description_ASC" DESCRIPTION_DESC = "description_DESC" + ENTITYASYNCSTATUS_ASC = "entityAsyncStatus_ASC" + ENTITYASYNCSTATUS_DESC = "entityAsyncStatus_DESC" ID_ASC = "id_ASC" ID_DESC = "id_DESC" LOCAL_CREATED_AT_ASC = "local_created_at_ASC" @@ -41,7 +43,7 @@ class UsbDeviceOrderByInput(object): USB_TYPE_ASC = "usb_type_ASC" USB_TYPE_DESC = "usb_type_DESC" - allowable_values = [BINDED_ASC, BINDED_DESC, DESCRIPTION_ASC, DESCRIPTION_DESC, ID_ASC, ID_DESC, LOCAL_CREATED_AT_ASC, LOCAL_CREATED_AT_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, MANUFACTURER_ASC, MANUFACTURER_DESC, NAME_ASC, NAME_DESC, SIZE_ASC, SIZE_DESC, STATUS_ASC, STATUS_DESC, USB_TYPE_ASC, USB_TYPE_DESC] # noqa: E501 + allowable_values = [BINDED_ASC, BINDED_DESC, DESCRIPTION_ASC, DESCRIPTION_DESC, ENTITYASYNCSTATUS_ASC, ENTITYASYNCSTATUS_DESC, ID_ASC, ID_DESC, LOCAL_CREATED_AT_ASC, LOCAL_CREATED_AT_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, MANUFACTURER_ASC, MANUFACTURER_DESC, NAME_ASC, NAME_DESC, SIZE_ASC, SIZE_DESC, STATUS_ASC, STATUS_DESC, USB_TYPE_ASC, USB_TYPE_DESC] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/usb_device_where_input.py b/cloudtower/models/usb_device_where_input.py index c4c09b8a..668478d4 100644 --- a/cloudtower/models/usb_device_where_input.py +++ b/cloudtower/models/usb_device_where_input.py @@ -42,6 +42,10 @@ class UsbDeviceWhereInput(object): 'description_not_in': 'list[str]', 'description_not_starts_with': 'str', 'description_starts_with': 'str', + 'entity_async_status': 'EntityAsyncStatus', + 'entity_async_status_in': 'list[EntityAsyncStatus]', + 'entity_async_status_not': 'EntityAsyncStatus', + 'entity_async_status_not_in': 'list[EntityAsyncStatus]', 'host': 'HostWhereInput', 'id': 'str', 'id_contains': 'str', @@ -158,6 +162,10 @@ class UsbDeviceWhereInput(object): 'description_not_in': 'description_not_in', 'description_not_starts_with': 'description_not_starts_with', 'description_starts_with': 'description_starts_with', + 'entity_async_status': 'entityAsyncStatus', + 'entity_async_status_in': 'entityAsyncStatus_in', + 'entity_async_status_not': 'entityAsyncStatus_not', + 'entity_async_status_not_in': 'entityAsyncStatus_not_in', 'host': 'host', 'id': 'id', 'id_contains': 'id_contains', @@ -277,6 +285,10 @@ def __init__(self, **kwargs): # noqa: E501 self._description_not_in = None self._description_not_starts_with = None self._description_starts_with = None + self._entity_async_status = None + self._entity_async_status_in = None + self._entity_async_status_not = None + self._entity_async_status_not_in = None self._host = None self._id = None self._id_contains = None @@ -392,6 +404,10 @@ def __init__(self, **kwargs): # noqa: E501 self.description_not_in = kwargs.get("description_not_in", None) self.description_not_starts_with = kwargs.get("description_not_starts_with", None) self.description_starts_with = kwargs.get("description_starts_with", None) + self.entity_async_status = kwargs.get("entity_async_status", None) + self.entity_async_status_in = kwargs.get("entity_async_status_in", None) + self.entity_async_status_not = kwargs.get("entity_async_status_not", None) + self.entity_async_status_not_in = kwargs.get("entity_async_status_not_in", None) self.host = kwargs.get("host", None) self.id = kwargs.get("id", None) self.id_contains = kwargs.get("id_contains", None) @@ -846,6 +862,90 @@ def description_starts_with(self, description_starts_with): self._description_starts_with = description_starts_with + @property + def entity_async_status(self): + """Gets the entity_async_status of this UsbDeviceWhereInput. # noqa: E501 + + + :return: The entity_async_status of this UsbDeviceWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this UsbDeviceWhereInput. + + + :param entity_async_status: The entity_async_status of this UsbDeviceWhereInput. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + + @property + def entity_async_status_in(self): + """Gets the entity_async_status_in of this UsbDeviceWhereInput. # noqa: E501 + + + :return: The entity_async_status_in of this UsbDeviceWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_in + + @entity_async_status_in.setter + def entity_async_status_in(self, entity_async_status_in): + """Sets the entity_async_status_in of this UsbDeviceWhereInput. + + + :param entity_async_status_in: The entity_async_status_in of this UsbDeviceWhereInput. # noqa: E501 + :type entity_async_status_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_in = entity_async_status_in + + @property + def entity_async_status_not(self): + """Gets the entity_async_status_not of this UsbDeviceWhereInput. # noqa: E501 + + + :return: The entity_async_status_not of this UsbDeviceWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status_not + + @entity_async_status_not.setter + def entity_async_status_not(self, entity_async_status_not): + """Sets the entity_async_status_not of this UsbDeviceWhereInput. + + + :param entity_async_status_not: The entity_async_status_not of this UsbDeviceWhereInput. # noqa: E501 + :type entity_async_status_not: EntityAsyncStatus + """ + + self._entity_async_status_not = entity_async_status_not + + @property + def entity_async_status_not_in(self): + """Gets the entity_async_status_not_in of this UsbDeviceWhereInput. # noqa: E501 + + + :return: The entity_async_status_not_in of this UsbDeviceWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_not_in + + @entity_async_status_not_in.setter + def entity_async_status_not_in(self, entity_async_status_not_in): + """Sets the entity_async_status_not_in of this UsbDeviceWhereInput. + + + :param entity_async_status_not_in: The entity_async_status_not_in of this UsbDeviceWhereInput. # noqa: E501 + :type entity_async_status_not_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_not_in = entity_async_status_not_in + @property def host(self): """Gets the host of this UsbDeviceWhereInput. # noqa: E501 diff --git a/cloudtower/models/user.py b/cloudtower/models/user.py index 26ea30a8..4ff4c947 100644 --- a/cloudtower/models/user.py +++ b/cloudtower/models/user.py @@ -25,6 +25,8 @@ class User(object): and the value is json key in definition. """ openapi_types = { + 'auth_config_id': 'str', + 'display_username': 'str', 'email_address': 'str', 'id': 'str', 'internal': 'bool', @@ -41,6 +43,8 @@ class User(object): } attribute_map = { + 'auth_config_id': 'auth_config_id', + 'display_username': 'display_username', 'email_address': 'email_address', 'id': 'id', 'internal': 'internal', @@ -60,6 +64,8 @@ def __init__(self, **kwargs): # noqa: E501 """User - a model defined in OpenAPI""" # noqa: E501 self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + self._auth_config_id = None + self._display_username = None self._email_address = None self._id = None self._internal = None @@ -75,6 +81,9 @@ def __init__(self, **kwargs): # noqa: E501 self._username = None self.discriminator = None + self.auth_config_id = kwargs.get("auth_config_id", None) + if "display_username" in kwargs: + self.display_username = kwargs["display_username"] self.email_address = kwargs.get("email_address", None) if "id" in kwargs: self.id = kwargs["id"] @@ -94,6 +103,50 @@ def __init__(self, **kwargs): # noqa: E501 if "username" in kwargs: self.username = kwargs["username"] + @property + def auth_config_id(self): + """Gets the auth_config_id of this User. # noqa: E501 + + + :return: The auth_config_id of this User. # noqa: E501 + :rtype: str + """ + return self._auth_config_id + + @auth_config_id.setter + def auth_config_id(self, auth_config_id): + """Sets the auth_config_id of this User. + + + :param auth_config_id: The auth_config_id of this User. # noqa: E501 + :type auth_config_id: str + """ + + self._auth_config_id = auth_config_id + + @property + def display_username(self): + """Gets the display_username of this User. # noqa: E501 + + + :return: The display_username of this User. # noqa: E501 + :rtype: str + """ + return self._display_username + + @display_username.setter + def display_username(self, display_username): + """Sets the display_username of this User. + + + :param display_username: The display_username of this User. # noqa: E501 + :type display_username: str + """ + if self.local_vars_configuration.client_side_validation and display_username is None: # noqa: E501 + raise ValueError("Invalid value for `display_username`, must not be `None`") # noqa: E501 + + self._display_username = display_username + @property def email_address(self): """Gets the email_address of this User. # noqa: E501 diff --git a/cloudtower/models/user_creation_params.py b/cloudtower/models/user_creation_params.py index 9bb41426..28ea14f3 100644 --- a/cloudtower/models/user_creation_params.py +++ b/cloudtower/models/user_creation_params.py @@ -25,6 +25,9 @@ class UserCreationParams(object): and the value is json key in definition. """ openapi_types = { + 'auth_config_id': 'str', + 'ldap_dn': 'str', + 'source': 'UserSource', 'mobile_phone': 'str', 'email_address': 'str', 'internal': 'bool', @@ -35,6 +38,9 @@ class UserCreationParams(object): } attribute_map = { + 'auth_config_id': 'auth_config_id', + 'ldap_dn': 'ldap_dn', + 'source': 'source', 'mobile_phone': 'mobile_phone', 'email_address': 'email_address', 'internal': 'internal', @@ -48,6 +54,9 @@ def __init__(self, **kwargs): # noqa: E501 """UserCreationParams - a model defined in OpenAPI""" # noqa: E501 self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + self._auth_config_id = None + self._ldap_dn = None + self._source = None self._mobile_phone = None self._email_address = None self._internal = None @@ -57,6 +66,12 @@ def __init__(self, **kwargs): # noqa: E501 self._username = None self.discriminator = None + if "auth_config_id" in kwargs: + self.auth_config_id = kwargs["auth_config_id"] + if "ldap_dn" in kwargs: + self.ldap_dn = kwargs["ldap_dn"] + if "source" in kwargs: + self.source = kwargs["source"] if "mobile_phone" in kwargs: self.mobile_phone = kwargs["mobile_phone"] if "email_address" in kwargs: @@ -72,6 +87,69 @@ def __init__(self, **kwargs): # noqa: E501 if "username" in kwargs: self.username = kwargs["username"] + @property + def auth_config_id(self): + """Gets the auth_config_id of this UserCreationParams. # noqa: E501 + + + :return: The auth_config_id of this UserCreationParams. # noqa: E501 + :rtype: str + """ + return self._auth_config_id + + @auth_config_id.setter + def auth_config_id(self, auth_config_id): + """Sets the auth_config_id of this UserCreationParams. + + + :param auth_config_id: The auth_config_id of this UserCreationParams. # noqa: E501 + :type auth_config_id: str + """ + + self._auth_config_id = auth_config_id + + @property + def ldap_dn(self): + """Gets the ldap_dn of this UserCreationParams. # noqa: E501 + + + :return: The ldap_dn of this UserCreationParams. # noqa: E501 + :rtype: str + """ + return self._ldap_dn + + @ldap_dn.setter + def ldap_dn(self, ldap_dn): + """Sets the ldap_dn of this UserCreationParams. + + + :param ldap_dn: The ldap_dn of this UserCreationParams. # noqa: E501 + :type ldap_dn: str + """ + + self._ldap_dn = ldap_dn + + @property + def source(self): + """Gets the source of this UserCreationParams. # noqa: E501 + + + :return: The source of this UserCreationParams. # noqa: E501 + :rtype: UserSource + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this UserCreationParams. + + + :param source: The source of this UserCreationParams. # noqa: E501 + :type source: UserSource + """ + + self._source = source + @property def mobile_phone(self): """Gets the mobile_phone of this UserCreationParams. # noqa: E501 @@ -199,8 +277,6 @@ def password(self, password): :param password: The password of this UserCreationParams. # noqa: E501 :type password: str """ - if self.local_vars_configuration.client_side_validation and password is None: # noqa: E501 - raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501 self._password = password diff --git a/cloudtower/models/user_order_by_input.py b/cloudtower/models/user_order_by_input.py index a67c73bb..244b6f47 100644 --- a/cloudtower/models/user_order_by_input.py +++ b/cloudtower/models/user_order_by_input.py @@ -20,6 +20,10 @@ class UserOrderByInput(object): """ allowed enum values """ + AUTH_CONFIG_ID_ASC = "auth_config_id_ASC" + AUTH_CONFIG_ID_DESC = "auth_config_id_DESC" + DISPLAY_USERNAME_ASC = "display_username_ASC" + DISPLAY_USERNAME_DESC = "display_username_DESC" EMAIL_ADDRESS_ASC = "email_address_ASC" EMAIL_ADDRESS_DESC = "email_address_DESC" ID_ASC = "id_ASC" @@ -45,7 +49,7 @@ class UserOrderByInput(object): USERNAME_ASC = "username_ASC" USERNAME_DESC = "username_DESC" - allowable_values = [EMAIL_ADDRESS_ASC, EMAIL_ADDRESS_DESC, ID_ASC, ID_DESC, INTERNAL_ASC, INTERNAL_DESC, LDAP_DN_ASC, LDAP_DN_DESC, MOBILE_PHONE_ASC, MOBILE_PHONE_DESC, NAME_ASC, NAME_DESC, PASSWORD_EXPIRED_ASC, PASSWORD_EXPIRED_DESC, PASSWORD_RECOVER_QA_ASC, PASSWORD_RECOVER_QA_DESC, PASSWORD_UPDATED_AT_ASC, PASSWORD_UPDATED_AT_DESC, ROLE_ASC, ROLE_DESC, SOURCE_ASC, SOURCE_DESC, USERNAME_ASC, USERNAME_DESC] # noqa: E501 + allowable_values = [AUTH_CONFIG_ID_ASC, AUTH_CONFIG_ID_DESC, DISPLAY_USERNAME_ASC, DISPLAY_USERNAME_DESC, EMAIL_ADDRESS_ASC, EMAIL_ADDRESS_DESC, ID_ASC, ID_DESC, INTERNAL_ASC, INTERNAL_DESC, LDAP_DN_ASC, LDAP_DN_DESC, MOBILE_PHONE_ASC, MOBILE_PHONE_DESC, NAME_ASC, NAME_DESC, PASSWORD_EXPIRED_ASC, PASSWORD_EXPIRED_DESC, PASSWORD_RECOVER_QA_ASC, PASSWORD_RECOVER_QA_DESC, PASSWORD_UPDATED_AT_ASC, PASSWORD_UPDATED_AT_DESC, ROLE_ASC, ROLE_DESC, SOURCE_ASC, SOURCE_DESC, USERNAME_ASC, USERNAME_DESC] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/user_source.py b/cloudtower/models/user_source.py index e6553a67..41e88b03 100644 --- a/cloudtower/models/user_source.py +++ b/cloudtower/models/user_source.py @@ -20,10 +20,11 @@ class UserSource(object): """ allowed enum values """ + AUTHN = "AUTHN" LDAP = "LDAP" LOCAL = "LOCAL" - allowable_values = [LDAP, LOCAL] # noqa: E501 + allowable_values = [AUTHN, LDAP, LOCAL] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/user_updation_params_data.py b/cloudtower/models/user_updation_params_data.py index e60ee694..b90451d2 100644 --- a/cloudtower/models/user_updation_params_data.py +++ b/cloudtower/models/user_updation_params_data.py @@ -59,10 +59,8 @@ def __init__(self, **kwargs): # noqa: E501 if "internal" in kwargs: self.internal = kwargs["internal"] - if "mobile_phone" in kwargs: - self.mobile_phone = kwargs["mobile_phone"] - if "email_address" in kwargs: - self.email_address = kwargs["email_address"] + self.mobile_phone = kwargs.get("mobile_phone", None) + self.email_address = kwargs.get("email_address", None) if "role_id" in kwargs: self.role_id = kwargs["role_id"] if "name" in kwargs: diff --git a/cloudtower/models/user_where_input.py b/cloudtower/models/user_where_input.py index a70acefd..b3d5331f 100644 --- a/cloudtower/models/user_where_input.py +++ b/cloudtower/models/user_where_input.py @@ -26,6 +26,34 @@ class UserWhereInput(object): """ openapi_types = { '_and': 'list[UserWhereInput]', + 'auth_config_id': 'str', + 'auth_config_id_contains': 'str', + 'auth_config_id_ends_with': 'str', + 'auth_config_id_gt': 'str', + 'auth_config_id_gte': 'str', + 'auth_config_id_in': 'list[str]', + 'auth_config_id_lt': 'str', + 'auth_config_id_lte': 'str', + 'auth_config_id_not': 'str', + 'auth_config_id_not_contains': 'str', + 'auth_config_id_not_ends_with': 'str', + 'auth_config_id_not_in': 'list[str]', + 'auth_config_id_not_starts_with': 'str', + 'auth_config_id_starts_with': 'str', + 'display_username': 'str', + 'display_username_contains': 'str', + 'display_username_ends_with': 'str', + 'display_username_gt': 'str', + 'display_username_gte': 'str', + 'display_username_in': 'list[str]', + 'display_username_lt': 'str', + 'display_username_lte': 'str', + 'display_username_not': 'str', + 'display_username_not_contains': 'str', + 'display_username_not_ends_with': 'str', + 'display_username_not_in': 'list[str]', + 'display_username_not_starts_with': 'str', + 'display_username_starts_with': 'str', 'email_address': 'str', 'email_address_contains': 'str', 'email_address_ends_with': 'str', @@ -139,6 +167,34 @@ class UserWhereInput(object): attribute_map = { '_and': 'AND', + 'auth_config_id': 'auth_config_id', + 'auth_config_id_contains': 'auth_config_id_contains', + 'auth_config_id_ends_with': 'auth_config_id_ends_with', + 'auth_config_id_gt': 'auth_config_id_gt', + 'auth_config_id_gte': 'auth_config_id_gte', + 'auth_config_id_in': 'auth_config_id_in', + 'auth_config_id_lt': 'auth_config_id_lt', + 'auth_config_id_lte': 'auth_config_id_lte', + 'auth_config_id_not': 'auth_config_id_not', + 'auth_config_id_not_contains': 'auth_config_id_not_contains', + 'auth_config_id_not_ends_with': 'auth_config_id_not_ends_with', + 'auth_config_id_not_in': 'auth_config_id_not_in', + 'auth_config_id_not_starts_with': 'auth_config_id_not_starts_with', + 'auth_config_id_starts_with': 'auth_config_id_starts_with', + 'display_username': 'display_username', + 'display_username_contains': 'display_username_contains', + 'display_username_ends_with': 'display_username_ends_with', + 'display_username_gt': 'display_username_gt', + 'display_username_gte': 'display_username_gte', + 'display_username_in': 'display_username_in', + 'display_username_lt': 'display_username_lt', + 'display_username_lte': 'display_username_lte', + 'display_username_not': 'display_username_not', + 'display_username_not_contains': 'display_username_not_contains', + 'display_username_not_ends_with': 'display_username_not_ends_with', + 'display_username_not_in': 'display_username_not_in', + 'display_username_not_starts_with': 'display_username_not_starts_with', + 'display_username_starts_with': 'display_username_starts_with', 'email_address': 'email_address', 'email_address_contains': 'email_address_contains', 'email_address_ends_with': 'email_address_ends_with', @@ -255,6 +311,34 @@ def __init__(self, **kwargs): # noqa: E501 self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) self.__and = None + self._auth_config_id = None + self._auth_config_id_contains = None + self._auth_config_id_ends_with = None + self._auth_config_id_gt = None + self._auth_config_id_gte = None + self._auth_config_id_in = None + self._auth_config_id_lt = None + self._auth_config_id_lte = None + self._auth_config_id_not = None + self._auth_config_id_not_contains = None + self._auth_config_id_not_ends_with = None + self._auth_config_id_not_in = None + self._auth_config_id_not_starts_with = None + self._auth_config_id_starts_with = None + self._display_username = None + self._display_username_contains = None + self._display_username_ends_with = None + self._display_username_gt = None + self._display_username_gte = None + self._display_username_in = None + self._display_username_lt = None + self._display_username_lte = None + self._display_username_not = None + self._display_username_not_contains = None + self._display_username_not_ends_with = None + self._display_username_not_in = None + self._display_username_not_starts_with = None + self._display_username_starts_with = None self._email_address = None self._email_address_contains = None self._email_address_ends_with = None @@ -367,6 +451,34 @@ def __init__(self, **kwargs): # noqa: E501 self.discriminator = None self._and = kwargs.get("_and", None) + self.auth_config_id = kwargs.get("auth_config_id", None) + self.auth_config_id_contains = kwargs.get("auth_config_id_contains", None) + self.auth_config_id_ends_with = kwargs.get("auth_config_id_ends_with", None) + self.auth_config_id_gt = kwargs.get("auth_config_id_gt", None) + self.auth_config_id_gte = kwargs.get("auth_config_id_gte", None) + self.auth_config_id_in = kwargs.get("auth_config_id_in", None) + self.auth_config_id_lt = kwargs.get("auth_config_id_lt", None) + self.auth_config_id_lte = kwargs.get("auth_config_id_lte", None) + self.auth_config_id_not = kwargs.get("auth_config_id_not", None) + self.auth_config_id_not_contains = kwargs.get("auth_config_id_not_contains", None) + self.auth_config_id_not_ends_with = kwargs.get("auth_config_id_not_ends_with", None) + self.auth_config_id_not_in = kwargs.get("auth_config_id_not_in", None) + self.auth_config_id_not_starts_with = kwargs.get("auth_config_id_not_starts_with", None) + self.auth_config_id_starts_with = kwargs.get("auth_config_id_starts_with", None) + self.display_username = kwargs.get("display_username", None) + self.display_username_contains = kwargs.get("display_username_contains", None) + self.display_username_ends_with = kwargs.get("display_username_ends_with", None) + self.display_username_gt = kwargs.get("display_username_gt", None) + self.display_username_gte = kwargs.get("display_username_gte", None) + self.display_username_in = kwargs.get("display_username_in", None) + self.display_username_lt = kwargs.get("display_username_lt", None) + self.display_username_lte = kwargs.get("display_username_lte", None) + self.display_username_not = kwargs.get("display_username_not", None) + self.display_username_not_contains = kwargs.get("display_username_not_contains", None) + self.display_username_not_ends_with = kwargs.get("display_username_not_ends_with", None) + self.display_username_not_in = kwargs.get("display_username_not_in", None) + self.display_username_not_starts_with = kwargs.get("display_username_not_starts_with", None) + self.display_username_starts_with = kwargs.get("display_username_starts_with", None) self.email_address = kwargs.get("email_address", None) self.email_address_contains = kwargs.get("email_address_contains", None) self.email_address_ends_with = kwargs.get("email_address_ends_with", None) @@ -498,6 +610,594 @@ def _and(self, _and): self.__and = _and + @property + def auth_config_id(self): + """Gets the auth_config_id of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id + + @auth_config_id.setter + def auth_config_id(self, auth_config_id): + """Sets the auth_config_id of this UserWhereInput. + + + :param auth_config_id: The auth_config_id of this UserWhereInput. # noqa: E501 + :type auth_config_id: str + """ + + self._auth_config_id = auth_config_id + + @property + def auth_config_id_contains(self): + """Gets the auth_config_id_contains of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_contains of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id_contains + + @auth_config_id_contains.setter + def auth_config_id_contains(self, auth_config_id_contains): + """Sets the auth_config_id_contains of this UserWhereInput. + + + :param auth_config_id_contains: The auth_config_id_contains of this UserWhereInput. # noqa: E501 + :type auth_config_id_contains: str + """ + + self._auth_config_id_contains = auth_config_id_contains + + @property + def auth_config_id_ends_with(self): + """Gets the auth_config_id_ends_with of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_ends_with of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id_ends_with + + @auth_config_id_ends_with.setter + def auth_config_id_ends_with(self, auth_config_id_ends_with): + """Sets the auth_config_id_ends_with of this UserWhereInput. + + + :param auth_config_id_ends_with: The auth_config_id_ends_with of this UserWhereInput. # noqa: E501 + :type auth_config_id_ends_with: str + """ + + self._auth_config_id_ends_with = auth_config_id_ends_with + + @property + def auth_config_id_gt(self): + """Gets the auth_config_id_gt of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_gt of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id_gt + + @auth_config_id_gt.setter + def auth_config_id_gt(self, auth_config_id_gt): + """Sets the auth_config_id_gt of this UserWhereInput. + + + :param auth_config_id_gt: The auth_config_id_gt of this UserWhereInput. # noqa: E501 + :type auth_config_id_gt: str + """ + + self._auth_config_id_gt = auth_config_id_gt + + @property + def auth_config_id_gte(self): + """Gets the auth_config_id_gte of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_gte of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id_gte + + @auth_config_id_gte.setter + def auth_config_id_gte(self, auth_config_id_gte): + """Sets the auth_config_id_gte of this UserWhereInput. + + + :param auth_config_id_gte: The auth_config_id_gte of this UserWhereInput. # noqa: E501 + :type auth_config_id_gte: str + """ + + self._auth_config_id_gte = auth_config_id_gte + + @property + def auth_config_id_in(self): + """Gets the auth_config_id_in of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_in of this UserWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._auth_config_id_in + + @auth_config_id_in.setter + def auth_config_id_in(self, auth_config_id_in): + """Sets the auth_config_id_in of this UserWhereInput. + + + :param auth_config_id_in: The auth_config_id_in of this UserWhereInput. # noqa: E501 + :type auth_config_id_in: list[str] + """ + + self._auth_config_id_in = auth_config_id_in + + @property + def auth_config_id_lt(self): + """Gets the auth_config_id_lt of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_lt of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id_lt + + @auth_config_id_lt.setter + def auth_config_id_lt(self, auth_config_id_lt): + """Sets the auth_config_id_lt of this UserWhereInput. + + + :param auth_config_id_lt: The auth_config_id_lt of this UserWhereInput. # noqa: E501 + :type auth_config_id_lt: str + """ + + self._auth_config_id_lt = auth_config_id_lt + + @property + def auth_config_id_lte(self): + """Gets the auth_config_id_lte of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_lte of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id_lte + + @auth_config_id_lte.setter + def auth_config_id_lte(self, auth_config_id_lte): + """Sets the auth_config_id_lte of this UserWhereInput. + + + :param auth_config_id_lte: The auth_config_id_lte of this UserWhereInput. # noqa: E501 + :type auth_config_id_lte: str + """ + + self._auth_config_id_lte = auth_config_id_lte + + @property + def auth_config_id_not(self): + """Gets the auth_config_id_not of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_not of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id_not + + @auth_config_id_not.setter + def auth_config_id_not(self, auth_config_id_not): + """Sets the auth_config_id_not of this UserWhereInput. + + + :param auth_config_id_not: The auth_config_id_not of this UserWhereInput. # noqa: E501 + :type auth_config_id_not: str + """ + + self._auth_config_id_not = auth_config_id_not + + @property + def auth_config_id_not_contains(self): + """Gets the auth_config_id_not_contains of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_not_contains of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id_not_contains + + @auth_config_id_not_contains.setter + def auth_config_id_not_contains(self, auth_config_id_not_contains): + """Sets the auth_config_id_not_contains of this UserWhereInput. + + + :param auth_config_id_not_contains: The auth_config_id_not_contains of this UserWhereInput. # noqa: E501 + :type auth_config_id_not_contains: str + """ + + self._auth_config_id_not_contains = auth_config_id_not_contains + + @property + def auth_config_id_not_ends_with(self): + """Gets the auth_config_id_not_ends_with of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_not_ends_with of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id_not_ends_with + + @auth_config_id_not_ends_with.setter + def auth_config_id_not_ends_with(self, auth_config_id_not_ends_with): + """Sets the auth_config_id_not_ends_with of this UserWhereInput. + + + :param auth_config_id_not_ends_with: The auth_config_id_not_ends_with of this UserWhereInput. # noqa: E501 + :type auth_config_id_not_ends_with: str + """ + + self._auth_config_id_not_ends_with = auth_config_id_not_ends_with + + @property + def auth_config_id_not_in(self): + """Gets the auth_config_id_not_in of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_not_in of this UserWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._auth_config_id_not_in + + @auth_config_id_not_in.setter + def auth_config_id_not_in(self, auth_config_id_not_in): + """Sets the auth_config_id_not_in of this UserWhereInput. + + + :param auth_config_id_not_in: The auth_config_id_not_in of this UserWhereInput. # noqa: E501 + :type auth_config_id_not_in: list[str] + """ + + self._auth_config_id_not_in = auth_config_id_not_in + + @property + def auth_config_id_not_starts_with(self): + """Gets the auth_config_id_not_starts_with of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_not_starts_with of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id_not_starts_with + + @auth_config_id_not_starts_with.setter + def auth_config_id_not_starts_with(self, auth_config_id_not_starts_with): + """Sets the auth_config_id_not_starts_with of this UserWhereInput. + + + :param auth_config_id_not_starts_with: The auth_config_id_not_starts_with of this UserWhereInput. # noqa: E501 + :type auth_config_id_not_starts_with: str + """ + + self._auth_config_id_not_starts_with = auth_config_id_not_starts_with + + @property + def auth_config_id_starts_with(self): + """Gets the auth_config_id_starts_with of this UserWhereInput. # noqa: E501 + + + :return: The auth_config_id_starts_with of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._auth_config_id_starts_with + + @auth_config_id_starts_with.setter + def auth_config_id_starts_with(self, auth_config_id_starts_with): + """Sets the auth_config_id_starts_with of this UserWhereInput. + + + :param auth_config_id_starts_with: The auth_config_id_starts_with of this UserWhereInput. # noqa: E501 + :type auth_config_id_starts_with: str + """ + + self._auth_config_id_starts_with = auth_config_id_starts_with + + @property + def display_username(self): + """Gets the display_username of this UserWhereInput. # noqa: E501 + + + :return: The display_username of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username + + @display_username.setter + def display_username(self, display_username): + """Sets the display_username of this UserWhereInput. + + + :param display_username: The display_username of this UserWhereInput. # noqa: E501 + :type display_username: str + """ + + self._display_username = display_username + + @property + def display_username_contains(self): + """Gets the display_username_contains of this UserWhereInput. # noqa: E501 + + + :return: The display_username_contains of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username_contains + + @display_username_contains.setter + def display_username_contains(self, display_username_contains): + """Sets the display_username_contains of this UserWhereInput. + + + :param display_username_contains: The display_username_contains of this UserWhereInput. # noqa: E501 + :type display_username_contains: str + """ + + self._display_username_contains = display_username_contains + + @property + def display_username_ends_with(self): + """Gets the display_username_ends_with of this UserWhereInput. # noqa: E501 + + + :return: The display_username_ends_with of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username_ends_with + + @display_username_ends_with.setter + def display_username_ends_with(self, display_username_ends_with): + """Sets the display_username_ends_with of this UserWhereInput. + + + :param display_username_ends_with: The display_username_ends_with of this UserWhereInput. # noqa: E501 + :type display_username_ends_with: str + """ + + self._display_username_ends_with = display_username_ends_with + + @property + def display_username_gt(self): + """Gets the display_username_gt of this UserWhereInput. # noqa: E501 + + + :return: The display_username_gt of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username_gt + + @display_username_gt.setter + def display_username_gt(self, display_username_gt): + """Sets the display_username_gt of this UserWhereInput. + + + :param display_username_gt: The display_username_gt of this UserWhereInput. # noqa: E501 + :type display_username_gt: str + """ + + self._display_username_gt = display_username_gt + + @property + def display_username_gte(self): + """Gets the display_username_gte of this UserWhereInput. # noqa: E501 + + + :return: The display_username_gte of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username_gte + + @display_username_gte.setter + def display_username_gte(self, display_username_gte): + """Sets the display_username_gte of this UserWhereInput. + + + :param display_username_gte: The display_username_gte of this UserWhereInput. # noqa: E501 + :type display_username_gte: str + """ + + self._display_username_gte = display_username_gte + + @property + def display_username_in(self): + """Gets the display_username_in of this UserWhereInput. # noqa: E501 + + + :return: The display_username_in of this UserWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._display_username_in + + @display_username_in.setter + def display_username_in(self, display_username_in): + """Sets the display_username_in of this UserWhereInput. + + + :param display_username_in: The display_username_in of this UserWhereInput. # noqa: E501 + :type display_username_in: list[str] + """ + + self._display_username_in = display_username_in + + @property + def display_username_lt(self): + """Gets the display_username_lt of this UserWhereInput. # noqa: E501 + + + :return: The display_username_lt of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username_lt + + @display_username_lt.setter + def display_username_lt(self, display_username_lt): + """Sets the display_username_lt of this UserWhereInput. + + + :param display_username_lt: The display_username_lt of this UserWhereInput. # noqa: E501 + :type display_username_lt: str + """ + + self._display_username_lt = display_username_lt + + @property + def display_username_lte(self): + """Gets the display_username_lte of this UserWhereInput. # noqa: E501 + + + :return: The display_username_lte of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username_lte + + @display_username_lte.setter + def display_username_lte(self, display_username_lte): + """Sets the display_username_lte of this UserWhereInput. + + + :param display_username_lte: The display_username_lte of this UserWhereInput. # noqa: E501 + :type display_username_lte: str + """ + + self._display_username_lte = display_username_lte + + @property + def display_username_not(self): + """Gets the display_username_not of this UserWhereInput. # noqa: E501 + + + :return: The display_username_not of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username_not + + @display_username_not.setter + def display_username_not(self, display_username_not): + """Sets the display_username_not of this UserWhereInput. + + + :param display_username_not: The display_username_not of this UserWhereInput. # noqa: E501 + :type display_username_not: str + """ + + self._display_username_not = display_username_not + + @property + def display_username_not_contains(self): + """Gets the display_username_not_contains of this UserWhereInput. # noqa: E501 + + + :return: The display_username_not_contains of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username_not_contains + + @display_username_not_contains.setter + def display_username_not_contains(self, display_username_not_contains): + """Sets the display_username_not_contains of this UserWhereInput. + + + :param display_username_not_contains: The display_username_not_contains of this UserWhereInput. # noqa: E501 + :type display_username_not_contains: str + """ + + self._display_username_not_contains = display_username_not_contains + + @property + def display_username_not_ends_with(self): + """Gets the display_username_not_ends_with of this UserWhereInput. # noqa: E501 + + + :return: The display_username_not_ends_with of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username_not_ends_with + + @display_username_not_ends_with.setter + def display_username_not_ends_with(self, display_username_not_ends_with): + """Sets the display_username_not_ends_with of this UserWhereInput. + + + :param display_username_not_ends_with: The display_username_not_ends_with of this UserWhereInput. # noqa: E501 + :type display_username_not_ends_with: str + """ + + self._display_username_not_ends_with = display_username_not_ends_with + + @property + def display_username_not_in(self): + """Gets the display_username_not_in of this UserWhereInput. # noqa: E501 + + + :return: The display_username_not_in of this UserWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._display_username_not_in + + @display_username_not_in.setter + def display_username_not_in(self, display_username_not_in): + """Sets the display_username_not_in of this UserWhereInput. + + + :param display_username_not_in: The display_username_not_in of this UserWhereInput. # noqa: E501 + :type display_username_not_in: list[str] + """ + + self._display_username_not_in = display_username_not_in + + @property + def display_username_not_starts_with(self): + """Gets the display_username_not_starts_with of this UserWhereInput. # noqa: E501 + + + :return: The display_username_not_starts_with of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username_not_starts_with + + @display_username_not_starts_with.setter + def display_username_not_starts_with(self, display_username_not_starts_with): + """Sets the display_username_not_starts_with of this UserWhereInput. + + + :param display_username_not_starts_with: The display_username_not_starts_with of this UserWhereInput. # noqa: E501 + :type display_username_not_starts_with: str + """ + + self._display_username_not_starts_with = display_username_not_starts_with + + @property + def display_username_starts_with(self): + """Gets the display_username_starts_with of this UserWhereInput. # noqa: E501 + + + :return: The display_username_starts_with of this UserWhereInput. # noqa: E501 + :rtype: str + """ + return self._display_username_starts_with + + @display_username_starts_with.setter + def display_username_starts_with(self, display_username_starts_with): + """Sets the display_username_starts_with of this UserWhereInput. + + + :param display_username_starts_with: The display_username_starts_with of this UserWhereInput. # noqa: E501 + :type display_username_starts_with: str + """ + + self._display_username_starts_with = display_username_starts_with + @property def email_address(self): """Gets the email_address of this UserWhereInput. # noqa: E501 diff --git a/cloudtower/models/vlan.py b/cloudtower/models/vlan.py index 7d2abd8a..16deec60 100644 --- a/cloudtower/models/vlan.py +++ b/cloudtower/models/vlan.py @@ -31,7 +31,12 @@ class Vlan(object): 'id': 'str', 'labels': 'list[NestedLabel]', 'local_id': 'str', + 'mode_type': 'VlanModeType', 'name': 'str', + 'network_ids': 'list[str]', + 'qos_max_bandwidth': 'float', + 'qos_min_bandwidth': 'float', + 'qos_priority': 'int', 'subnetmask': 'str', 'type': 'NetworkType', 'vds': 'NestedVds', @@ -46,7 +51,12 @@ class Vlan(object): 'id': 'id', 'labels': 'labels', 'local_id': 'local_id', + 'mode_type': 'mode_type', 'name': 'name', + 'network_ids': 'network_ids', + 'qos_max_bandwidth': 'qos_max_bandwidth', + 'qos_min_bandwidth': 'qos_min_bandwidth', + 'qos_priority': 'qos_priority', 'subnetmask': 'subnetmask', 'type': 'type', 'vds': 'vds', @@ -64,7 +74,12 @@ def __init__(self, **kwargs): # noqa: E501 self._id = None self._labels = None self._local_id = None + self._mode_type = None self._name = None + self._network_ids = None + self._qos_max_bandwidth = None + self._qos_min_bandwidth = None + self._qos_priority = None self._subnetmask = None self._type = None self._vds = None @@ -80,8 +95,14 @@ def __init__(self, **kwargs): # noqa: E501 self.labels = kwargs.get("labels", None) if "local_id" in kwargs: self.local_id = kwargs["local_id"] + self.mode_type = kwargs.get("mode_type", None) if "name" in kwargs: self.name = kwargs["name"] + if "network_ids" in kwargs: + self.network_ids = kwargs["network_ids"] + self.qos_max_bandwidth = kwargs.get("qos_max_bandwidth", None) + self.qos_min_bandwidth = kwargs.get("qos_min_bandwidth", None) + self.qos_priority = kwargs.get("qos_priority", None) self.subnetmask = kwargs.get("subnetmask", None) if "type" in kwargs: self.type = kwargs["type"] @@ -221,6 +242,27 @@ def local_id(self, local_id): self._local_id = local_id + @property + def mode_type(self): + """Gets the mode_type of this Vlan. # noqa: E501 + + + :return: The mode_type of this Vlan. # noqa: E501 + :rtype: VlanModeType + """ + return self._mode_type + + @mode_type.setter + def mode_type(self, mode_type): + """Sets the mode_type of this Vlan. + + + :param mode_type: The mode_type of this Vlan. # noqa: E501 + :type mode_type: VlanModeType + """ + + self._mode_type = mode_type + @property def name(self): """Gets the name of this Vlan. # noqa: E501 @@ -244,6 +286,92 @@ def name(self, name): self._name = name + @property + def network_ids(self): + """Gets the network_ids of this Vlan. # noqa: E501 + + + :return: The network_ids of this Vlan. # noqa: E501 + :rtype: list[str] + """ + return self._network_ids + + @network_ids.setter + def network_ids(self, network_ids): + """Sets the network_ids of this Vlan. + + + :param network_ids: The network_ids of this Vlan. # noqa: E501 + :type network_ids: list[str] + """ + if self.local_vars_configuration.client_side_validation and network_ids is None: # noqa: E501 + raise ValueError("Invalid value for `network_ids`, must not be `None`") # noqa: E501 + + self._network_ids = network_ids + + @property + def qos_max_bandwidth(self): + """Gets the qos_max_bandwidth of this Vlan. # noqa: E501 + + + :return: The qos_max_bandwidth of this Vlan. # noqa: E501 + :rtype: float + """ + return self._qos_max_bandwidth + + @qos_max_bandwidth.setter + def qos_max_bandwidth(self, qos_max_bandwidth): + """Sets the qos_max_bandwidth of this Vlan. + + + :param qos_max_bandwidth: The qos_max_bandwidth of this Vlan. # noqa: E501 + :type qos_max_bandwidth: float + """ + + self._qos_max_bandwidth = qos_max_bandwidth + + @property + def qos_min_bandwidth(self): + """Gets the qos_min_bandwidth of this Vlan. # noqa: E501 + + + :return: The qos_min_bandwidth of this Vlan. # noqa: E501 + :rtype: float + """ + return self._qos_min_bandwidth + + @qos_min_bandwidth.setter + def qos_min_bandwidth(self, qos_min_bandwidth): + """Sets the qos_min_bandwidth of this Vlan. + + + :param qos_min_bandwidth: The qos_min_bandwidth of this Vlan. # noqa: E501 + :type qos_min_bandwidth: float + """ + + self._qos_min_bandwidth = qos_min_bandwidth + + @property + def qos_priority(self): + """Gets the qos_priority of this Vlan. # noqa: E501 + + + :return: The qos_priority of this Vlan. # noqa: E501 + :rtype: int + """ + return self._qos_priority + + @qos_priority.setter + def qos_priority(self, qos_priority): + """Sets the qos_priority of this Vlan. + + + :param qos_priority: The qos_priority of this Vlan. # noqa: E501 + :type qos_priority: int + """ + + self._qos_priority = qos_priority + @property def subnetmask(self): """Gets the subnetmask of this Vlan. # noqa: E501 diff --git a/cloudtower/models/vlan_mode_type.py b/cloudtower/models/vlan_mode_type.py new file mode 100644 index 00000000..ca2ebfe1 --- /dev/null +++ b/cloudtower/models/vlan_mode_type.py @@ -0,0 +1,100 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VlanModeType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + GENEVE = "GENEVE" + VLAN_ACCESS = "VLAN_ACCESS" + VLAN_TRUNK = "VLAN_TRUNK" + VXLAN = "VXLAN" + + allowable_values = [GENEVE, VLAN_ACCESS, VLAN_TRUNK, VXLAN] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, **kwargs): # noqa: E501 + """VlanModeType - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + self.discriminator = None + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VlanModeType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VlanModeType): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vlan_order_by_input.py b/cloudtower/models/vlan_order_by_input.py index 0847babe..26c18c2b 100644 --- a/cloudtower/models/vlan_order_by_input.py +++ b/cloudtower/models/vlan_order_by_input.py @@ -30,8 +30,16 @@ class VlanOrderByInput(object): ID_DESC = "id_DESC" LOCAL_ID_ASC = "local_id_ASC" LOCAL_ID_DESC = "local_id_DESC" + MODE_TYPE_ASC = "mode_type_ASC" + MODE_TYPE_DESC = "mode_type_DESC" NAME_ASC = "name_ASC" NAME_DESC = "name_DESC" + QOS_MAX_BANDWIDTH_ASC = "qos_max_bandwidth_ASC" + QOS_MAX_BANDWIDTH_DESC = "qos_max_bandwidth_DESC" + QOS_MIN_BANDWIDTH_ASC = "qos_min_bandwidth_ASC" + QOS_MIN_BANDWIDTH_DESC = "qos_min_bandwidth_DESC" + QOS_PRIORITY_ASC = "qos_priority_ASC" + QOS_PRIORITY_DESC = "qos_priority_DESC" SUBNETMASK_ASC = "subnetmask_ASC" SUBNETMASK_DESC = "subnetmask_DESC" TYPE_ASC = "type_ASC" @@ -39,7 +47,7 @@ class VlanOrderByInput(object): VLAN_ID_ASC = "vlan_id_ASC" VLAN_ID_DESC = "vlan_id_DESC" - allowable_values = [ENTITYASYNCSTATUS_ASC, ENTITYASYNCSTATUS_DESC, GATEWAY_IP_ASC, GATEWAY_IP_DESC, GATEWAY_SUBNETMASK_ASC, GATEWAY_SUBNETMASK_DESC, ID_ASC, ID_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, NAME_ASC, NAME_DESC, SUBNETMASK_ASC, SUBNETMASK_DESC, TYPE_ASC, TYPE_DESC, VLAN_ID_ASC, VLAN_ID_DESC] # noqa: E501 + allowable_values = [ENTITYASYNCSTATUS_ASC, ENTITYASYNCSTATUS_DESC, GATEWAY_IP_ASC, GATEWAY_IP_DESC, GATEWAY_SUBNETMASK_ASC, GATEWAY_SUBNETMASK_DESC, ID_ASC, ID_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, MODE_TYPE_ASC, MODE_TYPE_DESC, NAME_ASC, NAME_DESC, QOS_MAX_BANDWIDTH_ASC, QOS_MAX_BANDWIDTH_DESC, QOS_MIN_BANDWIDTH_ASC, QOS_MIN_BANDWIDTH_DESC, QOS_PRIORITY_ASC, QOS_PRIORITY_DESC, SUBNETMASK_ASC, SUBNETMASK_DESC, TYPE_ASC, TYPE_DESC, VLAN_ID_ASC, VLAN_ID_DESC] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/vlan_where_input.py b/cloudtower/models/vlan_where_input.py index def2a68d..2933fcb0 100644 --- a/cloudtower/models/vlan_where_input.py +++ b/cloudtower/models/vlan_where_input.py @@ -89,6 +89,10 @@ class VlanWhereInput(object): 'local_id_not_in': 'list[str]', 'local_id_not_starts_with': 'str', 'local_id_starts_with': 'str', + 'mode_type': 'VlanModeType', + 'mode_type_in': 'list[VlanModeType]', + 'mode_type_not': 'VlanModeType', + 'mode_type_not_in': 'list[VlanModeType]', 'name': 'str', 'name_contains': 'str', 'name_ends_with': 'str', @@ -105,6 +109,30 @@ class VlanWhereInput(object): 'name_starts_with': 'str', '_not': 'list[VlanWhereInput]', '_or': 'list[VlanWhereInput]', + 'qos_max_bandwidth': 'float', + 'qos_max_bandwidth_gt': 'float', + 'qos_max_bandwidth_gte': 'float', + 'qos_max_bandwidth_in': 'list[float]', + 'qos_max_bandwidth_lt': 'float', + 'qos_max_bandwidth_lte': 'float', + 'qos_max_bandwidth_not': 'float', + 'qos_max_bandwidth_not_in': 'list[float]', + 'qos_min_bandwidth': 'float', + 'qos_min_bandwidth_gt': 'float', + 'qos_min_bandwidth_gte': 'float', + 'qos_min_bandwidth_in': 'list[float]', + 'qos_min_bandwidth_lt': 'float', + 'qos_min_bandwidth_lte': 'float', + 'qos_min_bandwidth_not': 'float', + 'qos_min_bandwidth_not_in': 'list[float]', + 'qos_priority': 'int', + 'qos_priority_gt': 'int', + 'qos_priority_gte': 'int', + 'qos_priority_in': 'list[int]', + 'qos_priority_lt': 'int', + 'qos_priority_lte': 'int', + 'qos_priority_not': 'int', + 'qos_priority_not_in': 'list[int]', 'subnetmask': 'str', 'subnetmask_contains': 'str', 'subnetmask_ends_with': 'str', @@ -202,6 +230,10 @@ class VlanWhereInput(object): 'local_id_not_in': 'local_id_not_in', 'local_id_not_starts_with': 'local_id_not_starts_with', 'local_id_starts_with': 'local_id_starts_with', + 'mode_type': 'mode_type', + 'mode_type_in': 'mode_type_in', + 'mode_type_not': 'mode_type_not', + 'mode_type_not_in': 'mode_type_not_in', 'name': 'name', 'name_contains': 'name_contains', 'name_ends_with': 'name_ends_with', @@ -218,6 +250,30 @@ class VlanWhereInput(object): 'name_starts_with': 'name_starts_with', '_not': 'NOT', '_or': 'OR', + 'qos_max_bandwidth': 'qos_max_bandwidth', + 'qos_max_bandwidth_gt': 'qos_max_bandwidth_gt', + 'qos_max_bandwidth_gte': 'qos_max_bandwidth_gte', + 'qos_max_bandwidth_in': 'qos_max_bandwidth_in', + 'qos_max_bandwidth_lt': 'qos_max_bandwidth_lt', + 'qos_max_bandwidth_lte': 'qos_max_bandwidth_lte', + 'qos_max_bandwidth_not': 'qos_max_bandwidth_not', + 'qos_max_bandwidth_not_in': 'qos_max_bandwidth_not_in', + 'qos_min_bandwidth': 'qos_min_bandwidth', + 'qos_min_bandwidth_gt': 'qos_min_bandwidth_gt', + 'qos_min_bandwidth_gte': 'qos_min_bandwidth_gte', + 'qos_min_bandwidth_in': 'qos_min_bandwidth_in', + 'qos_min_bandwidth_lt': 'qos_min_bandwidth_lt', + 'qos_min_bandwidth_lte': 'qos_min_bandwidth_lte', + 'qos_min_bandwidth_not': 'qos_min_bandwidth_not', + 'qos_min_bandwidth_not_in': 'qos_min_bandwidth_not_in', + 'qos_priority': 'qos_priority', + 'qos_priority_gt': 'qos_priority_gt', + 'qos_priority_gte': 'qos_priority_gte', + 'qos_priority_in': 'qos_priority_in', + 'qos_priority_lt': 'qos_priority_lt', + 'qos_priority_lte': 'qos_priority_lte', + 'qos_priority_not': 'qos_priority_not', + 'qos_priority_not_in': 'qos_priority_not_in', 'subnetmask': 'subnetmask', 'subnetmask_contains': 'subnetmask_contains', 'subnetmask_ends_with': 'subnetmask_ends_with', @@ -318,6 +374,10 @@ def __init__(self, **kwargs): # noqa: E501 self._local_id_not_in = None self._local_id_not_starts_with = None self._local_id_starts_with = None + self._mode_type = None + self._mode_type_in = None + self._mode_type_not = None + self._mode_type_not_in = None self._name = None self._name_contains = None self._name_ends_with = None @@ -334,6 +394,30 @@ def __init__(self, **kwargs): # noqa: E501 self._name_starts_with = None self.__not = None self.__or = None + self._qos_max_bandwidth = None + self._qos_max_bandwidth_gt = None + self._qos_max_bandwidth_gte = None + self._qos_max_bandwidth_in = None + self._qos_max_bandwidth_lt = None + self._qos_max_bandwidth_lte = None + self._qos_max_bandwidth_not = None + self._qos_max_bandwidth_not_in = None + self._qos_min_bandwidth = None + self._qos_min_bandwidth_gt = None + self._qos_min_bandwidth_gte = None + self._qos_min_bandwidth_in = None + self._qos_min_bandwidth_lt = None + self._qos_min_bandwidth_lte = None + self._qos_min_bandwidth_not = None + self._qos_min_bandwidth_not_in = None + self._qos_priority = None + self._qos_priority_gt = None + self._qos_priority_gte = None + self._qos_priority_in = None + self._qos_priority_lt = None + self._qos_priority_lte = None + self._qos_priority_not = None + self._qos_priority_not_in = None self._subnetmask = None self._subnetmask_contains = None self._subnetmask_ends_with = None @@ -430,6 +514,10 @@ def __init__(self, **kwargs): # noqa: E501 self.local_id_not_in = kwargs.get("local_id_not_in", None) self.local_id_not_starts_with = kwargs.get("local_id_not_starts_with", None) self.local_id_starts_with = kwargs.get("local_id_starts_with", None) + self.mode_type = kwargs.get("mode_type", None) + self.mode_type_in = kwargs.get("mode_type_in", None) + self.mode_type_not = kwargs.get("mode_type_not", None) + self.mode_type_not_in = kwargs.get("mode_type_not_in", None) self.name = kwargs.get("name", None) self.name_contains = kwargs.get("name_contains", None) self.name_ends_with = kwargs.get("name_ends_with", None) @@ -446,6 +534,30 @@ def __init__(self, **kwargs): # noqa: E501 self.name_starts_with = kwargs.get("name_starts_with", None) self._not = kwargs.get("_not", None) self._or = kwargs.get("_or", None) + self.qos_max_bandwidth = kwargs.get("qos_max_bandwidth", None) + self.qos_max_bandwidth_gt = kwargs.get("qos_max_bandwidth_gt", None) + self.qos_max_bandwidth_gte = kwargs.get("qos_max_bandwidth_gte", None) + self.qos_max_bandwidth_in = kwargs.get("qos_max_bandwidth_in", None) + self.qos_max_bandwidth_lt = kwargs.get("qos_max_bandwidth_lt", None) + self.qos_max_bandwidth_lte = kwargs.get("qos_max_bandwidth_lte", None) + self.qos_max_bandwidth_not = kwargs.get("qos_max_bandwidth_not", None) + self.qos_max_bandwidth_not_in = kwargs.get("qos_max_bandwidth_not_in", None) + self.qos_min_bandwidth = kwargs.get("qos_min_bandwidth", None) + self.qos_min_bandwidth_gt = kwargs.get("qos_min_bandwidth_gt", None) + self.qos_min_bandwidth_gte = kwargs.get("qos_min_bandwidth_gte", None) + self.qos_min_bandwidth_in = kwargs.get("qos_min_bandwidth_in", None) + self.qos_min_bandwidth_lt = kwargs.get("qos_min_bandwidth_lt", None) + self.qos_min_bandwidth_lte = kwargs.get("qos_min_bandwidth_lte", None) + self.qos_min_bandwidth_not = kwargs.get("qos_min_bandwidth_not", None) + self.qos_min_bandwidth_not_in = kwargs.get("qos_min_bandwidth_not_in", None) + self.qos_priority = kwargs.get("qos_priority", None) + self.qos_priority_gt = kwargs.get("qos_priority_gt", None) + self.qos_priority_gte = kwargs.get("qos_priority_gte", None) + self.qos_priority_in = kwargs.get("qos_priority_in", None) + self.qos_priority_lt = kwargs.get("qos_priority_lt", None) + self.qos_priority_lte = kwargs.get("qos_priority_lte", None) + self.qos_priority_not = kwargs.get("qos_priority_not", None) + self.qos_priority_not_in = kwargs.get("qos_priority_not_in", None) self.subnetmask = kwargs.get("subnetmask", None) self.subnetmask_contains = kwargs.get("subnetmask_contains", None) self.subnetmask_ends_with = kwargs.get("subnetmask_ends_with", None) @@ -1821,6 +1933,90 @@ def local_id_starts_with(self, local_id_starts_with): self._local_id_starts_with = local_id_starts_with + @property + def mode_type(self): + """Gets the mode_type of this VlanWhereInput. # noqa: E501 + + + :return: The mode_type of this VlanWhereInput. # noqa: E501 + :rtype: VlanModeType + """ + return self._mode_type + + @mode_type.setter + def mode_type(self, mode_type): + """Sets the mode_type of this VlanWhereInput. + + + :param mode_type: The mode_type of this VlanWhereInput. # noqa: E501 + :type mode_type: VlanModeType + """ + + self._mode_type = mode_type + + @property + def mode_type_in(self): + """Gets the mode_type_in of this VlanWhereInput. # noqa: E501 + + + :return: The mode_type_in of this VlanWhereInput. # noqa: E501 + :rtype: list[VlanModeType] + """ + return self._mode_type_in + + @mode_type_in.setter + def mode_type_in(self, mode_type_in): + """Sets the mode_type_in of this VlanWhereInput. + + + :param mode_type_in: The mode_type_in of this VlanWhereInput. # noqa: E501 + :type mode_type_in: list[VlanModeType] + """ + + self._mode_type_in = mode_type_in + + @property + def mode_type_not(self): + """Gets the mode_type_not of this VlanWhereInput. # noqa: E501 + + + :return: The mode_type_not of this VlanWhereInput. # noqa: E501 + :rtype: VlanModeType + """ + return self._mode_type_not + + @mode_type_not.setter + def mode_type_not(self, mode_type_not): + """Sets the mode_type_not of this VlanWhereInput. + + + :param mode_type_not: The mode_type_not of this VlanWhereInput. # noqa: E501 + :type mode_type_not: VlanModeType + """ + + self._mode_type_not = mode_type_not + + @property + def mode_type_not_in(self): + """Gets the mode_type_not_in of this VlanWhereInput. # noqa: E501 + + + :return: The mode_type_not_in of this VlanWhereInput. # noqa: E501 + :rtype: list[VlanModeType] + """ + return self._mode_type_not_in + + @mode_type_not_in.setter + def mode_type_not_in(self, mode_type_not_in): + """Sets the mode_type_not_in of this VlanWhereInput. + + + :param mode_type_not_in: The mode_type_not_in of this VlanWhereInput. # noqa: E501 + :type mode_type_not_in: list[VlanModeType] + """ + + self._mode_type_not_in = mode_type_not_in + @property def name(self): """Gets the name of this VlanWhereInput. # noqa: E501 @@ -2157,6 +2353,510 @@ def _or(self, _or): self.__or = _or + @property + def qos_max_bandwidth(self): + """Gets the qos_max_bandwidth of this VlanWhereInput. # noqa: E501 + + + :return: The qos_max_bandwidth of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_max_bandwidth + + @qos_max_bandwidth.setter + def qos_max_bandwidth(self, qos_max_bandwidth): + """Sets the qos_max_bandwidth of this VlanWhereInput. + + + :param qos_max_bandwidth: The qos_max_bandwidth of this VlanWhereInput. # noqa: E501 + :type qos_max_bandwidth: float + """ + + self._qos_max_bandwidth = qos_max_bandwidth + + @property + def qos_max_bandwidth_gt(self): + """Gets the qos_max_bandwidth_gt of this VlanWhereInput. # noqa: E501 + + + :return: The qos_max_bandwidth_gt of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_max_bandwidth_gt + + @qos_max_bandwidth_gt.setter + def qos_max_bandwidth_gt(self, qos_max_bandwidth_gt): + """Sets the qos_max_bandwidth_gt of this VlanWhereInput. + + + :param qos_max_bandwidth_gt: The qos_max_bandwidth_gt of this VlanWhereInput. # noqa: E501 + :type qos_max_bandwidth_gt: float + """ + + self._qos_max_bandwidth_gt = qos_max_bandwidth_gt + + @property + def qos_max_bandwidth_gte(self): + """Gets the qos_max_bandwidth_gte of this VlanWhereInput. # noqa: E501 + + + :return: The qos_max_bandwidth_gte of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_max_bandwidth_gte + + @qos_max_bandwidth_gte.setter + def qos_max_bandwidth_gte(self, qos_max_bandwidth_gte): + """Sets the qos_max_bandwidth_gte of this VlanWhereInput. + + + :param qos_max_bandwidth_gte: The qos_max_bandwidth_gte of this VlanWhereInput. # noqa: E501 + :type qos_max_bandwidth_gte: float + """ + + self._qos_max_bandwidth_gte = qos_max_bandwidth_gte + + @property + def qos_max_bandwidth_in(self): + """Gets the qos_max_bandwidth_in of this VlanWhereInput. # noqa: E501 + + + :return: The qos_max_bandwidth_in of this VlanWhereInput. # noqa: E501 + :rtype: list[float] + """ + return self._qos_max_bandwidth_in + + @qos_max_bandwidth_in.setter + def qos_max_bandwidth_in(self, qos_max_bandwidth_in): + """Sets the qos_max_bandwidth_in of this VlanWhereInput. + + + :param qos_max_bandwidth_in: The qos_max_bandwidth_in of this VlanWhereInput. # noqa: E501 + :type qos_max_bandwidth_in: list[float] + """ + + self._qos_max_bandwidth_in = qos_max_bandwidth_in + + @property + def qos_max_bandwidth_lt(self): + """Gets the qos_max_bandwidth_lt of this VlanWhereInput. # noqa: E501 + + + :return: The qos_max_bandwidth_lt of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_max_bandwidth_lt + + @qos_max_bandwidth_lt.setter + def qos_max_bandwidth_lt(self, qos_max_bandwidth_lt): + """Sets the qos_max_bandwidth_lt of this VlanWhereInput. + + + :param qos_max_bandwidth_lt: The qos_max_bandwidth_lt of this VlanWhereInput. # noqa: E501 + :type qos_max_bandwidth_lt: float + """ + + self._qos_max_bandwidth_lt = qos_max_bandwidth_lt + + @property + def qos_max_bandwidth_lte(self): + """Gets the qos_max_bandwidth_lte of this VlanWhereInput. # noqa: E501 + + + :return: The qos_max_bandwidth_lte of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_max_bandwidth_lte + + @qos_max_bandwidth_lte.setter + def qos_max_bandwidth_lte(self, qos_max_bandwidth_lte): + """Sets the qos_max_bandwidth_lte of this VlanWhereInput. + + + :param qos_max_bandwidth_lte: The qos_max_bandwidth_lte of this VlanWhereInput. # noqa: E501 + :type qos_max_bandwidth_lte: float + """ + + self._qos_max_bandwidth_lte = qos_max_bandwidth_lte + + @property + def qos_max_bandwidth_not(self): + """Gets the qos_max_bandwidth_not of this VlanWhereInput. # noqa: E501 + + + :return: The qos_max_bandwidth_not of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_max_bandwidth_not + + @qos_max_bandwidth_not.setter + def qos_max_bandwidth_not(self, qos_max_bandwidth_not): + """Sets the qos_max_bandwidth_not of this VlanWhereInput. + + + :param qos_max_bandwidth_not: The qos_max_bandwidth_not of this VlanWhereInput. # noqa: E501 + :type qos_max_bandwidth_not: float + """ + + self._qos_max_bandwidth_not = qos_max_bandwidth_not + + @property + def qos_max_bandwidth_not_in(self): + """Gets the qos_max_bandwidth_not_in of this VlanWhereInput. # noqa: E501 + + + :return: The qos_max_bandwidth_not_in of this VlanWhereInput. # noqa: E501 + :rtype: list[float] + """ + return self._qos_max_bandwidth_not_in + + @qos_max_bandwidth_not_in.setter + def qos_max_bandwidth_not_in(self, qos_max_bandwidth_not_in): + """Sets the qos_max_bandwidth_not_in of this VlanWhereInput. + + + :param qos_max_bandwidth_not_in: The qos_max_bandwidth_not_in of this VlanWhereInput. # noqa: E501 + :type qos_max_bandwidth_not_in: list[float] + """ + + self._qos_max_bandwidth_not_in = qos_max_bandwidth_not_in + + @property + def qos_min_bandwidth(self): + """Gets the qos_min_bandwidth of this VlanWhereInput. # noqa: E501 + + + :return: The qos_min_bandwidth of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_min_bandwidth + + @qos_min_bandwidth.setter + def qos_min_bandwidth(self, qos_min_bandwidth): + """Sets the qos_min_bandwidth of this VlanWhereInput. + + + :param qos_min_bandwidth: The qos_min_bandwidth of this VlanWhereInput. # noqa: E501 + :type qos_min_bandwidth: float + """ + + self._qos_min_bandwidth = qos_min_bandwidth + + @property + def qos_min_bandwidth_gt(self): + """Gets the qos_min_bandwidth_gt of this VlanWhereInput. # noqa: E501 + + + :return: The qos_min_bandwidth_gt of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_min_bandwidth_gt + + @qos_min_bandwidth_gt.setter + def qos_min_bandwidth_gt(self, qos_min_bandwidth_gt): + """Sets the qos_min_bandwidth_gt of this VlanWhereInput. + + + :param qos_min_bandwidth_gt: The qos_min_bandwidth_gt of this VlanWhereInput. # noqa: E501 + :type qos_min_bandwidth_gt: float + """ + + self._qos_min_bandwidth_gt = qos_min_bandwidth_gt + + @property + def qos_min_bandwidth_gte(self): + """Gets the qos_min_bandwidth_gte of this VlanWhereInput. # noqa: E501 + + + :return: The qos_min_bandwidth_gte of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_min_bandwidth_gte + + @qos_min_bandwidth_gte.setter + def qos_min_bandwidth_gte(self, qos_min_bandwidth_gte): + """Sets the qos_min_bandwidth_gte of this VlanWhereInput. + + + :param qos_min_bandwidth_gte: The qos_min_bandwidth_gte of this VlanWhereInput. # noqa: E501 + :type qos_min_bandwidth_gte: float + """ + + self._qos_min_bandwidth_gte = qos_min_bandwidth_gte + + @property + def qos_min_bandwidth_in(self): + """Gets the qos_min_bandwidth_in of this VlanWhereInput. # noqa: E501 + + + :return: The qos_min_bandwidth_in of this VlanWhereInput. # noqa: E501 + :rtype: list[float] + """ + return self._qos_min_bandwidth_in + + @qos_min_bandwidth_in.setter + def qos_min_bandwidth_in(self, qos_min_bandwidth_in): + """Sets the qos_min_bandwidth_in of this VlanWhereInput. + + + :param qos_min_bandwidth_in: The qos_min_bandwidth_in of this VlanWhereInput. # noqa: E501 + :type qos_min_bandwidth_in: list[float] + """ + + self._qos_min_bandwidth_in = qos_min_bandwidth_in + + @property + def qos_min_bandwidth_lt(self): + """Gets the qos_min_bandwidth_lt of this VlanWhereInput. # noqa: E501 + + + :return: The qos_min_bandwidth_lt of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_min_bandwidth_lt + + @qos_min_bandwidth_lt.setter + def qos_min_bandwidth_lt(self, qos_min_bandwidth_lt): + """Sets the qos_min_bandwidth_lt of this VlanWhereInput. + + + :param qos_min_bandwidth_lt: The qos_min_bandwidth_lt of this VlanWhereInput. # noqa: E501 + :type qos_min_bandwidth_lt: float + """ + + self._qos_min_bandwidth_lt = qos_min_bandwidth_lt + + @property + def qos_min_bandwidth_lte(self): + """Gets the qos_min_bandwidth_lte of this VlanWhereInput. # noqa: E501 + + + :return: The qos_min_bandwidth_lte of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_min_bandwidth_lte + + @qos_min_bandwidth_lte.setter + def qos_min_bandwidth_lte(self, qos_min_bandwidth_lte): + """Sets the qos_min_bandwidth_lte of this VlanWhereInput. + + + :param qos_min_bandwidth_lte: The qos_min_bandwidth_lte of this VlanWhereInput. # noqa: E501 + :type qos_min_bandwidth_lte: float + """ + + self._qos_min_bandwidth_lte = qos_min_bandwidth_lte + + @property + def qos_min_bandwidth_not(self): + """Gets the qos_min_bandwidth_not of this VlanWhereInput. # noqa: E501 + + + :return: The qos_min_bandwidth_not of this VlanWhereInput. # noqa: E501 + :rtype: float + """ + return self._qos_min_bandwidth_not + + @qos_min_bandwidth_not.setter + def qos_min_bandwidth_not(self, qos_min_bandwidth_not): + """Sets the qos_min_bandwidth_not of this VlanWhereInput. + + + :param qos_min_bandwidth_not: The qos_min_bandwidth_not of this VlanWhereInput. # noqa: E501 + :type qos_min_bandwidth_not: float + """ + + self._qos_min_bandwidth_not = qos_min_bandwidth_not + + @property + def qos_min_bandwidth_not_in(self): + """Gets the qos_min_bandwidth_not_in of this VlanWhereInput. # noqa: E501 + + + :return: The qos_min_bandwidth_not_in of this VlanWhereInput. # noqa: E501 + :rtype: list[float] + """ + return self._qos_min_bandwidth_not_in + + @qos_min_bandwidth_not_in.setter + def qos_min_bandwidth_not_in(self, qos_min_bandwidth_not_in): + """Sets the qos_min_bandwidth_not_in of this VlanWhereInput. + + + :param qos_min_bandwidth_not_in: The qos_min_bandwidth_not_in of this VlanWhereInput. # noqa: E501 + :type qos_min_bandwidth_not_in: list[float] + """ + + self._qos_min_bandwidth_not_in = qos_min_bandwidth_not_in + + @property + def qos_priority(self): + """Gets the qos_priority of this VlanWhereInput. # noqa: E501 + + + :return: The qos_priority of this VlanWhereInput. # noqa: E501 + :rtype: int + """ + return self._qos_priority + + @qos_priority.setter + def qos_priority(self, qos_priority): + """Sets the qos_priority of this VlanWhereInput. + + + :param qos_priority: The qos_priority of this VlanWhereInput. # noqa: E501 + :type qos_priority: int + """ + + self._qos_priority = qos_priority + + @property + def qos_priority_gt(self): + """Gets the qos_priority_gt of this VlanWhereInput. # noqa: E501 + + + :return: The qos_priority_gt of this VlanWhereInput. # noqa: E501 + :rtype: int + """ + return self._qos_priority_gt + + @qos_priority_gt.setter + def qos_priority_gt(self, qos_priority_gt): + """Sets the qos_priority_gt of this VlanWhereInput. + + + :param qos_priority_gt: The qos_priority_gt of this VlanWhereInput. # noqa: E501 + :type qos_priority_gt: int + """ + + self._qos_priority_gt = qos_priority_gt + + @property + def qos_priority_gte(self): + """Gets the qos_priority_gte of this VlanWhereInput. # noqa: E501 + + + :return: The qos_priority_gte of this VlanWhereInput. # noqa: E501 + :rtype: int + """ + return self._qos_priority_gte + + @qos_priority_gte.setter + def qos_priority_gte(self, qos_priority_gte): + """Sets the qos_priority_gte of this VlanWhereInput. + + + :param qos_priority_gte: The qos_priority_gte of this VlanWhereInput. # noqa: E501 + :type qos_priority_gte: int + """ + + self._qos_priority_gte = qos_priority_gte + + @property + def qos_priority_in(self): + """Gets the qos_priority_in of this VlanWhereInput. # noqa: E501 + + + :return: The qos_priority_in of this VlanWhereInput. # noqa: E501 + :rtype: list[int] + """ + return self._qos_priority_in + + @qos_priority_in.setter + def qos_priority_in(self, qos_priority_in): + """Sets the qos_priority_in of this VlanWhereInput. + + + :param qos_priority_in: The qos_priority_in of this VlanWhereInput. # noqa: E501 + :type qos_priority_in: list[int] + """ + + self._qos_priority_in = qos_priority_in + + @property + def qos_priority_lt(self): + """Gets the qos_priority_lt of this VlanWhereInput. # noqa: E501 + + + :return: The qos_priority_lt of this VlanWhereInput. # noqa: E501 + :rtype: int + """ + return self._qos_priority_lt + + @qos_priority_lt.setter + def qos_priority_lt(self, qos_priority_lt): + """Sets the qos_priority_lt of this VlanWhereInput. + + + :param qos_priority_lt: The qos_priority_lt of this VlanWhereInput. # noqa: E501 + :type qos_priority_lt: int + """ + + self._qos_priority_lt = qos_priority_lt + + @property + def qos_priority_lte(self): + """Gets the qos_priority_lte of this VlanWhereInput. # noqa: E501 + + + :return: The qos_priority_lte of this VlanWhereInput. # noqa: E501 + :rtype: int + """ + return self._qos_priority_lte + + @qos_priority_lte.setter + def qos_priority_lte(self, qos_priority_lte): + """Sets the qos_priority_lte of this VlanWhereInput. + + + :param qos_priority_lte: The qos_priority_lte of this VlanWhereInput. # noqa: E501 + :type qos_priority_lte: int + """ + + self._qos_priority_lte = qos_priority_lte + + @property + def qos_priority_not(self): + """Gets the qos_priority_not of this VlanWhereInput. # noqa: E501 + + + :return: The qos_priority_not of this VlanWhereInput. # noqa: E501 + :rtype: int + """ + return self._qos_priority_not + + @qos_priority_not.setter + def qos_priority_not(self, qos_priority_not): + """Sets the qos_priority_not of this VlanWhereInput. + + + :param qos_priority_not: The qos_priority_not of this VlanWhereInput. # noqa: E501 + :type qos_priority_not: int + """ + + self._qos_priority_not = qos_priority_not + + @property + def qos_priority_not_in(self): + """Gets the qos_priority_not_in of this VlanWhereInput. # noqa: E501 + + + :return: The qos_priority_not_in of this VlanWhereInput. # noqa: E501 + :rtype: list[int] + """ + return self._qos_priority_not_in + + @qos_priority_not_in.setter + def qos_priority_not_in(self, qos_priority_not_in): + """Sets the qos_priority_not_in of this VlanWhereInput. + + + :param qos_priority_not_in: The qos_priority_not_in of this VlanWhereInput. # noqa: E501 + :type qos_priority_not_in: list[int] + """ + + self._qos_priority_not_in = qos_priority_not_in + @property def subnetmask(self): """Gets the subnetmask of this VlanWhereInput. # noqa: E501 diff --git a/cloudtower/models/vm_export_file.py b/cloudtower/models/vm_export_file.py new file mode 100644 index 00000000..d4ec8402 --- /dev/null +++ b/cloudtower/models/vm_export_file.py @@ -0,0 +1,388 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmExportFile(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'content_library_vm_template': 'NestedContentLibraryVmTemplate', + 'created_at': 'str', + 'damaged': 'bool', + 'data_port_id': 'str', + 'entity_async_status': 'EntityAsyncStatus', + 'files': 'list[VmExportFileFile]', + 'id': 'str', + 'storage_cluster_id': 'str', + 'type': 'VmExportFileType', + 'vm': 'NestedVm', + 'vm_volume': 'NestedVmVolume' + } + + attribute_map = { + 'content_library_vm_template': 'content_library_vm_template', + 'created_at': 'createdAt', + 'damaged': 'damaged', + 'data_port_id': 'data_port_id', + 'entity_async_status': 'entityAsyncStatus', + 'files': 'files', + 'id': 'id', + 'storage_cluster_id': 'storage_cluster_id', + 'type': 'type', + 'vm': 'vm', + 'vm_volume': 'vm_volume' + } + + def __init__(self, **kwargs): # noqa: E501 + """VmExportFile - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._content_library_vm_template = None + self._created_at = None + self._damaged = None + self._data_port_id = None + self._entity_async_status = None + self._files = None + self._id = None + self._storage_cluster_id = None + self._type = None + self._vm = None + self._vm_volume = None + self.discriminator = None + + self.content_library_vm_template = kwargs.get("content_library_vm_template", None) + if "created_at" in kwargs: + self.created_at = kwargs["created_at"] + if "damaged" in kwargs: + self.damaged = kwargs["damaged"] + if "data_port_id" in kwargs: + self.data_port_id = kwargs["data_port_id"] + self.entity_async_status = kwargs.get("entity_async_status", None) + if "files" in kwargs: + self.files = kwargs["files"] + if "id" in kwargs: + self.id = kwargs["id"] + if "storage_cluster_id" in kwargs: + self.storage_cluster_id = kwargs["storage_cluster_id"] + if "type" in kwargs: + self.type = kwargs["type"] + self.vm = kwargs.get("vm", None) + self.vm_volume = kwargs.get("vm_volume", None) + + @property + def content_library_vm_template(self): + """Gets the content_library_vm_template of this VmExportFile. # noqa: E501 + + + :return: The content_library_vm_template of this VmExportFile. # noqa: E501 + :rtype: NestedContentLibraryVmTemplate + """ + return self._content_library_vm_template + + @content_library_vm_template.setter + def content_library_vm_template(self, content_library_vm_template): + """Sets the content_library_vm_template of this VmExportFile. + + + :param content_library_vm_template: The content_library_vm_template of this VmExportFile. # noqa: E501 + :type content_library_vm_template: NestedContentLibraryVmTemplate + """ + + self._content_library_vm_template = content_library_vm_template + + @property + def created_at(self): + """Gets the created_at of this VmExportFile. # noqa: E501 + + + :return: The created_at of this VmExportFile. # noqa: E501 + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this VmExportFile. + + + :param created_at: The created_at of this VmExportFile. # noqa: E501 + :type created_at: str + """ + if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at + + @property + def damaged(self): + """Gets the damaged of this VmExportFile. # noqa: E501 + + + :return: The damaged of this VmExportFile. # noqa: E501 + :rtype: bool + """ + return self._damaged + + @damaged.setter + def damaged(self, damaged): + """Sets the damaged of this VmExportFile. + + + :param damaged: The damaged of this VmExportFile. # noqa: E501 + :type damaged: bool + """ + if self.local_vars_configuration.client_side_validation and damaged is None: # noqa: E501 + raise ValueError("Invalid value for `damaged`, must not be `None`") # noqa: E501 + + self._damaged = damaged + + @property + def data_port_id(self): + """Gets the data_port_id of this VmExportFile. # noqa: E501 + + + :return: The data_port_id of this VmExportFile. # noqa: E501 + :rtype: str + """ + return self._data_port_id + + @data_port_id.setter + def data_port_id(self, data_port_id): + """Sets the data_port_id of this VmExportFile. + + + :param data_port_id: The data_port_id of this VmExportFile. # noqa: E501 + :type data_port_id: str + """ + if self.local_vars_configuration.client_side_validation and data_port_id is None: # noqa: E501 + raise ValueError("Invalid value for `data_port_id`, must not be `None`") # noqa: E501 + + self._data_port_id = data_port_id + + @property + def entity_async_status(self): + """Gets the entity_async_status of this VmExportFile. # noqa: E501 + + + :return: The entity_async_status of this VmExportFile. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this VmExportFile. + + + :param entity_async_status: The entity_async_status of this VmExportFile. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + + @property + def files(self): + """Gets the files of this VmExportFile. # noqa: E501 + + + :return: The files of this VmExportFile. # noqa: E501 + :rtype: list[VmExportFileFile] + """ + return self._files + + @files.setter + def files(self, files): + """Sets the files of this VmExportFile. + + + :param files: The files of this VmExportFile. # noqa: E501 + :type files: list[VmExportFileFile] + """ + if self.local_vars_configuration.client_side_validation and files is None: # noqa: E501 + raise ValueError("Invalid value for `files`, must not be `None`") # noqa: E501 + + self._files = files + + @property + def id(self): + """Gets the id of this VmExportFile. # noqa: E501 + + + :return: The id of this VmExportFile. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this VmExportFile. + + + :param id: The id of this VmExportFile. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def storage_cluster_id(self): + """Gets the storage_cluster_id of this VmExportFile. # noqa: E501 + + + :return: The storage_cluster_id of this VmExportFile. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id + + @storage_cluster_id.setter + def storage_cluster_id(self, storage_cluster_id): + """Sets the storage_cluster_id of this VmExportFile. + + + :param storage_cluster_id: The storage_cluster_id of this VmExportFile. # noqa: E501 + :type storage_cluster_id: str + """ + if self.local_vars_configuration.client_side_validation and storage_cluster_id is None: # noqa: E501 + raise ValueError("Invalid value for `storage_cluster_id`, must not be `None`") # noqa: E501 + + self._storage_cluster_id = storage_cluster_id + + @property + def type(self): + """Gets the type of this VmExportFile. # noqa: E501 + + + :return: The type of this VmExportFile. # noqa: E501 + :rtype: VmExportFileType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this VmExportFile. + + + :param type: The type of this VmExportFile. # noqa: E501 + :type type: VmExportFileType + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def vm(self): + """Gets the vm of this VmExportFile. # noqa: E501 + + + :return: The vm of this VmExportFile. # noqa: E501 + :rtype: NestedVm + """ + return self._vm + + @vm.setter + def vm(self, vm): + """Sets the vm of this VmExportFile. + + + :param vm: The vm of this VmExportFile. # noqa: E501 + :type vm: NestedVm + """ + + self._vm = vm + + @property + def vm_volume(self): + """Gets the vm_volume of this VmExportFile. # noqa: E501 + + + :return: The vm_volume of this VmExportFile. # noqa: E501 + :rtype: NestedVmVolume + """ + return self._vm_volume + + @vm_volume.setter + def vm_volume(self, vm_volume): + """Sets the vm_volume of this VmExportFile. + + + :param vm_volume: The vm_volume of this VmExportFile. # noqa: E501 + :type vm_volume: NestedVmVolume + """ + + self._vm_volume = vm_volume + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmExportFile): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmExportFile): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vm_export_file_connection.py b/cloudtower/models/vm_export_file_connection.py new file mode 100644 index 00000000..74e72011 --- /dev/null +++ b/cloudtower/models/vm_export_file_connection.py @@ -0,0 +1,120 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmExportFileConnection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'aggregate': 'NestedAggregateVmExportFile' + } + + attribute_map = { + 'aggregate': 'aggregate' + } + + def __init__(self, **kwargs): # noqa: E501 + """VmExportFileConnection - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._aggregate = None + self.discriminator = None + + if "aggregate" in kwargs: + self.aggregate = kwargs["aggregate"] + + @property + def aggregate(self): + """Gets the aggregate of this VmExportFileConnection. # noqa: E501 + + + :return: The aggregate of this VmExportFileConnection. # noqa: E501 + :rtype: NestedAggregateVmExportFile + """ + return self._aggregate + + @aggregate.setter + def aggregate(self, aggregate): + """Sets the aggregate of this VmExportFileConnection. + + + :param aggregate: The aggregate of this VmExportFileConnection. # noqa: E501 + :type aggregate: NestedAggregateVmExportFile + """ + if self.local_vars_configuration.client_side_validation and aggregate is None: # noqa: E501 + raise ValueError("Invalid value for `aggregate`, must not be `None`") # noqa: E501 + + self._aggregate = aggregate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmExportFileConnection): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmExportFileConnection): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vm_export_file_file.py b/cloudtower/models/vm_export_file_file.py new file mode 100644 index 00000000..3138ba0f --- /dev/null +++ b/cloudtower/models/vm_export_file_file.py @@ -0,0 +1,260 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmExportFileFile(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'md5': 'str', + 'file_size': 'int', + 'file_secret': 'str', + 'file_uuid': 'str', + 'type': 'VmExportFileType', + 'file_name': 'str' + } + + attribute_map = { + 'md5': 'md5', + 'file_size': 'fileSize', + 'file_secret': 'fileSecret', + 'file_uuid': 'fileUUID', + 'type': 'type', + 'file_name': 'fileName' + } + + def __init__(self, **kwargs): # noqa: E501 + """VmExportFileFile - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._md5 = None + self._file_size = None + self._file_secret = None + self._file_uuid = None + self._type = None + self._file_name = None + self.discriminator = None + + if "md5" in kwargs: + self.md5 = kwargs["md5"] + if "file_size" in kwargs: + self.file_size = kwargs["file_size"] + if "file_secret" in kwargs: + self.file_secret = kwargs["file_secret"] + if "file_uuid" in kwargs: + self.file_uuid = kwargs["file_uuid"] + if "type" in kwargs: + self.type = kwargs["type"] + if "file_name" in kwargs: + self.file_name = kwargs["file_name"] + + @property + def md5(self): + """Gets the md5 of this VmExportFileFile. # noqa: E501 + + + :return: The md5 of this VmExportFileFile. # noqa: E501 + :rtype: str + """ + return self._md5 + + @md5.setter + def md5(self, md5): + """Sets the md5 of this VmExportFileFile. + + + :param md5: The md5 of this VmExportFileFile. # noqa: E501 + :type md5: str + """ + if self.local_vars_configuration.client_side_validation and md5 is None: # noqa: E501 + raise ValueError("Invalid value for `md5`, must not be `None`") # noqa: E501 + + self._md5 = md5 + + @property + def file_size(self): + """Gets the file_size of this VmExportFileFile. # noqa: E501 + + + :return: The file_size of this VmExportFileFile. # noqa: E501 + :rtype: int + """ + return self._file_size + + @file_size.setter + def file_size(self, file_size): + """Sets the file_size of this VmExportFileFile. + + + :param file_size: The file_size of this VmExportFileFile. # noqa: E501 + :type file_size: int + """ + if self.local_vars_configuration.client_side_validation and file_size is None: # noqa: E501 + raise ValueError("Invalid value for `file_size`, must not be `None`") # noqa: E501 + + self._file_size = file_size + + @property + def file_secret(self): + """Gets the file_secret of this VmExportFileFile. # noqa: E501 + + + :return: The file_secret of this VmExportFileFile. # noqa: E501 + :rtype: str + """ + return self._file_secret + + @file_secret.setter + def file_secret(self, file_secret): + """Sets the file_secret of this VmExportFileFile. + + + :param file_secret: The file_secret of this VmExportFileFile. # noqa: E501 + :type file_secret: str + """ + if self.local_vars_configuration.client_side_validation and file_secret is None: # noqa: E501 + raise ValueError("Invalid value for `file_secret`, must not be `None`") # noqa: E501 + + self._file_secret = file_secret + + @property + def file_uuid(self): + """Gets the file_uuid of this VmExportFileFile. # noqa: E501 + + + :return: The file_uuid of this VmExportFileFile. # noqa: E501 + :rtype: str + """ + return self._file_uuid + + @file_uuid.setter + def file_uuid(self, file_uuid): + """Sets the file_uuid of this VmExportFileFile. + + + :param file_uuid: The file_uuid of this VmExportFileFile. # noqa: E501 + :type file_uuid: str + """ + if self.local_vars_configuration.client_side_validation and file_uuid is None: # noqa: E501 + raise ValueError("Invalid value for `file_uuid`, must not be `None`") # noqa: E501 + + self._file_uuid = file_uuid + + @property + def type(self): + """Gets the type of this VmExportFileFile. # noqa: E501 + + + :return: The type of this VmExportFileFile. # noqa: E501 + :rtype: VmExportFileType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this VmExportFileFile. + + + :param type: The type of this VmExportFileFile. # noqa: E501 + :type type: VmExportFileType + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + @property + def file_name(self): + """Gets the file_name of this VmExportFileFile. # noqa: E501 + + + :return: The file_name of this VmExportFileFile. # noqa: E501 + :rtype: str + """ + return self._file_name + + @file_name.setter + def file_name(self, file_name): + """Sets the file_name of this VmExportFileFile. + + + :param file_name: The file_name of this VmExportFileFile. # noqa: E501 + :type file_name: str + """ + if self.local_vars_configuration.client_side_validation and file_name is None: # noqa: E501 + raise ValueError("Invalid value for `file_name`, must not be `None`") # noqa: E501 + + self._file_name = file_name + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmExportFileFile): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmExportFileFile): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vm_export_file_order_by_input.py b/cloudtower/models/vm_export_file_order_by_input.py new file mode 100644 index 00000000..33164b17 --- /dev/null +++ b/cloudtower/models/vm_export_file_order_by_input.py @@ -0,0 +1,112 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmExportFileOrderByInput(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + CREATEDAT_ASC = "createdAt_ASC" + CREATEDAT_DESC = "createdAt_DESC" + DAMAGED_ASC = "damaged_ASC" + DAMAGED_DESC = "damaged_DESC" + DATA_PORT_ID_ASC = "data_port_id_ASC" + DATA_PORT_ID_DESC = "data_port_id_DESC" + ENTITYASYNCSTATUS_ASC = "entityAsyncStatus_ASC" + ENTITYASYNCSTATUS_DESC = "entityAsyncStatus_DESC" + FILES_ASC = "files_ASC" + FILES_DESC = "files_DESC" + ID_ASC = "id_ASC" + ID_DESC = "id_DESC" + STORAGE_CLUSTER_ID_ASC = "storage_cluster_id_ASC" + STORAGE_CLUSTER_ID_DESC = "storage_cluster_id_DESC" + TYPE_ASC = "type_ASC" + TYPE_DESC = "type_DESC" + + allowable_values = [CREATEDAT_ASC, CREATEDAT_DESC, DAMAGED_ASC, DAMAGED_DESC, DATA_PORT_ID_ASC, DATA_PORT_ID_DESC, ENTITYASYNCSTATUS_ASC, ENTITYASYNCSTATUS_DESC, FILES_ASC, FILES_DESC, ID_ASC, ID_DESC, STORAGE_CLUSTER_ID_ASC, STORAGE_CLUSTER_ID_DESC, TYPE_ASC, TYPE_DESC] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, **kwargs): # noqa: E501 + """VmExportFileOrderByInput - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + self.discriminator = None + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmExportFileOrderByInput): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmExportFileOrderByInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vm_export_file_type.py b/cloudtower/models/vm_export_file_type.py new file mode 100644 index 00000000..a0fa7242 --- /dev/null +++ b/cloudtower/models/vm_export_file_type.py @@ -0,0 +1,99 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmExportFileType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + OVF = "OVF" + QCOW2 = "QCOW2" + RAW = "RAW" + + allowable_values = [OVF, QCOW2, RAW] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, **kwargs): # noqa: E501 + """VmExportFileType - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + self.discriminator = None + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmExportFileType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmExportFileType): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vm_export_file_where_input.py b/cloudtower/models/vm_export_file_where_input.py new file mode 100644 index 00000000..2258bfe3 --- /dev/null +++ b/cloudtower/models/vm_export_file_where_input.py @@ -0,0 +1,1742 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmExportFileWhereInput(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + '_and': 'list[VmExportFileWhereInput]', + 'content_library_vm_template': 'ContentLibraryVmTemplateWhereInput', + 'created_at': 'str', + 'created_at_gt': 'str', + 'created_at_gte': 'str', + 'created_at_in': 'list[str]', + 'created_at_lt': 'str', + 'created_at_lte': 'str', + 'created_at_not': 'str', + 'created_at_not_in': 'list[str]', + 'damaged': 'bool', + 'damaged_not': 'bool', + 'data_port_id': 'str', + 'data_port_id_contains': 'str', + 'data_port_id_ends_with': 'str', + 'data_port_id_gt': 'str', + 'data_port_id_gte': 'str', + 'data_port_id_in': 'list[str]', + 'data_port_id_lt': 'str', + 'data_port_id_lte': 'str', + 'data_port_id_not': 'str', + 'data_port_id_not_contains': 'str', + 'data_port_id_not_ends_with': 'str', + 'data_port_id_not_in': 'list[str]', + 'data_port_id_not_starts_with': 'str', + 'data_port_id_starts_with': 'str', + 'entity_async_status': 'EntityAsyncStatus', + 'entity_async_status_in': 'list[EntityAsyncStatus]', + 'entity_async_status_not': 'EntityAsyncStatus', + 'entity_async_status_not_in': 'list[EntityAsyncStatus]', + 'id': 'str', + 'id_contains': 'str', + 'id_ends_with': 'str', + 'id_gt': 'str', + 'id_gte': 'str', + 'id_in': 'list[str]', + 'id_lt': 'str', + 'id_lte': 'str', + 'id_not': 'str', + 'id_not_contains': 'str', + 'id_not_ends_with': 'str', + 'id_not_in': 'list[str]', + 'id_not_starts_with': 'str', + 'id_starts_with': 'str', + '_not': 'list[VmExportFileWhereInput]', + '_or': 'list[VmExportFileWhereInput]', + 'storage_cluster_id': 'str', + 'storage_cluster_id_contains': 'str', + 'storage_cluster_id_ends_with': 'str', + 'storage_cluster_id_gt': 'str', + 'storage_cluster_id_gte': 'str', + 'storage_cluster_id_in': 'list[str]', + 'storage_cluster_id_lt': 'str', + 'storage_cluster_id_lte': 'str', + 'storage_cluster_id_not': 'str', + 'storage_cluster_id_not_contains': 'str', + 'storage_cluster_id_not_ends_with': 'str', + 'storage_cluster_id_not_in': 'list[str]', + 'storage_cluster_id_not_starts_with': 'str', + 'storage_cluster_id_starts_with': 'str', + 'type': 'VmExportFileType', + 'type_in': 'list[VmExportFileType]', + 'type_not': 'VmExportFileType', + 'type_not_in': 'list[VmExportFileType]', + 'vm': 'VmWhereInput', + 'vm_volume': 'VmVolumeWhereInput' + } + + attribute_map = { + '_and': 'AND', + 'content_library_vm_template': 'content_library_vm_template', + 'created_at': 'createdAt', + 'created_at_gt': 'createdAt_gt', + 'created_at_gte': 'createdAt_gte', + 'created_at_in': 'createdAt_in', + 'created_at_lt': 'createdAt_lt', + 'created_at_lte': 'createdAt_lte', + 'created_at_not': 'createdAt_not', + 'created_at_not_in': 'createdAt_not_in', + 'damaged': 'damaged', + 'damaged_not': 'damaged_not', + 'data_port_id': 'data_port_id', + 'data_port_id_contains': 'data_port_id_contains', + 'data_port_id_ends_with': 'data_port_id_ends_with', + 'data_port_id_gt': 'data_port_id_gt', + 'data_port_id_gte': 'data_port_id_gte', + 'data_port_id_in': 'data_port_id_in', + 'data_port_id_lt': 'data_port_id_lt', + 'data_port_id_lte': 'data_port_id_lte', + 'data_port_id_not': 'data_port_id_not', + 'data_port_id_not_contains': 'data_port_id_not_contains', + 'data_port_id_not_ends_with': 'data_port_id_not_ends_with', + 'data_port_id_not_in': 'data_port_id_not_in', + 'data_port_id_not_starts_with': 'data_port_id_not_starts_with', + 'data_port_id_starts_with': 'data_port_id_starts_with', + 'entity_async_status': 'entityAsyncStatus', + 'entity_async_status_in': 'entityAsyncStatus_in', + 'entity_async_status_not': 'entityAsyncStatus_not', + 'entity_async_status_not_in': 'entityAsyncStatus_not_in', + 'id': 'id', + 'id_contains': 'id_contains', + 'id_ends_with': 'id_ends_with', + 'id_gt': 'id_gt', + 'id_gte': 'id_gte', + 'id_in': 'id_in', + 'id_lt': 'id_lt', + 'id_lte': 'id_lte', + 'id_not': 'id_not', + 'id_not_contains': 'id_not_contains', + 'id_not_ends_with': 'id_not_ends_with', + 'id_not_in': 'id_not_in', + 'id_not_starts_with': 'id_not_starts_with', + 'id_starts_with': 'id_starts_with', + '_not': 'NOT', + '_or': 'OR', + 'storage_cluster_id': 'storage_cluster_id', + 'storage_cluster_id_contains': 'storage_cluster_id_contains', + 'storage_cluster_id_ends_with': 'storage_cluster_id_ends_with', + 'storage_cluster_id_gt': 'storage_cluster_id_gt', + 'storage_cluster_id_gte': 'storage_cluster_id_gte', + 'storage_cluster_id_in': 'storage_cluster_id_in', + 'storage_cluster_id_lt': 'storage_cluster_id_lt', + 'storage_cluster_id_lte': 'storage_cluster_id_lte', + 'storage_cluster_id_not': 'storage_cluster_id_not', + 'storage_cluster_id_not_contains': 'storage_cluster_id_not_contains', + 'storage_cluster_id_not_ends_with': 'storage_cluster_id_not_ends_with', + 'storage_cluster_id_not_in': 'storage_cluster_id_not_in', + 'storage_cluster_id_not_starts_with': 'storage_cluster_id_not_starts_with', + 'storage_cluster_id_starts_with': 'storage_cluster_id_starts_with', + 'type': 'type', + 'type_in': 'type_in', + 'type_not': 'type_not', + 'type_not_in': 'type_not_in', + 'vm': 'vm', + 'vm_volume': 'vm_volume' + } + + def __init__(self, **kwargs): # noqa: E501 + """VmExportFileWhereInput - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self.__and = None + self._content_library_vm_template = None + self._created_at = None + self._created_at_gt = None + self._created_at_gte = None + self._created_at_in = None + self._created_at_lt = None + self._created_at_lte = None + self._created_at_not = None + self._created_at_not_in = None + self._damaged = None + self._damaged_not = None + self._data_port_id = None + self._data_port_id_contains = None + self._data_port_id_ends_with = None + self._data_port_id_gt = None + self._data_port_id_gte = None + self._data_port_id_in = None + self._data_port_id_lt = None + self._data_port_id_lte = None + self._data_port_id_not = None + self._data_port_id_not_contains = None + self._data_port_id_not_ends_with = None + self._data_port_id_not_in = None + self._data_port_id_not_starts_with = None + self._data_port_id_starts_with = None + self._entity_async_status = None + self._entity_async_status_in = None + self._entity_async_status_not = None + self._entity_async_status_not_in = None + self._id = None + self._id_contains = None + self._id_ends_with = None + self._id_gt = None + self._id_gte = None + self._id_in = None + self._id_lt = None + self._id_lte = None + self._id_not = None + self._id_not_contains = None + self._id_not_ends_with = None + self._id_not_in = None + self._id_not_starts_with = None + self._id_starts_with = None + self.__not = None + self.__or = None + self._storage_cluster_id = None + self._storage_cluster_id_contains = None + self._storage_cluster_id_ends_with = None + self._storage_cluster_id_gt = None + self._storage_cluster_id_gte = None + self._storage_cluster_id_in = None + self._storage_cluster_id_lt = None + self._storage_cluster_id_lte = None + self._storage_cluster_id_not = None + self._storage_cluster_id_not_contains = None + self._storage_cluster_id_not_ends_with = None + self._storage_cluster_id_not_in = None + self._storage_cluster_id_not_starts_with = None + self._storage_cluster_id_starts_with = None + self._type = None + self._type_in = None + self._type_not = None + self._type_not_in = None + self._vm = None + self._vm_volume = None + self.discriminator = None + + self._and = kwargs.get("_and", None) + self.content_library_vm_template = kwargs.get("content_library_vm_template", None) + self.created_at = kwargs.get("created_at", None) + self.created_at_gt = kwargs.get("created_at_gt", None) + self.created_at_gte = kwargs.get("created_at_gte", None) + self.created_at_in = kwargs.get("created_at_in", None) + self.created_at_lt = kwargs.get("created_at_lt", None) + self.created_at_lte = kwargs.get("created_at_lte", None) + self.created_at_not = kwargs.get("created_at_not", None) + self.created_at_not_in = kwargs.get("created_at_not_in", None) + self.damaged = kwargs.get("damaged", None) + self.damaged_not = kwargs.get("damaged_not", None) + self.data_port_id = kwargs.get("data_port_id", None) + self.data_port_id_contains = kwargs.get("data_port_id_contains", None) + self.data_port_id_ends_with = kwargs.get("data_port_id_ends_with", None) + self.data_port_id_gt = kwargs.get("data_port_id_gt", None) + self.data_port_id_gte = kwargs.get("data_port_id_gte", None) + self.data_port_id_in = kwargs.get("data_port_id_in", None) + self.data_port_id_lt = kwargs.get("data_port_id_lt", None) + self.data_port_id_lte = kwargs.get("data_port_id_lte", None) + self.data_port_id_not = kwargs.get("data_port_id_not", None) + self.data_port_id_not_contains = kwargs.get("data_port_id_not_contains", None) + self.data_port_id_not_ends_with = kwargs.get("data_port_id_not_ends_with", None) + self.data_port_id_not_in = kwargs.get("data_port_id_not_in", None) + self.data_port_id_not_starts_with = kwargs.get("data_port_id_not_starts_with", None) + self.data_port_id_starts_with = kwargs.get("data_port_id_starts_with", None) + self.entity_async_status = kwargs.get("entity_async_status", None) + self.entity_async_status_in = kwargs.get("entity_async_status_in", None) + self.entity_async_status_not = kwargs.get("entity_async_status_not", None) + self.entity_async_status_not_in = kwargs.get("entity_async_status_not_in", None) + self.id = kwargs.get("id", None) + self.id_contains = kwargs.get("id_contains", None) + self.id_ends_with = kwargs.get("id_ends_with", None) + self.id_gt = kwargs.get("id_gt", None) + self.id_gte = kwargs.get("id_gte", None) + self.id_in = kwargs.get("id_in", None) + self.id_lt = kwargs.get("id_lt", None) + self.id_lte = kwargs.get("id_lte", None) + self.id_not = kwargs.get("id_not", None) + self.id_not_contains = kwargs.get("id_not_contains", None) + self.id_not_ends_with = kwargs.get("id_not_ends_with", None) + self.id_not_in = kwargs.get("id_not_in", None) + self.id_not_starts_with = kwargs.get("id_not_starts_with", None) + self.id_starts_with = kwargs.get("id_starts_with", None) + self._not = kwargs.get("_not", None) + self._or = kwargs.get("_or", None) + self.storage_cluster_id = kwargs.get("storage_cluster_id", None) + self.storage_cluster_id_contains = kwargs.get("storage_cluster_id_contains", None) + self.storage_cluster_id_ends_with = kwargs.get("storage_cluster_id_ends_with", None) + self.storage_cluster_id_gt = kwargs.get("storage_cluster_id_gt", None) + self.storage_cluster_id_gte = kwargs.get("storage_cluster_id_gte", None) + self.storage_cluster_id_in = kwargs.get("storage_cluster_id_in", None) + self.storage_cluster_id_lt = kwargs.get("storage_cluster_id_lt", None) + self.storage_cluster_id_lte = kwargs.get("storage_cluster_id_lte", None) + self.storage_cluster_id_not = kwargs.get("storage_cluster_id_not", None) + self.storage_cluster_id_not_contains = kwargs.get("storage_cluster_id_not_contains", None) + self.storage_cluster_id_not_ends_with = kwargs.get("storage_cluster_id_not_ends_with", None) + self.storage_cluster_id_not_in = kwargs.get("storage_cluster_id_not_in", None) + self.storage_cluster_id_not_starts_with = kwargs.get("storage_cluster_id_not_starts_with", None) + self.storage_cluster_id_starts_with = kwargs.get("storage_cluster_id_starts_with", None) + self.type = kwargs.get("type", None) + self.type_in = kwargs.get("type_in", None) + self.type_not = kwargs.get("type_not", None) + self.type_not_in = kwargs.get("type_not_in", None) + self.vm = kwargs.get("vm", None) + self.vm_volume = kwargs.get("vm_volume", None) + + @property + def _and(self): + """Gets the _and of this VmExportFileWhereInput. # noqa: E501 + + + :return: The _and of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[VmExportFileWhereInput] + """ + return self.__and + + @_and.setter + def _and(self, _and): + """Sets the _and of this VmExportFileWhereInput. + + + :param _and: The _and of this VmExportFileWhereInput. # noqa: E501 + :type _and: list[VmExportFileWhereInput] + """ + + self.__and = _and + + @property + def content_library_vm_template(self): + """Gets the content_library_vm_template of this VmExportFileWhereInput. # noqa: E501 + + + :return: The content_library_vm_template of this VmExportFileWhereInput. # noqa: E501 + :rtype: ContentLibraryVmTemplateWhereInput + """ + return self._content_library_vm_template + + @content_library_vm_template.setter + def content_library_vm_template(self, content_library_vm_template): + """Sets the content_library_vm_template of this VmExportFileWhereInput. + + + :param content_library_vm_template: The content_library_vm_template of this VmExportFileWhereInput. # noqa: E501 + :type content_library_vm_template: ContentLibraryVmTemplateWhereInput + """ + + self._content_library_vm_template = content_library_vm_template + + @property + def created_at(self): + """Gets the created_at of this VmExportFileWhereInput. # noqa: E501 + + + :return: The created_at of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this VmExportFileWhereInput. + + + :param created_at: The created_at of this VmExportFileWhereInput. # noqa: E501 + :type created_at: str + """ + + self._created_at = created_at + + @property + def created_at_gt(self): + """Gets the created_at_gt of this VmExportFileWhereInput. # noqa: E501 + + + :return: The created_at_gt of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._created_at_gt + + @created_at_gt.setter + def created_at_gt(self, created_at_gt): + """Sets the created_at_gt of this VmExportFileWhereInput. + + + :param created_at_gt: The created_at_gt of this VmExportFileWhereInput. # noqa: E501 + :type created_at_gt: str + """ + + self._created_at_gt = created_at_gt + + @property + def created_at_gte(self): + """Gets the created_at_gte of this VmExportFileWhereInput. # noqa: E501 + + + :return: The created_at_gte of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._created_at_gte + + @created_at_gte.setter + def created_at_gte(self, created_at_gte): + """Sets the created_at_gte of this VmExportFileWhereInput. + + + :param created_at_gte: The created_at_gte of this VmExportFileWhereInput. # noqa: E501 + :type created_at_gte: str + """ + + self._created_at_gte = created_at_gte + + @property + def created_at_in(self): + """Gets the created_at_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The created_at_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._created_at_in + + @created_at_in.setter + def created_at_in(self, created_at_in): + """Sets the created_at_in of this VmExportFileWhereInput. + + + :param created_at_in: The created_at_in of this VmExportFileWhereInput. # noqa: E501 + :type created_at_in: list[str] + """ + + self._created_at_in = created_at_in + + @property + def created_at_lt(self): + """Gets the created_at_lt of this VmExportFileWhereInput. # noqa: E501 + + + :return: The created_at_lt of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._created_at_lt + + @created_at_lt.setter + def created_at_lt(self, created_at_lt): + """Sets the created_at_lt of this VmExportFileWhereInput. + + + :param created_at_lt: The created_at_lt of this VmExportFileWhereInput. # noqa: E501 + :type created_at_lt: str + """ + + self._created_at_lt = created_at_lt + + @property + def created_at_lte(self): + """Gets the created_at_lte of this VmExportFileWhereInput. # noqa: E501 + + + :return: The created_at_lte of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._created_at_lte + + @created_at_lte.setter + def created_at_lte(self, created_at_lte): + """Sets the created_at_lte of this VmExportFileWhereInput. + + + :param created_at_lte: The created_at_lte of this VmExportFileWhereInput. # noqa: E501 + :type created_at_lte: str + """ + + self._created_at_lte = created_at_lte + + @property + def created_at_not(self): + """Gets the created_at_not of this VmExportFileWhereInput. # noqa: E501 + + + :return: The created_at_not of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._created_at_not + + @created_at_not.setter + def created_at_not(self, created_at_not): + """Sets the created_at_not of this VmExportFileWhereInput. + + + :param created_at_not: The created_at_not of this VmExportFileWhereInput. # noqa: E501 + :type created_at_not: str + """ + + self._created_at_not = created_at_not + + @property + def created_at_not_in(self): + """Gets the created_at_not_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The created_at_not_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._created_at_not_in + + @created_at_not_in.setter + def created_at_not_in(self, created_at_not_in): + """Sets the created_at_not_in of this VmExportFileWhereInput. + + + :param created_at_not_in: The created_at_not_in of this VmExportFileWhereInput. # noqa: E501 + :type created_at_not_in: list[str] + """ + + self._created_at_not_in = created_at_not_in + + @property + def damaged(self): + """Gets the damaged of this VmExportFileWhereInput. # noqa: E501 + + + :return: The damaged of this VmExportFileWhereInput. # noqa: E501 + :rtype: bool + """ + return self._damaged + + @damaged.setter + def damaged(self, damaged): + """Sets the damaged of this VmExportFileWhereInput. + + + :param damaged: The damaged of this VmExportFileWhereInput. # noqa: E501 + :type damaged: bool + """ + + self._damaged = damaged + + @property + def damaged_not(self): + """Gets the damaged_not of this VmExportFileWhereInput. # noqa: E501 + + + :return: The damaged_not of this VmExportFileWhereInput. # noqa: E501 + :rtype: bool + """ + return self._damaged_not + + @damaged_not.setter + def damaged_not(self, damaged_not): + """Sets the damaged_not of this VmExportFileWhereInput. + + + :param damaged_not: The damaged_not of this VmExportFileWhereInput. # noqa: E501 + :type damaged_not: bool + """ + + self._damaged_not = damaged_not + + @property + def data_port_id(self): + """Gets the data_port_id of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id + + @data_port_id.setter + def data_port_id(self, data_port_id): + """Sets the data_port_id of this VmExportFileWhereInput. + + + :param data_port_id: The data_port_id of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id: str + """ + + self._data_port_id = data_port_id + + @property + def data_port_id_contains(self): + """Gets the data_port_id_contains of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_contains of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id_contains + + @data_port_id_contains.setter + def data_port_id_contains(self, data_port_id_contains): + """Sets the data_port_id_contains of this VmExportFileWhereInput. + + + :param data_port_id_contains: The data_port_id_contains of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_contains: str + """ + + self._data_port_id_contains = data_port_id_contains + + @property + def data_port_id_ends_with(self): + """Gets the data_port_id_ends_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_ends_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id_ends_with + + @data_port_id_ends_with.setter + def data_port_id_ends_with(self, data_port_id_ends_with): + """Sets the data_port_id_ends_with of this VmExportFileWhereInput. + + + :param data_port_id_ends_with: The data_port_id_ends_with of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_ends_with: str + """ + + self._data_port_id_ends_with = data_port_id_ends_with + + @property + def data_port_id_gt(self): + """Gets the data_port_id_gt of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_gt of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id_gt + + @data_port_id_gt.setter + def data_port_id_gt(self, data_port_id_gt): + """Sets the data_port_id_gt of this VmExportFileWhereInput. + + + :param data_port_id_gt: The data_port_id_gt of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_gt: str + """ + + self._data_port_id_gt = data_port_id_gt + + @property + def data_port_id_gte(self): + """Gets the data_port_id_gte of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_gte of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id_gte + + @data_port_id_gte.setter + def data_port_id_gte(self, data_port_id_gte): + """Sets the data_port_id_gte of this VmExportFileWhereInput. + + + :param data_port_id_gte: The data_port_id_gte of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_gte: str + """ + + self._data_port_id_gte = data_port_id_gte + + @property + def data_port_id_in(self): + """Gets the data_port_id_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._data_port_id_in + + @data_port_id_in.setter + def data_port_id_in(self, data_port_id_in): + """Sets the data_port_id_in of this VmExportFileWhereInput. + + + :param data_port_id_in: The data_port_id_in of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_in: list[str] + """ + + self._data_port_id_in = data_port_id_in + + @property + def data_port_id_lt(self): + """Gets the data_port_id_lt of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_lt of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id_lt + + @data_port_id_lt.setter + def data_port_id_lt(self, data_port_id_lt): + """Sets the data_port_id_lt of this VmExportFileWhereInput. + + + :param data_port_id_lt: The data_port_id_lt of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_lt: str + """ + + self._data_port_id_lt = data_port_id_lt + + @property + def data_port_id_lte(self): + """Gets the data_port_id_lte of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_lte of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id_lte + + @data_port_id_lte.setter + def data_port_id_lte(self, data_port_id_lte): + """Sets the data_port_id_lte of this VmExportFileWhereInput. + + + :param data_port_id_lte: The data_port_id_lte of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_lte: str + """ + + self._data_port_id_lte = data_port_id_lte + + @property + def data_port_id_not(self): + """Gets the data_port_id_not of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_not of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id_not + + @data_port_id_not.setter + def data_port_id_not(self, data_port_id_not): + """Sets the data_port_id_not of this VmExportFileWhereInput. + + + :param data_port_id_not: The data_port_id_not of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_not: str + """ + + self._data_port_id_not = data_port_id_not + + @property + def data_port_id_not_contains(self): + """Gets the data_port_id_not_contains of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_not_contains of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id_not_contains + + @data_port_id_not_contains.setter + def data_port_id_not_contains(self, data_port_id_not_contains): + """Sets the data_port_id_not_contains of this VmExportFileWhereInput. + + + :param data_port_id_not_contains: The data_port_id_not_contains of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_not_contains: str + """ + + self._data_port_id_not_contains = data_port_id_not_contains + + @property + def data_port_id_not_ends_with(self): + """Gets the data_port_id_not_ends_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_not_ends_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id_not_ends_with + + @data_port_id_not_ends_with.setter + def data_port_id_not_ends_with(self, data_port_id_not_ends_with): + """Sets the data_port_id_not_ends_with of this VmExportFileWhereInput. + + + :param data_port_id_not_ends_with: The data_port_id_not_ends_with of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_not_ends_with: str + """ + + self._data_port_id_not_ends_with = data_port_id_not_ends_with + + @property + def data_port_id_not_in(self): + """Gets the data_port_id_not_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_not_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._data_port_id_not_in + + @data_port_id_not_in.setter + def data_port_id_not_in(self, data_port_id_not_in): + """Sets the data_port_id_not_in of this VmExportFileWhereInput. + + + :param data_port_id_not_in: The data_port_id_not_in of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_not_in: list[str] + """ + + self._data_port_id_not_in = data_port_id_not_in + + @property + def data_port_id_not_starts_with(self): + """Gets the data_port_id_not_starts_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_not_starts_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id_not_starts_with + + @data_port_id_not_starts_with.setter + def data_port_id_not_starts_with(self, data_port_id_not_starts_with): + """Sets the data_port_id_not_starts_with of this VmExportFileWhereInput. + + + :param data_port_id_not_starts_with: The data_port_id_not_starts_with of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_not_starts_with: str + """ + + self._data_port_id_not_starts_with = data_port_id_not_starts_with + + @property + def data_port_id_starts_with(self): + """Gets the data_port_id_starts_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The data_port_id_starts_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id_starts_with + + @data_port_id_starts_with.setter + def data_port_id_starts_with(self, data_port_id_starts_with): + """Sets the data_port_id_starts_with of this VmExportFileWhereInput. + + + :param data_port_id_starts_with: The data_port_id_starts_with of this VmExportFileWhereInput. # noqa: E501 + :type data_port_id_starts_with: str + """ + + self._data_port_id_starts_with = data_port_id_starts_with + + @property + def entity_async_status(self): + """Gets the entity_async_status of this VmExportFileWhereInput. # noqa: E501 + + + :return: The entity_async_status of this VmExportFileWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this VmExportFileWhereInput. + + + :param entity_async_status: The entity_async_status of this VmExportFileWhereInput. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + + @property + def entity_async_status_in(self): + """Gets the entity_async_status_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The entity_async_status_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_in + + @entity_async_status_in.setter + def entity_async_status_in(self, entity_async_status_in): + """Sets the entity_async_status_in of this VmExportFileWhereInput. + + + :param entity_async_status_in: The entity_async_status_in of this VmExportFileWhereInput. # noqa: E501 + :type entity_async_status_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_in = entity_async_status_in + + @property + def entity_async_status_not(self): + """Gets the entity_async_status_not of this VmExportFileWhereInput. # noqa: E501 + + + :return: The entity_async_status_not of this VmExportFileWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status_not + + @entity_async_status_not.setter + def entity_async_status_not(self, entity_async_status_not): + """Sets the entity_async_status_not of this VmExportFileWhereInput. + + + :param entity_async_status_not: The entity_async_status_not of this VmExportFileWhereInput. # noqa: E501 + :type entity_async_status_not: EntityAsyncStatus + """ + + self._entity_async_status_not = entity_async_status_not + + @property + def entity_async_status_not_in(self): + """Gets the entity_async_status_not_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The entity_async_status_not_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_not_in + + @entity_async_status_not_in.setter + def entity_async_status_not_in(self, entity_async_status_not_in): + """Sets the entity_async_status_not_in of this VmExportFileWhereInput. + + + :param entity_async_status_not_in: The entity_async_status_not_in of this VmExportFileWhereInput. # noqa: E501 + :type entity_async_status_not_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_not_in = entity_async_status_not_in + + @property + def id(self): + """Gets the id of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this VmExportFileWhereInput. + + + :param id: The id of this VmExportFileWhereInput. # noqa: E501 + :type id: str + """ + + self._id = id + + @property + def id_contains(self): + """Gets the id_contains of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_contains of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_contains + + @id_contains.setter + def id_contains(self, id_contains): + """Sets the id_contains of this VmExportFileWhereInput. + + + :param id_contains: The id_contains of this VmExportFileWhereInput. # noqa: E501 + :type id_contains: str + """ + + self._id_contains = id_contains + + @property + def id_ends_with(self): + """Gets the id_ends_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_ends_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_ends_with + + @id_ends_with.setter + def id_ends_with(self, id_ends_with): + """Sets the id_ends_with of this VmExportFileWhereInput. + + + :param id_ends_with: The id_ends_with of this VmExportFileWhereInput. # noqa: E501 + :type id_ends_with: str + """ + + self._id_ends_with = id_ends_with + + @property + def id_gt(self): + """Gets the id_gt of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_gt of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_gt + + @id_gt.setter + def id_gt(self, id_gt): + """Sets the id_gt of this VmExportFileWhereInput. + + + :param id_gt: The id_gt of this VmExportFileWhereInput. # noqa: E501 + :type id_gt: str + """ + + self._id_gt = id_gt + + @property + def id_gte(self): + """Gets the id_gte of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_gte of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_gte + + @id_gte.setter + def id_gte(self, id_gte): + """Sets the id_gte of this VmExportFileWhereInput. + + + :param id_gte: The id_gte of this VmExportFileWhereInput. # noqa: E501 + :type id_gte: str + """ + + self._id_gte = id_gte + + @property + def id_in(self): + """Gets the id_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._id_in + + @id_in.setter + def id_in(self, id_in): + """Sets the id_in of this VmExportFileWhereInput. + + + :param id_in: The id_in of this VmExportFileWhereInput. # noqa: E501 + :type id_in: list[str] + """ + + self._id_in = id_in + + @property + def id_lt(self): + """Gets the id_lt of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_lt of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_lt + + @id_lt.setter + def id_lt(self, id_lt): + """Sets the id_lt of this VmExportFileWhereInput. + + + :param id_lt: The id_lt of this VmExportFileWhereInput. # noqa: E501 + :type id_lt: str + """ + + self._id_lt = id_lt + + @property + def id_lte(self): + """Gets the id_lte of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_lte of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_lte + + @id_lte.setter + def id_lte(self, id_lte): + """Sets the id_lte of this VmExportFileWhereInput. + + + :param id_lte: The id_lte of this VmExportFileWhereInput. # noqa: E501 + :type id_lte: str + """ + + self._id_lte = id_lte + + @property + def id_not(self): + """Gets the id_not of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_not of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_not + + @id_not.setter + def id_not(self, id_not): + """Sets the id_not of this VmExportFileWhereInput. + + + :param id_not: The id_not of this VmExportFileWhereInput. # noqa: E501 + :type id_not: str + """ + + self._id_not = id_not + + @property + def id_not_contains(self): + """Gets the id_not_contains of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_not_contains of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_not_contains + + @id_not_contains.setter + def id_not_contains(self, id_not_contains): + """Sets the id_not_contains of this VmExportFileWhereInput. + + + :param id_not_contains: The id_not_contains of this VmExportFileWhereInput. # noqa: E501 + :type id_not_contains: str + """ + + self._id_not_contains = id_not_contains + + @property + def id_not_ends_with(self): + """Gets the id_not_ends_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_not_ends_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_not_ends_with + + @id_not_ends_with.setter + def id_not_ends_with(self, id_not_ends_with): + """Sets the id_not_ends_with of this VmExportFileWhereInput. + + + :param id_not_ends_with: The id_not_ends_with of this VmExportFileWhereInput. # noqa: E501 + :type id_not_ends_with: str + """ + + self._id_not_ends_with = id_not_ends_with + + @property + def id_not_in(self): + """Gets the id_not_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_not_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._id_not_in + + @id_not_in.setter + def id_not_in(self, id_not_in): + """Sets the id_not_in of this VmExportFileWhereInput. + + + :param id_not_in: The id_not_in of this VmExportFileWhereInput. # noqa: E501 + :type id_not_in: list[str] + """ + + self._id_not_in = id_not_in + + @property + def id_not_starts_with(self): + """Gets the id_not_starts_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_not_starts_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_not_starts_with + + @id_not_starts_with.setter + def id_not_starts_with(self, id_not_starts_with): + """Sets the id_not_starts_with of this VmExportFileWhereInput. + + + :param id_not_starts_with: The id_not_starts_with of this VmExportFileWhereInput. # noqa: E501 + :type id_not_starts_with: str + """ + + self._id_not_starts_with = id_not_starts_with + + @property + def id_starts_with(self): + """Gets the id_starts_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The id_starts_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._id_starts_with + + @id_starts_with.setter + def id_starts_with(self, id_starts_with): + """Sets the id_starts_with of this VmExportFileWhereInput. + + + :param id_starts_with: The id_starts_with of this VmExportFileWhereInput. # noqa: E501 + :type id_starts_with: str + """ + + self._id_starts_with = id_starts_with + + @property + def _not(self): + """Gets the _not of this VmExportFileWhereInput. # noqa: E501 + + + :return: The _not of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[VmExportFileWhereInput] + """ + return self.__not + + @_not.setter + def _not(self, _not): + """Sets the _not of this VmExportFileWhereInput. + + + :param _not: The _not of this VmExportFileWhereInput. # noqa: E501 + :type _not: list[VmExportFileWhereInput] + """ + + self.__not = _not + + @property + def _or(self): + """Gets the _or of this VmExportFileWhereInput. # noqa: E501 + + + :return: The _or of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[VmExportFileWhereInput] + """ + return self.__or + + @_or.setter + def _or(self, _or): + """Sets the _or of this VmExportFileWhereInput. + + + :param _or: The _or of this VmExportFileWhereInput. # noqa: E501 + :type _or: list[VmExportFileWhereInput] + """ + + self.__or = _or + + @property + def storage_cluster_id(self): + """Gets the storage_cluster_id of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id + + @storage_cluster_id.setter + def storage_cluster_id(self, storage_cluster_id): + """Sets the storage_cluster_id of this VmExportFileWhereInput. + + + :param storage_cluster_id: The storage_cluster_id of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id: str + """ + + self._storage_cluster_id = storage_cluster_id + + @property + def storage_cluster_id_contains(self): + """Gets the storage_cluster_id_contains of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_contains of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id_contains + + @storage_cluster_id_contains.setter + def storage_cluster_id_contains(self, storage_cluster_id_contains): + """Sets the storage_cluster_id_contains of this VmExportFileWhereInput. + + + :param storage_cluster_id_contains: The storage_cluster_id_contains of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_contains: str + """ + + self._storage_cluster_id_contains = storage_cluster_id_contains + + @property + def storage_cluster_id_ends_with(self): + """Gets the storage_cluster_id_ends_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_ends_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id_ends_with + + @storage_cluster_id_ends_with.setter + def storage_cluster_id_ends_with(self, storage_cluster_id_ends_with): + """Sets the storage_cluster_id_ends_with of this VmExportFileWhereInput. + + + :param storage_cluster_id_ends_with: The storage_cluster_id_ends_with of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_ends_with: str + """ + + self._storage_cluster_id_ends_with = storage_cluster_id_ends_with + + @property + def storage_cluster_id_gt(self): + """Gets the storage_cluster_id_gt of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_gt of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id_gt + + @storage_cluster_id_gt.setter + def storage_cluster_id_gt(self, storage_cluster_id_gt): + """Sets the storage_cluster_id_gt of this VmExportFileWhereInput. + + + :param storage_cluster_id_gt: The storage_cluster_id_gt of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_gt: str + """ + + self._storage_cluster_id_gt = storage_cluster_id_gt + + @property + def storage_cluster_id_gte(self): + """Gets the storage_cluster_id_gte of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_gte of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id_gte + + @storage_cluster_id_gte.setter + def storage_cluster_id_gte(self, storage_cluster_id_gte): + """Sets the storage_cluster_id_gte of this VmExportFileWhereInput. + + + :param storage_cluster_id_gte: The storage_cluster_id_gte of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_gte: str + """ + + self._storage_cluster_id_gte = storage_cluster_id_gte + + @property + def storage_cluster_id_in(self): + """Gets the storage_cluster_id_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._storage_cluster_id_in + + @storage_cluster_id_in.setter + def storage_cluster_id_in(self, storage_cluster_id_in): + """Sets the storage_cluster_id_in of this VmExportFileWhereInput. + + + :param storage_cluster_id_in: The storage_cluster_id_in of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_in: list[str] + """ + + self._storage_cluster_id_in = storage_cluster_id_in + + @property + def storage_cluster_id_lt(self): + """Gets the storage_cluster_id_lt of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_lt of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id_lt + + @storage_cluster_id_lt.setter + def storage_cluster_id_lt(self, storage_cluster_id_lt): + """Sets the storage_cluster_id_lt of this VmExportFileWhereInput. + + + :param storage_cluster_id_lt: The storage_cluster_id_lt of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_lt: str + """ + + self._storage_cluster_id_lt = storage_cluster_id_lt + + @property + def storage_cluster_id_lte(self): + """Gets the storage_cluster_id_lte of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_lte of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id_lte + + @storage_cluster_id_lte.setter + def storage_cluster_id_lte(self, storage_cluster_id_lte): + """Sets the storage_cluster_id_lte of this VmExportFileWhereInput. + + + :param storage_cluster_id_lte: The storage_cluster_id_lte of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_lte: str + """ + + self._storage_cluster_id_lte = storage_cluster_id_lte + + @property + def storage_cluster_id_not(self): + """Gets the storage_cluster_id_not of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_not of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id_not + + @storage_cluster_id_not.setter + def storage_cluster_id_not(self, storage_cluster_id_not): + """Sets the storage_cluster_id_not of this VmExportFileWhereInput. + + + :param storage_cluster_id_not: The storage_cluster_id_not of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_not: str + """ + + self._storage_cluster_id_not = storage_cluster_id_not + + @property + def storage_cluster_id_not_contains(self): + """Gets the storage_cluster_id_not_contains of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_not_contains of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id_not_contains + + @storage_cluster_id_not_contains.setter + def storage_cluster_id_not_contains(self, storage_cluster_id_not_contains): + """Sets the storage_cluster_id_not_contains of this VmExportFileWhereInput. + + + :param storage_cluster_id_not_contains: The storage_cluster_id_not_contains of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_not_contains: str + """ + + self._storage_cluster_id_not_contains = storage_cluster_id_not_contains + + @property + def storage_cluster_id_not_ends_with(self): + """Gets the storage_cluster_id_not_ends_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_not_ends_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id_not_ends_with + + @storage_cluster_id_not_ends_with.setter + def storage_cluster_id_not_ends_with(self, storage_cluster_id_not_ends_with): + """Sets the storage_cluster_id_not_ends_with of this VmExportFileWhereInput. + + + :param storage_cluster_id_not_ends_with: The storage_cluster_id_not_ends_with of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_not_ends_with: str + """ + + self._storage_cluster_id_not_ends_with = storage_cluster_id_not_ends_with + + @property + def storage_cluster_id_not_in(self): + """Gets the storage_cluster_id_not_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_not_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[str] + """ + return self._storage_cluster_id_not_in + + @storage_cluster_id_not_in.setter + def storage_cluster_id_not_in(self, storage_cluster_id_not_in): + """Sets the storage_cluster_id_not_in of this VmExportFileWhereInput. + + + :param storage_cluster_id_not_in: The storage_cluster_id_not_in of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_not_in: list[str] + """ + + self._storage_cluster_id_not_in = storage_cluster_id_not_in + + @property + def storage_cluster_id_not_starts_with(self): + """Gets the storage_cluster_id_not_starts_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_not_starts_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id_not_starts_with + + @storage_cluster_id_not_starts_with.setter + def storage_cluster_id_not_starts_with(self, storage_cluster_id_not_starts_with): + """Sets the storage_cluster_id_not_starts_with of this VmExportFileWhereInput. + + + :param storage_cluster_id_not_starts_with: The storage_cluster_id_not_starts_with of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_not_starts_with: str + """ + + self._storage_cluster_id_not_starts_with = storage_cluster_id_not_starts_with + + @property + def storage_cluster_id_starts_with(self): + """Gets the storage_cluster_id_starts_with of this VmExportFileWhereInput. # noqa: E501 + + + :return: The storage_cluster_id_starts_with of this VmExportFileWhereInput. # noqa: E501 + :rtype: str + """ + return self._storage_cluster_id_starts_with + + @storage_cluster_id_starts_with.setter + def storage_cluster_id_starts_with(self, storage_cluster_id_starts_with): + """Sets the storage_cluster_id_starts_with of this VmExportFileWhereInput. + + + :param storage_cluster_id_starts_with: The storage_cluster_id_starts_with of this VmExportFileWhereInput. # noqa: E501 + :type storage_cluster_id_starts_with: str + """ + + self._storage_cluster_id_starts_with = storage_cluster_id_starts_with + + @property + def type(self): + """Gets the type of this VmExportFileWhereInput. # noqa: E501 + + + :return: The type of this VmExportFileWhereInput. # noqa: E501 + :rtype: VmExportFileType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this VmExportFileWhereInput. + + + :param type: The type of this VmExportFileWhereInput. # noqa: E501 + :type type: VmExportFileType + """ + + self._type = type + + @property + def type_in(self): + """Gets the type_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The type_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[VmExportFileType] + """ + return self._type_in + + @type_in.setter + def type_in(self, type_in): + """Sets the type_in of this VmExportFileWhereInput. + + + :param type_in: The type_in of this VmExportFileWhereInput. # noqa: E501 + :type type_in: list[VmExportFileType] + """ + + self._type_in = type_in + + @property + def type_not(self): + """Gets the type_not of this VmExportFileWhereInput. # noqa: E501 + + + :return: The type_not of this VmExportFileWhereInput. # noqa: E501 + :rtype: VmExportFileType + """ + return self._type_not + + @type_not.setter + def type_not(self, type_not): + """Sets the type_not of this VmExportFileWhereInput. + + + :param type_not: The type_not of this VmExportFileWhereInput. # noqa: E501 + :type type_not: VmExportFileType + """ + + self._type_not = type_not + + @property + def type_not_in(self): + """Gets the type_not_in of this VmExportFileWhereInput. # noqa: E501 + + + :return: The type_not_in of this VmExportFileWhereInput. # noqa: E501 + :rtype: list[VmExportFileType] + """ + return self._type_not_in + + @type_not_in.setter + def type_not_in(self, type_not_in): + """Sets the type_not_in of this VmExportFileWhereInput. + + + :param type_not_in: The type_not_in of this VmExportFileWhereInput. # noqa: E501 + :type type_not_in: list[VmExportFileType] + """ + + self._type_not_in = type_not_in + + @property + def vm(self): + """Gets the vm of this VmExportFileWhereInput. # noqa: E501 + + + :return: The vm of this VmExportFileWhereInput. # noqa: E501 + :rtype: VmWhereInput + """ + return self._vm + + @vm.setter + def vm(self, vm): + """Sets the vm of this VmExportFileWhereInput. + + + :param vm: The vm of this VmExportFileWhereInput. # noqa: E501 + :type vm: VmWhereInput + """ + + self._vm = vm + + @property + def vm_volume(self): + """Gets the vm_volume of this VmExportFileWhereInput. # noqa: E501 + + + :return: The vm_volume of this VmExportFileWhereInput. # noqa: E501 + :rtype: VmVolumeWhereInput + """ + return self._vm_volume + + @vm_volume.setter + def vm_volume(self, vm_volume): + """Sets the vm_volume of this VmExportFileWhereInput. + + + :param vm_volume: The vm_volume of this VmExportFileWhereInput. # noqa: E501 + :type vm_volume: VmVolumeWhereInput + """ + + self._vm_volume = vm_volume + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmExportFileWhereInput): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmExportFileWhereInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vm_export_file_where_unique_input.py b/cloudtower/models/vm_export_file_where_unique_input.py new file mode 100644 index 00000000..73b75282 --- /dev/null +++ b/cloudtower/models/vm_export_file_where_unique_input.py @@ -0,0 +1,142 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmExportFileWhereUniqueInput(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data_port_id': 'str', + 'id': 'str' + } + + attribute_map = { + 'data_port_id': 'data_port_id', + 'id': 'id' + } + + def __init__(self, **kwargs): # noqa: E501 + """VmExportFileWhereUniqueInput - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._data_port_id = None + self._id = None + self.discriminator = None + + self.data_port_id = kwargs.get("data_port_id", None) + self.id = kwargs.get("id", None) + + @property + def data_port_id(self): + """Gets the data_port_id of this VmExportFileWhereUniqueInput. # noqa: E501 + + + :return: The data_port_id of this VmExportFileWhereUniqueInput. # noqa: E501 + :rtype: str + """ + return self._data_port_id + + @data_port_id.setter + def data_port_id(self, data_port_id): + """Sets the data_port_id of this VmExportFileWhereUniqueInput. + + + :param data_port_id: The data_port_id of this VmExportFileWhereUniqueInput. # noqa: E501 + :type data_port_id: str + """ + + self._data_port_id = data_port_id + + @property + def id(self): + """Gets the id of this VmExportFileWhereUniqueInput. # noqa: E501 + + + :return: The id of this VmExportFileWhereUniqueInput. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this VmExportFileWhereUniqueInput. + + + :param id: The id of this VmExportFileWhereUniqueInput. # noqa: E501 + :type id: str + """ + + self._id = id + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmExportFileWhereUniqueInput): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmExportFileWhereUniqueInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vm_export_params.py b/cloudtower/models/vm_export_params.py new file mode 100644 index 00000000..f94dd11c --- /dev/null +++ b/cloudtower/models/vm_export_params.py @@ -0,0 +1,148 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmExportParams(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'VmExportParamsData', + 'where': 'VmWhereInput' + } + + attribute_map = { + 'data': 'data', + 'where': 'where' + } + + def __init__(self, **kwargs): # noqa: E501 + """VmExportParams - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._data = None + self._where = None + self.discriminator = None + + if "data" in kwargs: + self.data = kwargs["data"] + if "where" in kwargs: + self.where = kwargs["where"] + + @property + def data(self): + """Gets the data of this VmExportParams. # noqa: E501 + + + :return: The data of this VmExportParams. # noqa: E501 + :rtype: VmExportParamsData + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this VmExportParams. + + + :param data: The data of this VmExportParams. # noqa: E501 + :type data: VmExportParamsData + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + @property + def where(self): + """Gets the where of this VmExportParams. # noqa: E501 + + + :return: The where of this VmExportParams. # noqa: E501 + :rtype: VmWhereInput + """ + return self._where + + @where.setter + def where(self, where): + """Sets the where of this VmExportParams. + + + :param where: The where of this VmExportParams. # noqa: E501 + :type where: VmWhereInput + """ + if self.local_vars_configuration.client_side_validation and where is None: # noqa: E501 + raise ValueError("Invalid value for `where`, must not be `None`") # noqa: E501 + + self._where = where + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmExportParams): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmExportParams): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vm_export_params_data.py b/cloudtower/models/vm_export_params_data.py new file mode 100644 index 00000000..322670f1 --- /dev/null +++ b/cloudtower/models/vm_export_params_data.py @@ -0,0 +1,146 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmExportParamsData(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'keep_mac': 'bool', + 'type': 'VmExportFileType' + } + + attribute_map = { + 'keep_mac': 'keep_mac', + 'type': 'type' + } + + def __init__(self, **kwargs): # noqa: E501 + """VmExportParamsData - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._keep_mac = None + self._type = None + self.discriminator = None + + if "keep_mac" in kwargs: + self.keep_mac = kwargs["keep_mac"] + if "type" in kwargs: + self.type = kwargs["type"] + + @property + def keep_mac(self): + """Gets the keep_mac of this VmExportParamsData. # noqa: E501 + + + :return: The keep_mac of this VmExportParamsData. # noqa: E501 + :rtype: bool + """ + return self._keep_mac + + @keep_mac.setter + def keep_mac(self, keep_mac): + """Sets the keep_mac of this VmExportParamsData. + + + :param keep_mac: The keep_mac of this VmExportParamsData. # noqa: E501 + :type keep_mac: bool + """ + + self._keep_mac = keep_mac + + @property + def type(self): + """Gets the type of this VmExportParamsData. # noqa: E501 + + + :return: The type of this VmExportParamsData. # noqa: E501 + :rtype: VmExportFileType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this VmExportParamsData. + + + :param type: The type of this VmExportParamsData. # noqa: E501 + :type type: VmExportFileType + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmExportParamsData): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmExportParamsData): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vm_import_params.py b/cloudtower/models/vm_import_params.py new file mode 100644 index 00000000..90eb99fe --- /dev/null +++ b/cloudtower/models/vm_import_params.py @@ -0,0 +1,724 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmImportParams(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'max_bandwidth_policy': 'VmDiskIoRestrictType', + 'max_bandwidth_unit': 'BPSUnit', + 'max_bandwidth': 'int', + 'max_iops_policy': 'VmDiskIoRestrictType', + 'max_iops': 'int', + 'io_policy': 'VmDiskIoPolicy', + 'vcpu': 'int', + 'status': 'VmStatus', + 'ha': 'bool', + 'vm_nics': 'list[VmNicParams]', + 'disk_operate': 'OvfDiskOperate', + 'memory_unit': 'ByteUnit', + 'memory': 'int', + 'cpu_cores': 'int', + 'cpu_sockets': 'int', + 'guest_os_type': 'VmGuestsOperationSystem', + 'folder_id': 'str', + 'description': 'str', + 'name': 'str', + 'host_id': 'str', + 'cluster_id': 'str', + 'upload_tasks': 'list[str]', + 'owner_id': 'str', + 'parsed_ovf': 'ParsedOVF' + } + + attribute_map = { + 'max_bandwidth_policy': 'max_bandwidth_policy', + 'max_bandwidth_unit': 'max_bandwidth_unit', + 'max_bandwidth': 'max_bandwidth', + 'max_iops_policy': 'max_iops_policy', + 'max_iops': 'max_iops', + 'io_policy': 'io_policy', + 'vcpu': 'vcpu', + 'status': 'status', + 'ha': 'ha', + 'vm_nics': 'vm_nics', + 'disk_operate': 'disk_operate', + 'memory_unit': 'memory_unit', + 'memory': 'memory', + 'cpu_cores': 'cpu_cores', + 'cpu_sockets': 'cpu_sockets', + 'guest_os_type': 'guest_os_type', + 'folder_id': 'folder_id', + 'description': 'description', + 'name': 'name', + 'host_id': 'host_id', + 'cluster_id': 'cluster_id', + 'upload_tasks': 'upload_tasks', + 'owner_id': 'owner_id', + 'parsed_ovf': 'parsed_ovf' + } + + def __init__(self, **kwargs): # noqa: E501 + """VmImportParams - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._max_bandwidth_policy = None + self._max_bandwidth_unit = None + self._max_bandwidth = None + self._max_iops_policy = None + self._max_iops = None + self._io_policy = None + self._vcpu = None + self._status = None + self._ha = None + self._vm_nics = None + self._disk_operate = None + self._memory_unit = None + self._memory = None + self._cpu_cores = None + self._cpu_sockets = None + self._guest_os_type = None + self._folder_id = None + self._description = None + self._name = None + self._host_id = None + self._cluster_id = None + self._upload_tasks = None + self._owner_id = None + self._parsed_ovf = None + self.discriminator = None + + if "max_bandwidth_policy" in kwargs: + self.max_bandwidth_policy = kwargs["max_bandwidth_policy"] + if "max_bandwidth_unit" in kwargs: + self.max_bandwidth_unit = kwargs["max_bandwidth_unit"] + if "max_bandwidth" in kwargs: + self.max_bandwidth = kwargs["max_bandwidth"] + if "max_iops_policy" in kwargs: + self.max_iops_policy = kwargs["max_iops_policy"] + if "max_iops" in kwargs: + self.max_iops = kwargs["max_iops"] + if "io_policy" in kwargs: + self.io_policy = kwargs["io_policy"] + if "vcpu" in kwargs: + self.vcpu = kwargs["vcpu"] + if "status" in kwargs: + self.status = kwargs["status"] + if "ha" in kwargs: + self.ha = kwargs["ha"] + if "vm_nics" in kwargs: + self.vm_nics = kwargs["vm_nics"] + if "disk_operate" in kwargs: + self.disk_operate = kwargs["disk_operate"] + if "memory_unit" in kwargs: + self.memory_unit = kwargs["memory_unit"] + if "memory" in kwargs: + self.memory = kwargs["memory"] + if "cpu_cores" in kwargs: + self.cpu_cores = kwargs["cpu_cores"] + if "cpu_sockets" in kwargs: + self.cpu_sockets = kwargs["cpu_sockets"] + if "guest_os_type" in kwargs: + self.guest_os_type = kwargs["guest_os_type"] + if "folder_id" in kwargs: + self.folder_id = kwargs["folder_id"] + if "description" in kwargs: + self.description = kwargs["description"] + if "name" in kwargs: + self.name = kwargs["name"] + if "host_id" in kwargs: + self.host_id = kwargs["host_id"] + if "cluster_id" in kwargs: + self.cluster_id = kwargs["cluster_id"] + if "upload_tasks" in kwargs: + self.upload_tasks = kwargs["upload_tasks"] + if "owner_id" in kwargs: + self.owner_id = kwargs["owner_id"] + if "parsed_ovf" in kwargs: + self.parsed_ovf = kwargs["parsed_ovf"] + + @property + def max_bandwidth_policy(self): + """Gets the max_bandwidth_policy of this VmImportParams. # noqa: E501 + + + :return: The max_bandwidth_policy of this VmImportParams. # noqa: E501 + :rtype: VmDiskIoRestrictType + """ + return self._max_bandwidth_policy + + @max_bandwidth_policy.setter + def max_bandwidth_policy(self, max_bandwidth_policy): + """Sets the max_bandwidth_policy of this VmImportParams. + + + :param max_bandwidth_policy: The max_bandwidth_policy of this VmImportParams. # noqa: E501 + :type max_bandwidth_policy: VmDiskIoRestrictType + """ + + self._max_bandwidth_policy = max_bandwidth_policy + + @property + def max_bandwidth_unit(self): + """Gets the max_bandwidth_unit of this VmImportParams. # noqa: E501 + + + :return: The max_bandwidth_unit of this VmImportParams. # noqa: E501 + :rtype: BPSUnit + """ + return self._max_bandwidth_unit + + @max_bandwidth_unit.setter + def max_bandwidth_unit(self, max_bandwidth_unit): + """Sets the max_bandwidth_unit of this VmImportParams. + + + :param max_bandwidth_unit: The max_bandwidth_unit of this VmImportParams. # noqa: E501 + :type max_bandwidth_unit: BPSUnit + """ + + self._max_bandwidth_unit = max_bandwidth_unit + + @property + def max_bandwidth(self): + """Gets the max_bandwidth of this VmImportParams. # noqa: E501 + + + :return: The max_bandwidth of this VmImportParams. # noqa: E501 + :rtype: int + """ + return self._max_bandwidth + + @max_bandwidth.setter + def max_bandwidth(self, max_bandwidth): + """Sets the max_bandwidth of this VmImportParams. + + + :param max_bandwidth: The max_bandwidth of this VmImportParams. # noqa: E501 + :type max_bandwidth: int + """ + + self._max_bandwidth = max_bandwidth + + @property + def max_iops_policy(self): + """Gets the max_iops_policy of this VmImportParams. # noqa: E501 + + + :return: The max_iops_policy of this VmImportParams. # noqa: E501 + :rtype: VmDiskIoRestrictType + """ + return self._max_iops_policy + + @max_iops_policy.setter + def max_iops_policy(self, max_iops_policy): + """Sets the max_iops_policy of this VmImportParams. + + + :param max_iops_policy: The max_iops_policy of this VmImportParams. # noqa: E501 + :type max_iops_policy: VmDiskIoRestrictType + """ + + self._max_iops_policy = max_iops_policy + + @property + def max_iops(self): + """Gets the max_iops of this VmImportParams. # noqa: E501 + + + :return: The max_iops of this VmImportParams. # noqa: E501 + :rtype: int + """ + return self._max_iops + + @max_iops.setter + def max_iops(self, max_iops): + """Sets the max_iops of this VmImportParams. + + + :param max_iops: The max_iops of this VmImportParams. # noqa: E501 + :type max_iops: int + """ + + self._max_iops = max_iops + + @property + def io_policy(self): + """Gets the io_policy of this VmImportParams. # noqa: E501 + + + :return: The io_policy of this VmImportParams. # noqa: E501 + :rtype: VmDiskIoPolicy + """ + return self._io_policy + + @io_policy.setter + def io_policy(self, io_policy): + """Sets the io_policy of this VmImportParams. + + + :param io_policy: The io_policy of this VmImportParams. # noqa: E501 + :type io_policy: VmDiskIoPolicy + """ + + self._io_policy = io_policy + + @property + def vcpu(self): + """Gets the vcpu of this VmImportParams. # noqa: E501 + + + :return: The vcpu of this VmImportParams. # noqa: E501 + :rtype: int + """ + return self._vcpu + + @vcpu.setter + def vcpu(self, vcpu): + """Sets the vcpu of this VmImportParams. + + + :param vcpu: The vcpu of this VmImportParams. # noqa: E501 + :type vcpu: int + """ + + self._vcpu = vcpu + + @property + def status(self): + """Gets the status of this VmImportParams. # noqa: E501 + + + :return: The status of this VmImportParams. # noqa: E501 + :rtype: VmStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this VmImportParams. + + + :param status: The status of this VmImportParams. # noqa: E501 + :type status: VmStatus + """ + + self._status = status + + @property + def ha(self): + """Gets the ha of this VmImportParams. # noqa: E501 + + + :return: The ha of this VmImportParams. # noqa: E501 + :rtype: bool + """ + return self._ha + + @ha.setter + def ha(self, ha): + """Sets the ha of this VmImportParams. + + + :param ha: The ha of this VmImportParams. # noqa: E501 + :type ha: bool + """ + + self._ha = ha + + @property + def vm_nics(self): + """Gets the vm_nics of this VmImportParams. # noqa: E501 + + + :return: The vm_nics of this VmImportParams. # noqa: E501 + :rtype: list[VmNicParams] + """ + return self._vm_nics + + @vm_nics.setter + def vm_nics(self, vm_nics): + """Sets the vm_nics of this VmImportParams. + + + :param vm_nics: The vm_nics of this VmImportParams. # noqa: E501 + :type vm_nics: list[VmNicParams] + """ + + self._vm_nics = vm_nics + + @property + def disk_operate(self): + """Gets the disk_operate of this VmImportParams. # noqa: E501 + + + :return: The disk_operate of this VmImportParams. # noqa: E501 + :rtype: OvfDiskOperate + """ + return self._disk_operate + + @disk_operate.setter + def disk_operate(self, disk_operate): + """Sets the disk_operate of this VmImportParams. + + + :param disk_operate: The disk_operate of this VmImportParams. # noqa: E501 + :type disk_operate: OvfDiskOperate + """ + + self._disk_operate = disk_operate + + @property + def memory_unit(self): + """Gets the memory_unit of this VmImportParams. # noqa: E501 + + + :return: The memory_unit of this VmImportParams. # noqa: E501 + :rtype: ByteUnit + """ + return self._memory_unit + + @memory_unit.setter + def memory_unit(self, memory_unit): + """Sets the memory_unit of this VmImportParams. + + + :param memory_unit: The memory_unit of this VmImportParams. # noqa: E501 + :type memory_unit: ByteUnit + """ + + self._memory_unit = memory_unit + + @property + def memory(self): + """Gets the memory of this VmImportParams. # noqa: E501 + + + :return: The memory of this VmImportParams. # noqa: E501 + :rtype: int + """ + return self._memory + + @memory.setter + def memory(self, memory): + """Sets the memory of this VmImportParams. + + + :param memory: The memory of this VmImportParams. # noqa: E501 + :type memory: int + """ + + self._memory = memory + + @property + def cpu_cores(self): + """Gets the cpu_cores of this VmImportParams. # noqa: E501 + + + :return: The cpu_cores of this VmImportParams. # noqa: E501 + :rtype: int + """ + return self._cpu_cores + + @cpu_cores.setter + def cpu_cores(self, cpu_cores): + """Sets the cpu_cores of this VmImportParams. + + + :param cpu_cores: The cpu_cores of this VmImportParams. # noqa: E501 + :type cpu_cores: int + """ + + self._cpu_cores = cpu_cores + + @property + def cpu_sockets(self): + """Gets the cpu_sockets of this VmImportParams. # noqa: E501 + + + :return: The cpu_sockets of this VmImportParams. # noqa: E501 + :rtype: int + """ + return self._cpu_sockets + + @cpu_sockets.setter + def cpu_sockets(self, cpu_sockets): + """Sets the cpu_sockets of this VmImportParams. + + + :param cpu_sockets: The cpu_sockets of this VmImportParams. # noqa: E501 + :type cpu_sockets: int + """ + + self._cpu_sockets = cpu_sockets + + @property + def guest_os_type(self): + """Gets the guest_os_type of this VmImportParams. # noqa: E501 + + + :return: The guest_os_type of this VmImportParams. # noqa: E501 + :rtype: VmGuestsOperationSystem + """ + return self._guest_os_type + + @guest_os_type.setter + def guest_os_type(self, guest_os_type): + """Sets the guest_os_type of this VmImportParams. + + + :param guest_os_type: The guest_os_type of this VmImportParams. # noqa: E501 + :type guest_os_type: VmGuestsOperationSystem + """ + + self._guest_os_type = guest_os_type + + @property + def folder_id(self): + """Gets the folder_id of this VmImportParams. # noqa: E501 + + + :return: The folder_id of this VmImportParams. # noqa: E501 + :rtype: str + """ + return self._folder_id + + @folder_id.setter + def folder_id(self, folder_id): + """Sets the folder_id of this VmImportParams. + + + :param folder_id: The folder_id of this VmImportParams. # noqa: E501 + :type folder_id: str + """ + + self._folder_id = folder_id + + @property + def description(self): + """Gets the description of this VmImportParams. # noqa: E501 + + + :return: The description of this VmImportParams. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this VmImportParams. + + + :param description: The description of this VmImportParams. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def name(self): + """Gets the name of this VmImportParams. # noqa: E501 + + + :return: The name of this VmImportParams. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this VmImportParams. + + + :param name: The name of this VmImportParams. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def host_id(self): + """Gets the host_id of this VmImportParams. # noqa: E501 + + + :return: The host_id of this VmImportParams. # noqa: E501 + :rtype: str + """ + return self._host_id + + @host_id.setter + def host_id(self, host_id): + """Sets the host_id of this VmImportParams. + + + :param host_id: The host_id of this VmImportParams. # noqa: E501 + :type host_id: str + """ + + self._host_id = host_id + + @property + def cluster_id(self): + """Gets the cluster_id of this VmImportParams. # noqa: E501 + + + :return: The cluster_id of this VmImportParams. # noqa: E501 + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this VmImportParams. + + + :param cluster_id: The cluster_id of this VmImportParams. # noqa: E501 + :type cluster_id: str + """ + if self.local_vars_configuration.client_side_validation and cluster_id is None: # noqa: E501 + raise ValueError("Invalid value for `cluster_id`, must not be `None`") # noqa: E501 + + self._cluster_id = cluster_id + + @property + def upload_tasks(self): + """Gets the upload_tasks of this VmImportParams. # noqa: E501 + + + :return: The upload_tasks of this VmImportParams. # noqa: E501 + :rtype: list[str] + """ + return self._upload_tasks + + @upload_tasks.setter + def upload_tasks(self, upload_tasks): + """Sets the upload_tasks of this VmImportParams. + + + :param upload_tasks: The upload_tasks of this VmImportParams. # noqa: E501 + :type upload_tasks: list[str] + """ + if self.local_vars_configuration.client_side_validation and upload_tasks is None: # noqa: E501 + raise ValueError("Invalid value for `upload_tasks`, must not be `None`") # noqa: E501 + + self._upload_tasks = upload_tasks + + @property + def owner_id(self): + """Gets the owner_id of this VmImportParams. # noqa: E501 + + + :return: The owner_id of this VmImportParams. # noqa: E501 + :rtype: str + """ + return self._owner_id + + @owner_id.setter + def owner_id(self, owner_id): + """Sets the owner_id of this VmImportParams. + + + :param owner_id: The owner_id of this VmImportParams. # noqa: E501 + :type owner_id: str + """ + + self._owner_id = owner_id + + @property + def parsed_ovf(self): + """Gets the parsed_ovf of this VmImportParams. # noqa: E501 + + + :return: The parsed_ovf of this VmImportParams. # noqa: E501 + :rtype: ParsedOVF + """ + return self._parsed_ovf + + @parsed_ovf.setter + def parsed_ovf(self, parsed_ovf): + """Sets the parsed_ovf of this VmImportParams. + + + :param parsed_ovf: The parsed_ovf of this VmImportParams. # noqa: E501 + :type parsed_ovf: ParsedOVF + """ + if self.local_vars_configuration.client_side_validation and parsed_ovf is None: # noqa: E501 + raise ValueError("Invalid value for `parsed_ovf`, must not be `None`") # noqa: E501 + + self._parsed_ovf = parsed_ovf + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmImportParams): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmImportParams): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vm_usage.py b/cloudtower/models/vm_usage.py index b6f13760..299a13b8 100644 --- a/cloudtower/models/vm_usage.py +++ b/cloudtower/models/vm_usage.py @@ -21,6 +21,7 @@ class VmUsage(object): allowed enum values """ ADVANCED_MONITORING = "ADVANCED_MONITORING" + AGENT_MESH_NODE = "AGENT_MESH_NODE" BACKUP_CONTROLLER = "BACKUP_CONTROLLER" BUNDLE_APPLICATION = "BUNDLE_APPLICATION" CLOUDTOWER = "CLOUDTOWER" @@ -28,7 +29,7 @@ class VmUsage(object): REGISTRY = "REGISTRY" SKS_MANAGEMENT = "SKS_MANAGEMENT" - allowable_values = [ADVANCED_MONITORING, BACKUP_CONTROLLER, BUNDLE_APPLICATION, CLOUDTOWER, EVEROUTE_CONTROLLER, REGISTRY, SKS_MANAGEMENT] # noqa: E501 + allowable_values = [ADVANCED_MONITORING, AGENT_MESH_NODE, BACKUP_CONTROLLER, BUNDLE_APPLICATION, CLOUDTOWER, EVEROUTE_CONTROLLER, REGISTRY, SKS_MANAGEMENT] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/vm_vlan_creation_params.py b/cloudtower/models/vm_vlan_creation_params.py index 80e0ef51..74ee8831 100644 --- a/cloudtower/models/vm_vlan_creation_params.py +++ b/cloudtower/models/vm_vlan_creation_params.py @@ -25,12 +25,30 @@ class VmVlanCreationParams(object): and the value is json key in definition. """ openapi_types = { + 'qos_burst_unit': 'ByteUnit', + 'qos_burst': 'int', + 'qos_max_bandwidth_unit': 'BPSUnit', + 'qos_max_bandwidth': 'int', + 'qos_min_bandwidth_unit': 'BPSUnit', + 'qos_min_bandwidth': 'int', + 'qos_priority': 'float', + 'mode_type': 'VlanModeType', + 'network_ids': 'list[str]', 'vds_id': 'str', 'vlan_id': 'int', 'name': 'str' } attribute_map = { + 'qos_burst_unit': 'qos_burst_unit', + 'qos_burst': 'qos_burst', + 'qos_max_bandwidth_unit': 'qos_max_bandwidth_unit', + 'qos_max_bandwidth': 'qos_max_bandwidth', + 'qos_min_bandwidth_unit': 'qos_min_bandwidth_unit', + 'qos_min_bandwidth': 'qos_min_bandwidth', + 'qos_priority': 'qos_priority', + 'mode_type': 'mode_type', + 'network_ids': 'network_ids', 'vds_id': 'vds_id', 'vlan_id': 'vlan_id', 'name': 'name' @@ -40,11 +58,35 @@ def __init__(self, **kwargs): # noqa: E501 """VmVlanCreationParams - a model defined in OpenAPI""" # noqa: E501 self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + self._qos_burst_unit = None + self._qos_burst = None + self._qos_max_bandwidth_unit = None + self._qos_max_bandwidth = None + self._qos_min_bandwidth_unit = None + self._qos_min_bandwidth = None + self._qos_priority = None + self._mode_type = None + self._network_ids = None self._vds_id = None self._vlan_id = None self._name = None self.discriminator = None + if "qos_burst_unit" in kwargs: + self.qos_burst_unit = kwargs["qos_burst_unit"] + self.qos_burst = kwargs.get("qos_burst", None) + if "qos_max_bandwidth_unit" in kwargs: + self.qos_max_bandwidth_unit = kwargs["qos_max_bandwidth_unit"] + self.qos_max_bandwidth = kwargs.get("qos_max_bandwidth", None) + if "qos_min_bandwidth_unit" in kwargs: + self.qos_min_bandwidth_unit = kwargs["qos_min_bandwidth_unit"] + self.qos_min_bandwidth = kwargs.get("qos_min_bandwidth", None) + if "qos_priority" in kwargs: + self.qos_priority = kwargs["qos_priority"] + if "mode_type" in kwargs: + self.mode_type = kwargs["mode_type"] + if "network_ids" in kwargs: + self.network_ids = kwargs["network_ids"] if "vds_id" in kwargs: self.vds_id = kwargs["vds_id"] if "vlan_id" in kwargs: @@ -52,6 +94,198 @@ def __init__(self, **kwargs): # noqa: E501 if "name" in kwargs: self.name = kwargs["name"] + @property + def qos_burst_unit(self): + """Gets the qos_burst_unit of this VmVlanCreationParams. # noqa: E501 + + + :return: The qos_burst_unit of this VmVlanCreationParams. # noqa: E501 + :rtype: ByteUnit + """ + return self._qos_burst_unit + + @qos_burst_unit.setter + def qos_burst_unit(self, qos_burst_unit): + """Sets the qos_burst_unit of this VmVlanCreationParams. + + + :param qos_burst_unit: The qos_burst_unit of this VmVlanCreationParams. # noqa: E501 + :type qos_burst_unit: ByteUnit + """ + + self._qos_burst_unit = qos_burst_unit + + @property + def qos_burst(self): + """Gets the qos_burst of this VmVlanCreationParams. # noqa: E501 + + + :return: The qos_burst of this VmVlanCreationParams. # noqa: E501 + :rtype: int + """ + return self._qos_burst + + @qos_burst.setter + def qos_burst(self, qos_burst): + """Sets the qos_burst of this VmVlanCreationParams. + + + :param qos_burst: The qos_burst of this VmVlanCreationParams. # noqa: E501 + :type qos_burst: int + """ + + self._qos_burst = qos_burst + + @property + def qos_max_bandwidth_unit(self): + """Gets the qos_max_bandwidth_unit of this VmVlanCreationParams. # noqa: E501 + + + :return: The qos_max_bandwidth_unit of this VmVlanCreationParams. # noqa: E501 + :rtype: BPSUnit + """ + return self._qos_max_bandwidth_unit + + @qos_max_bandwidth_unit.setter + def qos_max_bandwidth_unit(self, qos_max_bandwidth_unit): + """Sets the qos_max_bandwidth_unit of this VmVlanCreationParams. + + + :param qos_max_bandwidth_unit: The qos_max_bandwidth_unit of this VmVlanCreationParams. # noqa: E501 + :type qos_max_bandwidth_unit: BPSUnit + """ + + self._qos_max_bandwidth_unit = qos_max_bandwidth_unit + + @property + def qos_max_bandwidth(self): + """Gets the qos_max_bandwidth of this VmVlanCreationParams. # noqa: E501 + + + :return: The qos_max_bandwidth of this VmVlanCreationParams. # noqa: E501 + :rtype: int + """ + return self._qos_max_bandwidth + + @qos_max_bandwidth.setter + def qos_max_bandwidth(self, qos_max_bandwidth): + """Sets the qos_max_bandwidth of this VmVlanCreationParams. + + + :param qos_max_bandwidth: The qos_max_bandwidth of this VmVlanCreationParams. # noqa: E501 + :type qos_max_bandwidth: int + """ + + self._qos_max_bandwidth = qos_max_bandwidth + + @property + def qos_min_bandwidth_unit(self): + """Gets the qos_min_bandwidth_unit of this VmVlanCreationParams. # noqa: E501 + + + :return: The qos_min_bandwidth_unit of this VmVlanCreationParams. # noqa: E501 + :rtype: BPSUnit + """ + return self._qos_min_bandwidth_unit + + @qos_min_bandwidth_unit.setter + def qos_min_bandwidth_unit(self, qos_min_bandwidth_unit): + """Sets the qos_min_bandwidth_unit of this VmVlanCreationParams. + + + :param qos_min_bandwidth_unit: The qos_min_bandwidth_unit of this VmVlanCreationParams. # noqa: E501 + :type qos_min_bandwidth_unit: BPSUnit + """ + + self._qos_min_bandwidth_unit = qos_min_bandwidth_unit + + @property + def qos_min_bandwidth(self): + """Gets the qos_min_bandwidth of this VmVlanCreationParams. # noqa: E501 + + + :return: The qos_min_bandwidth of this VmVlanCreationParams. # noqa: E501 + :rtype: int + """ + return self._qos_min_bandwidth + + @qos_min_bandwidth.setter + def qos_min_bandwidth(self, qos_min_bandwidth): + """Sets the qos_min_bandwidth of this VmVlanCreationParams. + + + :param qos_min_bandwidth: The qos_min_bandwidth of this VmVlanCreationParams. # noqa: E501 + :type qos_min_bandwidth: int + """ + + self._qos_min_bandwidth = qos_min_bandwidth + + @property + def qos_priority(self): + """Gets the qos_priority of this VmVlanCreationParams. # noqa: E501 + + + :return: The qos_priority of this VmVlanCreationParams. # noqa: E501 + :rtype: float + """ + return self._qos_priority + + @qos_priority.setter + def qos_priority(self, qos_priority): + """Sets the qos_priority of this VmVlanCreationParams. + + + :param qos_priority: The qos_priority of this VmVlanCreationParams. # noqa: E501 + :type qos_priority: float + """ + if (self.local_vars_configuration.client_side_validation and + qos_priority is not None and qos_priority < 0): # noqa: E501 + raise ValueError("Invalid value for `qos_priority`, must be a value greater than or equal to `0`") # noqa: E501 + + self._qos_priority = qos_priority + + @property + def mode_type(self): + """Gets the mode_type of this VmVlanCreationParams. # noqa: E501 + + + :return: The mode_type of this VmVlanCreationParams. # noqa: E501 + :rtype: VlanModeType + """ + return self._mode_type + + @mode_type.setter + def mode_type(self, mode_type): + """Sets the mode_type of this VmVlanCreationParams. + + + :param mode_type: The mode_type of this VmVlanCreationParams. # noqa: E501 + :type mode_type: VlanModeType + """ + + self._mode_type = mode_type + + @property + def network_ids(self): + """Gets the network_ids of this VmVlanCreationParams. # noqa: E501 + + + :return: The network_ids of this VmVlanCreationParams. # noqa: E501 + :rtype: list[str] + """ + return self._network_ids + + @network_ids.setter + def network_ids(self, network_ids): + """Sets the network_ids of this VmVlanCreationParams. + + + :param network_ids: The network_ids of this VmVlanCreationParams. # noqa: E501 + :type network_ids: list[str] + """ + + self._network_ids = network_ids + @property def vds_id(self): """Gets the vds_id of this VmVlanCreationParams. # noqa: E501 @@ -93,8 +327,6 @@ def vlan_id(self, vlan_id): :param vlan_id: The vlan_id of this VmVlanCreationParams. # noqa: E501 :type vlan_id: int """ - if self.local_vars_configuration.client_side_validation and vlan_id is None: # noqa: E501 - raise ValueError("Invalid value for `vlan_id`, must not be `None`") # noqa: E501 if (self.local_vars_configuration.client_side_validation and vlan_id is not None and vlan_id > 4095): # noqa: E501 raise ValueError("Invalid value for `vlan_id`, must be a value less than or equal to `4095`") # noqa: E501 diff --git a/cloudtower/models/vm_vlan_updation_params_data.py b/cloudtower/models/vm_vlan_updation_params_data.py index 33333d2a..b22281ef 100644 --- a/cloudtower/models/vm_vlan_updation_params_data.py +++ b/cloudtower/models/vm_vlan_updation_params_data.py @@ -25,11 +25,29 @@ class VmVlanUpdationParamsData(object): and the value is json key in definition. """ openapi_types = { + 'qos_burst_unit': 'ByteUnit', + 'qos_burst': 'int', + 'qos_max_bandwidth_unit': 'BPSUnit', + 'qos_max_bandwidth': 'int', + 'qos_min_bandwidth_unit': 'BPSUnit', + 'qos_min_bandwidth': 'int', + 'qos_priority': 'float', + 'mode_type': 'VlanModeType', + 'network_ids': 'list[str]', 'vlan_id': 'int', 'name': 'str' } attribute_map = { + 'qos_burst_unit': 'qos_burst_unit', + 'qos_burst': 'qos_burst', + 'qos_max_bandwidth_unit': 'qos_max_bandwidth_unit', + 'qos_max_bandwidth': 'qos_max_bandwidth', + 'qos_min_bandwidth_unit': 'qos_min_bandwidth_unit', + 'qos_min_bandwidth': 'qos_min_bandwidth', + 'qos_priority': 'qos_priority', + 'mode_type': 'mode_type', + 'network_ids': 'network_ids', 'vlan_id': 'vlan_id', 'name': 'name' } @@ -38,15 +56,231 @@ def __init__(self, **kwargs): # noqa: E501 """VmVlanUpdationParamsData - a model defined in OpenAPI""" # noqa: E501 self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + self._qos_burst_unit = None + self._qos_burst = None + self._qos_max_bandwidth_unit = None + self._qos_max_bandwidth = None + self._qos_min_bandwidth_unit = None + self._qos_min_bandwidth = None + self._qos_priority = None + self._mode_type = None + self._network_ids = None self._vlan_id = None self._name = None self.discriminator = None + if "qos_burst_unit" in kwargs: + self.qos_burst_unit = kwargs["qos_burst_unit"] + self.qos_burst = kwargs.get("qos_burst", None) + if "qos_max_bandwidth_unit" in kwargs: + self.qos_max_bandwidth_unit = kwargs["qos_max_bandwidth_unit"] + self.qos_max_bandwidth = kwargs.get("qos_max_bandwidth", None) + if "qos_min_bandwidth_unit" in kwargs: + self.qos_min_bandwidth_unit = kwargs["qos_min_bandwidth_unit"] + self.qos_min_bandwidth = kwargs.get("qos_min_bandwidth", None) + if "qos_priority" in kwargs: + self.qos_priority = kwargs["qos_priority"] + if "mode_type" in kwargs: + self.mode_type = kwargs["mode_type"] + if "network_ids" in kwargs: + self.network_ids = kwargs["network_ids"] if "vlan_id" in kwargs: self.vlan_id = kwargs["vlan_id"] if "name" in kwargs: self.name = kwargs["name"] + @property + def qos_burst_unit(self): + """Gets the qos_burst_unit of this VmVlanUpdationParamsData. # noqa: E501 + + + :return: The qos_burst_unit of this VmVlanUpdationParamsData. # noqa: E501 + :rtype: ByteUnit + """ + return self._qos_burst_unit + + @qos_burst_unit.setter + def qos_burst_unit(self, qos_burst_unit): + """Sets the qos_burst_unit of this VmVlanUpdationParamsData. + + + :param qos_burst_unit: The qos_burst_unit of this VmVlanUpdationParamsData. # noqa: E501 + :type qos_burst_unit: ByteUnit + """ + + self._qos_burst_unit = qos_burst_unit + + @property + def qos_burst(self): + """Gets the qos_burst of this VmVlanUpdationParamsData. # noqa: E501 + + + :return: The qos_burst of this VmVlanUpdationParamsData. # noqa: E501 + :rtype: int + """ + return self._qos_burst + + @qos_burst.setter + def qos_burst(self, qos_burst): + """Sets the qos_burst of this VmVlanUpdationParamsData. + + + :param qos_burst: The qos_burst of this VmVlanUpdationParamsData. # noqa: E501 + :type qos_burst: int + """ + + self._qos_burst = qos_burst + + @property + def qos_max_bandwidth_unit(self): + """Gets the qos_max_bandwidth_unit of this VmVlanUpdationParamsData. # noqa: E501 + + + :return: The qos_max_bandwidth_unit of this VmVlanUpdationParamsData. # noqa: E501 + :rtype: BPSUnit + """ + return self._qos_max_bandwidth_unit + + @qos_max_bandwidth_unit.setter + def qos_max_bandwidth_unit(self, qos_max_bandwidth_unit): + """Sets the qos_max_bandwidth_unit of this VmVlanUpdationParamsData. + + + :param qos_max_bandwidth_unit: The qos_max_bandwidth_unit of this VmVlanUpdationParamsData. # noqa: E501 + :type qos_max_bandwidth_unit: BPSUnit + """ + + self._qos_max_bandwidth_unit = qos_max_bandwidth_unit + + @property + def qos_max_bandwidth(self): + """Gets the qos_max_bandwidth of this VmVlanUpdationParamsData. # noqa: E501 + + + :return: The qos_max_bandwidth of this VmVlanUpdationParamsData. # noqa: E501 + :rtype: int + """ + return self._qos_max_bandwidth + + @qos_max_bandwidth.setter + def qos_max_bandwidth(self, qos_max_bandwidth): + """Sets the qos_max_bandwidth of this VmVlanUpdationParamsData. + + + :param qos_max_bandwidth: The qos_max_bandwidth of this VmVlanUpdationParamsData. # noqa: E501 + :type qos_max_bandwidth: int + """ + + self._qos_max_bandwidth = qos_max_bandwidth + + @property + def qos_min_bandwidth_unit(self): + """Gets the qos_min_bandwidth_unit of this VmVlanUpdationParamsData. # noqa: E501 + + + :return: The qos_min_bandwidth_unit of this VmVlanUpdationParamsData. # noqa: E501 + :rtype: BPSUnit + """ + return self._qos_min_bandwidth_unit + + @qos_min_bandwidth_unit.setter + def qos_min_bandwidth_unit(self, qos_min_bandwidth_unit): + """Sets the qos_min_bandwidth_unit of this VmVlanUpdationParamsData. + + + :param qos_min_bandwidth_unit: The qos_min_bandwidth_unit of this VmVlanUpdationParamsData. # noqa: E501 + :type qos_min_bandwidth_unit: BPSUnit + """ + + self._qos_min_bandwidth_unit = qos_min_bandwidth_unit + + @property + def qos_min_bandwidth(self): + """Gets the qos_min_bandwidth of this VmVlanUpdationParamsData. # noqa: E501 + + + :return: The qos_min_bandwidth of this VmVlanUpdationParamsData. # noqa: E501 + :rtype: int + """ + return self._qos_min_bandwidth + + @qos_min_bandwidth.setter + def qos_min_bandwidth(self, qos_min_bandwidth): + """Sets the qos_min_bandwidth of this VmVlanUpdationParamsData. + + + :param qos_min_bandwidth: The qos_min_bandwidth of this VmVlanUpdationParamsData. # noqa: E501 + :type qos_min_bandwidth: int + """ + + self._qos_min_bandwidth = qos_min_bandwidth + + @property + def qos_priority(self): + """Gets the qos_priority of this VmVlanUpdationParamsData. # noqa: E501 + + + :return: The qos_priority of this VmVlanUpdationParamsData. # noqa: E501 + :rtype: float + """ + return self._qos_priority + + @qos_priority.setter + def qos_priority(self, qos_priority): + """Sets the qos_priority of this VmVlanUpdationParamsData. + + + :param qos_priority: The qos_priority of this VmVlanUpdationParamsData. # noqa: E501 + :type qos_priority: float + """ + if (self.local_vars_configuration.client_side_validation and + qos_priority is not None and qos_priority < 0): # noqa: E501 + raise ValueError("Invalid value for `qos_priority`, must be a value greater than or equal to `0`") # noqa: E501 + + self._qos_priority = qos_priority + + @property + def mode_type(self): + """Gets the mode_type of this VmVlanUpdationParamsData. # noqa: E501 + + + :return: The mode_type of this VmVlanUpdationParamsData. # noqa: E501 + :rtype: VlanModeType + """ + return self._mode_type + + @mode_type.setter + def mode_type(self, mode_type): + """Sets the mode_type of this VmVlanUpdationParamsData. + + + :param mode_type: The mode_type of this VmVlanUpdationParamsData. # noqa: E501 + :type mode_type: VlanModeType + """ + + self._mode_type = mode_type + + @property + def network_ids(self): + """Gets the network_ids of this VmVlanUpdationParamsData. # noqa: E501 + + + :return: The network_ids of this VmVlanUpdationParamsData. # noqa: E501 + :rtype: list[str] + """ + return self._network_ids + + @network_ids.setter + def network_ids(self, network_ids): + """Sets the network_ids of this VmVlanUpdationParamsData. + + + :param network_ids: The network_ids of this VmVlanUpdationParamsData. # noqa: E501 + :type network_ids: list[str] + """ + + self._network_ids = network_ids + @property def vlan_id(self): """Gets the vlan_id of this VmVlanUpdationParamsData. # noqa: E501 diff --git a/cloudtower/models/vm_volume.py b/cloudtower/models/vm_volume.py index 383d9fc6..554464b7 100644 --- a/cloudtower/models/vm_volume.py +++ b/cloudtower/models/vm_volume.py @@ -28,6 +28,7 @@ class VmVolume(object): 'cluster': 'NestedCluster', 'description': 'str', 'elf_storage_policy': 'VmVolumeElfStoragePolicyType', + 'entity_async_status': 'EntityAsyncStatus', 'guest_size_usage': 'float', 'guest_used_size': 'int', 'id': 'str', @@ -49,6 +50,7 @@ class VmVolume(object): 'cluster': 'cluster', 'description': 'description', 'elf_storage_policy': 'elf_storage_policy', + 'entity_async_status': 'entityAsyncStatus', 'guest_size_usage': 'guest_size_usage', 'guest_used_size': 'guest_used_size', 'id': 'id', @@ -73,6 +75,7 @@ def __init__(self, **kwargs): # noqa: E501 self._cluster = None self._description = None self._elf_storage_policy = None + self._entity_async_status = None self._guest_size_usage = None self._guest_used_size = None self._id = None @@ -95,6 +98,7 @@ def __init__(self, **kwargs): # noqa: E501 self.description = kwargs.get("description", None) if "elf_storage_policy" in kwargs: self.elf_storage_policy = kwargs["elf_storage_policy"] + self.entity_async_status = kwargs.get("entity_async_status", None) self.guest_size_usage = kwargs.get("guest_size_usage", None) self.guest_used_size = kwargs.get("guest_used_size", None) if "id" in kwargs: @@ -186,6 +190,27 @@ def elf_storage_policy(self, elf_storage_policy): self._elf_storage_policy = elf_storage_policy + @property + def entity_async_status(self): + """Gets the entity_async_status of this VmVolume. # noqa: E501 + + + :return: The entity_async_status of this VmVolume. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this VmVolume. + + + :param entity_async_status: The entity_async_status of this VmVolume. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + @property def guest_size_usage(self): """Gets the guest_size_usage of this VmVolume. # noqa: E501 diff --git a/cloudtower/models/vm_volume_order_by_input.py b/cloudtower/models/vm_volume_order_by_input.py index d070dcb5..10322184 100644 --- a/cloudtower/models/vm_volume_order_by_input.py +++ b/cloudtower/models/vm_volume_order_by_input.py @@ -24,6 +24,8 @@ class VmVolumeOrderByInput(object): DESCRIPTION_DESC = "description_DESC" ELF_STORAGE_POLICY_ASC = "elf_storage_policy_ASC" ELF_STORAGE_POLICY_DESC = "elf_storage_policy_DESC" + ENTITYASYNCSTATUS_ASC = "entityAsyncStatus_ASC" + ENTITYASYNCSTATUS_DESC = "entityAsyncStatus_DESC" GUEST_SIZE_USAGE_ASC = "guest_size_usage_ASC" GUEST_SIZE_USAGE_DESC = "guest_size_usage_DESC" GUEST_USED_SIZE_ASC = "guest_used_size_ASC" @@ -49,7 +51,7 @@ class VmVolumeOrderByInput(object): UNIQUE_SIZE_ASC = "unique_size_ASC" UNIQUE_SIZE_DESC = "unique_size_DESC" - allowable_values = [DESCRIPTION_ASC, DESCRIPTION_DESC, ELF_STORAGE_POLICY_ASC, ELF_STORAGE_POLICY_DESC, GUEST_SIZE_USAGE_ASC, GUEST_SIZE_USAGE_DESC, GUEST_USED_SIZE_ASC, GUEST_USED_SIZE_DESC, ID_ASC, ID_DESC, LOCAL_CREATED_AT_ASC, LOCAL_CREATED_AT_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, MOUNTING_ASC, MOUNTING_DESC, NAME_ASC, NAME_DESC, PATH_ASC, PATH_DESC, SHARING_ASC, SHARING_DESC, SIZE_ASC, SIZE_DESC, TYPE_ASC, TYPE_DESC, UNIQUE_SIZE_ASC, UNIQUE_SIZE_DESC] # noqa: E501 + allowable_values = [DESCRIPTION_ASC, DESCRIPTION_DESC, ELF_STORAGE_POLICY_ASC, ELF_STORAGE_POLICY_DESC, ENTITYASYNCSTATUS_ASC, ENTITYASYNCSTATUS_DESC, GUEST_SIZE_USAGE_ASC, GUEST_SIZE_USAGE_DESC, GUEST_USED_SIZE_ASC, GUEST_USED_SIZE_DESC, ID_ASC, ID_DESC, LOCAL_CREATED_AT_ASC, LOCAL_CREATED_AT_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, MOUNTING_ASC, MOUNTING_DESC, NAME_ASC, NAME_DESC, PATH_ASC, PATH_DESC, SHARING_ASC, SHARING_DESC, SIZE_ASC, SIZE_DESC, TYPE_ASC, TYPE_DESC, UNIQUE_SIZE_ASC, UNIQUE_SIZE_DESC] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/vm_volume_snapshot.py b/cloudtower/models/vm_volume_snapshot.py index 50d1d9f7..66954d62 100644 --- a/cloudtower/models/vm_volume_snapshot.py +++ b/cloudtower/models/vm_volume_snapshot.py @@ -28,6 +28,7 @@ class VmVolumeSnapshot(object): 'cluster': 'NestedCluster', 'create_at': 'str', 'description': 'str', + 'entity_async_status': 'EntityAsyncStatus', 'id': 'str', 'local_created_at': 'str', 'local_id': 'str', @@ -44,6 +45,7 @@ class VmVolumeSnapshot(object): 'cluster': 'cluster', 'create_at': 'createAt', 'description': 'description', + 'entity_async_status': 'entityAsyncStatus', 'id': 'id', 'local_created_at': 'local_created_at', 'local_id': 'local_id', @@ -63,6 +65,7 @@ def __init__(self, **kwargs): # noqa: E501 self._cluster = None self._create_at = None self._description = None + self._entity_async_status = None self._id = None self._local_created_at = None self._local_id = None @@ -80,6 +83,7 @@ def __init__(self, **kwargs): # noqa: E501 self.create_at = kwargs.get("create_at", None) if "description" in kwargs: self.description = kwargs["description"] + self.entity_async_status = kwargs.get("entity_async_status", None) if "id" in kwargs: self.id = kwargs["id"] if "local_created_at" in kwargs: @@ -163,6 +167,27 @@ def description(self, description): self._description = description + @property + def entity_async_status(self): + """Gets the entity_async_status of this VmVolumeSnapshot. # noqa: E501 + + + :return: The entity_async_status of this VmVolumeSnapshot. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this VmVolumeSnapshot. + + + :param entity_async_status: The entity_async_status of this VmVolumeSnapshot. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + @property def id(self): """Gets the id of this VmVolumeSnapshot. # noqa: E501 diff --git a/cloudtower/models/vm_volume_snapshot_order_by_input.py b/cloudtower/models/vm_volume_snapshot_order_by_input.py index f8f42c4c..4aed1812 100644 --- a/cloudtower/models/vm_volume_snapshot_order_by_input.py +++ b/cloudtower/models/vm_volume_snapshot_order_by_input.py @@ -24,6 +24,8 @@ class VmVolumeSnapshotOrderByInput(object): CREATEAT_DESC = "createAt_DESC" DESCRIPTION_ASC = "description_ASC" DESCRIPTION_DESC = "description_DESC" + ENTITYASYNCSTATUS_ASC = "entityAsyncStatus_ASC" + ENTITYASYNCSTATUS_DESC = "entityAsyncStatus_DESC" ID_ASC = "id_ASC" ID_DESC = "id_DESC" LOCAL_CREATED_AT_ASC = "local_created_at_ASC" @@ -43,7 +45,7 @@ class VmVolumeSnapshotOrderByInput(object): ZBS_SNAPSHOT_UUID_ASC = "zbs_snapshot_uuid_ASC" ZBS_SNAPSHOT_UUID_DESC = "zbs_snapshot_uuid_DESC" - allowable_values = [CREATEAT_ASC, CREATEAT_DESC, DESCRIPTION_ASC, DESCRIPTION_DESC, ID_ASC, ID_DESC, LOCAL_CREATED_AT_ASC, LOCAL_CREATED_AT_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, NAME_ASC, NAME_DESC, SHARED_SIZE_ASC, SHARED_SIZE_DESC, SIZE_ASC, SIZE_DESC, TYPE_ASC, TYPE_DESC, UNIQUE_SIZE_ASC, UNIQUE_SIZE_DESC, ZBS_SNAPSHOT_UUID_ASC, ZBS_SNAPSHOT_UUID_DESC] # noqa: E501 + allowable_values = [CREATEAT_ASC, CREATEAT_DESC, DESCRIPTION_ASC, DESCRIPTION_DESC, ENTITYASYNCSTATUS_ASC, ENTITYASYNCSTATUS_DESC, ID_ASC, ID_DESC, LOCAL_CREATED_AT_ASC, LOCAL_CREATED_AT_DESC, LOCAL_ID_ASC, LOCAL_ID_DESC, NAME_ASC, NAME_DESC, SHARED_SIZE_ASC, SHARED_SIZE_DESC, SIZE_ASC, SIZE_DESC, TYPE_ASC, TYPE_DESC, UNIQUE_SIZE_ASC, UNIQUE_SIZE_DESC, ZBS_SNAPSHOT_UUID_ASC, ZBS_SNAPSHOT_UUID_DESC] # noqa: E501 """ Attributes: diff --git a/cloudtower/models/vm_volume_snapshot_where_input.py b/cloudtower/models/vm_volume_snapshot_where_input.py index 468a5b4d..145bbeae 100644 --- a/cloudtower/models/vm_volume_snapshot_where_input.py +++ b/cloudtower/models/vm_volume_snapshot_where_input.py @@ -49,6 +49,10 @@ class VmVolumeSnapshotWhereInput(object): 'description_not_in': 'list[str]', 'description_not_starts_with': 'str', 'description_starts_with': 'str', + 'entity_async_status': 'EntityAsyncStatus', + 'entity_async_status_in': 'list[EntityAsyncStatus]', + 'entity_async_status_not': 'EntityAsyncStatus', + 'entity_async_status_not_in': 'list[EntityAsyncStatus]', 'id': 'str', 'id_contains': 'str', 'id_ends_with': 'str', @@ -171,6 +175,10 @@ class VmVolumeSnapshotWhereInput(object): 'description_not_in': 'description_not_in', 'description_not_starts_with': 'description_not_starts_with', 'description_starts_with': 'description_starts_with', + 'entity_async_status': 'entityAsyncStatus', + 'entity_async_status_in': 'entityAsyncStatus_in', + 'entity_async_status_not': 'entityAsyncStatus_not', + 'entity_async_status_not_in': 'entityAsyncStatus_not_in', 'id': 'id', 'id_contains': 'id_contains', 'id_ends_with': 'id_ends_with', @@ -296,6 +304,10 @@ def __init__(self, **kwargs): # noqa: E501 self._description_not_in = None self._description_not_starts_with = None self._description_starts_with = None + self._entity_async_status = None + self._entity_async_status_in = None + self._entity_async_status_not = None + self._entity_async_status_not_in = None self._id = None self._id_contains = None self._id_ends_with = None @@ -417,6 +429,10 @@ def __init__(self, **kwargs): # noqa: E501 self.description_not_in = kwargs.get("description_not_in", None) self.description_not_starts_with = kwargs.get("description_not_starts_with", None) self.description_starts_with = kwargs.get("description_starts_with", None) + self.entity_async_status = kwargs.get("entity_async_status", None) + self.entity_async_status_in = kwargs.get("entity_async_status_in", None) + self.entity_async_status_not = kwargs.get("entity_async_status_not", None) + self.entity_async_status_not_in = kwargs.get("entity_async_status_not_in", None) self.id = kwargs.get("id", None) self.id_contains = kwargs.get("id_contains", None) self.id_ends_with = kwargs.get("id_ends_with", None) @@ -1017,6 +1033,90 @@ def description_starts_with(self, description_starts_with): self._description_starts_with = description_starts_with + @property + def entity_async_status(self): + """Gets the entity_async_status of this VmVolumeSnapshotWhereInput. # noqa: E501 + + + :return: The entity_async_status of this VmVolumeSnapshotWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this VmVolumeSnapshotWhereInput. + + + :param entity_async_status: The entity_async_status of this VmVolumeSnapshotWhereInput. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + + @property + def entity_async_status_in(self): + """Gets the entity_async_status_in of this VmVolumeSnapshotWhereInput. # noqa: E501 + + + :return: The entity_async_status_in of this VmVolumeSnapshotWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_in + + @entity_async_status_in.setter + def entity_async_status_in(self, entity_async_status_in): + """Sets the entity_async_status_in of this VmVolumeSnapshotWhereInput. + + + :param entity_async_status_in: The entity_async_status_in of this VmVolumeSnapshotWhereInput. # noqa: E501 + :type entity_async_status_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_in = entity_async_status_in + + @property + def entity_async_status_not(self): + """Gets the entity_async_status_not of this VmVolumeSnapshotWhereInput. # noqa: E501 + + + :return: The entity_async_status_not of this VmVolumeSnapshotWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status_not + + @entity_async_status_not.setter + def entity_async_status_not(self, entity_async_status_not): + """Sets the entity_async_status_not of this VmVolumeSnapshotWhereInput. + + + :param entity_async_status_not: The entity_async_status_not of this VmVolumeSnapshotWhereInput. # noqa: E501 + :type entity_async_status_not: EntityAsyncStatus + """ + + self._entity_async_status_not = entity_async_status_not + + @property + def entity_async_status_not_in(self): + """Gets the entity_async_status_not_in of this VmVolumeSnapshotWhereInput. # noqa: E501 + + + :return: The entity_async_status_not_in of this VmVolumeSnapshotWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_not_in + + @entity_async_status_not_in.setter + def entity_async_status_not_in(self, entity_async_status_not_in): + """Sets the entity_async_status_not_in of this VmVolumeSnapshotWhereInput. + + + :param entity_async_status_not_in: The entity_async_status_not_in of this VmVolumeSnapshotWhereInput. # noqa: E501 + :type entity_async_status_not_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_not_in = entity_async_status_not_in + @property def id(self): """Gets the id of this VmVolumeSnapshotWhereInput. # noqa: E501 diff --git a/cloudtower/models/vm_volume_where_input.py b/cloudtower/models/vm_volume_where_input.py index 29f63aab..79c7caef 100644 --- a/cloudtower/models/vm_volume_where_input.py +++ b/cloudtower/models/vm_volume_where_input.py @@ -45,6 +45,10 @@ class VmVolumeWhereInput(object): 'elf_storage_policy_in': 'list[VmVolumeElfStoragePolicyType]', 'elf_storage_policy_not': 'VmVolumeElfStoragePolicyType', 'elf_storage_policy_not_in': 'list[VmVolumeElfStoragePolicyType]', + 'entity_async_status': 'EntityAsyncStatus', + 'entity_async_status_in': 'list[EntityAsyncStatus]', + 'entity_async_status_not': 'EntityAsyncStatus', + 'entity_async_status_not_in': 'list[EntityAsyncStatus]', 'guest_size_usage': 'float', 'guest_size_usage_gt': 'float', 'guest_size_usage_gte': 'float', @@ -181,6 +185,10 @@ class VmVolumeWhereInput(object): 'elf_storage_policy_in': 'elf_storage_policy_in', 'elf_storage_policy_not': 'elf_storage_policy_not', 'elf_storage_policy_not_in': 'elf_storage_policy_not_in', + 'entity_async_status': 'entityAsyncStatus', + 'entity_async_status_in': 'entityAsyncStatus_in', + 'entity_async_status_not': 'entityAsyncStatus_not', + 'entity_async_status_not_in': 'entityAsyncStatus_not_in', 'guest_size_usage': 'guest_size_usage', 'guest_size_usage_gt': 'guest_size_usage_gt', 'guest_size_usage_gte': 'guest_size_usage_gte', @@ -320,6 +328,10 @@ def __init__(self, **kwargs): # noqa: E501 self._elf_storage_policy_in = None self._elf_storage_policy_not = None self._elf_storage_policy_not_in = None + self._entity_async_status = None + self._entity_async_status_in = None + self._entity_async_status_not = None + self._entity_async_status_not_in = None self._guest_size_usage = None self._guest_size_usage_gt = None self._guest_size_usage_gte = None @@ -455,6 +467,10 @@ def __init__(self, **kwargs): # noqa: E501 self.elf_storage_policy_in = kwargs.get("elf_storage_policy_in", None) self.elf_storage_policy_not = kwargs.get("elf_storage_policy_not", None) self.elf_storage_policy_not_in = kwargs.get("elf_storage_policy_not_in", None) + self.entity_async_status = kwargs.get("entity_async_status", None) + self.entity_async_status_in = kwargs.get("entity_async_status_in", None) + self.entity_async_status_not = kwargs.get("entity_async_status_not", None) + self.entity_async_status_not_in = kwargs.get("entity_async_status_not_in", None) self.guest_size_usage = kwargs.get("guest_size_usage", None) self.guest_size_usage_gt = kwargs.get("guest_size_usage_gt", None) self.guest_size_usage_gte = kwargs.get("guest_size_usage_gte", None) @@ -989,6 +1005,90 @@ def elf_storage_policy_not_in(self, elf_storage_policy_not_in): self._elf_storage_policy_not_in = elf_storage_policy_not_in + @property + def entity_async_status(self): + """Gets the entity_async_status of this VmVolumeWhereInput. # noqa: E501 + + + :return: The entity_async_status of this VmVolumeWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status + + @entity_async_status.setter + def entity_async_status(self, entity_async_status): + """Sets the entity_async_status of this VmVolumeWhereInput. + + + :param entity_async_status: The entity_async_status of this VmVolumeWhereInput. # noqa: E501 + :type entity_async_status: EntityAsyncStatus + """ + + self._entity_async_status = entity_async_status + + @property + def entity_async_status_in(self): + """Gets the entity_async_status_in of this VmVolumeWhereInput. # noqa: E501 + + + :return: The entity_async_status_in of this VmVolumeWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_in + + @entity_async_status_in.setter + def entity_async_status_in(self, entity_async_status_in): + """Sets the entity_async_status_in of this VmVolumeWhereInput. + + + :param entity_async_status_in: The entity_async_status_in of this VmVolumeWhereInput. # noqa: E501 + :type entity_async_status_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_in = entity_async_status_in + + @property + def entity_async_status_not(self): + """Gets the entity_async_status_not of this VmVolumeWhereInput. # noqa: E501 + + + :return: The entity_async_status_not of this VmVolumeWhereInput. # noqa: E501 + :rtype: EntityAsyncStatus + """ + return self._entity_async_status_not + + @entity_async_status_not.setter + def entity_async_status_not(self, entity_async_status_not): + """Sets the entity_async_status_not of this VmVolumeWhereInput. + + + :param entity_async_status_not: The entity_async_status_not of this VmVolumeWhereInput. # noqa: E501 + :type entity_async_status_not: EntityAsyncStatus + """ + + self._entity_async_status_not = entity_async_status_not + + @property + def entity_async_status_not_in(self): + """Gets the entity_async_status_not_in of this VmVolumeWhereInput. # noqa: E501 + + + :return: The entity_async_status_not_in of this VmVolumeWhereInput. # noqa: E501 + :rtype: list[EntityAsyncStatus] + """ + return self._entity_async_status_not_in + + @entity_async_status_not_in.setter + def entity_async_status_not_in(self, entity_async_status_not_in): + """Sets the entity_async_status_not_in of this VmVolumeWhereInput. + + + :param entity_async_status_not_in: The entity_async_status_not_in of this VmVolumeWhereInput. # noqa: E501 + :type entity_async_status_not_in: list[EntityAsyncStatus] + """ + + self._entity_async_status_not_in = entity_async_status_not_in + @property def guest_size_usage(self): """Gets the guest_size_usage of this VmVolumeWhereInput. # noqa: E501 diff --git a/cloudtower/models/vmdk_cdrom_modify.py b/cloudtower/models/vmdk_cdrom_modify.py new file mode 100644 index 00000000..49026e39 --- /dev/null +++ b/cloudtower/models/vmdk_cdrom_modify.py @@ -0,0 +1,224 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmdkCdromModify(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'removed': 'bool', + 'content_library_image_id': 'str', + 'elf_image_id': 'str', + 'boot': 'int', + 'index': 'int' + } + + attribute_map = { + 'removed': 'removed', + 'content_library_image_id': 'content_library_image_id', + 'elf_image_id': 'elf_image_id', + 'boot': 'boot', + 'index': 'index' + } + + def __init__(self, **kwargs): # noqa: E501 + """VmdkCdromModify - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._removed = None + self._content_library_image_id = None + self._elf_image_id = None + self._boot = None + self._index = None + self.discriminator = None + + if "removed" in kwargs: + self.removed = kwargs["removed"] + if "content_library_image_id" in kwargs: + self.content_library_image_id = kwargs["content_library_image_id"] + if "elf_image_id" in kwargs: + self.elf_image_id = kwargs["elf_image_id"] + if "boot" in kwargs: + self.boot = kwargs["boot"] + if "index" in kwargs: + self.index = kwargs["index"] + + @property + def removed(self): + """Gets the removed of this VmdkCdromModify. # noqa: E501 + + + :return: The removed of this VmdkCdromModify. # noqa: E501 + :rtype: bool + """ + return self._removed + + @removed.setter + def removed(self, removed): + """Sets the removed of this VmdkCdromModify. + + + :param removed: The removed of this VmdkCdromModify. # noqa: E501 + :type removed: bool + """ + + self._removed = removed + + @property + def content_library_image_id(self): + """Gets the content_library_image_id of this VmdkCdromModify. # noqa: E501 + + + :return: The content_library_image_id of this VmdkCdromModify. # noqa: E501 + :rtype: str + """ + return self._content_library_image_id + + @content_library_image_id.setter + def content_library_image_id(self, content_library_image_id): + """Sets the content_library_image_id of this VmdkCdromModify. + + + :param content_library_image_id: The content_library_image_id of this VmdkCdromModify. # noqa: E501 + :type content_library_image_id: str + """ + + self._content_library_image_id = content_library_image_id + + @property + def elf_image_id(self): + """Gets the elf_image_id of this VmdkCdromModify. # noqa: E501 + + + :return: The elf_image_id of this VmdkCdromModify. # noqa: E501 + :rtype: str + """ + return self._elf_image_id + + @elf_image_id.setter + def elf_image_id(self, elf_image_id): + """Sets the elf_image_id of this VmdkCdromModify. + + + :param elf_image_id: The elf_image_id of this VmdkCdromModify. # noqa: E501 + :type elf_image_id: str + """ + + self._elf_image_id = elf_image_id + + @property + def boot(self): + """Gets the boot of this VmdkCdromModify. # noqa: E501 + + + :return: The boot of this VmdkCdromModify. # noqa: E501 + :rtype: int + """ + return self._boot + + @boot.setter + def boot(self, boot): + """Sets the boot of this VmdkCdromModify. + + + :param boot: The boot of this VmdkCdromModify. # noqa: E501 + :type boot: int + """ + + self._boot = boot + + @property + def index(self): + """Gets the index of this VmdkCdromModify. # noqa: E501 + + + :return: The index of this VmdkCdromModify. # noqa: E501 + :rtype: int + """ + return self._index + + @index.setter + def index(self, index): + """Sets the index of this VmdkCdromModify. + + + :param index: The index of this VmdkCdromModify. # noqa: E501 + :type index: int + """ + if self.local_vars_configuration.client_side_validation and index is None: # noqa: E501 + raise ValueError("Invalid value for `index`, must not be `None`") # noqa: E501 + + self._index = index + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmdkCdromModify): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmdkCdromModify): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/vmdk_disk_modify.py b/cloudtower/models/vmdk_disk_modify.py new file mode 100644 index 00000000..2daa36b7 --- /dev/null +++ b/cloudtower/models/vmdk_disk_modify.py @@ -0,0 +1,224 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class VmdkDiskModify(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'elf_storage_policy': 'VmVolumeElfStoragePolicyType', + 'bus': 'Bus', + 'volume_name': 'str', + 'boot': 'int', + 'vmdk_name': 'str' + } + + attribute_map = { + 'elf_storage_policy': 'elf_storage_policy', + 'bus': 'bus', + 'volume_name': 'volume_name', + 'boot': 'boot', + 'vmdk_name': 'vmdk_name' + } + + def __init__(self, **kwargs): # noqa: E501 + """VmdkDiskModify - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._elf_storage_policy = None + self._bus = None + self._volume_name = None + self._boot = None + self._vmdk_name = None + self.discriminator = None + + if "elf_storage_policy" in kwargs: + self.elf_storage_policy = kwargs["elf_storage_policy"] + if "bus" in kwargs: + self.bus = kwargs["bus"] + if "volume_name" in kwargs: + self.volume_name = kwargs["volume_name"] + if "boot" in kwargs: + self.boot = kwargs["boot"] + if "vmdk_name" in kwargs: + self.vmdk_name = kwargs["vmdk_name"] + + @property + def elf_storage_policy(self): + """Gets the elf_storage_policy of this VmdkDiskModify. # noqa: E501 + + + :return: The elf_storage_policy of this VmdkDiskModify. # noqa: E501 + :rtype: VmVolumeElfStoragePolicyType + """ + return self._elf_storage_policy + + @elf_storage_policy.setter + def elf_storage_policy(self, elf_storage_policy): + """Sets the elf_storage_policy of this VmdkDiskModify. + + + :param elf_storage_policy: The elf_storage_policy of this VmdkDiskModify. # noqa: E501 + :type elf_storage_policy: VmVolumeElfStoragePolicyType + """ + + self._elf_storage_policy = elf_storage_policy + + @property + def bus(self): + """Gets the bus of this VmdkDiskModify. # noqa: E501 + + + :return: The bus of this VmdkDiskModify. # noqa: E501 + :rtype: Bus + """ + return self._bus + + @bus.setter + def bus(self, bus): + """Sets the bus of this VmdkDiskModify. + + + :param bus: The bus of this VmdkDiskModify. # noqa: E501 + :type bus: Bus + """ + + self._bus = bus + + @property + def volume_name(self): + """Gets the volume_name of this VmdkDiskModify. # noqa: E501 + + + :return: The volume_name of this VmdkDiskModify. # noqa: E501 + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """Sets the volume_name of this VmdkDiskModify. + + + :param volume_name: The volume_name of this VmdkDiskModify. # noqa: E501 + :type volume_name: str + """ + + self._volume_name = volume_name + + @property + def boot(self): + """Gets the boot of this VmdkDiskModify. # noqa: E501 + + + :return: The boot of this VmdkDiskModify. # noqa: E501 + :rtype: int + """ + return self._boot + + @boot.setter + def boot(self, boot): + """Sets the boot of this VmdkDiskModify. + + + :param boot: The boot of this VmdkDiskModify. # noqa: E501 + :type boot: int + """ + + self._boot = boot + + @property + def vmdk_name(self): + """Gets the vmdk_name of this VmdkDiskModify. # noqa: E501 + + + :return: The vmdk_name of this VmdkDiskModify. # noqa: E501 + :rtype: str + """ + return self._vmdk_name + + @vmdk_name.setter + def vmdk_name(self, vmdk_name): + """Sets the vmdk_name of this VmdkDiskModify. + + + :param vmdk_name: The vmdk_name of this VmdkDiskModify. # noqa: E501 + :type vmdk_name: str + """ + if self.local_vars_configuration.client_side_validation and vmdk_name is None: # noqa: E501 + raise ValueError("Invalid value for `vmdk_name`, must not be `None`") # noqa: E501 + + self._vmdk_name = vmdk_name + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VmdkDiskModify): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, VmdkDiskModify): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/with_task_delete_security_group.py b/cloudtower/models/with_task_delete_security_group.py new file mode 100644 index 00000000..777994c2 --- /dev/null +++ b/cloudtower/models/with_task_delete_security_group.py @@ -0,0 +1,145 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class WithTaskDeleteSecurityGroup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'task_id': 'str', + 'data': 'DeleteSecurityGroup' + } + + attribute_map = { + 'task_id': 'task_id', + 'data': 'data' + } + + def __init__(self, **kwargs): # noqa: E501 + """WithTaskDeleteSecurityGroup - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._task_id = None + self._data = None + self.discriminator = None + + self.task_id = kwargs.get("task_id", None) + if "data" in kwargs: + self.data = kwargs["data"] + + @property + def task_id(self): + """Gets the task_id of this WithTaskDeleteSecurityGroup. # noqa: E501 + + + :return: The task_id of this WithTaskDeleteSecurityGroup. # noqa: E501 + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this WithTaskDeleteSecurityGroup. + + + :param task_id: The task_id of this WithTaskDeleteSecurityGroup. # noqa: E501 + :type task_id: str + """ + + self._task_id = task_id + + @property + def data(self): + """Gets the data of this WithTaskDeleteSecurityGroup. # noqa: E501 + + + :return: The data of this WithTaskDeleteSecurityGroup. # noqa: E501 + :rtype: DeleteSecurityGroup + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this WithTaskDeleteSecurityGroup. + + + :param data: The data of this WithTaskDeleteSecurityGroup. # noqa: E501 + :type data: DeleteSecurityGroup + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WithTaskDeleteSecurityGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, WithTaskDeleteSecurityGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/with_task_delete_security_policy.py b/cloudtower/models/with_task_delete_security_policy.py new file mode 100644 index 00000000..dbf7157f --- /dev/null +++ b/cloudtower/models/with_task_delete_security_policy.py @@ -0,0 +1,145 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class WithTaskDeleteSecurityPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'task_id': 'str', + 'data': 'DeleteSecurityPolicy' + } + + attribute_map = { + 'task_id': 'task_id', + 'data': 'data' + } + + def __init__(self, **kwargs): # noqa: E501 + """WithTaskDeleteSecurityPolicy - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._task_id = None + self._data = None + self.discriminator = None + + self.task_id = kwargs.get("task_id", None) + if "data" in kwargs: + self.data = kwargs["data"] + + @property + def task_id(self): + """Gets the task_id of this WithTaskDeleteSecurityPolicy. # noqa: E501 + + + :return: The task_id of this WithTaskDeleteSecurityPolicy. # noqa: E501 + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this WithTaskDeleteSecurityPolicy. + + + :param task_id: The task_id of this WithTaskDeleteSecurityPolicy. # noqa: E501 + :type task_id: str + """ + + self._task_id = task_id + + @property + def data(self): + """Gets the data of this WithTaskDeleteSecurityPolicy. # noqa: E501 + + + :return: The data of this WithTaskDeleteSecurityPolicy. # noqa: E501 + :rtype: DeleteSecurityPolicy + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this WithTaskDeleteSecurityPolicy. + + + :param data: The data of this WithTaskDeleteSecurityPolicy. # noqa: E501 + :type data: DeleteSecurityPolicy + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WithTaskDeleteSecurityPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, WithTaskDeleteSecurityPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/with_task_security_group.py b/cloudtower/models/with_task_security_group.py new file mode 100644 index 00000000..aa5c0a81 --- /dev/null +++ b/cloudtower/models/with_task_security_group.py @@ -0,0 +1,145 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class WithTaskSecurityGroup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'task_id': 'str', + 'data': 'SecurityGroup' + } + + attribute_map = { + 'task_id': 'task_id', + 'data': 'data' + } + + def __init__(self, **kwargs): # noqa: E501 + """WithTaskSecurityGroup - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._task_id = None + self._data = None + self.discriminator = None + + self.task_id = kwargs.get("task_id", None) + if "data" in kwargs: + self.data = kwargs["data"] + + @property + def task_id(self): + """Gets the task_id of this WithTaskSecurityGroup. # noqa: E501 + + + :return: The task_id of this WithTaskSecurityGroup. # noqa: E501 + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this WithTaskSecurityGroup. + + + :param task_id: The task_id of this WithTaskSecurityGroup. # noqa: E501 + :type task_id: str + """ + + self._task_id = task_id + + @property + def data(self): + """Gets the data of this WithTaskSecurityGroup. # noqa: E501 + + + :return: The data of this WithTaskSecurityGroup. # noqa: E501 + :rtype: SecurityGroup + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this WithTaskSecurityGroup. + + + :param data: The data of this WithTaskSecurityGroup. # noqa: E501 + :type data: SecurityGroup + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WithTaskSecurityGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, WithTaskSecurityGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/with_task_security_policy.py b/cloudtower/models/with_task_security_policy.py new file mode 100644 index 00000000..bfbf7c3c --- /dev/null +++ b/cloudtower/models/with_task_security_policy.py @@ -0,0 +1,145 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class WithTaskSecurityPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'task_id': 'str', + 'data': 'SecurityPolicy' + } + + attribute_map = { + 'task_id': 'task_id', + 'data': 'data' + } + + def __init__(self, **kwargs): # noqa: E501 + """WithTaskSecurityPolicy - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._task_id = None + self._data = None + self.discriminator = None + + self.task_id = kwargs.get("task_id", None) + if "data" in kwargs: + self.data = kwargs["data"] + + @property + def task_id(self): + """Gets the task_id of this WithTaskSecurityPolicy. # noqa: E501 + + + :return: The task_id of this WithTaskSecurityPolicy. # noqa: E501 + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this WithTaskSecurityPolicy. + + + :param task_id: The task_id of this WithTaskSecurityPolicy. # noqa: E501 + :type task_id: str + """ + + self._task_id = task_id + + @property + def data(self): + """Gets the data of this WithTaskSecurityPolicy. # noqa: E501 + + + :return: The data of this WithTaskSecurityPolicy. # noqa: E501 + :rtype: SecurityPolicy + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this WithTaskSecurityPolicy. + + + :param data: The data of this WithTaskSecurityPolicy. # noqa: E501 + :type data: SecurityPolicy + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WithTaskSecurityPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, WithTaskSecurityPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudtower/models/with_task_vm_export_file.py b/cloudtower/models/with_task_vm_export_file.py new file mode 100644 index 00000000..af05e067 --- /dev/null +++ b/cloudtower/models/with_task_vm_export_file.py @@ -0,0 +1,145 @@ +# coding: utf-8 +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from cloudtower.configuration import Configuration + + +class WithTaskVmExportFile(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'task_id': 'str', + 'data': 'VmExportFile' + } + + attribute_map = { + 'task_id': 'task_id', + 'data': 'data' + } + + def __init__(self, **kwargs): # noqa: E501 + """WithTaskVmExportFile - a model defined in OpenAPI""" # noqa: E501 + self.local_vars_configuration = kwargs.get("local_vars_configuration", Configuration.get_default_copy()) + + self._task_id = None + self._data = None + self.discriminator = None + + self.task_id = kwargs.get("task_id", None) + if "data" in kwargs: + self.data = kwargs["data"] + + @property + def task_id(self): + """Gets the task_id of this WithTaskVmExportFile. # noqa: E501 + + + :return: The task_id of this WithTaskVmExportFile. # noqa: E501 + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this WithTaskVmExportFile. + + + :param task_id: The task_id of this WithTaskVmExportFile. # noqa: E501 + :type task_id: str + """ + + self._task_id = task_id + + @property + def data(self): + """Gets the data of this WithTaskVmExportFile. # noqa: E501 + + + :return: The data of this WithTaskVmExportFile. # noqa: E501 + :rtype: VmExportFile + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this WithTaskVmExportFile. + + + :param data: The data of this WithTaskVmExportFile. # noqa: E501 + :type data: VmExportFile + """ + if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501 + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WithTaskVmExportFile): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, WithTaskVmExportFile): + return True + + return self.to_dict() != other.to_dict() diff --git a/setup.py b/setup.py index 228eacff..02176f0b 100644 --- a/setup.py +++ b/setup.py @@ -1,21 +1,21 @@ # coding: utf-8 -""" - CloudTower APIs - - cloudtower operation API and SDK # noqa: E501 - - The version of the OpenAPI document: 2.8.0 - Contact: info@smartx.com - Generated by: https://openapi-generator.tech -""" +""" + CloudTower APIs + + cloudtower operation API and SDK # noqa: E501 + + The version of the OpenAPI document: 2.9.0 + Contact: info@smartx.com + Generated by: https://openapi-generator.tech +""" import pathlib from setuptools import setup, find_packages # noqa: H301 NAME = "cloudtower-sdk" -VERSION = "2.8.0" +VERSION = "2.9.0" # To install the library, run the following # # python setup.py install