From 40977ace370b20f3f10d3225613c57d7cf526e42 Mon Sep 17 00:00:00 2001 From: Mike Ross Date: Thu, 29 Jun 2017 15:18:36 -0700 Subject: [PATCH] Moving oraclebmc package into a src/ subdirectory and adding some documentation (#22) --- docs/api/index.rst | 19 ++ oraclebmc/response.py | 23 -- setup.py | 5 +- {oraclebmc => src/oraclebmc}/__init__.py | 0 {oraclebmc => src/oraclebmc}/base_client.py | 0 {oraclebmc => src/oraclebmc}/config.py | 0 {oraclebmc => src/oraclebmc}/constants.py | 0 {oraclebmc => src/oraclebmc}/core/__init__.py | 0 .../oraclebmc}/core/blockstorage_client.py | 40 +-- .../oraclebmc}/core/compute_client.py | 92 +++--- .../oraclebmc}/core/models/__init__.py | 0 .../models/attach_i_scsi_volume_details.py | 0 .../core/models/attach_volume_details.py | 0 .../models/capture_console_history_details.py | 0 .../oraclebmc}/core/models/console_history.py | 0 .../oraclebmc}/core/models/cpe.py | 0 .../core/models/create_cpe_details.py | 0 .../models/create_cross_connect_details.py | 0 .../create_cross_connect_group_details.py | 0 .../core/models/create_dhcp_details.py | 0 .../models/create_drg_attachment_details.py | 0 .../core/models/create_drg_details.py | 0 .../core/models/create_image_details.py | 0 .../models/create_internet_gateway_details.py | 0 .../create_ip_sec_connection_details.py | 0 .../core/models/create_route_table_details.py | 0 .../models/create_security_list_details.py | 0 .../core/models/create_subnet_details.py | 0 .../core/models/create_vcn_details.py | 0 .../models/create_virtual_circuit_details.py | 0 .../core/models/create_vnic_details.py | 0 .../models/create_volume_backup_details.py | 0 .../core/models/create_volume_details.py | 0 .../oraclebmc}/core/models/cross_connect.py | 0 .../core/models/cross_connect_group.py | 0 .../core/models/cross_connect_location.py | 0 .../core/models/cross_connect_mapping.py | 0 .../models/cross_connect_port_speed_shape.py | 0 .../core/models/cross_connect_status.py | 0 .../oraclebmc}/core/models/dhcp_dns_option.py | 0 .../oraclebmc}/core/models/dhcp_option.py | 0 .../oraclebmc}/core/models/dhcp_options.py | 0 .../core/models/dhcp_search_domain_option.py | 0 .../oraclebmc}/core/models/drg.py | 0 .../oraclebmc}/core/models/drg_attachment.py | 0 .../core/models/egress_security_rule.py | 0 .../models/fast_connect_provider_service.py | 0 .../core/models/i_scsi_volume_attachment.py | 0 .../oraclebmc}/core/models/icmp_options.py | 0 .../oraclebmc}/core/models/image.py | 0 .../core/models/ingress_security_rule.py | 0 .../oraclebmc}/core/models/instance.py | 0 .../core/models/instance_credentials.py | 0 .../core/models/internet_gateway.py | 0 .../core/models/ip_sec_connection.py | 0 .../models/ip_sec_connection_device_config.py | 0 .../models/ip_sec_connection_device_status.py | 0 .../core/models/launch_instance_details.py | 0 .../core/models/letter_of_authority.py | 0 .../oraclebmc}/core/models/port_range.py | 0 .../oraclebmc}/core/models/route_rule.py | 0 .../oraclebmc}/core/models/route_table.py | 0 .../oraclebmc}/core/models/security_list.py | 0 .../oraclebmc}/core/models/shape.py | 0 .../oraclebmc}/core/models/subnet.py | 0 .../oraclebmc}/core/models/tcp_options.py | 0 .../oraclebmc}/core/models/tunnel_config.py | 0 .../oraclebmc}/core/models/tunnel_status.py | 0 .../oraclebmc}/core/models/udp_options.py | 0 .../core/models/update_cpe_details.py | 0 .../models/update_cross_connect_details.py | 0 .../update_cross_connect_group_details.py | 0 .../core/models/update_dhcp_details.py | 0 .../models/update_drg_attachment_details.py | 0 .../core/models/update_drg_details.py | 0 .../core/models/update_image_details.py | 0 .../core/models/update_instance_details.py | 0 .../models/update_internet_gateway_details.py | 0 .../update_ip_sec_connection_details.py | 0 .../core/models/update_route_table_details.py | 0 .../models/update_security_list_details.py | 0 .../core/models/update_subnet_details.py | 0 .../core/models/update_vcn_details.py | 0 .../models/update_virtual_circuit_details.py | 0 .../models/update_volume_backup_details.py | 0 .../core/models/update_volume_details.py | 0 .../oraclebmc}/core/models/vcn.py | 0 .../oraclebmc}/core/models/virtual_circuit.py | 0 .../models/virtual_circuit_bandwidth_shape.py | 0 .../oraclebmc}/core/models/vnic.py | 0 .../oraclebmc}/core/models/vnic_attachment.py | 0 .../oraclebmc}/core/models/volume.py | 0 .../core/models/volume_attachment.py | 0 .../oraclebmc}/core/models/volume_backup.py | 0 .../oraclebmc}/core/virtual_network_client.py | 296 +++++++++--------- {oraclebmc => src/oraclebmc}/exceptions.py | 0 .../oraclebmc}/identity/__init__.py | 0 .../oraclebmc}/identity/identity_client.py | 188 +++++------ .../oraclebmc}/identity/models/__init__.py | 0 .../models/add_user_to_group_details.py | 0 .../oraclebmc}/identity/models/api_key.py | 0 .../identity/models/availability_domain.py | 0 .../oraclebmc}/identity/models/compartment.py | 0 .../identity/models/create_api_key_details.py | 0 .../models/create_compartment_details.py | 0 .../identity/models/create_group_details.py | 0 .../create_identity_provider_details.py | 0 .../create_idp_group_mapping_details.py | 0 .../identity/models/create_policy_details.py | 0 .../create_region_subscription_details.py | 0 .../create_saml2_identity_provider_details.py | 0 .../models/create_swift_password_details.py | 0 .../identity/models/create_user_details.py | 0 .../oraclebmc}/identity/models/group.py | 0 .../identity/models/identity_provider.py | 0 .../identity/models/idp_group_mapping.py | 0 .../oraclebmc}/identity/models/policy.py | 0 .../oraclebmc}/identity/models/region.py | 0 .../identity/models/region_subscription.py | 0 .../models/saml2_identity_provider.py | 0 .../identity/models/swift_password.py | 0 .../oraclebmc}/identity/models/tenancy.py | 0 .../oraclebmc}/identity/models/ui_password.py | 0 .../models/update_compartment_details.py | 0 .../identity/models/update_group_details.py | 0 .../update_identity_provider_details.py | 0 .../update_idp_group_mapping_details.py | 0 .../identity/models/update_policy_details.py | 0 .../update_saml2_identity_provider_details.py | 0 .../identity/models/update_state_details.py | 0 .../models/update_swift_password_details.py | 0 .../identity/models/update_user_details.py | 0 .../oraclebmc}/identity/models/user.py | 0 .../identity/models/user_group_membership.py | 0 .../oraclebmc}/load_balancer/__init__.py | 0 .../load_balancer/load_balancer_client.py | 112 +++---- .../load_balancer/models/__init__.py | 0 .../load_balancer/models/backend.py | 0 .../load_balancer/models/backend_details.py | 0 .../load_balancer/models/backend_set.py | 0 .../models/backend_set_details.py | 0 .../load_balancer/models/certificate.py | 0 .../models/certificate_details.py | 0 .../models/create_backend_details.py | 0 .../models/create_backend_set_details.py | 0 .../models/create_certificate_details.py | 0 .../models/create_listener_details.py | 0 .../models/create_load_balancer_details.py | 0 .../load_balancer/models/health_checker.py | 0 .../models/health_checker_details.py | 0 .../load_balancer/models/ip_address.py | 0 .../load_balancer/models/listener.py | 0 .../load_balancer/models/listener_details.py | 0 .../load_balancer/models/load_balancer.py | 0 .../models/load_balancer_policy.py | 0 .../models/load_balancer_protocol.py | 0 .../models/load_balancer_shape.py | 0 ...ssion_persistence_configuration_details.py | 0 .../load_balancer/models/ssl_configuration.py | 0 .../models/ssl_configuration_details.py | 0 .../models/update_backend_details.py | 0 .../models/update_backend_set_details.py | 0 .../models/update_health_checker_details.py | 0 .../models/update_listener_details.py | 0 .../models/update_load_balancer_details.py | 0 .../load_balancer/models/work_request.py | 0 .../models/work_request_error.py | 0 .../oraclebmc}/object_storage/__init__.py | 0 .../object_storage/models/__init__.py | 0 .../object_storage/models/bucket.py | 0 .../object_storage/models/bucket_summary.py | 0 .../models/commit_multipart_upload_details.py | 0 .../commit_multipart_upload_part_details.py | 0 .../models/create_bucket_details.py | 0 .../models/create_multipart_upload_details.py | 0 ...create_preauthenticated_request_details.py | 0 .../object_storage/models/list_objects.py | 0 .../object_storage/models/multipart_upload.py | 0 .../models/multipart_upload_part_summary.py | 0 .../object_storage/models/object_summary.py | 0 .../models/preauthenticated_request.py | 0 .../preauthenticated_request_summary.py | 0 .../models/update_bucket_details.py | 0 .../object_storage/object_storage_client.py | 88 +++--- .../object_storage/transfer/__init__.py | 0 .../object_storage/transfer/constants.py | 0 .../transfer/internal/__init__.py | 0 .../transfer/internal/buffered_part_reader.py | 0 .../internal/file_read_callback_stream.py | 0 .../internal/multipart_object_assembler.py | 0 .../object_storage/transfer/upload_manager.py | 0 {oraclebmc => src/oraclebmc}/regions.py | 0 {oraclebmc => src/oraclebmc}/request.py | 39 +++ src/oraclebmc/response.py | 59 ++++ {oraclebmc => src/oraclebmc}/signer.py | 0 {oraclebmc => src/oraclebmc}/util.py | 0 {oraclebmc => src/oraclebmc}/version.py | 0 {oraclebmc => src/oraclebmc}/waiter.py | 0 tests/integ/test_launch_instance_tutorial.py | 6 +- tox.ini | 2 +- 200 files changed, 532 insertions(+), 437 deletions(-) delete mode 100644 oraclebmc/response.py rename {oraclebmc => src/oraclebmc}/__init__.py (100%) rename {oraclebmc => src/oraclebmc}/base_client.py (100%) rename {oraclebmc => src/oraclebmc}/config.py (100%) rename {oraclebmc => src/oraclebmc}/constants.py (100%) rename {oraclebmc => src/oraclebmc}/core/__init__.py (100%) rename {oraclebmc => src/oraclebmc}/core/blockstorage_client.py (91%) rename {oraclebmc => src/oraclebmc}/core/compute_client.py (92%) rename {oraclebmc => src/oraclebmc}/core/models/__init__.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/attach_i_scsi_volume_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/attach_volume_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/capture_console_history_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/console_history.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/cpe.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_cpe_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_cross_connect_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_cross_connect_group_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_dhcp_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_drg_attachment_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_drg_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_image_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_internet_gateway_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_ip_sec_connection_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_route_table_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_security_list_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_subnet_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_vcn_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_virtual_circuit_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_vnic_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_volume_backup_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/create_volume_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/cross_connect.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/cross_connect_group.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/cross_connect_location.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/cross_connect_mapping.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/cross_connect_port_speed_shape.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/cross_connect_status.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/dhcp_dns_option.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/dhcp_option.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/dhcp_options.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/dhcp_search_domain_option.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/drg.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/drg_attachment.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/egress_security_rule.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/fast_connect_provider_service.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/i_scsi_volume_attachment.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/icmp_options.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/image.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/ingress_security_rule.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/instance.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/instance_credentials.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/internet_gateway.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/ip_sec_connection.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/ip_sec_connection_device_config.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/ip_sec_connection_device_status.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/launch_instance_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/letter_of_authority.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/port_range.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/route_rule.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/route_table.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/security_list.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/shape.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/subnet.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/tcp_options.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/tunnel_config.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/tunnel_status.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/udp_options.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_cpe_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_cross_connect_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_cross_connect_group_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_dhcp_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_drg_attachment_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_drg_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_image_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_instance_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_internet_gateway_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_ip_sec_connection_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_route_table_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_security_list_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_subnet_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_vcn_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_virtual_circuit_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_volume_backup_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/update_volume_details.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/vcn.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/virtual_circuit.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/virtual_circuit_bandwidth_shape.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/vnic.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/vnic_attachment.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/volume.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/volume_attachment.py (100%) rename {oraclebmc => src/oraclebmc}/core/models/volume_backup.py (100%) rename {oraclebmc => src/oraclebmc}/core/virtual_network_client.py (91%) rename {oraclebmc => src/oraclebmc}/exceptions.py (100%) rename {oraclebmc => src/oraclebmc}/identity/__init__.py (100%) rename {oraclebmc => src/oraclebmc}/identity/identity_client.py (91%) rename {oraclebmc => src/oraclebmc}/identity/models/__init__.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/add_user_to_group_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/api_key.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/availability_domain.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/compartment.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/create_api_key_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/create_compartment_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/create_group_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/create_identity_provider_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/create_idp_group_mapping_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/create_policy_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/create_region_subscription_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/create_saml2_identity_provider_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/create_swift_password_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/create_user_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/group.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/identity_provider.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/idp_group_mapping.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/policy.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/region.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/region_subscription.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/saml2_identity_provider.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/swift_password.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/tenancy.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/ui_password.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/update_compartment_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/update_group_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/update_identity_provider_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/update_idp_group_mapping_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/update_policy_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/update_saml2_identity_provider_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/update_state_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/update_swift_password_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/update_user_details.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/user.py (100%) rename {oraclebmc => src/oraclebmc}/identity/models/user_group_membership.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/__init__.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/load_balancer_client.py (93%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/__init__.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/backend.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/backend_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/backend_set.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/backend_set_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/certificate.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/certificate_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/create_backend_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/create_backend_set_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/create_certificate_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/create_listener_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/create_load_balancer_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/health_checker.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/health_checker_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/ip_address.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/listener.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/listener_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/load_balancer.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/load_balancer_policy.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/load_balancer_protocol.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/load_balancer_shape.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/session_persistence_configuration_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/ssl_configuration.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/ssl_configuration_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/update_backend_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/update_backend_set_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/update_health_checker_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/update_listener_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/update_load_balancer_details.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/work_request.py (100%) rename {oraclebmc => src/oraclebmc}/load_balancer/models/work_request_error.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/__init__.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/__init__.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/bucket.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/bucket_summary.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/commit_multipart_upload_details.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/commit_multipart_upload_part_details.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/create_bucket_details.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/create_multipart_upload_details.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/create_preauthenticated_request_details.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/list_objects.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/multipart_upload.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/multipart_upload_part_summary.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/object_summary.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/preauthenticated_request.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/preauthenticated_request_summary.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/models/update_bucket_details.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/object_storage_client.py (93%) rename {oraclebmc => src/oraclebmc}/object_storage/transfer/__init__.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/transfer/constants.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/transfer/internal/__init__.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/transfer/internal/buffered_part_reader.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/transfer/internal/file_read_callback_stream.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/transfer/internal/multipart_object_assembler.py (100%) rename {oraclebmc => src/oraclebmc}/object_storage/transfer/upload_manager.py (100%) rename {oraclebmc => src/oraclebmc}/regions.py (100%) rename {oraclebmc => src/oraclebmc}/request.py (65%) create mode 100644 src/oraclebmc/response.py rename {oraclebmc => src/oraclebmc}/signer.py (100%) rename {oraclebmc => src/oraclebmc}/util.py (100%) rename {oraclebmc => src/oraclebmc}/version.py (100%) rename {oraclebmc => src/oraclebmc}/waiter.py (100%) diff --git a/docs/api/index.rst b/docs/api/index.rst index 6462d599ed..c2c8a38210 100644 --- a/docs/api/index.rst +++ b/docs/api/index.rst @@ -155,3 +155,22 @@ Load Balancer .. autofunction:: to_dict .. autoclass:: Sentinel + +========= +Request +========= +.. module:: oraclebmc.request + +.. autoclass:: Request + :members: + :undoc-members: + +========= +Response +========= +.. module:: oraclebmc.response + +.. autoclass:: Response + :members: + :undoc-members: + diff --git a/oraclebmc/response.py b/oraclebmc/response.py deleted file mode 100644 index 9968b87c32..0000000000 --- a/oraclebmc/response.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 -# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. - -from .constants import HEADER_NEXT_PAGE, HEADER_REQUEST_ID - - -class Response(object): - def __init__(self, status, headers, data, request): - self.status = status - self.headers = headers - self.data = data - self.request = request - - self.next_page = None - self.request_id = None - - if self.headers is not None: - self.next_page = self.headers.get(HEADER_NEXT_PAGE) - self.request_id = self.headers.get(HEADER_REQUEST_ID) - - @property - def has_next_page(self): - return self.next_page is not None diff --git a/setup.py b/setup.py index cea3f53bfc..43606614a3 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ def open_relative(*path): return io.open(filename, mode="r", encoding="utf-8") -with open_relative("oraclebmc", "version.py") as fd: +with open_relative("src", "oraclebmc", "version.py") as fd: version = re.search( r"^__version__\s*=\s*['\"]([^'\"]*)['\"]", fd.read(), re.MULTILINE).group(1) @@ -47,7 +47,8 @@ def open_relative(*path): long_description=readme, author="Oracle", author_email="joe.levy@oracle.com", - packages=find_packages(exclude=["docs", "tests*"]), + packages=find_packages(where="src"), + package_dir={"": "src"}, include_package_data=True, install_requires=requires, license="Universal Permissive License 1.0 or Apache License 2.0", diff --git a/oraclebmc/__init__.py b/src/oraclebmc/__init__.py similarity index 100% rename from oraclebmc/__init__.py rename to src/oraclebmc/__init__.py diff --git a/oraclebmc/base_client.py b/src/oraclebmc/base_client.py similarity index 100% rename from oraclebmc/base_client.py rename to src/oraclebmc/base_client.py diff --git a/oraclebmc/config.py b/src/oraclebmc/config.py similarity index 100% rename from oraclebmc/config.py rename to src/oraclebmc/config.py diff --git a/oraclebmc/constants.py b/src/oraclebmc/constants.py similarity index 100% rename from oraclebmc/constants.py rename to src/oraclebmc/constants.py diff --git a/oraclebmc/core/__init__.py b/src/oraclebmc/core/__init__.py similarity index 100% rename from oraclebmc/core/__init__.py rename to src/oraclebmc/core/__init__.py diff --git a/oraclebmc/core/blockstorage_client.py b/src/oraclebmc/core/blockstorage_client.py similarity index 91% rename from oraclebmc/core/blockstorage_client.py rename to src/oraclebmc/core/blockstorage_client.py index 9a2f8a7aee..be118ff690 100644 --- a/oraclebmc/core/blockstorage_client.py +++ b/src/oraclebmc/core/blockstorage_client.py @@ -58,8 +58,8 @@ def create_volume(self, create_volume_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type Volume - :rtype: Volume + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Volume` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumes" method = "POST" @@ -110,8 +110,8 @@ def create_volume_backup(self, create_volume_backup_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type VolumeBackup - :rtype: VolumeBackup + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.VolumeBackup` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumeBackups" method = "POST" @@ -158,8 +158,8 @@ def delete_volume(self, volume_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumes/{volumeId}" method = "DELETE" @@ -205,8 +205,8 @@ def delete_volume_backup(self, volume_backup_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumeBackups/{volumeBackupId}" method = "DELETE" @@ -247,8 +247,8 @@ def get_volume(self, volume_id, **kwargs): :param str volume_id: (required) The OCID of the volume. - :return: A Response object with data of type Volume - :rtype: Volume + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Volume` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumes/{volumeId}" method = "GET" @@ -283,8 +283,8 @@ def get_volume_backup(self, volume_backup_id, **kwargs): :param str volume_backup_id: (required) The OCID of the volume backup. - :return: A Response object with data of type VolumeBackup - :rtype: VolumeBackup + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.VolumeBackup` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumeBackups/{volumeBackupId}" method = "GET" @@ -330,8 +330,8 @@ def list_volume_backups(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[VolumeBackup] - :rtype: list[VolumeBackup] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.VolumeBackup` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumeBackups" method = "GET" @@ -389,8 +389,8 @@ def list_volumes(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[Volume] - :rtype: list[Volume] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.Volume` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumes" method = "GET" @@ -443,8 +443,8 @@ def update_volume(self, volume_id, update_volume_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type Volume - :rtype: Volume + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Volume` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumes/{volumeId}" method = "PUT" @@ -495,8 +495,8 @@ def update_volume_backup(self, volume_backup_id, update_volume_backup_details, * parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type VolumeBackup - :rtype: VolumeBackup + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.VolumeBackup` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumeBackups/{volumeBackupId}" method = "PUT" diff --git a/oraclebmc/core/compute_client.py b/src/oraclebmc/core/compute_client.py similarity index 92% rename from oraclebmc/core/compute_client.py rename to src/oraclebmc/core/compute_client.py index 2a2ecc4b94..56fbaa7742 100644 --- a/oraclebmc/core/compute_client.py +++ b/src/oraclebmc/core/compute_client.py @@ -42,8 +42,8 @@ def attach_volume(self, attach_volume_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type VolumeAttachment - :rtype: VolumeAttachment + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.VolumeAttachment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumeAttachments/" method = "POST" @@ -103,8 +103,8 @@ def capture_console_history(self, capture_console_history_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type ConsoleHistory - :rtype: ConsoleHistory + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.ConsoleHistory` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instanceConsoleHistories/" method = "POST" @@ -157,8 +157,8 @@ def create_image(self, create_image_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type Image - :rtype: Image + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Image` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/images/" method = "POST" @@ -200,8 +200,8 @@ def delete_console_history(self, instance_console_history_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instanceConsoleHistories/{instanceConsoleHistoryId}" method = "DELETE" @@ -247,8 +247,8 @@ def delete_image(self, image_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/images/{imageId}" method = "DELETE" @@ -297,8 +297,8 @@ def detach_volume(self, volume_attachment_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumeAttachments/{volumeAttachmentId}" method = "DELETE" @@ -341,8 +341,8 @@ def get_console_history(self, instance_console_history_id, **kwargs): :param str instance_console_history_id: (required) The OCID of the console history. - :return: A Response object with data of type ConsoleHistory - :rtype: ConsoleHistory + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.ConsoleHistory` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instanceConsoleHistories/{instanceConsoleHistoryId}" method = "GET" @@ -385,8 +385,8 @@ def get_console_history_content(self, instance_console_history_id, **kwargs): :param int length: (optional) Length of the snapshot data to retrieve. - :return: A Response object with data of type bytes - :rtype: bytes + :return: A :class:`~oraclebmc.response.Response` object with data of type bytes + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instanceConsoleHistories/{instanceConsoleHistoryId}/data" method = "GET" @@ -434,8 +434,8 @@ def get_image(self, image_id, **kwargs): :param str image_id: (required) The OCID of the image. - :return: A Response object with data of type Image - :rtype: Image + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Image` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/images/{imageId}" method = "GET" @@ -470,8 +470,8 @@ def get_instance(self, instance_id, **kwargs): :param str instance_id: (required) The OCID of the instance. - :return: A Response object with data of type Instance - :rtype: Instance + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Instance` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instances/{instanceId}" method = "GET" @@ -506,8 +506,8 @@ def get_volume_attachment(self, volume_attachment_id, **kwargs): :param str volume_attachment_id: (required) The OCID of the volume attachment. - :return: A Response object with data of type VolumeAttachment - :rtype: VolumeAttachment + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.VolumeAttachment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumeAttachments/{volumeAttachmentId}" method = "GET" @@ -543,8 +543,8 @@ def get_windows_instance_initial_credentials(self, instance_id, **kwargs): :param str instance_id: (required) The OCID of the instance. - :return: A Response object with data of type InstanceCredentials - :rtype: InstanceCredentials + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.InstanceCredentials` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instances/{instanceId}/initialCredentials" method = "GET" @@ -609,8 +609,8 @@ def instance_action(self, instance_id, action, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type Instance - :rtype: Instance + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Instance` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instances/{instanceId}" method = "POST" @@ -694,8 +694,8 @@ def launch_instance(self, launch_instance_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type Instance - :rtype: Instance + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Instance` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instances/" method = "POST" @@ -748,8 +748,8 @@ def list_console_histories(self, compartment_id, **kwargs): :param str instance_id: (optional) The OCID of the instance. - :return: A Response object with data of type list[ConsoleHistory] - :rtype: list[ConsoleHistory] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.ConsoleHistory` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instanceConsoleHistories/" method = "GET" @@ -823,8 +823,8 @@ def list_images(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[Image] - :rtype: list[Image] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.Image` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/images/" method = "GET" @@ -893,8 +893,8 @@ def list_instances(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[Instance] - :rtype: list[Instance] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.Instance` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instances/" method = "GET" @@ -958,8 +958,8 @@ def list_shapes(self, compartment_id, **kwargs): :param str image_id: (optional) The OCID of an image. - :return: A Response object with data of type list[Shape] - :rtype: list[Shape] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.Shape` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/shapes" method = "GET" @@ -1026,8 +1026,8 @@ def list_vnic_attachments(self, compartment_id, **kwargs): :param str vnic_id: (optional) The OCID of the VNIC. - :return: A Response object with data of type list[VnicAttachment] - :rtype: list[VnicAttachment] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.VnicAttachment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/vnicAttachments/" method = "GET" @@ -1098,8 +1098,8 @@ def list_volume_attachments(self, compartment_id, **kwargs): :param str volume_id: (optional) The OCID of the volume. - :return: A Response object with data of type list[VolumeAttachment] - :rtype: list[VolumeAttachment] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.VolumeAttachment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/volumeAttachments/" method = "GET" @@ -1157,8 +1157,8 @@ def terminate_instance(self, instance_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instances/{instanceId}" method = "DELETE" @@ -1214,8 +1214,8 @@ def update_image(self, image_id, update_image_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type Image - :rtype: Image + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Image` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/images/{imageId}" method = "PUT" @@ -1276,8 +1276,8 @@ def update_instance(self, instance_id, update_instance_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type Instance - :rtype: Instance + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Instance` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/instances/{instanceId}" method = "PUT" diff --git a/oraclebmc/core/models/__init__.py b/src/oraclebmc/core/models/__init__.py similarity index 100% rename from oraclebmc/core/models/__init__.py rename to src/oraclebmc/core/models/__init__.py diff --git a/oraclebmc/core/models/attach_i_scsi_volume_details.py b/src/oraclebmc/core/models/attach_i_scsi_volume_details.py similarity index 100% rename from oraclebmc/core/models/attach_i_scsi_volume_details.py rename to src/oraclebmc/core/models/attach_i_scsi_volume_details.py diff --git a/oraclebmc/core/models/attach_volume_details.py b/src/oraclebmc/core/models/attach_volume_details.py similarity index 100% rename from oraclebmc/core/models/attach_volume_details.py rename to src/oraclebmc/core/models/attach_volume_details.py diff --git a/oraclebmc/core/models/capture_console_history_details.py b/src/oraclebmc/core/models/capture_console_history_details.py similarity index 100% rename from oraclebmc/core/models/capture_console_history_details.py rename to src/oraclebmc/core/models/capture_console_history_details.py diff --git a/oraclebmc/core/models/console_history.py b/src/oraclebmc/core/models/console_history.py similarity index 100% rename from oraclebmc/core/models/console_history.py rename to src/oraclebmc/core/models/console_history.py diff --git a/oraclebmc/core/models/cpe.py b/src/oraclebmc/core/models/cpe.py similarity index 100% rename from oraclebmc/core/models/cpe.py rename to src/oraclebmc/core/models/cpe.py diff --git a/oraclebmc/core/models/create_cpe_details.py b/src/oraclebmc/core/models/create_cpe_details.py similarity index 100% rename from oraclebmc/core/models/create_cpe_details.py rename to src/oraclebmc/core/models/create_cpe_details.py diff --git a/oraclebmc/core/models/create_cross_connect_details.py b/src/oraclebmc/core/models/create_cross_connect_details.py similarity index 100% rename from oraclebmc/core/models/create_cross_connect_details.py rename to src/oraclebmc/core/models/create_cross_connect_details.py diff --git a/oraclebmc/core/models/create_cross_connect_group_details.py b/src/oraclebmc/core/models/create_cross_connect_group_details.py similarity index 100% rename from oraclebmc/core/models/create_cross_connect_group_details.py rename to src/oraclebmc/core/models/create_cross_connect_group_details.py diff --git a/oraclebmc/core/models/create_dhcp_details.py b/src/oraclebmc/core/models/create_dhcp_details.py similarity index 100% rename from oraclebmc/core/models/create_dhcp_details.py rename to src/oraclebmc/core/models/create_dhcp_details.py diff --git a/oraclebmc/core/models/create_drg_attachment_details.py b/src/oraclebmc/core/models/create_drg_attachment_details.py similarity index 100% rename from oraclebmc/core/models/create_drg_attachment_details.py rename to src/oraclebmc/core/models/create_drg_attachment_details.py diff --git a/oraclebmc/core/models/create_drg_details.py b/src/oraclebmc/core/models/create_drg_details.py similarity index 100% rename from oraclebmc/core/models/create_drg_details.py rename to src/oraclebmc/core/models/create_drg_details.py diff --git a/oraclebmc/core/models/create_image_details.py b/src/oraclebmc/core/models/create_image_details.py similarity index 100% rename from oraclebmc/core/models/create_image_details.py rename to src/oraclebmc/core/models/create_image_details.py diff --git a/oraclebmc/core/models/create_internet_gateway_details.py b/src/oraclebmc/core/models/create_internet_gateway_details.py similarity index 100% rename from oraclebmc/core/models/create_internet_gateway_details.py rename to src/oraclebmc/core/models/create_internet_gateway_details.py diff --git a/oraclebmc/core/models/create_ip_sec_connection_details.py b/src/oraclebmc/core/models/create_ip_sec_connection_details.py similarity index 100% rename from oraclebmc/core/models/create_ip_sec_connection_details.py rename to src/oraclebmc/core/models/create_ip_sec_connection_details.py diff --git a/oraclebmc/core/models/create_route_table_details.py b/src/oraclebmc/core/models/create_route_table_details.py similarity index 100% rename from oraclebmc/core/models/create_route_table_details.py rename to src/oraclebmc/core/models/create_route_table_details.py diff --git a/oraclebmc/core/models/create_security_list_details.py b/src/oraclebmc/core/models/create_security_list_details.py similarity index 100% rename from oraclebmc/core/models/create_security_list_details.py rename to src/oraclebmc/core/models/create_security_list_details.py diff --git a/oraclebmc/core/models/create_subnet_details.py b/src/oraclebmc/core/models/create_subnet_details.py similarity index 100% rename from oraclebmc/core/models/create_subnet_details.py rename to src/oraclebmc/core/models/create_subnet_details.py diff --git a/oraclebmc/core/models/create_vcn_details.py b/src/oraclebmc/core/models/create_vcn_details.py similarity index 100% rename from oraclebmc/core/models/create_vcn_details.py rename to src/oraclebmc/core/models/create_vcn_details.py diff --git a/oraclebmc/core/models/create_virtual_circuit_details.py b/src/oraclebmc/core/models/create_virtual_circuit_details.py similarity index 100% rename from oraclebmc/core/models/create_virtual_circuit_details.py rename to src/oraclebmc/core/models/create_virtual_circuit_details.py diff --git a/oraclebmc/core/models/create_vnic_details.py b/src/oraclebmc/core/models/create_vnic_details.py similarity index 100% rename from oraclebmc/core/models/create_vnic_details.py rename to src/oraclebmc/core/models/create_vnic_details.py diff --git a/oraclebmc/core/models/create_volume_backup_details.py b/src/oraclebmc/core/models/create_volume_backup_details.py similarity index 100% rename from oraclebmc/core/models/create_volume_backup_details.py rename to src/oraclebmc/core/models/create_volume_backup_details.py diff --git a/oraclebmc/core/models/create_volume_details.py b/src/oraclebmc/core/models/create_volume_details.py similarity index 100% rename from oraclebmc/core/models/create_volume_details.py rename to src/oraclebmc/core/models/create_volume_details.py diff --git a/oraclebmc/core/models/cross_connect.py b/src/oraclebmc/core/models/cross_connect.py similarity index 100% rename from oraclebmc/core/models/cross_connect.py rename to src/oraclebmc/core/models/cross_connect.py diff --git a/oraclebmc/core/models/cross_connect_group.py b/src/oraclebmc/core/models/cross_connect_group.py similarity index 100% rename from oraclebmc/core/models/cross_connect_group.py rename to src/oraclebmc/core/models/cross_connect_group.py diff --git a/oraclebmc/core/models/cross_connect_location.py b/src/oraclebmc/core/models/cross_connect_location.py similarity index 100% rename from oraclebmc/core/models/cross_connect_location.py rename to src/oraclebmc/core/models/cross_connect_location.py diff --git a/oraclebmc/core/models/cross_connect_mapping.py b/src/oraclebmc/core/models/cross_connect_mapping.py similarity index 100% rename from oraclebmc/core/models/cross_connect_mapping.py rename to src/oraclebmc/core/models/cross_connect_mapping.py diff --git a/oraclebmc/core/models/cross_connect_port_speed_shape.py b/src/oraclebmc/core/models/cross_connect_port_speed_shape.py similarity index 100% rename from oraclebmc/core/models/cross_connect_port_speed_shape.py rename to src/oraclebmc/core/models/cross_connect_port_speed_shape.py diff --git a/oraclebmc/core/models/cross_connect_status.py b/src/oraclebmc/core/models/cross_connect_status.py similarity index 100% rename from oraclebmc/core/models/cross_connect_status.py rename to src/oraclebmc/core/models/cross_connect_status.py diff --git a/oraclebmc/core/models/dhcp_dns_option.py b/src/oraclebmc/core/models/dhcp_dns_option.py similarity index 100% rename from oraclebmc/core/models/dhcp_dns_option.py rename to src/oraclebmc/core/models/dhcp_dns_option.py diff --git a/oraclebmc/core/models/dhcp_option.py b/src/oraclebmc/core/models/dhcp_option.py similarity index 100% rename from oraclebmc/core/models/dhcp_option.py rename to src/oraclebmc/core/models/dhcp_option.py diff --git a/oraclebmc/core/models/dhcp_options.py b/src/oraclebmc/core/models/dhcp_options.py similarity index 100% rename from oraclebmc/core/models/dhcp_options.py rename to src/oraclebmc/core/models/dhcp_options.py diff --git a/oraclebmc/core/models/dhcp_search_domain_option.py b/src/oraclebmc/core/models/dhcp_search_domain_option.py similarity index 100% rename from oraclebmc/core/models/dhcp_search_domain_option.py rename to src/oraclebmc/core/models/dhcp_search_domain_option.py diff --git a/oraclebmc/core/models/drg.py b/src/oraclebmc/core/models/drg.py similarity index 100% rename from oraclebmc/core/models/drg.py rename to src/oraclebmc/core/models/drg.py diff --git a/oraclebmc/core/models/drg_attachment.py b/src/oraclebmc/core/models/drg_attachment.py similarity index 100% rename from oraclebmc/core/models/drg_attachment.py rename to src/oraclebmc/core/models/drg_attachment.py diff --git a/oraclebmc/core/models/egress_security_rule.py b/src/oraclebmc/core/models/egress_security_rule.py similarity index 100% rename from oraclebmc/core/models/egress_security_rule.py rename to src/oraclebmc/core/models/egress_security_rule.py diff --git a/oraclebmc/core/models/fast_connect_provider_service.py b/src/oraclebmc/core/models/fast_connect_provider_service.py similarity index 100% rename from oraclebmc/core/models/fast_connect_provider_service.py rename to src/oraclebmc/core/models/fast_connect_provider_service.py diff --git a/oraclebmc/core/models/i_scsi_volume_attachment.py b/src/oraclebmc/core/models/i_scsi_volume_attachment.py similarity index 100% rename from oraclebmc/core/models/i_scsi_volume_attachment.py rename to src/oraclebmc/core/models/i_scsi_volume_attachment.py diff --git a/oraclebmc/core/models/icmp_options.py b/src/oraclebmc/core/models/icmp_options.py similarity index 100% rename from oraclebmc/core/models/icmp_options.py rename to src/oraclebmc/core/models/icmp_options.py diff --git a/oraclebmc/core/models/image.py b/src/oraclebmc/core/models/image.py similarity index 100% rename from oraclebmc/core/models/image.py rename to src/oraclebmc/core/models/image.py diff --git a/oraclebmc/core/models/ingress_security_rule.py b/src/oraclebmc/core/models/ingress_security_rule.py similarity index 100% rename from oraclebmc/core/models/ingress_security_rule.py rename to src/oraclebmc/core/models/ingress_security_rule.py diff --git a/oraclebmc/core/models/instance.py b/src/oraclebmc/core/models/instance.py similarity index 100% rename from oraclebmc/core/models/instance.py rename to src/oraclebmc/core/models/instance.py diff --git a/oraclebmc/core/models/instance_credentials.py b/src/oraclebmc/core/models/instance_credentials.py similarity index 100% rename from oraclebmc/core/models/instance_credentials.py rename to src/oraclebmc/core/models/instance_credentials.py diff --git a/oraclebmc/core/models/internet_gateway.py b/src/oraclebmc/core/models/internet_gateway.py similarity index 100% rename from oraclebmc/core/models/internet_gateway.py rename to src/oraclebmc/core/models/internet_gateway.py diff --git a/oraclebmc/core/models/ip_sec_connection.py b/src/oraclebmc/core/models/ip_sec_connection.py similarity index 100% rename from oraclebmc/core/models/ip_sec_connection.py rename to src/oraclebmc/core/models/ip_sec_connection.py diff --git a/oraclebmc/core/models/ip_sec_connection_device_config.py b/src/oraclebmc/core/models/ip_sec_connection_device_config.py similarity index 100% rename from oraclebmc/core/models/ip_sec_connection_device_config.py rename to src/oraclebmc/core/models/ip_sec_connection_device_config.py diff --git a/oraclebmc/core/models/ip_sec_connection_device_status.py b/src/oraclebmc/core/models/ip_sec_connection_device_status.py similarity index 100% rename from oraclebmc/core/models/ip_sec_connection_device_status.py rename to src/oraclebmc/core/models/ip_sec_connection_device_status.py diff --git a/oraclebmc/core/models/launch_instance_details.py b/src/oraclebmc/core/models/launch_instance_details.py similarity index 100% rename from oraclebmc/core/models/launch_instance_details.py rename to src/oraclebmc/core/models/launch_instance_details.py diff --git a/oraclebmc/core/models/letter_of_authority.py b/src/oraclebmc/core/models/letter_of_authority.py similarity index 100% rename from oraclebmc/core/models/letter_of_authority.py rename to src/oraclebmc/core/models/letter_of_authority.py diff --git a/oraclebmc/core/models/port_range.py b/src/oraclebmc/core/models/port_range.py similarity index 100% rename from oraclebmc/core/models/port_range.py rename to src/oraclebmc/core/models/port_range.py diff --git a/oraclebmc/core/models/route_rule.py b/src/oraclebmc/core/models/route_rule.py similarity index 100% rename from oraclebmc/core/models/route_rule.py rename to src/oraclebmc/core/models/route_rule.py diff --git a/oraclebmc/core/models/route_table.py b/src/oraclebmc/core/models/route_table.py similarity index 100% rename from oraclebmc/core/models/route_table.py rename to src/oraclebmc/core/models/route_table.py diff --git a/oraclebmc/core/models/security_list.py b/src/oraclebmc/core/models/security_list.py similarity index 100% rename from oraclebmc/core/models/security_list.py rename to src/oraclebmc/core/models/security_list.py diff --git a/oraclebmc/core/models/shape.py b/src/oraclebmc/core/models/shape.py similarity index 100% rename from oraclebmc/core/models/shape.py rename to src/oraclebmc/core/models/shape.py diff --git a/oraclebmc/core/models/subnet.py b/src/oraclebmc/core/models/subnet.py similarity index 100% rename from oraclebmc/core/models/subnet.py rename to src/oraclebmc/core/models/subnet.py diff --git a/oraclebmc/core/models/tcp_options.py b/src/oraclebmc/core/models/tcp_options.py similarity index 100% rename from oraclebmc/core/models/tcp_options.py rename to src/oraclebmc/core/models/tcp_options.py diff --git a/oraclebmc/core/models/tunnel_config.py b/src/oraclebmc/core/models/tunnel_config.py similarity index 100% rename from oraclebmc/core/models/tunnel_config.py rename to src/oraclebmc/core/models/tunnel_config.py diff --git a/oraclebmc/core/models/tunnel_status.py b/src/oraclebmc/core/models/tunnel_status.py similarity index 100% rename from oraclebmc/core/models/tunnel_status.py rename to src/oraclebmc/core/models/tunnel_status.py diff --git a/oraclebmc/core/models/udp_options.py b/src/oraclebmc/core/models/udp_options.py similarity index 100% rename from oraclebmc/core/models/udp_options.py rename to src/oraclebmc/core/models/udp_options.py diff --git a/oraclebmc/core/models/update_cpe_details.py b/src/oraclebmc/core/models/update_cpe_details.py similarity index 100% rename from oraclebmc/core/models/update_cpe_details.py rename to src/oraclebmc/core/models/update_cpe_details.py diff --git a/oraclebmc/core/models/update_cross_connect_details.py b/src/oraclebmc/core/models/update_cross_connect_details.py similarity index 100% rename from oraclebmc/core/models/update_cross_connect_details.py rename to src/oraclebmc/core/models/update_cross_connect_details.py diff --git a/oraclebmc/core/models/update_cross_connect_group_details.py b/src/oraclebmc/core/models/update_cross_connect_group_details.py similarity index 100% rename from oraclebmc/core/models/update_cross_connect_group_details.py rename to src/oraclebmc/core/models/update_cross_connect_group_details.py diff --git a/oraclebmc/core/models/update_dhcp_details.py b/src/oraclebmc/core/models/update_dhcp_details.py similarity index 100% rename from oraclebmc/core/models/update_dhcp_details.py rename to src/oraclebmc/core/models/update_dhcp_details.py diff --git a/oraclebmc/core/models/update_drg_attachment_details.py b/src/oraclebmc/core/models/update_drg_attachment_details.py similarity index 100% rename from oraclebmc/core/models/update_drg_attachment_details.py rename to src/oraclebmc/core/models/update_drg_attachment_details.py diff --git a/oraclebmc/core/models/update_drg_details.py b/src/oraclebmc/core/models/update_drg_details.py similarity index 100% rename from oraclebmc/core/models/update_drg_details.py rename to src/oraclebmc/core/models/update_drg_details.py diff --git a/oraclebmc/core/models/update_image_details.py b/src/oraclebmc/core/models/update_image_details.py similarity index 100% rename from oraclebmc/core/models/update_image_details.py rename to src/oraclebmc/core/models/update_image_details.py diff --git a/oraclebmc/core/models/update_instance_details.py b/src/oraclebmc/core/models/update_instance_details.py similarity index 100% rename from oraclebmc/core/models/update_instance_details.py rename to src/oraclebmc/core/models/update_instance_details.py diff --git a/oraclebmc/core/models/update_internet_gateway_details.py b/src/oraclebmc/core/models/update_internet_gateway_details.py similarity index 100% rename from oraclebmc/core/models/update_internet_gateway_details.py rename to src/oraclebmc/core/models/update_internet_gateway_details.py diff --git a/oraclebmc/core/models/update_ip_sec_connection_details.py b/src/oraclebmc/core/models/update_ip_sec_connection_details.py similarity index 100% rename from oraclebmc/core/models/update_ip_sec_connection_details.py rename to src/oraclebmc/core/models/update_ip_sec_connection_details.py diff --git a/oraclebmc/core/models/update_route_table_details.py b/src/oraclebmc/core/models/update_route_table_details.py similarity index 100% rename from oraclebmc/core/models/update_route_table_details.py rename to src/oraclebmc/core/models/update_route_table_details.py diff --git a/oraclebmc/core/models/update_security_list_details.py b/src/oraclebmc/core/models/update_security_list_details.py similarity index 100% rename from oraclebmc/core/models/update_security_list_details.py rename to src/oraclebmc/core/models/update_security_list_details.py diff --git a/oraclebmc/core/models/update_subnet_details.py b/src/oraclebmc/core/models/update_subnet_details.py similarity index 100% rename from oraclebmc/core/models/update_subnet_details.py rename to src/oraclebmc/core/models/update_subnet_details.py diff --git a/oraclebmc/core/models/update_vcn_details.py b/src/oraclebmc/core/models/update_vcn_details.py similarity index 100% rename from oraclebmc/core/models/update_vcn_details.py rename to src/oraclebmc/core/models/update_vcn_details.py diff --git a/oraclebmc/core/models/update_virtual_circuit_details.py b/src/oraclebmc/core/models/update_virtual_circuit_details.py similarity index 100% rename from oraclebmc/core/models/update_virtual_circuit_details.py rename to src/oraclebmc/core/models/update_virtual_circuit_details.py diff --git a/oraclebmc/core/models/update_volume_backup_details.py b/src/oraclebmc/core/models/update_volume_backup_details.py similarity index 100% rename from oraclebmc/core/models/update_volume_backup_details.py rename to src/oraclebmc/core/models/update_volume_backup_details.py diff --git a/oraclebmc/core/models/update_volume_details.py b/src/oraclebmc/core/models/update_volume_details.py similarity index 100% rename from oraclebmc/core/models/update_volume_details.py rename to src/oraclebmc/core/models/update_volume_details.py diff --git a/oraclebmc/core/models/vcn.py b/src/oraclebmc/core/models/vcn.py similarity index 100% rename from oraclebmc/core/models/vcn.py rename to src/oraclebmc/core/models/vcn.py diff --git a/oraclebmc/core/models/virtual_circuit.py b/src/oraclebmc/core/models/virtual_circuit.py similarity index 100% rename from oraclebmc/core/models/virtual_circuit.py rename to src/oraclebmc/core/models/virtual_circuit.py diff --git a/oraclebmc/core/models/virtual_circuit_bandwidth_shape.py b/src/oraclebmc/core/models/virtual_circuit_bandwidth_shape.py similarity index 100% rename from oraclebmc/core/models/virtual_circuit_bandwidth_shape.py rename to src/oraclebmc/core/models/virtual_circuit_bandwidth_shape.py diff --git a/oraclebmc/core/models/vnic.py b/src/oraclebmc/core/models/vnic.py similarity index 100% rename from oraclebmc/core/models/vnic.py rename to src/oraclebmc/core/models/vnic.py diff --git a/oraclebmc/core/models/vnic_attachment.py b/src/oraclebmc/core/models/vnic_attachment.py similarity index 100% rename from oraclebmc/core/models/vnic_attachment.py rename to src/oraclebmc/core/models/vnic_attachment.py diff --git a/oraclebmc/core/models/volume.py b/src/oraclebmc/core/models/volume.py similarity index 100% rename from oraclebmc/core/models/volume.py rename to src/oraclebmc/core/models/volume.py diff --git a/oraclebmc/core/models/volume_attachment.py b/src/oraclebmc/core/models/volume_attachment.py similarity index 100% rename from oraclebmc/core/models/volume_attachment.py rename to src/oraclebmc/core/models/volume_attachment.py diff --git a/oraclebmc/core/models/volume_backup.py b/src/oraclebmc/core/models/volume_backup.py similarity index 100% rename from oraclebmc/core/models/volume_backup.py rename to src/oraclebmc/core/models/volume_backup.py diff --git a/oraclebmc/core/virtual_network_client.py b/src/oraclebmc/core/virtual_network_client.py similarity index 91% rename from oraclebmc/core/virtual_network_client.py rename to src/oraclebmc/core/virtual_network_client.py index 705bd49018..e87172d324 100644 --- a/oraclebmc/core/virtual_network_client.py +++ b/src/oraclebmc/core/virtual_network_client.py @@ -61,8 +61,8 @@ def create_cpe(self, create_cpe_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type Cpe - :rtype: Cpe + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Cpe` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/cpes" method = "POST" @@ -128,8 +128,8 @@ def create_cross_connect(self, create_cross_connect_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type CrossConnect - :rtype: CrossConnect + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.CrossConnect` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnects" method = "POST" @@ -191,8 +191,8 @@ def create_cross_connect_group(self, create_cross_connect_group_details, **kwarg has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type CrossConnectGroup - :rtype: CrossConnectGroup + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.CrossConnectGroup` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnectGroups" method = "POST" @@ -250,8 +250,8 @@ def create_dhcp_options(self, create_dhcp_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type DhcpOptions - :rtype: DhcpOptions + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.DhcpOptions` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/dhcps" method = "POST" @@ -310,8 +310,8 @@ def create_drg(self, create_drg_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type Drg - :rtype: Drg + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Drg` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/drgs" method = "POST" @@ -368,8 +368,8 @@ def create_drg_attachment(self, create_drg_attachment_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type DrgAttachment - :rtype: DrgAttachment + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.DrgAttachment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/drgAttachments" method = "POST" @@ -437,8 +437,8 @@ def create_internet_gateway(self, create_internet_gateway_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type InternetGateway - :rtype: InternetGateway + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.InternetGateway` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/internetGateways" method = "POST" @@ -512,8 +512,8 @@ def create_ip_sec_connection(self, create_ip_sec_connection_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type IPSecConnection - :rtype: IPSecConnection + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.IPSecConnection` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/ipsecConnections" method = "POST" @@ -575,8 +575,8 @@ def create_route_table(self, create_route_table_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type RouteTable - :rtype: RouteTable + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.RouteTable` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/routeTables" method = "POST" @@ -638,8 +638,8 @@ def create_security_list(self, create_security_list_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type SecurityList - :rtype: SecurityList + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.SecurityList` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/securityLists" method = "POST" @@ -722,8 +722,8 @@ def create_subnet(self, create_subnet_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type Subnet - :rtype: Subnet + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Subnet` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/subnets" method = "POST" @@ -802,8 +802,8 @@ def create_vcn(self, create_vcn_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type Vcn - :rtype: Vcn + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Vcn` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/vcns" method = "POST" @@ -872,8 +872,8 @@ def create_virtual_circuit(self, create_virtual_circuit_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type VirtualCircuit - :rtype: VirtualCircuit + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.VirtualCircuit` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/virtualCircuits" method = "POST" @@ -917,8 +917,8 @@ def delete_cpe(self, cpe_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/cpes/{cpeId}" method = "DELETE" @@ -965,8 +965,8 @@ def delete_cross_connect(self, cross_connect_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnects/{crossConnectId}" method = "DELETE" @@ -1014,8 +1014,8 @@ def delete_cross_connect_group(self, cross_connect_group_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnectGroups/{crossConnectGroupId}" method = "DELETE" @@ -1065,8 +1065,8 @@ def delete_dhcp_options(self, dhcp_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/dhcps/{dhcpId}" method = "DELETE" @@ -1115,8 +1115,8 @@ def delete_drg(self, drg_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/drgs/{drgId}" method = "DELETE" @@ -1164,8 +1164,8 @@ def delete_drg_attachment(self, drg_attachment_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/drgAttachments/{drgAttachmentId}" method = "DELETE" @@ -1215,8 +1215,8 @@ def delete_internet_gateway(self, ig_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/internetGateways/{igId}" method = "DELETE" @@ -1269,8 +1269,8 @@ def delete_ip_sec_connection(self, ipsc_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/ipsecConnections/{ipscId}" method = "DELETE" @@ -1320,8 +1320,8 @@ def delete_route_table(self, rt_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/routeTables/{rtId}" method = "DELETE" @@ -1371,8 +1371,8 @@ def delete_security_list(self, security_list_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/securityLists/{securityListId}" method = "DELETE" @@ -1420,8 +1420,8 @@ def delete_subnet(self, subnet_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/subnets/{subnetId}" method = "DELETE" @@ -1469,8 +1469,8 @@ def delete_vcn(self, vcn_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/vcns/{vcnId}" method = "DELETE" @@ -1520,8 +1520,8 @@ def delete_virtual_circuit(self, virtual_circuit_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/virtualCircuits/{virtualCircuitId}" method = "DELETE" @@ -1562,8 +1562,8 @@ def get_cpe(self, cpe_id, **kwargs): :param str cpe_id: (required) The OCID of the CPE. - :return: A Response object with data of type Cpe - :rtype: Cpe + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Cpe` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/cpes/{cpeId}" method = "GET" @@ -1598,8 +1598,8 @@ def get_cross_connect(self, cross_connect_id, **kwargs): :param str cross_connect_id: (required) The OCID of the cross-connect. - :return: A Response object with data of type CrossConnect - :rtype: CrossConnect + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.CrossConnect` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnects/{crossConnectId}" method = "GET" @@ -1634,8 +1634,8 @@ def get_cross_connect_group(self, cross_connect_group_id, **kwargs): :param str cross_connect_group_id: (required) The OCID of the cross-connect group. - :return: A Response object with data of type CrossConnectGroup - :rtype: CrossConnectGroup + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.CrossConnectGroup` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnectGroups/{crossConnectGroupId}" method = "GET" @@ -1670,8 +1670,8 @@ def get_cross_connect_letter_of_authority(self, cross_connect_id, **kwargs): :param str cross_connect_id: (required) The OCID of the cross-connect. - :return: A Response object with data of type LetterOfAuthority - :rtype: LetterOfAuthority + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.LetterOfAuthority` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnects/{crossConnectId}/letterOfAuthority" method = "GET" @@ -1706,8 +1706,8 @@ def get_cross_connect_status(self, cross_connect_id, **kwargs): :param str cross_connect_id: (required) The OCID of the cross-connect. - :return: A Response object with data of type CrossConnectStatus - :rtype: CrossConnectStatus + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.CrossConnectStatus` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnects/{crossConnectId}/status" method = "GET" @@ -1742,8 +1742,8 @@ def get_dhcp_options(self, dhcp_id, **kwargs): :param str dhcp_id: (required) The OCID for the set of DHCP options. - :return: A Response object with data of type DhcpOptions - :rtype: DhcpOptions + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.DhcpOptions` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/dhcps/{dhcpId}" method = "GET" @@ -1778,8 +1778,8 @@ def get_drg(self, drg_id, **kwargs): :param str drg_id: (required) The OCID of the DRG. - :return: A Response object with data of type Drg - :rtype: Drg + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Drg` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/drgs/{drgId}" method = "GET" @@ -1814,8 +1814,8 @@ def get_drg_attachment(self, drg_attachment_id, **kwargs): :param str drg_attachment_id: (required) The OCID of the DRG attachment. - :return: A Response object with data of type DrgAttachment - :rtype: DrgAttachment + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.DrgAttachment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/drgAttachments/{drgAttachmentId}" method = "GET" @@ -1850,8 +1850,8 @@ def get_internet_gateway(self, ig_id, **kwargs): :param str ig_id: (required) The OCID of the Internet Gateway. - :return: A Response object with data of type InternetGateway - :rtype: InternetGateway + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.InternetGateway` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/internetGateways/{igId}" method = "GET" @@ -1888,8 +1888,8 @@ def get_ip_sec_connection(self, ipsc_id, **kwargs): :param str ipsc_id: (required) The OCID of the IPSec connection. - :return: A Response object with data of type IPSecConnection - :rtype: IPSecConnection + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.IPSecConnection` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/ipsecConnections/{ipscId}" method = "GET" @@ -1925,8 +1925,8 @@ def get_ip_sec_connection_device_config(self, ipsc_id, **kwargs): :param str ipsc_id: (required) The OCID of the IPSec connection. - :return: A Response object with data of type IPSecConnectionDeviceConfig - :rtype: IPSecConnectionDeviceConfig + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.IPSecConnectionDeviceConfig` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/ipsecConnections/{ipscId}/deviceConfig" method = "GET" @@ -1961,8 +1961,8 @@ def get_ip_sec_connection_device_status(self, ipsc_id, **kwargs): :param str ipsc_id: (required) The OCID of the IPSec connection. - :return: A Response object with data of type IPSecConnectionDeviceStatus - :rtype: IPSecConnectionDeviceStatus + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.IPSecConnectionDeviceStatus` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/ipsecConnections/{ipscId}/deviceStatus" method = "GET" @@ -1997,8 +1997,8 @@ def get_route_table(self, rt_id, **kwargs): :param str rt_id: (required) The OCID of the route table. - :return: A Response object with data of type RouteTable - :rtype: RouteTable + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.RouteTable` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/routeTables/{rtId}" method = "GET" @@ -2033,8 +2033,8 @@ def get_security_list(self, security_list_id, **kwargs): :param str security_list_id: (required) The OCID of the security list. - :return: A Response object with data of type SecurityList - :rtype: SecurityList + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.SecurityList` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/securityLists/{securityListId}" method = "GET" @@ -2069,8 +2069,8 @@ def get_subnet(self, subnet_id, **kwargs): :param str subnet_id: (required) The OCID of the subnet. - :return: A Response object with data of type Subnet - :rtype: Subnet + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Subnet` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/subnets/{subnetId}" method = "GET" @@ -2105,8 +2105,8 @@ def get_vcn(self, vcn_id, **kwargs): :param str vcn_id: (required) The OCID of the VCN. - :return: A Response object with data of type Vcn - :rtype: Vcn + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Vcn` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/vcns/{vcnId}" method = "GET" @@ -2141,8 +2141,8 @@ def get_virtual_circuit(self, virtual_circuit_id, **kwargs): :param str virtual_circuit_id: (required) The OCID of the virtual circuit. - :return: A Response object with data of type VirtualCircuit - :rtype: VirtualCircuit + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.VirtualCircuit` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/virtualCircuits/{virtualCircuitId}" method = "GET" @@ -2179,8 +2179,8 @@ def get_vnic(self, vnic_id, **kwargs): :param str vnic_id: (required) The OCID of the VNIC. - :return: A Response object with data of type Vnic - :rtype: Vnic + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Vnic` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/vnics/{vnicId}" method = "GET" @@ -2223,8 +2223,8 @@ def list_cpes(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[Cpe] - :rtype: list[Cpe] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.Cpe` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/cpes" method = "GET" @@ -2275,8 +2275,8 @@ def list_cross_connect_groups(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[CrossConnectGroup] - :rtype: list[CrossConnectGroup] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.CrossConnectGroup` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnectGroups" method = "GET" @@ -2328,8 +2328,8 @@ def list_cross_connect_locations(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[CrossConnectLocation] - :rtype: list[CrossConnectLocation] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.CrossConnectLocation` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnectLocations" method = "GET" @@ -2384,8 +2384,8 @@ def list_cross_connects(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[CrossConnect] - :rtype: list[CrossConnect] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.CrossConnect` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnects" method = "GET" @@ -2440,8 +2440,8 @@ def list_crossconnect_port_speed_shapes(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[CrossConnectPortSpeedShape] - :rtype: list[CrossConnectPortSpeedShape] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.CrossConnectPortSpeedShape` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnectPortSpeedShapes" method = "GET" @@ -2497,8 +2497,8 @@ def list_dhcp_options(self, compartment_id, vcn_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[DhcpOptions] - :rtype: list[DhcpOptions] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.DhcpOptions` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/dhcps" method = "GET" @@ -2557,8 +2557,8 @@ def list_drg_attachments(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[DrgAttachment] - :rtype: list[DrgAttachment] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.DrgAttachment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/drgAttachments" method = "GET" @@ -2613,8 +2613,8 @@ def list_drgs(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[Drg] - :rtype: list[Drg] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.Drg` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/drgs" method = "GET" @@ -2673,8 +2673,8 @@ def list_fast_connect_provider_services(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[FastConnectProviderService] - :rtype: list[FastConnectProviderService] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.FastConnectProviderService` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/fastConnectProviderServices" method = "GET" @@ -2728,8 +2728,8 @@ def list_internet_gateways(self, compartment_id, vcn_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[InternetGateway] - :rtype: list[InternetGateway] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.InternetGateway` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/internetGateways" method = "GET" @@ -2788,8 +2788,8 @@ def list_ip_sec_connections(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[IPSecConnection] - :rtype: list[IPSecConnection] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.IPSecConnection` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/ipsecConnections" method = "GET" @@ -2849,8 +2849,8 @@ def list_route_tables(self, compartment_id, vcn_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[RouteTable] - :rtype: list[RouteTable] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.RouteTable` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/routeTables" method = "GET" @@ -2905,8 +2905,8 @@ def list_security_lists(self, compartment_id, vcn_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[SecurityList] - :rtype: list[SecurityList] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.SecurityList` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/securityLists" method = "GET" @@ -2961,8 +2961,8 @@ def list_subnets(self, compartment_id, vcn_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[Subnet] - :rtype: list[Subnet] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.Subnet` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/subnets" method = "GET" @@ -3014,8 +3014,8 @@ def list_vcns(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[Vcn] - :rtype: list[Vcn] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.Vcn` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/vcns" method = "GET" @@ -3075,8 +3075,8 @@ def list_virtual_circuit_bandwidth_shapes(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[VirtualCircuitBandwidthShape] - :rtype: list[VirtualCircuitBandwidthShape] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.VirtualCircuitBandwidthShape` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/virtualCircuitBandwidthShapes" method = "GET" @@ -3127,8 +3127,8 @@ def list_virtual_circuits(self, compartment_id, **kwargs): :param str page: (optional) The value of the `opc-next-page` response header from the previous \"List\" call. - :return: A Response object with data of type list[VirtualCircuit] - :rtype: list[VirtualCircuit] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.core.models.VirtualCircuit` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/virtualCircuits" method = "GET" @@ -3179,8 +3179,8 @@ def update_cpe(self, cpe_id, update_cpe_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type Cpe - :rtype: Cpe + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Cpe` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/cpes/{cpeId}" method = "PUT" @@ -3231,8 +3231,8 @@ def update_cross_connect(self, cross_connect_id, update_cross_connect_details, * parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type CrossConnect - :rtype: CrossConnect + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.CrossConnect` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnects/{crossConnectId}" method = "PUT" @@ -3283,8 +3283,8 @@ def update_cross_connect_group(self, cross_connect_group_id, update_cross_connec parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type CrossConnectGroup - :rtype: CrossConnectGroup + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.CrossConnectGroup` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/crossConnectGroups/{crossConnectGroupId}" method = "PUT" @@ -3336,8 +3336,8 @@ def update_dhcp_options(self, dhcp_id, update_dhcp_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type DhcpOptions - :rtype: DhcpOptions + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.DhcpOptions` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/dhcps/{dhcpId}" method = "PUT" @@ -3388,8 +3388,8 @@ def update_drg(self, drg_id, update_drg_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type Drg - :rtype: Drg + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Drg` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/drgs/{drgId}" method = "PUT" @@ -3440,8 +3440,8 @@ def update_drg_attachment(self, drg_attachment_id, update_drg_attachment_details parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type DrgAttachment - :rtype: DrgAttachment + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.DrgAttachment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/drgAttachments/{drgAttachmentId}" method = "PUT" @@ -3495,8 +3495,8 @@ def update_internet_gateway(self, ig_id, update_internet_gateway_details, **kwar parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type InternetGateway - :rtype: InternetGateway + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.InternetGateway` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/internetGateways/{igId}" method = "PUT" @@ -3547,8 +3547,8 @@ def update_ip_sec_connection(self, ipsc_id, update_ip_sec_connection_details, ** parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type IPSecConnection - :rtype: IPSecConnection + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.IPSecConnection` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/ipsecConnections/{ipscId}" method = "PUT" @@ -3600,8 +3600,8 @@ def update_route_table(self, rt_id, update_route_table_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type RouteTable - :rtype: RouteTable + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.RouteTable` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/routeTables/{rtId}" method = "PUT" @@ -3654,8 +3654,8 @@ def update_security_list(self, security_list_id, update_security_list_details, * parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type SecurityList - :rtype: SecurityList + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.SecurityList` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/securityLists/{securityListId}" method = "PUT" @@ -3706,8 +3706,8 @@ def update_subnet(self, subnet_id, update_subnet_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type Subnet - :rtype: Subnet + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Subnet` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/subnets/{subnetId}" method = "PUT" @@ -3758,8 +3758,8 @@ def update_vcn(self, vcn_id, update_vcn_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type Vcn - :rtype: Vcn + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.Vcn` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/vcns/{vcnId}" method = "PUT" @@ -3827,8 +3827,8 @@ def update_virtual_circuit(self, virtual_circuit_id, update_virtual_circuit_deta parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type VirtualCircuit - :rtype: VirtualCircuit + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.core.models.VirtualCircuit` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/virtualCircuits/{virtualCircuitId}" method = "PUT" diff --git a/oraclebmc/exceptions.py b/src/oraclebmc/exceptions.py similarity index 100% rename from oraclebmc/exceptions.py rename to src/oraclebmc/exceptions.py diff --git a/oraclebmc/identity/__init__.py b/src/oraclebmc/identity/__init__.py similarity index 100% rename from oraclebmc/identity/__init__.py rename to src/oraclebmc/identity/__init__.py diff --git a/oraclebmc/identity/identity_client.py b/src/oraclebmc/identity/identity_client.py similarity index 91% rename from oraclebmc/identity/identity_client.py rename to src/oraclebmc/identity/identity_client.py index 83bca1d585..4af1a3602a 100644 --- a/oraclebmc/identity/identity_client.py +++ b/src/oraclebmc/identity/identity_client.py @@ -45,8 +45,8 @@ def add_user_to_group(self, add_user_to_group_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type UserGroupMembership - :rtype: UserGroupMembership + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.UserGroupMembership` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/userGroupMemberships/" method = "POST" @@ -111,8 +111,8 @@ def create_compartment(self, create_compartment_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type Compartment - :rtype: Compartment + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.Compartment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/compartments/" method = "POST" @@ -179,8 +179,8 @@ def create_group(self, create_group_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type Group - :rtype: Group + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.Group` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/groups/" method = "POST" @@ -244,8 +244,8 @@ def create_identity_provider(self, create_identity_provider_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type IdentityProvider - :rtype: IdentityProvider + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.IdentityProvider` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/identityProviders/" method = "POST" @@ -293,8 +293,8 @@ def create_idp_group_mapping(self, create_idp_group_mapping_details, identity_pr has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type IdpGroupMapping - :rtype: IdpGroupMapping + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.IdpGroupMapping` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/identityProviders/{identityProviderId}/groupMappings/" method = "POST" @@ -356,8 +356,8 @@ def create_or_reset_ui_password(self, user_id, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type UIPassword - :rtype: UIPassword + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.UIPassword` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}/uiPassword" method = "POST" @@ -426,8 +426,8 @@ def create_policy(self, create_policy_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type Policy - :rtype: Policy + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.Policy` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/policies/" method = "POST" @@ -474,8 +474,8 @@ def create_region_subscription(self, create_region_subscription_details, tenancy has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type RegionSubscription - :rtype: RegionSubscription + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.RegionSubscription` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/tenancies/{tenancyId}/regionSubscriptions" method = "POST" @@ -539,8 +539,8 @@ def create_swift_password(self, create_swift_password_details, user_id, **kwargs has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type SwiftPassword - :rtype: SwiftPassword + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.SwiftPassword` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}/swiftPasswords/" method = "POST" @@ -628,8 +628,8 @@ def create_user(self, create_user_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type User - :rtype: User + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.User` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/" method = "POST" @@ -679,8 +679,8 @@ def delete_api_key(self, user_id, fingerprint, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}/apiKeys/{fingerprint}" method = "DELETE" @@ -727,8 +727,8 @@ def delete_group(self, group_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/groups/{groupId}" method = "DELETE" @@ -775,8 +775,8 @@ def delete_identity_provider(self, identity_provider_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/identityProviders/{identityProviderId}" method = "DELETE" @@ -825,8 +825,8 @@ def delete_idp_group_mapping(self, identity_provider_id, mapping_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/identityProviders/{identityProviderId}/groupMappings/{mappingId}" method = "DELETE" @@ -873,8 +873,8 @@ def delete_policy(self, policy_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/policies/{policyId}" method = "DELETE" @@ -923,8 +923,8 @@ def delete_swift_password(self, user_id, swift_password_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}/swiftPasswords/{swiftPasswordId}" method = "DELETE" @@ -971,8 +971,8 @@ def delete_user(self, user_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}" method = "DELETE" @@ -1020,8 +1020,8 @@ def get_compartment(self, compartment_id, **kwargs): :param str compartment_id: (required) The OCID of the compartment. - :return: A Response object with data of type Compartment - :rtype: Compartment + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.Compartment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/compartments/{compartmentId}" method = "GET" @@ -1060,8 +1060,8 @@ def get_group(self, group_id, **kwargs): :param str group_id: (required) The OCID of the group. - :return: A Response object with data of type Group - :rtype: Group + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.Group` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/groups/{groupId}" method = "GET" @@ -1096,8 +1096,8 @@ def get_identity_provider(self, identity_provider_id, **kwargs): :param str identity_provider_id: (required) The OCID of the identity provider. - :return: A Response object with data of type IdentityProvider - :rtype: IdentityProvider + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.IdentityProvider` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/identityProviders/{identityProviderId}" method = "GET" @@ -1135,8 +1135,8 @@ def get_idp_group_mapping(self, identity_provider_id, mapping_id, **kwargs): :param str mapping_id: (required) The OCID of the group mapping. - :return: A Response object with data of type IdpGroupMapping - :rtype: IdpGroupMapping + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.IdpGroupMapping` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/identityProviders/{identityProviderId}/groupMappings/{mappingId}" method = "GET" @@ -1172,8 +1172,8 @@ def get_policy(self, policy_id, **kwargs): :param str policy_id: (required) The OCID of the policy. - :return: A Response object with data of type Policy - :rtype: Policy + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.Policy` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/policies/{policyId}" method = "GET" @@ -1208,8 +1208,8 @@ def get_tenancy(self, tenancy_id, **kwargs): :param str tenancy_id: (required) The OCID of the tenancy. - :return: A Response object with data of type Tenancy - :rtype: Tenancy + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.Tenancy` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/tenancies/{tenancyId}" method = "GET" @@ -1244,8 +1244,8 @@ def get_user(self, user_id, **kwargs): :param str user_id: (required) The OCID of the user. - :return: A Response object with data of type User - :rtype: User + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.User` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}" method = "GET" @@ -1280,8 +1280,8 @@ def get_user_group_membership(self, user_group_membership_id, **kwargs): :param str user_group_membership_id: (required) The OCID of the userGroupMembership. - :return: A Response object with data of type UserGroupMembership - :rtype: UserGroupMembership + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.UserGroupMembership` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/userGroupMemberships/{userGroupMembershipId}" method = "GET" @@ -1319,8 +1319,8 @@ def list_api_keys(self, user_id, **kwargs): :param str user_id: (required) The OCID of the user. - :return: A Response object with data of type list[ApiKey] - :rtype: list[ApiKey] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.ApiKey` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}/apiKeys/" method = "GET" @@ -1359,8 +1359,8 @@ def list_availability_domains(self, compartment_id, **kwargs): :param str compartment_id: (required) The OCID of the compartment (remember that the tenancy is simply the root compartment). - :return: A Response object with data of type list[AvailabilityDomain] - :rtype: list[AvailabilityDomain] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.AvailabilityDomain` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/availabilityDomains/" method = "GET" @@ -1405,8 +1405,8 @@ def list_compartments(self, compartment_id, **kwargs): :param int limit: (optional) The maximum number of items to return in a paginated \"List\" call. - :return: A Response object with data of type list[Compartment] - :rtype: list[Compartment] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.Compartment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/compartments/" method = "GET" @@ -1459,8 +1459,8 @@ def list_groups(self, compartment_id, **kwargs): :param int limit: (optional) The maximum number of items to return in a paginated \"List\" call. - :return: A Response object with data of type list[Group] - :rtype: list[Group] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.Group` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/groups/" method = "GET" @@ -1517,8 +1517,8 @@ def list_identity_providers(self, protocol, compartment_id, **kwargs): :param int limit: (optional) The maximum number of items to return in a paginated \"List\" call. - :return: A Response object with data of type list[IdentityProvider] - :rtype: list[IdentityProvider] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.IdentityProvider` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/identityProviders/" method = "GET" @@ -1568,8 +1568,8 @@ def list_idp_group_mappings(self, identity_provider_id, **kwargs): :param int limit: (optional) The maximum number of items to return in a paginated \"List\" call. - :return: A Response object with data of type list[IdpGroupMapping] - :rtype: list[IdpGroupMapping] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.IdpGroupMapping` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/identityProviders/{identityProviderId}/groupMappings/" method = "GET" @@ -1629,8 +1629,8 @@ def list_policies(self, compartment_id, **kwargs): :param int limit: (optional) The maximum number of items to return in a paginated \"List\" call. - :return: A Response object with data of type list[Policy] - :rtype: list[Policy] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.Policy` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/policies/" method = "GET" @@ -1673,8 +1673,8 @@ def list_region_subscriptions(self, tenancy_id, **kwargs): :param str tenancy_id: (required) The OCID of the tenancy. - :return: A Response object with data of type list[RegionSubscription] - :rtype: list[RegionSubscription] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.RegionSubscription` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/tenancies/{tenancyId}/regionSubscriptions" method = "GET" @@ -1706,8 +1706,8 @@ def list_regions(self, **kwargs): Lists all the regions offered by Oracle Bare Metal Cloud Services. - :return: A Response object with data of type list[Region] - :rtype: list[Region] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.Region` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/regions" method = "GET" @@ -1737,8 +1737,8 @@ def list_swift_passwords(self, user_id, **kwargs): :param str user_id: (required) The OCID of the user. - :return: A Response object with data of type list[SwiftPassword] - :rtype: list[SwiftPassword] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.SwiftPassword` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}/swiftPasswords/" method = "GET" @@ -1795,8 +1795,8 @@ def list_user_group_memberships(self, compartment_id, **kwargs): :param int limit: (optional) The maximum number of items to return in a paginated \"List\" call. - :return: A Response object with data of type list[UserGroupMembership] - :rtype: list[UserGroupMembership] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.UserGroupMembership` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/userGroupMemberships/" method = "GET" @@ -1853,8 +1853,8 @@ def list_users(self, compartment_id, **kwargs): :param int limit: (optional) The maximum number of items to return in a paginated \"List\" call. - :return: A Response object with data of type list[User] - :rtype: list[User] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.identity.models.User` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/" method = "GET" @@ -1902,8 +1902,8 @@ def remove_user_from_group(self, user_group_membership_id, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/userGroupMemberships/{userGroupMembershipId}" method = "DELETE" @@ -1952,8 +1952,8 @@ def update_compartment(self, compartment_id, update_compartment_details, **kwarg parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type Compartment - :rtype: Compartment + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.Compartment` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/compartments/{compartmentId}" method = "PUT" @@ -2004,8 +2004,8 @@ def update_group(self, group_id, update_group_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type Group - :rtype: Group + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.Group` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/groups/{groupId}" method = "PUT" @@ -2056,8 +2056,8 @@ def update_identity_provider(self, identity_provider_id, update_identity_provide parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type IdentityProvider - :rtype: IdentityProvider + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.IdentityProvider` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/identityProviders/{identityProviderId}" method = "PUT" @@ -2111,8 +2111,8 @@ def update_idp_group_mapping(self, identity_provider_id, mapping_id, update_idp_ parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type IdpGroupMapping - :rtype: IdpGroupMapping + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.IdpGroupMapping` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/identityProviders/{identityProviderId}/groupMappings/{mappingId}" method = "PUT" @@ -2166,8 +2166,8 @@ def update_policy(self, policy_id, update_policy_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type Policy - :rtype: Policy + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.Policy` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/policies/{policyId}" method = "PUT" @@ -2221,8 +2221,8 @@ def update_swift_password(self, user_id, swift_password_id, update_swift_passwor parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type SwiftPassword - :rtype: SwiftPassword + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.SwiftPassword` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}/swiftPasswords/{swiftPasswordId}" method = "PUT" @@ -2274,8 +2274,8 @@ def update_user(self, user_id, update_user_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type User - :rtype: User + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.User` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}" method = "PUT" @@ -2326,8 +2326,8 @@ def update_user_state(self, user_id, update_state_details, **kwargs): parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. - :return: A Response object with data of type User - :rtype: User + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.User` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}/state/" method = "PUT" @@ -2394,8 +2394,8 @@ def upload_api_key(self, user_id, create_api_key_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type ApiKey - :rtype: ApiKey + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.identity.models.ApiKey` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/users/{userId}/apiKeys/" method = "POST" diff --git a/oraclebmc/identity/models/__init__.py b/src/oraclebmc/identity/models/__init__.py similarity index 100% rename from oraclebmc/identity/models/__init__.py rename to src/oraclebmc/identity/models/__init__.py diff --git a/oraclebmc/identity/models/add_user_to_group_details.py b/src/oraclebmc/identity/models/add_user_to_group_details.py similarity index 100% rename from oraclebmc/identity/models/add_user_to_group_details.py rename to src/oraclebmc/identity/models/add_user_to_group_details.py diff --git a/oraclebmc/identity/models/api_key.py b/src/oraclebmc/identity/models/api_key.py similarity index 100% rename from oraclebmc/identity/models/api_key.py rename to src/oraclebmc/identity/models/api_key.py diff --git a/oraclebmc/identity/models/availability_domain.py b/src/oraclebmc/identity/models/availability_domain.py similarity index 100% rename from oraclebmc/identity/models/availability_domain.py rename to src/oraclebmc/identity/models/availability_domain.py diff --git a/oraclebmc/identity/models/compartment.py b/src/oraclebmc/identity/models/compartment.py similarity index 100% rename from oraclebmc/identity/models/compartment.py rename to src/oraclebmc/identity/models/compartment.py diff --git a/oraclebmc/identity/models/create_api_key_details.py b/src/oraclebmc/identity/models/create_api_key_details.py similarity index 100% rename from oraclebmc/identity/models/create_api_key_details.py rename to src/oraclebmc/identity/models/create_api_key_details.py diff --git a/oraclebmc/identity/models/create_compartment_details.py b/src/oraclebmc/identity/models/create_compartment_details.py similarity index 100% rename from oraclebmc/identity/models/create_compartment_details.py rename to src/oraclebmc/identity/models/create_compartment_details.py diff --git a/oraclebmc/identity/models/create_group_details.py b/src/oraclebmc/identity/models/create_group_details.py similarity index 100% rename from oraclebmc/identity/models/create_group_details.py rename to src/oraclebmc/identity/models/create_group_details.py diff --git a/oraclebmc/identity/models/create_identity_provider_details.py b/src/oraclebmc/identity/models/create_identity_provider_details.py similarity index 100% rename from oraclebmc/identity/models/create_identity_provider_details.py rename to src/oraclebmc/identity/models/create_identity_provider_details.py diff --git a/oraclebmc/identity/models/create_idp_group_mapping_details.py b/src/oraclebmc/identity/models/create_idp_group_mapping_details.py similarity index 100% rename from oraclebmc/identity/models/create_idp_group_mapping_details.py rename to src/oraclebmc/identity/models/create_idp_group_mapping_details.py diff --git a/oraclebmc/identity/models/create_policy_details.py b/src/oraclebmc/identity/models/create_policy_details.py similarity index 100% rename from oraclebmc/identity/models/create_policy_details.py rename to src/oraclebmc/identity/models/create_policy_details.py diff --git a/oraclebmc/identity/models/create_region_subscription_details.py b/src/oraclebmc/identity/models/create_region_subscription_details.py similarity index 100% rename from oraclebmc/identity/models/create_region_subscription_details.py rename to src/oraclebmc/identity/models/create_region_subscription_details.py diff --git a/oraclebmc/identity/models/create_saml2_identity_provider_details.py b/src/oraclebmc/identity/models/create_saml2_identity_provider_details.py similarity index 100% rename from oraclebmc/identity/models/create_saml2_identity_provider_details.py rename to src/oraclebmc/identity/models/create_saml2_identity_provider_details.py diff --git a/oraclebmc/identity/models/create_swift_password_details.py b/src/oraclebmc/identity/models/create_swift_password_details.py similarity index 100% rename from oraclebmc/identity/models/create_swift_password_details.py rename to src/oraclebmc/identity/models/create_swift_password_details.py diff --git a/oraclebmc/identity/models/create_user_details.py b/src/oraclebmc/identity/models/create_user_details.py similarity index 100% rename from oraclebmc/identity/models/create_user_details.py rename to src/oraclebmc/identity/models/create_user_details.py diff --git a/oraclebmc/identity/models/group.py b/src/oraclebmc/identity/models/group.py similarity index 100% rename from oraclebmc/identity/models/group.py rename to src/oraclebmc/identity/models/group.py diff --git a/oraclebmc/identity/models/identity_provider.py b/src/oraclebmc/identity/models/identity_provider.py similarity index 100% rename from oraclebmc/identity/models/identity_provider.py rename to src/oraclebmc/identity/models/identity_provider.py diff --git a/oraclebmc/identity/models/idp_group_mapping.py b/src/oraclebmc/identity/models/idp_group_mapping.py similarity index 100% rename from oraclebmc/identity/models/idp_group_mapping.py rename to src/oraclebmc/identity/models/idp_group_mapping.py diff --git a/oraclebmc/identity/models/policy.py b/src/oraclebmc/identity/models/policy.py similarity index 100% rename from oraclebmc/identity/models/policy.py rename to src/oraclebmc/identity/models/policy.py diff --git a/oraclebmc/identity/models/region.py b/src/oraclebmc/identity/models/region.py similarity index 100% rename from oraclebmc/identity/models/region.py rename to src/oraclebmc/identity/models/region.py diff --git a/oraclebmc/identity/models/region_subscription.py b/src/oraclebmc/identity/models/region_subscription.py similarity index 100% rename from oraclebmc/identity/models/region_subscription.py rename to src/oraclebmc/identity/models/region_subscription.py diff --git a/oraclebmc/identity/models/saml2_identity_provider.py b/src/oraclebmc/identity/models/saml2_identity_provider.py similarity index 100% rename from oraclebmc/identity/models/saml2_identity_provider.py rename to src/oraclebmc/identity/models/saml2_identity_provider.py diff --git a/oraclebmc/identity/models/swift_password.py b/src/oraclebmc/identity/models/swift_password.py similarity index 100% rename from oraclebmc/identity/models/swift_password.py rename to src/oraclebmc/identity/models/swift_password.py diff --git a/oraclebmc/identity/models/tenancy.py b/src/oraclebmc/identity/models/tenancy.py similarity index 100% rename from oraclebmc/identity/models/tenancy.py rename to src/oraclebmc/identity/models/tenancy.py diff --git a/oraclebmc/identity/models/ui_password.py b/src/oraclebmc/identity/models/ui_password.py similarity index 100% rename from oraclebmc/identity/models/ui_password.py rename to src/oraclebmc/identity/models/ui_password.py diff --git a/oraclebmc/identity/models/update_compartment_details.py b/src/oraclebmc/identity/models/update_compartment_details.py similarity index 100% rename from oraclebmc/identity/models/update_compartment_details.py rename to src/oraclebmc/identity/models/update_compartment_details.py diff --git a/oraclebmc/identity/models/update_group_details.py b/src/oraclebmc/identity/models/update_group_details.py similarity index 100% rename from oraclebmc/identity/models/update_group_details.py rename to src/oraclebmc/identity/models/update_group_details.py diff --git a/oraclebmc/identity/models/update_identity_provider_details.py b/src/oraclebmc/identity/models/update_identity_provider_details.py similarity index 100% rename from oraclebmc/identity/models/update_identity_provider_details.py rename to src/oraclebmc/identity/models/update_identity_provider_details.py diff --git a/oraclebmc/identity/models/update_idp_group_mapping_details.py b/src/oraclebmc/identity/models/update_idp_group_mapping_details.py similarity index 100% rename from oraclebmc/identity/models/update_idp_group_mapping_details.py rename to src/oraclebmc/identity/models/update_idp_group_mapping_details.py diff --git a/oraclebmc/identity/models/update_policy_details.py b/src/oraclebmc/identity/models/update_policy_details.py similarity index 100% rename from oraclebmc/identity/models/update_policy_details.py rename to src/oraclebmc/identity/models/update_policy_details.py diff --git a/oraclebmc/identity/models/update_saml2_identity_provider_details.py b/src/oraclebmc/identity/models/update_saml2_identity_provider_details.py similarity index 100% rename from oraclebmc/identity/models/update_saml2_identity_provider_details.py rename to src/oraclebmc/identity/models/update_saml2_identity_provider_details.py diff --git a/oraclebmc/identity/models/update_state_details.py b/src/oraclebmc/identity/models/update_state_details.py similarity index 100% rename from oraclebmc/identity/models/update_state_details.py rename to src/oraclebmc/identity/models/update_state_details.py diff --git a/oraclebmc/identity/models/update_swift_password_details.py b/src/oraclebmc/identity/models/update_swift_password_details.py similarity index 100% rename from oraclebmc/identity/models/update_swift_password_details.py rename to src/oraclebmc/identity/models/update_swift_password_details.py diff --git a/oraclebmc/identity/models/update_user_details.py b/src/oraclebmc/identity/models/update_user_details.py similarity index 100% rename from oraclebmc/identity/models/update_user_details.py rename to src/oraclebmc/identity/models/update_user_details.py diff --git a/oraclebmc/identity/models/user.py b/src/oraclebmc/identity/models/user.py similarity index 100% rename from oraclebmc/identity/models/user.py rename to src/oraclebmc/identity/models/user.py diff --git a/oraclebmc/identity/models/user_group_membership.py b/src/oraclebmc/identity/models/user_group_membership.py similarity index 100% rename from oraclebmc/identity/models/user_group_membership.py rename to src/oraclebmc/identity/models/user_group_membership.py diff --git a/oraclebmc/load_balancer/__init__.py b/src/oraclebmc/load_balancer/__init__.py similarity index 100% rename from oraclebmc/load_balancer/__init__.py rename to src/oraclebmc/load_balancer/__init__.py diff --git a/oraclebmc/load_balancer/load_balancer_client.py b/src/oraclebmc/load_balancer/load_balancer_client.py similarity index 93% rename from oraclebmc/load_balancer/load_balancer_client.py rename to src/oraclebmc/load_balancer/load_balancer_client.py index ffa9ea273e..46a99c3794 100644 --- a/oraclebmc/load_balancer/load_balancer_client.py +++ b/src/oraclebmc/load_balancer/load_balancer_client.py @@ -56,8 +56,8 @@ def create_backend(self, create_backend_details, load_balancer_id, backend_set_n has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends" method = "POST" @@ -118,8 +118,8 @@ def create_backend_set(self, create_backend_set_details, load_balancer_id, **kwa has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets" method = "POST" @@ -179,8 +179,8 @@ def create_certificate(self, create_certificate_details, load_balancer_id, **kwa has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/certificates" method = "POST" @@ -240,8 +240,8 @@ def create_listener(self, create_listener_details, load_balancer_id, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/listeners" method = "POST" @@ -327,8 +327,8 @@ def create_load_balancer(self, create_load_balancer_details, **kwargs): has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers" method = "POST" @@ -382,8 +382,8 @@ def delete_backend(self, load_balancer_id, backend_set_name, backend_name, **kwa The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}" method = "DELETE" @@ -439,8 +439,8 @@ def delete_backend_set(self, load_balancer_id, backend_set_name, **kwargs): The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}" method = "DELETE" @@ -493,8 +493,8 @@ def delete_certificate(self, load_balancer_id, certificate_name, **kwargs): The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/certificates/{certificateName}" method = "DELETE" @@ -547,8 +547,8 @@ def delete_listener(self, load_balancer_id, listener_name, **kwargs): The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/listeners/{listenerName}" method = "DELETE" @@ -596,8 +596,8 @@ def delete_load_balancer(self, load_balancer_id, **kwargs): The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}" method = "DELETE" @@ -654,8 +654,8 @@ def get_backend(self, load_balancer_id, backend_set_name, backend_name, **kwargs The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type Backend - :rtype: Backend + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.loadbalancer.models.Backend` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}" method = "GET" @@ -710,8 +710,8 @@ def get_backend_set(self, load_balancer_id, backend_set_name, **kwargs): The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type BackendSet - :rtype: BackendSet + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.loadbalancer.models.BackendSet` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}" method = "GET" @@ -765,8 +765,8 @@ def get_health_checker(self, load_balancer_id, backend_set_name, **kwargs): The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type HealthChecker - :rtype: HealthChecker + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.loadbalancer.models.HealthChecker` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker" method = "GET" @@ -815,8 +815,8 @@ def get_load_balancer(self, load_balancer_id, **kwargs): The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type LoadBalancer - :rtype: LoadBalancer + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.loadbalancer.models.LoadBalancer` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}" method = "GET" @@ -864,8 +864,8 @@ def get_work_request(self, work_request_id, **kwargs): The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type WorkRequest - :rtype: WorkRequest + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.loadbalancer.models.WorkRequest` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancerWorkRequests/{workRequestId}" method = "GET" @@ -913,8 +913,8 @@ def list_backend_sets(self, load_balancer_id, **kwargs): The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type list[BackendSet] - :rtype: list[BackendSet] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.loadbalancer.models.BackendSet` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets" method = "GET" @@ -967,8 +967,8 @@ def list_backends(self, load_balancer_id, backend_set_name, **kwargs): The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type list[Backend] - :rtype: list[Backend] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.loadbalancer.models.Backend` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends" method = "GET" @@ -1017,8 +1017,8 @@ def list_certificates(self, load_balancer_id, **kwargs): The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - :return: A Response object with data of type list[Certificate] - :rtype: list[Certificate] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.loadbalancer.models.Certificate` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/certificates" method = "GET" @@ -1081,8 +1081,8 @@ def list_load_balancers(self, compartment_id, **kwargs): Example: `full` - :return: A Response object with data of type list[LoadBalancer] - :rtype: list[LoadBalancer] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.loadbalancer.models.LoadBalancer` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers" method = "GET" @@ -1146,8 +1146,8 @@ def list_policies(self, compartment_id, **kwargs): Example: `3` - :return: A Response object with data of type list[LoadBalancerPolicy] - :rtype: list[LoadBalancerPolicy] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.loadbalancer.models.LoadBalancerPolicy` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancerPolicies" method = "GET" @@ -1209,8 +1209,8 @@ def list_protocols(self, compartment_id, **kwargs): Example: `3` - :return: A Response object with data of type list[LoadBalancerProtocol] - :rtype: list[LoadBalancerProtocol] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.loadbalancer.models.LoadBalancerProtocol` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancerProtocols" method = "GET" @@ -1272,8 +1272,8 @@ def list_shapes(self, compartment_id, **kwargs): Example: `3` - :return: A Response object with data of type list[LoadBalancerShape] - :rtype: list[LoadBalancerShape] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.loadbalancer.models.LoadBalancerShape` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancerShapes" method = "GET" @@ -1335,8 +1335,8 @@ def list_work_requests(self, load_balancer_id, **kwargs): Example: `3` - :return: A Response object with data of type list[WorkRequest] - :rtype: list[WorkRequest] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.loadbalancer.models.WorkRequest` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/workRequests" method = "GET" @@ -1413,8 +1413,8 @@ def update_backend(self, update_backend_details, load_balancer_id, backend_set_n has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}" method = "PUT" @@ -1481,8 +1481,8 @@ def update_backend_set(self, update_backend_set_details, load_balancer_id, backe has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}" method = "PUT" @@ -1548,8 +1548,8 @@ def update_health_checker(self, health_checker, load_balancer_id, backend_set_na has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker" method = "PUT" @@ -1615,8 +1615,8 @@ def update_listener(self, update_listener_details, load_balancer_id, listener_na has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}/listeners/{listenerName}" method = "PUT" @@ -1677,8 +1677,8 @@ def update_load_balancer(self, update_load_balancer_details, load_balancer_id, * has been deleted and purged from the system, then a retry of the original creation request may be rejected). - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/loadBalancers/{loadBalancerId}" method = "PUT" diff --git a/oraclebmc/load_balancer/models/__init__.py b/src/oraclebmc/load_balancer/models/__init__.py similarity index 100% rename from oraclebmc/load_balancer/models/__init__.py rename to src/oraclebmc/load_balancer/models/__init__.py diff --git a/oraclebmc/load_balancer/models/backend.py b/src/oraclebmc/load_balancer/models/backend.py similarity index 100% rename from oraclebmc/load_balancer/models/backend.py rename to src/oraclebmc/load_balancer/models/backend.py diff --git a/oraclebmc/load_balancer/models/backend_details.py b/src/oraclebmc/load_balancer/models/backend_details.py similarity index 100% rename from oraclebmc/load_balancer/models/backend_details.py rename to src/oraclebmc/load_balancer/models/backend_details.py diff --git a/oraclebmc/load_balancer/models/backend_set.py b/src/oraclebmc/load_balancer/models/backend_set.py similarity index 100% rename from oraclebmc/load_balancer/models/backend_set.py rename to src/oraclebmc/load_balancer/models/backend_set.py diff --git a/oraclebmc/load_balancer/models/backend_set_details.py b/src/oraclebmc/load_balancer/models/backend_set_details.py similarity index 100% rename from oraclebmc/load_balancer/models/backend_set_details.py rename to src/oraclebmc/load_balancer/models/backend_set_details.py diff --git a/oraclebmc/load_balancer/models/certificate.py b/src/oraclebmc/load_balancer/models/certificate.py similarity index 100% rename from oraclebmc/load_balancer/models/certificate.py rename to src/oraclebmc/load_balancer/models/certificate.py diff --git a/oraclebmc/load_balancer/models/certificate_details.py b/src/oraclebmc/load_balancer/models/certificate_details.py similarity index 100% rename from oraclebmc/load_balancer/models/certificate_details.py rename to src/oraclebmc/load_balancer/models/certificate_details.py diff --git a/oraclebmc/load_balancer/models/create_backend_details.py b/src/oraclebmc/load_balancer/models/create_backend_details.py similarity index 100% rename from oraclebmc/load_balancer/models/create_backend_details.py rename to src/oraclebmc/load_balancer/models/create_backend_details.py diff --git a/oraclebmc/load_balancer/models/create_backend_set_details.py b/src/oraclebmc/load_balancer/models/create_backend_set_details.py similarity index 100% rename from oraclebmc/load_balancer/models/create_backend_set_details.py rename to src/oraclebmc/load_balancer/models/create_backend_set_details.py diff --git a/oraclebmc/load_balancer/models/create_certificate_details.py b/src/oraclebmc/load_balancer/models/create_certificate_details.py similarity index 100% rename from oraclebmc/load_balancer/models/create_certificate_details.py rename to src/oraclebmc/load_balancer/models/create_certificate_details.py diff --git a/oraclebmc/load_balancer/models/create_listener_details.py b/src/oraclebmc/load_balancer/models/create_listener_details.py similarity index 100% rename from oraclebmc/load_balancer/models/create_listener_details.py rename to src/oraclebmc/load_balancer/models/create_listener_details.py diff --git a/oraclebmc/load_balancer/models/create_load_balancer_details.py b/src/oraclebmc/load_balancer/models/create_load_balancer_details.py similarity index 100% rename from oraclebmc/load_balancer/models/create_load_balancer_details.py rename to src/oraclebmc/load_balancer/models/create_load_balancer_details.py diff --git a/oraclebmc/load_balancer/models/health_checker.py b/src/oraclebmc/load_balancer/models/health_checker.py similarity index 100% rename from oraclebmc/load_balancer/models/health_checker.py rename to src/oraclebmc/load_balancer/models/health_checker.py diff --git a/oraclebmc/load_balancer/models/health_checker_details.py b/src/oraclebmc/load_balancer/models/health_checker_details.py similarity index 100% rename from oraclebmc/load_balancer/models/health_checker_details.py rename to src/oraclebmc/load_balancer/models/health_checker_details.py diff --git a/oraclebmc/load_balancer/models/ip_address.py b/src/oraclebmc/load_balancer/models/ip_address.py similarity index 100% rename from oraclebmc/load_balancer/models/ip_address.py rename to src/oraclebmc/load_balancer/models/ip_address.py diff --git a/oraclebmc/load_balancer/models/listener.py b/src/oraclebmc/load_balancer/models/listener.py similarity index 100% rename from oraclebmc/load_balancer/models/listener.py rename to src/oraclebmc/load_balancer/models/listener.py diff --git a/oraclebmc/load_balancer/models/listener_details.py b/src/oraclebmc/load_balancer/models/listener_details.py similarity index 100% rename from oraclebmc/load_balancer/models/listener_details.py rename to src/oraclebmc/load_balancer/models/listener_details.py diff --git a/oraclebmc/load_balancer/models/load_balancer.py b/src/oraclebmc/load_balancer/models/load_balancer.py similarity index 100% rename from oraclebmc/load_balancer/models/load_balancer.py rename to src/oraclebmc/load_balancer/models/load_balancer.py diff --git a/oraclebmc/load_balancer/models/load_balancer_policy.py b/src/oraclebmc/load_balancer/models/load_balancer_policy.py similarity index 100% rename from oraclebmc/load_balancer/models/load_balancer_policy.py rename to src/oraclebmc/load_balancer/models/load_balancer_policy.py diff --git a/oraclebmc/load_balancer/models/load_balancer_protocol.py b/src/oraclebmc/load_balancer/models/load_balancer_protocol.py similarity index 100% rename from oraclebmc/load_balancer/models/load_balancer_protocol.py rename to src/oraclebmc/load_balancer/models/load_balancer_protocol.py diff --git a/oraclebmc/load_balancer/models/load_balancer_shape.py b/src/oraclebmc/load_balancer/models/load_balancer_shape.py similarity index 100% rename from oraclebmc/load_balancer/models/load_balancer_shape.py rename to src/oraclebmc/load_balancer/models/load_balancer_shape.py diff --git a/oraclebmc/load_balancer/models/session_persistence_configuration_details.py b/src/oraclebmc/load_balancer/models/session_persistence_configuration_details.py similarity index 100% rename from oraclebmc/load_balancer/models/session_persistence_configuration_details.py rename to src/oraclebmc/load_balancer/models/session_persistence_configuration_details.py diff --git a/oraclebmc/load_balancer/models/ssl_configuration.py b/src/oraclebmc/load_balancer/models/ssl_configuration.py similarity index 100% rename from oraclebmc/load_balancer/models/ssl_configuration.py rename to src/oraclebmc/load_balancer/models/ssl_configuration.py diff --git a/oraclebmc/load_balancer/models/ssl_configuration_details.py b/src/oraclebmc/load_balancer/models/ssl_configuration_details.py similarity index 100% rename from oraclebmc/load_balancer/models/ssl_configuration_details.py rename to src/oraclebmc/load_balancer/models/ssl_configuration_details.py diff --git a/oraclebmc/load_balancer/models/update_backend_details.py b/src/oraclebmc/load_balancer/models/update_backend_details.py similarity index 100% rename from oraclebmc/load_balancer/models/update_backend_details.py rename to src/oraclebmc/load_balancer/models/update_backend_details.py diff --git a/oraclebmc/load_balancer/models/update_backend_set_details.py b/src/oraclebmc/load_balancer/models/update_backend_set_details.py similarity index 100% rename from oraclebmc/load_balancer/models/update_backend_set_details.py rename to src/oraclebmc/load_balancer/models/update_backend_set_details.py diff --git a/oraclebmc/load_balancer/models/update_health_checker_details.py b/src/oraclebmc/load_balancer/models/update_health_checker_details.py similarity index 100% rename from oraclebmc/load_balancer/models/update_health_checker_details.py rename to src/oraclebmc/load_balancer/models/update_health_checker_details.py diff --git a/oraclebmc/load_balancer/models/update_listener_details.py b/src/oraclebmc/load_balancer/models/update_listener_details.py similarity index 100% rename from oraclebmc/load_balancer/models/update_listener_details.py rename to src/oraclebmc/load_balancer/models/update_listener_details.py diff --git a/oraclebmc/load_balancer/models/update_load_balancer_details.py b/src/oraclebmc/load_balancer/models/update_load_balancer_details.py similarity index 100% rename from oraclebmc/load_balancer/models/update_load_balancer_details.py rename to src/oraclebmc/load_balancer/models/update_load_balancer_details.py diff --git a/oraclebmc/load_balancer/models/work_request.py b/src/oraclebmc/load_balancer/models/work_request.py similarity index 100% rename from oraclebmc/load_balancer/models/work_request.py rename to src/oraclebmc/load_balancer/models/work_request.py diff --git a/oraclebmc/load_balancer/models/work_request_error.py b/src/oraclebmc/load_balancer/models/work_request_error.py similarity index 100% rename from oraclebmc/load_balancer/models/work_request_error.py rename to src/oraclebmc/load_balancer/models/work_request_error.py diff --git a/oraclebmc/object_storage/__init__.py b/src/oraclebmc/object_storage/__init__.py similarity index 100% rename from oraclebmc/object_storage/__init__.py rename to src/oraclebmc/object_storage/__init__.py diff --git a/oraclebmc/object_storage/models/__init__.py b/src/oraclebmc/object_storage/models/__init__.py similarity index 100% rename from oraclebmc/object_storage/models/__init__.py rename to src/oraclebmc/object_storage/models/__init__.py diff --git a/oraclebmc/object_storage/models/bucket.py b/src/oraclebmc/object_storage/models/bucket.py similarity index 100% rename from oraclebmc/object_storage/models/bucket.py rename to src/oraclebmc/object_storage/models/bucket.py diff --git a/oraclebmc/object_storage/models/bucket_summary.py b/src/oraclebmc/object_storage/models/bucket_summary.py similarity index 100% rename from oraclebmc/object_storage/models/bucket_summary.py rename to src/oraclebmc/object_storage/models/bucket_summary.py diff --git a/oraclebmc/object_storage/models/commit_multipart_upload_details.py b/src/oraclebmc/object_storage/models/commit_multipart_upload_details.py similarity index 100% rename from oraclebmc/object_storage/models/commit_multipart_upload_details.py rename to src/oraclebmc/object_storage/models/commit_multipart_upload_details.py diff --git a/oraclebmc/object_storage/models/commit_multipart_upload_part_details.py b/src/oraclebmc/object_storage/models/commit_multipart_upload_part_details.py similarity index 100% rename from oraclebmc/object_storage/models/commit_multipart_upload_part_details.py rename to src/oraclebmc/object_storage/models/commit_multipart_upload_part_details.py diff --git a/oraclebmc/object_storage/models/create_bucket_details.py b/src/oraclebmc/object_storage/models/create_bucket_details.py similarity index 100% rename from oraclebmc/object_storage/models/create_bucket_details.py rename to src/oraclebmc/object_storage/models/create_bucket_details.py diff --git a/oraclebmc/object_storage/models/create_multipart_upload_details.py b/src/oraclebmc/object_storage/models/create_multipart_upload_details.py similarity index 100% rename from oraclebmc/object_storage/models/create_multipart_upload_details.py rename to src/oraclebmc/object_storage/models/create_multipart_upload_details.py diff --git a/oraclebmc/object_storage/models/create_preauthenticated_request_details.py b/src/oraclebmc/object_storage/models/create_preauthenticated_request_details.py similarity index 100% rename from oraclebmc/object_storage/models/create_preauthenticated_request_details.py rename to src/oraclebmc/object_storage/models/create_preauthenticated_request_details.py diff --git a/oraclebmc/object_storage/models/list_objects.py b/src/oraclebmc/object_storage/models/list_objects.py similarity index 100% rename from oraclebmc/object_storage/models/list_objects.py rename to src/oraclebmc/object_storage/models/list_objects.py diff --git a/oraclebmc/object_storage/models/multipart_upload.py b/src/oraclebmc/object_storage/models/multipart_upload.py similarity index 100% rename from oraclebmc/object_storage/models/multipart_upload.py rename to src/oraclebmc/object_storage/models/multipart_upload.py diff --git a/oraclebmc/object_storage/models/multipart_upload_part_summary.py b/src/oraclebmc/object_storage/models/multipart_upload_part_summary.py similarity index 100% rename from oraclebmc/object_storage/models/multipart_upload_part_summary.py rename to src/oraclebmc/object_storage/models/multipart_upload_part_summary.py diff --git a/oraclebmc/object_storage/models/object_summary.py b/src/oraclebmc/object_storage/models/object_summary.py similarity index 100% rename from oraclebmc/object_storage/models/object_summary.py rename to src/oraclebmc/object_storage/models/object_summary.py diff --git a/oraclebmc/object_storage/models/preauthenticated_request.py b/src/oraclebmc/object_storage/models/preauthenticated_request.py similarity index 100% rename from oraclebmc/object_storage/models/preauthenticated_request.py rename to src/oraclebmc/object_storage/models/preauthenticated_request.py diff --git a/oraclebmc/object_storage/models/preauthenticated_request_summary.py b/src/oraclebmc/object_storage/models/preauthenticated_request_summary.py similarity index 100% rename from oraclebmc/object_storage/models/preauthenticated_request_summary.py rename to src/oraclebmc/object_storage/models/preauthenticated_request_summary.py diff --git a/oraclebmc/object_storage/models/update_bucket_details.py b/src/oraclebmc/object_storage/models/update_bucket_details.py similarity index 100% rename from oraclebmc/object_storage/models/update_bucket_details.py rename to src/oraclebmc/object_storage/models/update_bucket_details.py diff --git a/oraclebmc/object_storage/object_storage_client.py b/src/oraclebmc/object_storage/object_storage_client.py similarity index 93% rename from oraclebmc/object_storage/object_storage_client.py rename to src/oraclebmc/object_storage/object_storage_client.py index 6fed57e6b2..aa6d2195da 100644 --- a/oraclebmc/object_storage/object_storage_client.py +++ b/src/oraclebmc/object_storage/object_storage_client.py @@ -51,8 +51,8 @@ def abort_multipart_upload(self, namespace_name, bucket_name, object_name, uploa :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}" method = "DELETE" @@ -129,8 +129,8 @@ def commit_multipart_upload(self, namespace_name, bucket_name, object_name, uplo :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}" method = "POST" @@ -196,8 +196,8 @@ def create_bucket(self, namespace_name, create_bucket_details, **kwargs): :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type Bucket - :rtype: Bucket + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.object_storage.models.Bucket` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/" method = "POST" @@ -260,8 +260,8 @@ def create_multipart_upload(self, namespace_name, bucket_name, create_multipart_ :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type MultipartUpload - :rtype: MultipartUpload + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.object_storage.models.MultipartUpload` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/u" method = "POST" @@ -320,8 +320,8 @@ def create_preauthenticated_request(self, namespace_name, bucket_name, create_pr :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type PreauthenticatedRequest - :rtype: PreauthenticatedRequest + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.object_storage.models.PreauthenticatedRequest` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/p/" method = "POST" @@ -377,8 +377,8 @@ def delete_bucket(self, namespace_name, bucket_name, **kwargs): :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/" method = "DELETE" @@ -439,8 +439,8 @@ def delete_object(self, namespace_name, bucket_name, object_name, **kwargs): :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}" method = "DELETE" @@ -497,8 +497,8 @@ def delete_preauthenticated_request(self, namespace_name, bucket_name, par_id, * :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/p/{parId}" method = "DELETE" @@ -558,8 +558,8 @@ def get_bucket(self, namespace_name, bucket_name, **kwargs): :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type Bucket - :rtype: Bucket + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.object_storage.models.Bucket` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/" method = "GET" @@ -607,8 +607,8 @@ def get_namespace(self, **kwargs): :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type str - :rtype: str + :return: A :class:`~oraclebmc.response.Response` object with data of type str + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/" method = "GET" @@ -672,8 +672,8 @@ def get_object(self, namespace_name, bucket_name, object_name, **kwargs): __ https://tools.ietf.org/rfc/rfc7233 - :return: A Response object with data of type stream - :rtype: stream + :return: A :class:`~oraclebmc.response.Response` object with data of type stream + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}" method = "GET" @@ -735,8 +735,8 @@ def get_preauthenticated_request(self, namespace_name, bucket_name, par_id, **kw :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type PreauthenticatedRequestSummary - :rtype: PreauthenticatedRequestSummary + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.object_storage.models.PreauthenticatedRequestSummary` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/p/{parId}" method = "GET" @@ -797,8 +797,8 @@ def head_bucket(self, namespace_name, bucket_name, **kwargs): :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/" method = "HEAD" @@ -866,8 +866,8 @@ def head_object(self, namespace_name, bucket_name, object_name, **kwargs): :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}" method = "HEAD" @@ -933,8 +933,8 @@ def list_buckets(self, namespace_name, compartment_id, **kwargs): :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type list[BucketSummary] - :rtype: list[BucketSummary] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.object_storage.models.BucketSummary` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/" method = "GET" @@ -1008,8 +1008,8 @@ def list_multipart_upload_parts(self, namespace_name, bucket_name, object_name, :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type list[MultipartUploadPartSummary] - :rtype: list[MultipartUploadPartSummary] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.object_storage.models.MultipartUploadPartSummary` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}" method = "GET" @@ -1077,8 +1077,8 @@ def list_multipart_uploads(self, namespace_name, bucket_name, **kwargs): :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type list[MultipartUpload] - :rtype: list[MultipartUpload] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.object_storage.models.MultipartUpload` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/u" method = "GET" @@ -1169,8 +1169,8 @@ def list_objects(self, namespace_name, bucket_name, **kwargs): :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type ListObjects - :rtype: ListObjects + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.object_storage.models.ListObjects` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/o" method = "GET" @@ -1247,8 +1247,8 @@ def list_preauthenticated_requests(self, namespace_name, bucket_name, **kwargs): :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type list[PreauthenticatedRequestSummary] - :rtype: list[PreauthenticatedRequestSummary] + :return: A :class:`~oraclebmc.response.Response` object with data of type list of :class:`~oraclebmc.object_storage.models.PreauthenticatedRequestSummary` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/p/" method = "GET" @@ -1354,8 +1354,8 @@ def put_object(self, namespace_name, bucket_name, object_name, put_object_body, :param dict(str, str) opc_meta: (optional) Optional user-defined metadata key and value. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}" method = "PUT" @@ -1438,8 +1438,8 @@ def update_bucket(self, namespace_name, bucket_name, update_bucket_details, **kw :param str opc_client_request_id: (optional) The client request ID for tracing. - :return: A Response object with data of type Bucket - :rtype: Bucket + :return: A :class:`~oraclebmc.response.Response` object with data of type :class:`~oraclebmc.object_storage.models.Bucket` + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/" method = "POST" @@ -1525,8 +1525,8 @@ def upload_part(self, namespace_name, bucket_name, object_name, upload_id, uploa :param str content_md5: (optional) The base-64 encoded MD5 hash of the body. - :return: A Response object with data of type None - :rtype: None + :return: A :class:`~oraclebmc.response.Response` object with data of type None + :rtype: :class:`~oraclebmc.response.Response` """ resource_path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}" method = "PUT" diff --git a/oraclebmc/object_storage/transfer/__init__.py b/src/oraclebmc/object_storage/transfer/__init__.py similarity index 100% rename from oraclebmc/object_storage/transfer/__init__.py rename to src/oraclebmc/object_storage/transfer/__init__.py diff --git a/oraclebmc/object_storage/transfer/constants.py b/src/oraclebmc/object_storage/transfer/constants.py similarity index 100% rename from oraclebmc/object_storage/transfer/constants.py rename to src/oraclebmc/object_storage/transfer/constants.py diff --git a/oraclebmc/object_storage/transfer/internal/__init__.py b/src/oraclebmc/object_storage/transfer/internal/__init__.py similarity index 100% rename from oraclebmc/object_storage/transfer/internal/__init__.py rename to src/oraclebmc/object_storage/transfer/internal/__init__.py diff --git a/oraclebmc/object_storage/transfer/internal/buffered_part_reader.py b/src/oraclebmc/object_storage/transfer/internal/buffered_part_reader.py similarity index 100% rename from oraclebmc/object_storage/transfer/internal/buffered_part_reader.py rename to src/oraclebmc/object_storage/transfer/internal/buffered_part_reader.py diff --git a/oraclebmc/object_storage/transfer/internal/file_read_callback_stream.py b/src/oraclebmc/object_storage/transfer/internal/file_read_callback_stream.py similarity index 100% rename from oraclebmc/object_storage/transfer/internal/file_read_callback_stream.py rename to src/oraclebmc/object_storage/transfer/internal/file_read_callback_stream.py diff --git a/oraclebmc/object_storage/transfer/internal/multipart_object_assembler.py b/src/oraclebmc/object_storage/transfer/internal/multipart_object_assembler.py similarity index 100% rename from oraclebmc/object_storage/transfer/internal/multipart_object_assembler.py rename to src/oraclebmc/object_storage/transfer/internal/multipart_object_assembler.py diff --git a/oraclebmc/object_storage/transfer/upload_manager.py b/src/oraclebmc/object_storage/transfer/upload_manager.py similarity index 100% rename from oraclebmc/object_storage/transfer/upload_manager.py rename to src/oraclebmc/object_storage/transfer/upload_manager.py diff --git a/oraclebmc/regions.py b/src/oraclebmc/regions.py similarity index 100% rename from oraclebmc/regions.py rename to src/oraclebmc/regions.py diff --git a/oraclebmc/request.py b/src/oraclebmc/request.py similarity index 65% rename from oraclebmc/request.py rename to src/oraclebmc/request.py index bb0638cb75..98353a8fe2 100644 --- a/oraclebmc/request.py +++ b/src/oraclebmc/request.py @@ -24,9 +24,48 @@ def __init__(self, """ self.method = method + """ + The HTTP method + + :type: str + """ + self.url = url + """ + URL that will serve the request + + :type: str + """ + self.query_params = query_params + """ + Query parameters in the url + + :type: dict(str, str) + """ + self.header_params = header_params or {} + """ + Request header params + + :type: dict(str, str) + """ + self.body = body + """ + Request body + """ + self.response_type = response_type + """ + Response data type + + :type: str + """ + self.enforce_content_headers = enforce_content_headers + """ + Whether content headers should be added for PUT and POST requests when not present. Defaults to True. + + :type: bool + """ diff --git a/src/oraclebmc/response.py b/src/oraclebmc/response.py new file mode 100644 index 0000000000..d22a239825 --- /dev/null +++ b/src/oraclebmc/response.py @@ -0,0 +1,59 @@ +# coding: utf-8 +# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. + +from .constants import HEADER_NEXT_PAGE, HEADER_REQUEST_ID + + +class Response(object): + def __init__(self, status, headers, data, request): + self.status = status + """ + The HTTP status code for the Response + + :type: int + """ + + self.headers = headers + """ + The HTTP headers for the Response + + :type: :class:`requests.structures.CaseInsensitiveDict` + """ + + self.data = data + """ + The response data. The type of data depends on the request. + """ + + self.request = request + """ + The corresponding request for this response. + + :type: :class:`~oraclebmc.request.Request` + """ + + self.next_page = None + """ + The value of the `opc-next-page` response header. + + :type: str + """ + + self.request_id = None + """ + The ID of the request that generated this response. + + :type: str""" + + if self.headers is not None: + self.next_page = self.headers.get(HEADER_NEXT_PAGE) + self.request_id = self.headers.get(HEADER_REQUEST_ID) + + @property + def has_next_page(self): + """ + Gets a value representing whether or not there is a next page of results in a list Response. + + :rtype: bool + """ + return self.next_page is not None diff --git a/oraclebmc/signer.py b/src/oraclebmc/signer.py similarity index 100% rename from oraclebmc/signer.py rename to src/oraclebmc/signer.py diff --git a/oraclebmc/util.py b/src/oraclebmc/util.py similarity index 100% rename from oraclebmc/util.py rename to src/oraclebmc/util.py diff --git a/oraclebmc/version.py b/src/oraclebmc/version.py similarity index 100% rename from oraclebmc/version.py rename to src/oraclebmc/version.py diff --git a/oraclebmc/waiter.py b/src/oraclebmc/waiter.py similarity index 100% rename from oraclebmc/waiter.py rename to src/oraclebmc/waiter.py diff --git a/tests/integ/test_launch_instance_tutorial.py b/tests/integ/test_launch_instance_tutorial.py index 80579c3f41..8654ecab4a 100644 --- a/tests/integ/test_launch_instance_tutorial.py +++ b/tests/integ/test_launch_instance_tutorial.py @@ -186,9 +186,9 @@ def launch_instance(compute, compartment, test_id, availability_domain, subnet, request.availability_domain = availability_domain request.compartment_id = compartment request.display_name = 'pythonsdk_tutorial_instance_' + test_id - # ol7.1-base-0.0.1 - request.image_id = 'ocid1.image.oc1.phx.aaaaaaaa4wdx32cwjdjdasqyzatmvlxbef4673rs5y7cowvc3g3o7iwhmhfa' - request.shape = 'x5-2.36.256' + # Oracle-Linux-7.3-2017.03.03-0 + request.image_id = 'ocid1.image.oc1.phx.aaaaaaaaevkccuto7ja4yhahz6rguhqbuomimqsig6sgxd55hjomzepyeqda' + request.shape = 'VM.Standard1.2' request.subnet_id = subnet.id request.metadata = {'ssh_authorized_keys': public_key} response = compute.launch_instance(request) diff --git a/tox.ini b/tox.ini index 047f0e1463..2494091649 100644 --- a/tox.ini +++ b/tox.ini @@ -9,4 +9,4 @@ commands = [testenv:flake8] deps = flake8 -commands = flake8 oraclebmc docs tests examples +commands = flake8 src docs tests examples