From b60b87cb59f5f3e8b7ac77479f437182f446c22c Mon Sep 17 00:00:00 2001 From: Garth Bushell Date: Fri, 23 Mar 2018 11:06:23 +0000 Subject: [PATCH] Move volume provisioner to oci-go-sdk v1.0.0 (#71) * Move volume provisioner to oci-go-sdk v1.0.0 * Remove file system storage ref --- Gopkg.lock | 11 +- Gopkg.toml | 3 +- README.md | 2 - pkg/oci/client/client.go | 17 - pkg/provisioner/core/provisioner.go | 2 - pkg/provisioner/filestorage/filestorage.go | 114 - .../github.com/oracle/oci-go-sdk/CHANGELOG.md | 15 + .../oracle/oci-go-sdk/CONTRIBUTING.md | 4 +- .../github.com/oracle/oci-go-sdk/LICENSE.txt | 6 +- vendor/github.com/oracle/oci-go-sdk/Makefile | 9 +- vendor/github.com/oracle/oci-go-sdk/README.md | 152 +- .../oracle/oci-go-sdk/audit/audit_client.go | 173 +- .../oracle/oci-go-sdk/audit/audit_event.go | 125 +- .../oracle/oci-go-sdk/audit/configuration.go | 21 +- .../get_configuration_request_response.go | 28 +- .../audit/list_events_request_response.go | 76 +- .../audit/update_configuration_details.go | 21 +- .../update_configuration_request_response.go | 40 +- .../oracle/oci-go-sdk/cmd/genver/main.go | 4 +- .../oci-go-sdk/cmd/genver/version_template.go | 3 +- .../common/auth/certificate_retriever.go | 2 + .../common/auth/certificate_retriever_test.go | 2 + .../oci-go-sdk/common/auth/configuration.go | 2 + .../common/auth/federation_client.go | 3 + .../common/auth/federation_client_test.go | 2 + .../auth/instance_principal_key_provider.go | 2 + .../instance_principal_key_provider_test.go | 2 + .../oracle/oci-go-sdk/common/auth/jwt.go | 2 + .../oracle/oci-go-sdk/common/auth/jwt_test.go | 2 + .../oracle/oci-go-sdk/common/auth/utils.go | 2 + .../oracle/oci-go-sdk/common/client.go | 8 +- .../oracle/oci-go-sdk/common/client_test.go | 2 + .../oracle/oci-go-sdk/common/common.go | 3 +- .../oracle/oci-go-sdk/common/configuration.go | 3 +- .../oci-go-sdk/common/configuration_test.go | 2 + .../oracle/oci-go-sdk/common/errors.go | 5 +- .../oracle/oci-go-sdk/common/helpers.go | 3 +- .../oracle/oci-go-sdk/common/helpers_test.go | 2 + .../oracle/oci-go-sdk/common/http.go | 3 +- .../oracle/oci-go-sdk/common/http_signer.go | 13 +- .../oci-go-sdk/common/http_signer_test.go | 22 + .../oracle/oci-go-sdk/common/http_test.go | 2 + .../oracle/oci-go-sdk/common/log.go | 3 +- .../oracle/oci-go-sdk/common/version.go | 5 +- ...pe_compatibility_entry_request_response.go | 45 - .../core/attach_boot_volume_details.go | 33 +- .../attach_boot_volume_request_response.go | 52 +- .../core/attach_i_scsi_volume_details.go | 86 +- .../oci-go-sdk/core/attach_vnic_details.go | 45 +- .../core/attach_vnic_request_response.go | 52 +- .../oci-go-sdk/core/attach_volume_details.go | 117 +- .../core/attach_volume_request_response.go | 52 +- .../oracle/oci-go-sdk/core/boot_volume.go | 122 +- .../oci-go-sdk/core/boot_volume_attachment.go | 102 +- ...virtual_circuit_public_prefixes_details.go | 21 +- ...ircuit_public_prefixes_request_response.go | 30 +- ...virtual_circuit_public_prefixes_details.go | 21 +- ...ircuit_public_prefixes_request_response.go | 30 +- .../core/capture_console_history_details.go | 27 +- ...apture_console_history_request_response.go | 52 +- .../connect_local_peering_gateways_details.go | 21 +- ...local_peering_gateways_request_response.go | 36 +- .../oracle/oci-go-sdk/core/console_history.go | 100 +- .../core/core_blockstorage_client.go | 615 ++- .../oci-go-sdk/core/core_compute_client.go | 1786 +++---- .../core/core_virtualnetwork_client.go | 4325 ++++++++--------- .../github.com/oracle/oci-go-sdk/core/cpe.go | 59 +- .../oci-go-sdk/core/create_cpe_details.go | 35 +- .../core/create_cpe_request_response.go | 52 +- .../core/create_cross_connect_details.go | 79 +- .../create_cross_connect_group_details.go | 29 +- ...te_cross_connect_group_request_response.go | 52 +- .../create_cross_connect_request_response.go | 52 +- .../oci-go-sdk/core/create_dhcp_details.go | 90 +- .../create_dhcp_options_request_response.go | 52 +- .../core/create_drg_attachment_details.go | 33 +- .../create_drg_attachment_request_response.go | 52 +- .../oci-go-sdk/core/create_drg_details.go | 27 +- .../core/create_drg_request_response.go | 52 +- ...ate_i_p_sec_connection_request_response.go | 52 +- .../oci-go-sdk/core/create_image_details.go | 90 +- .../core/create_image_request_response.go | 52 +- ...ate_instance_console_connection_details.go | 29 +- ...nce_console_connection_request_response.go | 52 +- .../core/create_internet_gateway_details.go | 37 +- ...reate_internet_gateway_request_response.go | 52 +- .../core/create_ip_sec_connection_details.go | 45 +- .../create_local_peering_gateway_details.go | 35 +- ..._local_peering_gateway_request_response.go | 52 +- .../core/create_private_ip_details.go | 65 +- .../create_private_ip_request_response.go | 52 +- .../core/create_route_table_details.go | 37 +- .../create_route_table_request_response.go | 52 +- .../core/create_security_list_details.go | 41 +- .../create_security_list_request_response.go | 52 +- .../oci-go-sdk/core/create_subnet_details.go | 121 +- .../core/create_subnet_request_response.go | 52 +- .../oci-go-sdk/core/create_vcn_details.go | 63 +- .../core/create_vcn_request_response.go | 52 +- .../core/create_virtual_circuit_details.go | 146 +- ...e_virtual_circuit_public_prefix_details.go | 23 +- ...create_virtual_circuit_request_response.go | 52 +- .../oci-go-sdk/core/create_vnic_details.go | 139 +- .../core/create_volume_backup_details.go | 29 +- .../create_volume_backup_request_response.go | 52 +- .../oci-go-sdk/core/create_volume_details.go | 126 +- .../core/create_volume_request_response.go | 52 +- .../oracle/oci-go-sdk/core/cross_connect.go | 138 +- .../oci-go-sdk/core/cross_connect_group.go | 104 +- .../oci-go-sdk/core/cross_connect_location.go | 29 +- .../oci-go-sdk/core/cross_connect_mapping.go | 121 +- .../core/cross_connect_port_speed_shape.go | 31 +- .../oci-go-sdk/core/cross_connect_status.go | 111 +- .../delete_boot_volume_request_response.go | 40 +- ...delete_console_history_request_response.go | 40 +- .../core/delete_cpe_request_response.go | 40 +- ...te_cross_connect_group_request_response.go | 40 +- .../delete_cross_connect_request_response.go | 40 +- .../delete_dhcp_options_request_response.go | 40 +- .../delete_drg_attachment_request_response.go | 40 +- .../core/delete_drg_request_response.go | 40 +- ...ete_i_p_sec_connection_request_response.go | 40 +- .../core/delete_image_request_response.go | 40 +- ...nce_console_connection_request_response.go | 40 +- ...elete_internet_gateway_request_response.go | 40 +- ..._local_peering_gateway_request_response.go | 40 +- .../delete_private_ip_request_response.go | 40 +- .../delete_route_table_request_response.go | 40 +- .../delete_security_list_request_response.go | 40 +- .../core/delete_subnet_request_response.go | 40 +- .../core/delete_vcn_request_response.go | 40 +- ...e_virtual_circuit_public_prefix_details.go | 21 +- ...delete_virtual_circuit_request_response.go | 40 +- .../delete_volume_backup_request_response.go | 40 +- .../core/delete_volume_request_response.go | 40 +- .../detach_boot_volume_request_response.go | 40 +- .../core/detach_vnic_request_response.go | 40 +- .../core/detach_volume_request_response.go | 40 +- .../oracle/oci-go-sdk/core/dhcp_dns_option.go | 100 +- .../oracle/oci-go-sdk/core/dhcp_option.go | 80 +- .../oracle/oci-go-sdk/core/dhcp_options.go | 177 +- .../core/dhcp_search_domain_option.go | 63 +- .../github.com/oracle/oci-go-sdk/core/drg.go | 94 +- .../oracle/oci-go-sdk/core/drg_attachment.go | 94 +- .../oci-go-sdk/core/egress_security_rule.go | 85 +- .../oci-go-sdk/core/export_image_details.go | 84 +- .../core/export_image_request_response.go | 68 +- ..._image_via_object_storage_tuple_details.go | 53 +- ...rt_image_via_object_storage_uri_details.go | 43 +- .../core/fast_connect_provider_service.go | 171 +- ...boot_volume_attachment_request_response.go | 38 +- .../core/get_boot_volume_request_response.go | 38 +- ...onsole_history_content_request_response.go | 50 +- .../get_console_history_request_response.go | 38 +- .../core/get_cpe_request_response.go | 38 +- ...et_cross_connect_group_request_response.go | 38 +- ...ct_letter_of_authority_request_response.go | 34 +- .../get_cross_connect_request_response.go | 38 +- ...t_cross_connect_status_request_response.go | 34 +- .../core/get_dhcp_options_request_response.go | 38 +- .../get_drg_attachment_request_response.go | 38 +- .../core/get_drg_request_response.go | 38 +- ...nnect_provider_service_request_response.go | 34 +- ...nnection_device_config_request_response.go | 38 +- ...nnection_device_status_request_response.go | 38 +- ...get_i_p_sec_connection_request_response.go | 38 +- .../core/get_image_request_response.go | 38 +- ...nce_console_connection_request_response.go | 34 +- .../core/get_instance_request_response.go | 38 +- .../get_internet_gateway_request_response.go | 38 +- ..._local_peering_gateway_request_response.go | 38 +- .../core/get_private_ip_request_response.go | 38 +- .../core/get_route_table_request_response.go | 38 +- .../get_security_list_request_response.go | 38 +- .../core/get_subnet_request_response.go | 38 +- .../core/get_vcn_request_response.go | 38 +- .../get_virtual_circuit_request_response.go | 38 +- .../get_vnic_attachment_request_response.go | 38 +- .../core/get_vnic_request_response.go | 38 +- .../get_volume_attachment_request_response.go | 38 +- .../get_volume_backup_request_response.go | 38 +- .../core/get_volume_request_response.go | 38 +- ...ce_initial_credentials_request_response.go | 34 +- .../core/i_scsi_volume_attachment.go | 203 +- .../oracle/oci-go-sdk/core/icmp_options.go | 39 +- .../oracle/oci-go-sdk/core/image.go | 130 +- .../core/image_shape_compatibility_entry.go | 34 - .../oci-go-sdk/core/image_source_details.go | 72 +- ...source_via_object_storage_tuple_details.go | 53 +- ...e_source_via_object_storage_uri_details.go | 41 +- .../oci-go-sdk/core/ingress_security_rule.go | 85 +- .../oracle/oci-go-sdk/core/instance.go | 287 +- .../core/instance_action_request_response.go | 100 +- .../core/instance_console_connection.go | 96 +- .../oci-go-sdk/core/instance_credentials.go | 27 +- .../core/instance_source_details.go | 72 +- ...instance_source_via_boot_volume_details.go | 41 +- .../core/instance_source_via_image_details.go | 41 +- .../oci-go-sdk/core/internet_gateway.go | 104 +- .../oci-go-sdk/core/ip_sec_connection.go | 114 +- .../core/ip_sec_connection_device_config.go | 37 +- .../core/ip_sec_connection_device_status.go | 39 +- .../core/launch_instance_details.go | 312 +- .../core/launch_instance_request_response.go | 55 +- .../oci-go-sdk/core/letter_of_authority.go | 84 +- ...oot_volume_attachments_request_response.go | 76 +- .../list_boot_volumes_request_response.go | 64 +- ...list_console_histories_request_response.go | 150 +- .../core/list_cpes_request_response.go | 56 +- ...t_cross_connect_groups_request_response.go | 142 +- ...ross_connect_locations_request_response.go | 56 +- .../list_cross_connects_request_response.go | 148 +- ...nect_port_speed_shapes_request_response.go | 56 +- .../list_dhcp_options_request_response.go | 148 +- .../list_drg_attachments_request_response.go | 68 +- .../core/list_drgs_request_response.go | 56 +- ...nect_provider_services_request_response.go | 56 +- ...rcuit_bandwidth_shapes_request_response.go | 56 +- ...st_i_p_sec_connections_request_response.go | 68 +- .../core/list_images_request_response.go | 158 +- ...ce_console_connections_request_response.go | 62 +- .../core/list_instances_request_response.go | 150 +- ...list_internet_gateways_request_response.go | 148 +- ...local_peering_gateways_request_response.go | 62 +- .../core/list_private_ips_request_response.go | 70 +- .../list_route_tables_request_response.go | 148 +- .../list_security_lists_request_response.go | 148 +- .../core/list_shapes_request_response.go | 70 +- .../core/list_subnets_request_response.go | 148 +- .../core/list_vcns_request_response.go | 142 +- ...rcuit_bandwidth_shapes_request_response.go | 56 +- ...ircuit_public_prefixes_request_response.go | 42 +- .../list_virtual_circuits_request_response.go | 142 +- .../list_vnic_attachments_request_response.go | 76 +- ...ist_volume_attachments_request_response.go | 76 +- .../list_volume_backups_request_response.go | 148 +- .../core/list_volumes_request_response.go | 150 +- .../oci-go-sdk/core/local_peering_gateway.go | 175 +- .../oracle/oci-go-sdk/core/port_range.go | 29 +- .../oracle/oci-go-sdk/core/private_ip.go | 147 +- ...pe_compatibility_entry_request_response.go | 42 - .../oracle/oci-go-sdk/core/route_rule.go | 37 +- .../oracle/oci-go-sdk/core/route_table.go | 102 +- .../oracle/oci-go-sdk/core/security_list.go | 118 +- .../oracle/oci-go-sdk/core/shape.go | 25 +- .../oracle/oci-go-sdk/core/subnet.go | 212 +- .../oracle/oci-go-sdk/core/tcp_options.go | 33 +- .../terminate_instance_request_response.go | 48 +- .../oracle/oci-go-sdk/core/tunnel_config.go | 39 +- .../oracle/oci-go-sdk/core/tunnel_status.go | 72 +- .../oracle/oci-go-sdk/core/udp_options.go | 33 +- .../core/update_boot_volume_details.go | 23 +- .../update_boot_volume_request_response.go | 54 +- .../core/update_console_history_details.go | 21 +- ...update_console_history_request_response.go | 54 +- .../oci-go-sdk/core/update_cpe_details.go | 23 +- .../core/update_cpe_request_response.go | 54 +- .../core/update_cross_connect_details.go | 35 +- .../update_cross_connect_group_details.go | 23 +- ...te_cross_connect_group_request_response.go | 54 +- .../update_cross_connect_request_response.go | 54 +- .../oci-go-sdk/core/update_dhcp_details.go | 72 +- .../update_dhcp_options_request_response.go | 54 +- .../core/update_drg_attachment_details.go | 23 +- .../update_drg_attachment_request_response.go | 54 +- .../oci-go-sdk/core/update_drg_details.go | 23 +- .../core/update_drg_request_response.go | 54 +- ...ate_i_p_sec_connection_request_response.go | 54 +- .../oci-go-sdk/core/update_image_details.go | 25 +- .../core/update_image_request_response.go | 68 +- .../core/update_instance_details.go | 25 +- .../core/update_instance_request_response.go | 68 +- .../core/update_internet_gateway_details.go | 29 +- ...pdate_internet_gateway_request_response.go | 54 +- .../core/update_ip_sec_connection_details.go | 23 +- .../update_local_peering_gateway_details.go | 23 +- ..._local_peering_gateway_request_response.go | 54 +- .../core/update_private_ip_details.go | 53 +- .../update_private_ip_request_response.go | 54 +- .../core/update_route_table_details.go | 29 +- .../update_route_table_request_response.go | 54 +- .../core/update_security_list_details.go | 35 +- .../update_security_list_request_response.go | 54 +- .../oci-go-sdk/core/update_subnet_details.go | 23 +- .../core/update_subnet_request_response.go | 54 +- .../oci-go-sdk/core/update_vcn_details.go | 23 +- .../core/update_vcn_request_response.go | 54 +- .../core/update_virtual_circuit_details.go | 130 +- ...update_virtual_circuit_request_response.go | 54 +- .../oci-go-sdk/core/update_vnic_details.go | 63 +- .../core/update_vnic_request_response.go | 54 +- .../core/update_volume_backup_details.go | 23 +- .../update_volume_backup_request_response.go | 48 +- .../oci-go-sdk/core/update_volume_details.go | 23 +- .../core/update_volume_request_response.go | 54 +- .../github.com/oracle/oci-go-sdk/core/vcn.go | 152 +- .../oracle/oci-go-sdk/core/virtual_circuit.go | 391 +- .../core/virtual_circuit_bandwidth_shape.go | 31 +- .../core/virtual_circuit_public_prefix.go | 66 +- .../github.com/oracle/oci-go-sdk/core/vnic.go | 186 +- .../oracle/oci-go-sdk/core/vnic_attachment.go | 134 +- .../oracle/oci-go-sdk/core/volume.go | 201 +- .../oci-go-sdk/core/volume_attachment.go | 261 +- .../oracle/oci-go-sdk/core/volume_backup.go | 142 +- .../oci-go-sdk/core/volume_source_details.go | 72 +- ...olume_source_from_volume_backup_details.go | 41 +- .../core/volume_source_from_volume_details.go | 41 +- .../oracle/oci-go-sdk/database/backup.go | 141 +- .../oci-go-sdk/database/backup_summary.go | 141 +- .../database/create_backup_details.go | 27 +- .../create_backup_request_response.go | 52 +- .../create_data_guard_association_details.go | 219 +- ...data_guard_association_request_response.go | 58 +- ...sociation_to_existing_db_system_details.go | 116 +- .../database/create_database_details.go | 82 +- .../create_database_from_backup_details.go | 33 +- .../database/create_db_home_details.go | 30 +- .../create_db_home_request_response.go | 52 +- .../create_db_home_with_db_system_id_base.go | 108 +- ...reate_db_home_with_db_system_id_details.go | 75 +- ...e_with_db_system_id_from_backup_details.go | 69 +- .../database/data_guard_association.go | 288 +- .../data_guard_association_summary.go | 288 +- .../oracle/oci-go-sdk/database/database.go | 140 +- .../oci-go-sdk/database/database_client.go | 1597 +++--- .../oci-go-sdk/database/database_summary.go | 140 +- .../oci-go-sdk/database/db_backup_config.go | 23 +- .../oracle/oci-go-sdk/database/db_home.go | 114 +- .../oci-go-sdk/database/db_home_summary.go | 114 +- .../oracle/oci-go-sdk/database/db_node.go | 116 +- .../db_node_action_request_response.go | 100 +- .../oci-go-sdk/database/db_node_summary.go | 116 +- .../oracle/oci-go-sdk/database/db_system.go | 359 +- .../database/db_system_shape_summary.go | 41 +- .../oci-go-sdk/database/db_system_summary.go | 359 +- .../oci-go-sdk/database/db_version_summary.go | 29 +- .../delete_backup_request_response.go | 40 +- .../delete_db_home_request_response.go | 46 +- ...failover_data_guard_association_details.go | 21 +- ...data_guard_association_request_response.go | 60 +- .../database/get_backup_request_response.go | 38 +- ...data_guard_association_request_response.go | 44 +- .../database/get_database_request_response.go | 38 +- ...me_patch_history_entry_request_response.go | 44 +- .../get_db_home_patch_request_response.go | 40 +- .../database/get_db_home_request_response.go | 38 +- .../database/get_db_node_request_response.go | 38 +- ...em_patch_history_entry_request_response.go | 44 +- .../get_db_system_patch_request_response.go | 40 +- .../get_db_system_request_response.go | 38 +- .../database/launch_db_system_details.go | 250 +- .../launch_db_system_request_response.go | 52 +- .../database/list_backups_request_response.go | 62 +- ...ata_guard_associations_request_response.go | 56 +- .../list_databases_request_response.go | 62 +- ..._patch_history_entries_request_response.go | 56 +- .../list_db_home_patches_request_response.go | 56 +- .../list_db_homes_request_response.go | 62 +- .../list_db_nodes_request_response.go | 62 +- ..._patch_history_entries_request_response.go | 56 +- ...list_db_system_patches_request_response.go | 56 +- .../list_db_system_shapes_request_response.go | 62 +- .../list_db_systems_request_response.go | 56 +- .../list_db_versions_request_response.go | 62 +- .../oracle/oci-go-sdk/database/patch.go | 152 +- .../oci-go-sdk/database/patch_details.go | 54 +- .../database/patch_history_entry.go | 111 +- .../database/patch_history_entry_summary.go | 111 +- .../oci-go-sdk/database/patch_summary.go | 152 +- ...einstate_data_guard_association_details.go | 21 +- ...data_guard_association_request_response.go | 60 +- .../database/restore_database_details.go | 33 +- .../restore_database_request_response.go | 54 +- ...itchover_data_guard_association_details.go | 21 +- ...data_guard_association_request_response.go | 60 +- .../terminate_db_system_request_response.go | 40 +- .../database/update_database_details.go | 18 +- .../update_database_request_response.go | 54 +- .../database/update_db_home_details.go | 18 +- .../update_db_home_request_response.go | 54 +- .../database/update_db_system_details.go | 35 +- .../update_db_system_request_response.go | 54 +- .../oracle/oci-go-sdk/example/.env.sample | 11 + .../oci-go-sdk/example/example_audit_test.go | 36 + .../example/example_core_pagination_test.go | 51 + .../oci-go-sdk/example/example_core_test.go | 429 ++ .../example/example_identity_test.go | 41 + .../example/example_loadbalancer_test.go | 188 + .../example/example_objectstorage_test.go | 129 + .../example/example_rawrequest_test.go | 61 + .../oracle/oci-go-sdk/example/example_test.go | 23 + .../oracle/oci-go-sdk/example/helpers/args.go | 46 + .../oci-go-sdk/example/helpers/helper.go | 111 + .../oci-go-sdk/ffsw/create_export_details.go | 39 - .../ffsw/create_export_request_response.go | 53 - .../ffsw/create_file_system_details.go | 40 - .../create_file_system_request_response.go | 53 - .../ffsw/create_mount_target_details.go | 62 - .../create_mount_target_request_response.go | 53 - .../ffsw/create_snapshot_details.go | 38 - .../ffsw/create_snapshot_request_response.go | 53 - .../ffsw/delete_export_request_response.go | 47 - .../delete_file_system_request_response.go | 47 - .../delete_mount_target_request_response.go | 47 - .../ffsw/delete_snapshot_request_response.go | 47 - .../oracle/oci-go-sdk/ffsw/export.go | 101 - .../oracle/oci-go-sdk/ffsw/export_set.go | 106 - .../oci-go-sdk/ffsw/export_set_summary.go | 83 - .../oracle/oci-go-sdk/ffsw/export_summary.go | 79 - .../ffsw/ffsw_filestorage_client.go | 506 -- .../oracle/oci-go-sdk/ffsw/file_system.go | 95 - .../oci-go-sdk/ffsw/file_system_summary.go | 87 - .../ffsw/get_export_request_response.go | 46 - .../ffsw/get_export_set_request_response.go | 46 - .../ffsw/get_file_system_request_response.go | 46 - .../ffsw/get_mount_target_request_response.go | 46 - .../ffsw/get_snapshot_request_response.go | 46 - .../ffsw/list_export_sets_request_response.go | 172 - .../ffsw/list_exports_request_response.go | 173 - .../list_file_systems_request_response.go | 172 - .../ffsw/list_lock_owners_request_response.go | 60 - .../list_mount_targets_request_response.go | 178 - .../ffsw/list_snapshots_request_response.go | 168 - .../oracle/oci-go-sdk/ffsw/lock_owner.go | 40 - .../oracle/oci-go-sdk/ffsw/mount_target.go | 97 - .../oci-go-sdk/ffsw/mount_target_summary.go | 92 - .../oracle/oci-go-sdk/ffsw/snapshot.go | 76 - .../oci-go-sdk/ffsw/snapshot_summary.go | 76 - .../ffsw/update_export_set_details.go | 55 - .../update_export_set_request_response.go | 56 - .../ffsw/update_file_system_details.go | 33 - .../update_file_system_request_response.go | 56 - .../ffsw/update_mount_target_details.go | 33 - .../update_mount_target_request_response.go | 56 - .../identity/add_user_to_group_details.go | 27 +- .../add_user_to_group_request_response.go | 52 +- .../oracle/oci-go-sdk/identity/api_key.go | 110 +- .../identity/availability_domain.go | 31 +- .../oracle/oci-go-sdk/identity/compartment.go | 126 +- .../identity/create_api_key_details.go | 21 +- .../identity/create_compartment_details.go | 35 +- .../create_compartment_request_response.go | 52 +- .../create_customer_secret_key_details.go | 21 +- ...te_customer_secret_key_request_response.go | 58 +- .../identity/create_group_details.go | 35 +- .../identity/create_group_request_response.go | 52 +- .../create_identity_provider_details.go | 173 +- ...eate_identity_provider_request_response.go | 52 +- .../create_idp_group_mapping_details.go | 29 +- ...eate_idp_group_mapping_request_response.go | 58 +- ..._or_reset_u_i_password_request_response.go | 52 +- .../identity/create_policy_details.go | 51 +- .../create_policy_request_response.go | 52 +- .../create_region_subscription_details.go | 31 +- ...te_region_subscription_request_response.go | 54 +- .../create_saml2_identity_provider_details.go | 119 +- .../identity/create_swift_password_details.go | 21 +- .../create_swift_password_request_response.go | 58 +- .../identity/create_user_details.go | 35 +- .../identity/create_user_request_response.go | 52 +- .../identity/customer_secret_key.go | 114 +- .../identity/customer_secret_key_summary.go | 102 +- .../delete_api_key_request_response.go | 46 +- ...te_customer_secret_key_request_response.go | 46 +- .../identity/delete_group_request_response.go | 40 +- ...lete_identity_provider_request_response.go | 40 +- ...lete_idp_group_mapping_request_response.go | 46 +- .../delete_policy_request_response.go | 40 +- .../delete_swift_password_request_response.go | 46 +- .../identity/delete_user_request_response.go | 40 +- .../oci-go-sdk/identity/fault_domain.go | 37 +- .../get_compartment_request_response.go | 38 +- .../identity/get_group_request_response.go | 38 +- .../get_identity_provider_request_response.go | 38 +- .../get_idp_group_mapping_request_response.go | 44 +- .../identity/get_policy_request_response.go | 38 +- .../identity/get_tenancy_request_response.go | 34 +- ..._user_group_membership_request_response.go | 38 +- .../identity/get_user_request_response.go | 38 +- .../oracle/oci-go-sdk/identity/group.go | 118 +- .../oci-go-sdk/identity/identity_client.go | 2262 ++++----- .../oci-go-sdk/identity/identity_provider.go | 289 +- .../oci-go-sdk/identity/idp_group_mapping.go | 118 +- .../list_api_keys_request_response.go | 42 +- ...t_availability_domains_request_response.go | 42 +- .../list_compartments_request_response.go | 54 +- ...t_customer_secret_keys_request_response.go | 42 +- .../list_fault_domains_request_response.go | 40 +- .../identity/list_groups_request_response.go | 54 +- ...ist_identity_providers_request_response.go | 80 +- ...ist_idp_group_mappings_request_response.go | 54 +- .../list_policies_request_response.go | 54 +- ...t_region_subscriptions_request_response.go | 34 +- .../identity/list_regions_request_response.go | 28 +- .../list_swift_passwords_request_response.go | 42 +- ...user_group_memberships_request_response.go | 66 +- .../identity/list_users_request_response.go | 54 +- .../oracle/oci-go-sdk/identity/policy.go | 132 +- .../oracle/oci-go-sdk/identity/region.go | 53 +- .../identity/region_subscription.go | 86 +- ...remove_user_from_group_request_response.go | 40 +- .../identity/saml2_identity_provider.go | 207 +- .../oci-go-sdk/identity/swift_password.go | 116 +- .../oracle/oci-go-sdk/identity/tenancy.go | 57 +- .../oracle/oci-go-sdk/identity/ui_password.go | 88 +- .../identity/update_compartment_details.go | 27 +- .../update_compartment_request_response.go | 54 +- .../update_customer_secret_key_details.go | 21 +- ...te_customer_secret_key_request_response.go | 60 +- .../identity/update_group_details.go | 21 +- .../identity/update_group_request_response.go | 54 +- .../update_identity_provider_details.go | 83 +- ...date_identity_provider_request_response.go | 54 +- .../update_idp_group_mapping_details.go | 27 +- ...date_idp_group_mapping_request_response.go | 60 +- .../identity/update_policy_details.go | 41 +- .../update_policy_request_response.go | 54 +- .../update_saml2_identity_provider_details.go | 66 +- .../identity/update_state_details.go | 21 +- .../identity/update_swift_password_details.go | 21 +- .../update_swift_password_request_response.go | 60 +- .../identity/update_user_details.go | 21 +- .../identity/update_user_request_response.go | 54 +- .../update_user_state_request_response.go | 54 +- .../upload_api_key_request_response.go | 58 +- .../oracle/oci-go-sdk/identity/user.go | 132 +- .../identity/user_group_membership.go | 98 +- .../core_blockstorage_client_integ_test.go | 225 - .../core_compute_client_integ_test.go | 444 -- .../core_virtualnetwork_client_integ_test.go | 905 ---- .../integtest/database_client_integ_test.go | 466 -- .../integtest/identity_client_integ_test.go | 929 ---- .../loadbalancer_client_integ_test.go | 353 -- .../objectstorage_client_integ_test.go | 401 -- .../integtest/resources/test_rsa.pub | 1 - .../integtest/sampleFederationMetadata.xml | 1 - .../oci-go-sdk/integtest/test_helpers.go | 304 -- .../integtest/test_service_deps_helpers.go | 942 ---- .../oracle/oci-go-sdk/loadbalancer/backend.go | 87 +- .../loadbalancer/backend_details.go | 77 +- .../oci-go-sdk/loadbalancer/backend_health.go | 64 +- .../oci-go-sdk/loadbalancer/backend_set.go | 52 +- .../loadbalancer/backend_set_details.go | 42 +- .../loadbalancer/backend_set_health.go | 104 +- .../oci-go-sdk/loadbalancer/certificate.go | 75 +- .../loadbalancer/certificate_details.go | 101 +- .../loadbalancer/create_backend_details.go | 81 +- .../create_backend_request_response.go | 70 +- .../create_backend_set_details.go | 52 +- .../create_backend_set_request_response.go | 62 +- .../create_certificate_details.go | 101 +- .../create_certificate_request_response.go | 62 +- .../loadbalancer/create_listener_details.go | 62 +- .../create_listener_request_response.go | 62 +- .../create_load_balancer_details.go | 90 +- .../create_load_balancer_request_response.go | 56 +- .../create_path_route_set_details.go | 34 - .../create_path_route_set_request_response.go | 56 - .../delete_backend_request_response.go | 58 +- .../delete_backend_set_request_response.go | 50 +- .../delete_certificate_request_response.go | 50 +- .../delete_listener_request_response.go | 50 +- .../delete_load_balancer_request_response.go | 42 +- .../delete_path_route_set_request_response.go | 50 - .../get_backend_health_request_response.go | 58 +- .../get_backend_request_response.go | 58 +- ...get_backend_set_health_request_response.go | 50 +- .../get_backend_set_request_response.go | 50 +- .../get_health_checker_request_response.go | 50 +- ...t_load_balancer_health_request_response.go | 42 +- .../get_load_balancer_request_response.go | 42 +- .../get_path_route_set_request_response.go | 50 - .../get_work_request_request_response.go | 42 +- .../loadbalancer/health_check_result.go | 90 +- .../oci-go-sdk/loadbalancer/health_checker.go | 83 +- .../loadbalancer/health_checker_details.go | 79 +- .../oci-go-sdk/loadbalancer/ip_address.go | 33 +- .../list_backend_sets_request_response.go | 42 +- .../list_backends_request_response.go | 50 +- .../list_certificates_request_response.go | 42 +- ..._load_balancer_healths_request_response.go | 66 +- .../list_load_balancers_request_response.go | 146 +- .../list_path_route_sets_request_response.go | 46 - .../list_policies_request_response.go | 66 +- .../list_protocols_request_response.go | 66 +- .../list_shapes_request_response.go | 66 +- .../list_work_requests_request_response.go | 66 +- .../oci-go-sdk/loadbalancer/listener.go | 60 +- .../loadbalancer/listener_details.go | 50 +- .../oci-go-sdk/loadbalancer/load_balancer.go | 160 +- .../loadbalancer/load_balancer_health.go | 112 +- .../load_balancer_health_summary.go | 76 +- .../loadbalancer/load_balancer_policy.go | 25 +- .../loadbalancer/load_balancer_protocol.go | 21 +- .../loadbalancer/load_balancer_shape.go | 27 +- .../loadbalancer/loadbalancer_client.go | 1493 +++--- .../loadbalancer/path_match_type.go | 61 - .../oci-go-sdk/loadbalancer/path_route.go | 37 - .../oci-go-sdk/loadbalancer/path_route_set.go | 34 - .../loadbalancer/path_route_set_details.go | 30 - ...ssion_persistence_configuration_details.go | 47 +- .../loadbalancer/ssl_configuration.go | 45 +- .../loadbalancer/ssl_configuration_details.go | 43 +- .../loadbalancer/update_backend_details.go | 61 +- .../update_backend_request_response.go | 78 +- .../update_backend_set_details.go | 42 +- .../update_backend_set_request_response.go | 70 +- .../update_health_checker_details.go | 77 +- .../update_health_checker_request_response.go | 70 +- .../loadbalancer/update_listener_details.go | 50 +- .../update_listener_request_response.go | 70 +- .../update_load_balancer_details.go | 25 +- .../update_load_balancer_request_response.go | 62 +- .../update_path_route_set_details.go | 30 - .../update_path_route_set_request_response.go | 60 - .../oci-go-sdk/loadbalancer/work_request.go | 115 +- .../loadbalancer/work_request_error.go | 47 +- ...abort_multipart_upload_request_response.go | 62 +- .../oracle/oci-go-sdk/objectstorage/bucket.go | 96 +- .../objectstorage/bucket_summary.go | 51 +- .../commit_multipart_upload_details.go | 33 +- .../commit_multipart_upload_part_details.go | 31 +- ...ommit_multipart_upload_request_response.go | 110 +- .../objectstorage/create_bucket_details.go | 74 +- .../create_bucket_request_response.go | 64 +- .../create_multipart_upload_details.go | 47 +- ...reate_multipart_upload_request_response.go | 82 +- ...create_preauthenticated_request_details.go | 72 +- ...eauthenticated_request_request_response.go | 58 +- .../delete_bucket_request_response.go | 56 +- .../delete_object_request_response.go | 68 +- ...eauthenticated_request_request_response.go | 56 +- .../get_bucket_request_response.go | 93 +- .../get_namespace_request_response.go | 28 +- .../get_object_request_response.go | 175 +- ...eauthenticated_request_request_response.go | 60 +- .../head_bucket_request_response.go | 87 +- .../head_object_request_response.go | 153 +- .../list_buckets_request_response.go | 76 +- ...multipart_upload_parts_request_response.go | 92 +- ...list_multipart_uploads_request_response.go | 78 +- .../oci-go-sdk/objectstorage/list_objects.go | 39 +- .../list_objects_request_response.go | 102 +- ...authenticated_requests_request_response.go | 84 +- .../objectstorage/multipart_upload.go | 45 +- .../multipart_upload_part_summary.go | 41 +- .../objectstorage/object_summary.go | 41 +- .../objectstorage/objectstorage_client.go | 898 ++-- .../objectstorage/preauthenticated_request.go | 92 +- .../preauthenticated_request_summary.go | 86 +- .../put_object_request_response.go | 142 +- .../objectstorage/update_bucket_details.go | 72 +- .../update_bucket_request_response.go | 72 +- .../upload_part_request_response.go | 122 +- vendor/github.com/oracle/oci-go-sdk/oci.go | 231 +- 655 files changed, 23944 insertions(+), 36197 deletions(-) delete mode 100644 pkg/provisioner/filestorage/filestorage.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/CHANGELOG.md delete mode 100644 vendor/github.com/oracle/oci-go-sdk/core/add_image_shape_compatibility_entry_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/core/image_shape_compatibility_entry.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/core/remove_image_shape_compatibility_entry_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/.env.sample create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/example_audit_test.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/example_core_pagination_test.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/example_core_test.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/example_identity_test.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/example_loadbalancer_test.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/example_objectstorage_test.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/example_rawrequest_test.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/example_test.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/helpers/args.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/helpers/helper.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/create_export_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/create_export_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/create_file_system_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/create_file_system_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/create_mount_target_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/create_mount_target_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/create_snapshot_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/create_snapshot_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/delete_export_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/delete_file_system_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/delete_mount_target_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/delete_snapshot_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/export.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/export_set.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/export_set_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/export_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/ffsw_filestorage_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/file_system.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/file_system_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/get_export_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/get_export_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/get_file_system_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/get_mount_target_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/get_snapshot_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/list_export_sets_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/list_exports_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/list_file_systems_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/list_lock_owners_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/list_mount_targets_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/list_snapshots_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/lock_owner.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/mount_target.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/mount_target_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/snapshot.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/snapshot_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/update_export_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/update_export_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/update_file_system_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/update_file_system_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/update_mount_target_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/ffsw/update_mount_target_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/integtest/core_blockstorage_client_integ_test.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/integtest/core_compute_client_integ_test.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/integtest/core_virtualnetwork_client_integ_test.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/integtest/database_client_integ_test.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/integtest/identity_client_integ_test.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/integtest/loadbalancer_client_integ_test.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/integtest/objectstorage_client_integ_test.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/integtest/resources/test_rsa.pub delete mode 100644 vendor/github.com/oracle/oci-go-sdk/integtest/sampleFederationMetadata.xml delete mode 100644 vendor/github.com/oracle/oci-go-sdk/integtest/test_helpers.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/integtest/test_service_deps_helpers.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_path_route_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_path_route_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_path_route_sets_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_match_type.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_request_response.go diff --git a/Gopkg.lock b/Gopkg.lock index db1a78ca8..350d632f8 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -107,13 +107,14 @@ revision = "d5b7844b561a7bc640052f1b935f7b800330d7e0" [[projects]] - branch = "master" name = "github.com/oracle/oci-go-sdk" packages = [ - ".", - "common" + "common", + "core", + "identity" ] - revision = "52acb91a0461799f2b920b986c6d492364a68ae1" + revision = "8090aeb474ad994446b2db294725e3d6c0d95327" + version = "v1.0.0" [[projects]] name = "github.com/pborman/uuid" @@ -435,6 +436,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "1129b2609fe3ce01205dc397b7a746a2ac38cf3ca5590a05ef2f90d9e4dd6a2d" + inputs-digest = "b5ef2727b30f1b484cf2f3e04de39e1f92dab069bb9972fc71b50b565f39f4a3" solver-name = "gps-cdcl" solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml index 1eb86bd3d..ec88ccf4f 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -41,5 +41,6 @@ name = "k8s.io/kubernetes" [[constraint]] - branch = "master" + version = "v1.0.0" name = "github.com/oracle/oci-go-sdk" + \ No newline at end of file diff --git a/README.md b/README.md index ca4084797..5d2879b85 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ The OCI Volume Provisioner enables [dynamic provisioning][1] of storage resource It uses the [OCI Flexvolume Driver][2] to bind storage resources to Kubernetes nodes. The volume provisioner offers support for * [Block Volumes][5] -* [File Storage][6] ## Prerequisites @@ -167,4 +166,3 @@ See [LICENSE](LICENSE) for more details. [3]: https://kubernetes.io/docs/admin/authorization/rbac/ [4]: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims [5]: https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/overview.htm -[6]: https://docs.us-phoenix-1.oraclecloud.com/Content/File/Concepts/filestorageoverview.htm diff --git a/pkg/oci/client/client.go b/pkg/oci/client/client.go index e34622e83..e92cc63b7 100644 --- a/pkg/oci/client/client.go +++ b/pkg/oci/client/client.go @@ -31,7 +31,6 @@ import ( "github.com/oracle/oci-go-sdk/common" "github.com/oracle/oci-go-sdk/core" - "github.com/oracle/oci-go-sdk/ffsw" "github.com/oracle/oci-go-sdk/identity" "github.com/oracle/oci-volume-provisioner/pkg/oci/instancemeta" ) @@ -41,7 +40,6 @@ type provisionerClient struct { cfg *Config blockStorage *core.BlockstorageClient identity *identity.IdentityClient - ffswClient *ffsw.FileStorageClient context context.Context timeout time.Duration metadata *instancemeta.InstanceMetadata @@ -51,7 +49,6 @@ type provisionerClient struct { type ProvisionerClient interface { BlockStorage() *core.BlockstorageClient Identity() *identity.IdentityClient - FileStorage() *ffsw.FileStorageClient Context() context.Context Timeout() time.Duration CompartmentOCID() string @@ -66,10 +63,6 @@ func (p *provisionerClient) Identity() *identity.IdentityClient { return p.identity } -func (p *provisionerClient) FileStorage() *ffsw.FileStorageClient { - return p.ffswClient -} - func (p *provisionerClient) Context() context.Context { return p.context } @@ -117,15 +110,6 @@ func FromConfig(cfg *Config) (ProvisionerClient, error) { return nil, err } - ffsw, err := ffsw.NewFileStorageClientWithConfigurationProvider(config) - if err != nil { - return nil, err - } - err = configureCustomTransport(&ffsw.BaseClient) - if err != nil { - return nil, err - } - metadata, err := instancemeta.New().Get() if err != nil { glog.Fatalf("Unable to retrieve instance metadata: %v", err) @@ -136,7 +120,6 @@ func FromConfig(cfg *Config) (ProvisionerClient, error) { cfg: cfg, blockStorage: &blockStorage, identity: &identity, - ffswClient: &ffsw, timeout: 3 * time.Minute, context: context.Background(), metadata: metadata, diff --git a/pkg/provisioner/core/provisioner.go b/pkg/provisioner/core/provisioner.go index 0558da0d4..8ba6b5e89 100644 --- a/pkg/provisioner/core/provisioner.go +++ b/pkg/provisioner/core/provisioner.go @@ -31,7 +31,6 @@ import ( "github.com/oracle/oci-volume-provisioner/pkg/oci/client" "github.com/oracle/oci-volume-provisioner/pkg/provisioner/block" - "github.com/oracle/oci-volume-provisioner/pkg/provisioner/filestorage" "github.com/oracle/oci-volume-provisioner/pkg/provisioner/plugin" ) @@ -82,7 +81,6 @@ func NewOCIProvisioner(kubeClient kubernetes.Interface, nodeInformer informersv1 storageClassProvisioners: map[string]plugin.ProvisionerPlugin{ "oci": blockProvisioner, "oci-ext3": blockProvisioner, - "ffsw": filestorage.NewFilesystemProvisioner(client), }, } } diff --git a/pkg/provisioner/filestorage/filestorage.go b/pkg/provisioner/filestorage/filestorage.go deleted file mode 100644 index fef37aa79..000000000 --- a/pkg/provisioner/filestorage/filestorage.go +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package filestorage - -import ( - "context" - "errors" - "fmt" - "os" - - "github.com/golang/glog" - "github.com/kubernetes-incubator/external-storage/lib/controller" - "github.com/oracle/oci-go-sdk/common" - "github.com/oracle/oci-go-sdk/ffsw" - "github.com/oracle/oci-go-sdk/identity" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/pkg/api/v1" - - "github.com/oracle/oci-volume-provisioner/pkg/oci/client" - "github.com/oracle/oci-volume-provisioner/pkg/provisioner/plugin" -) - -const ( - ociVolumeID = "ociVolumeID" - volumePrefixEnvVarName = "OCI_VOLUME_NAME_PREFIX" - fsType = "fsType" -) - -// filesystemProvisioner is the internal provisioner for OCI filesystem volumes -type filesystemProvisioner struct { - client client.ProvisionerClient -} - -var _ plugin.ProvisionerPlugin = &filesystemProvisioner{} - -// NewFilesystemProvisioner creates a new file system provisioner that creates -// filsystems using OCI file system service -func NewFilesystemProvisioner(client client.ProvisionerClient) plugin.ProvisionerPlugin { - return &filesystemProvisioner{ - client: client, - } -} - -func (filesystem *filesystemProvisioner) Provision( - options controller.VolumeOptions, - availabilityDomain *identity.AvailabilityDomain) (*v1.PersistentVolume, error) { - - ctx, cancel := context.WithTimeout(filesystem.client.Context(), filesystem.client.Timeout()) - defer cancel() - - response, err := filesystem.client.FileStorage().CreateFileSystem(ctx, ffsw.CreateFileSystemRequest{ - CreateFileSystemDetails: ffsw.CreateFileSystemDetails{ - AvailabilityDomain: availabilityDomain.Name, - CompartmentId: common.String(filesystem.client.CompartmentOCID()), - DisplayName: common.String(fmt.Sprintf("%s%s", os.Getenv(volumePrefixEnvVarName), options.PVC.Name)), - }, - }) - if err != nil { - glog.Errorf("Failed to create a volume:%#v, %s", options, err) - return nil, err - } - - return &v1.PersistentVolume{ - ObjectMeta: metav1.ObjectMeta{ - Name: *response.FileSystem.Id, - Annotations: map[string]string{ - ociVolumeID: *response.FileSystem.Id, - }, - Labels: map[string]string{}, - }, - Spec: v1.PersistentVolumeSpec{ - PersistentVolumeReclaimPolicy: options.PersistentVolumeReclaimPolicy, - AccessModes: options.PVC.Spec.AccessModes, - // FIXME????? - Capacity: v1.ResourceList{ - v1.ResourceName(v1.ResourceStorage): options.PVC.Spec.Resources.Requests[v1.ResourceName(v1.ResourceStorage)], - }, - PersistentVolumeSource: v1.PersistentVolumeSource{ - FlexVolume: &v1.FlexVolumeSource{ - Driver: plugin.OCIProvisionerName, - FSType: "NFSv3", - }, - }, - }, - }, nil -} - -// Delete destroys a OCI volume created by Provision -func (filesystem *filesystemProvisioner) Delete(volume *v1.PersistentVolume) error { - filesystemID, ok := volume.Annotations[ociVolumeID] - if !ok { - return errors.New("filesystemid annotation not found on PV") - } - glog.Infof("Deleting volume %v with filesystemID %v", volume, filesystemID) - ctx, cancel := context.WithTimeout(filesystem.client.Context(), filesystem.client.Timeout()) - defer cancel() - _, err := filesystem.client.FileStorage().DeleteFileSystem(ctx, - ffsw.DeleteFileSystemRequest{ - FileSystemId: &filesystemID, - }) - return err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/CHANGELOG.md b/vendor/github.com/oracle/oci-go-sdk/CHANGELOG.md new file mode 100644 index 000000000..e1a29e257 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/CHANGELOG.md @@ -0,0 +1,15 @@ +# CHANGELOG + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/) + + +## 1.0.0 - 2018-02-28 Initial Release +### Added +- Support for Audit service +- Support for Core Services (Networking, Compute, Block Volume) +- Support for Database service +- Support for IAM service +- Support for Load Balancing service +- Suport for Object Storage service diff --git a/vendor/github.com/oracle/oci-go-sdk/CONTRIBUTING.md b/vendor/github.com/oracle/oci-go-sdk/CONTRIBUTING.md index c0c13e9f0..31e4b6c60 100644 --- a/vendor/github.com/oracle/oci-go-sdk/CONTRIBUTING.md +++ b/vendor/github.com/oracle/oci-go-sdk/CONTRIBUTING.md @@ -1,6 +1,6 @@ -# Contributing to the Oracle Bare Metal Cloud Services Java SDK +# Contributing to the Oracle Cloud Infrastructure Go SDK -*Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.* +*Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.* Pull requests can be made under [The Oracle Contributor Agreement](https://www.oracle.com/technetwork/community/oca-486395.html) diff --git a/vendor/github.com/oracle/oci-go-sdk/LICENSE.txt b/vendor/github.com/oracle/oci-go-sdk/LICENSE.txt index 645c5c1f0..63bc0c882 100644 --- a/vendor/github.com/oracle/oci-go-sdk/LICENSE.txt +++ b/vendor/github.com/oracle/oci-go-sdk/LICENSE.txt @@ -1,9 +1,9 @@ -Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. This software is dual-licensed to you under the Universal Permissive License (UPL) and Apache License 2.0.  See below for license terms.  You may choose either license, or both.  ____________________________ The Universal Permissive License (UPL), Version 1.0 -Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this software, associated documentation and/or data (collectively the "Software"), free of charge and under any and all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or (ii) the Larger Works (as defined below), to deal in both @@ -19,7 +19,7 @@ The above copyright notice and either this complete permission notice or at a mi THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The Apache Software License, Version 2.0 -Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); You may not use this product except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. A copy of the license is also reproduced below. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/vendor/github.com/oracle/oci-go-sdk/Makefile b/vendor/github.com/oracle/oci-go-sdk/Makefile index 7b46640a8..d69dfd999 100644 --- a/vendor/github.com/oracle/oci-go-sdk/Makefile +++ b/vendor/github.com/oracle/oci-go-sdk/Makefile @@ -1,10 +1,10 @@ -DOC_SERVER_URL=http:\/\/lgl-bybliothece-01.virt.lgl.grungy.us +DOC_SERVER_URL=https:\/\/docs.us-phoenix-1.oraclecloud.com GEN_TARGETS = identity core objectstorage loadbalancer database audit NON_GEN_TARGETS = common common/auth TARGETS = $(NON_GEN_TARGETS) $(GEN_TARGETS) -TARGETS_WITH_TESTS = common common/auth integtest +TARGETS_WITH_TESTS = common common/auth TARGETS_BUILD = $(patsubst %,build-%, $(TARGETS)) TARGETS_CLEAN = $(patsubst %,clean-%, $(GEN_TARGETS)) TARGETS_LINT = $(patsubst %,lint-%, $(TARGETS)) @@ -39,16 +39,17 @@ $(TARGETS_BUILD): build-%:% @(cd $< && go build -v) $(TARGETS_TEST): test-%:% - @(cd $< && OCI_GO_SDK_DEBUG=1 go test -v) + @(cd $< && go test -v) $(TARGETS_CLEAN): clean-%:% @echo "cleaning $<" @-rm -rf $< pre-doc: + @echo "Rendering doc server to ${DOC_SERVER_URL}" find . -name \*.go |xargs sed -i '' 's/{{DOC_SERVER_URL}}/${DOC_SERVER_URL}/g' gen-version: go generate -x -release: gen-version build +release: gen-version build pre-doc diff --git a/vendor/github.com/oracle/oci-go-sdk/README.md b/vendor/github.com/oracle/oci-go-sdk/README.md index f46b6baa8..127d5808f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/README.md +++ b/vendor/github.com/oracle/oci-go-sdk/README.md @@ -1,50 +1,152 @@ # Oracle Cloud Infrastructure Golang SDK -This is the official go sdk for oracle cloud infrastructure +[![wercker status](https://app.wercker.com/status/09bc4818e7b1d70b04285331a9bdbc41/s/master "wercker status")](https://app.wercker.com/project/byKey/09bc4818e7b1d70b04285331a9bdbc41) + +This is the Go SDK for Oracle Cloud Infrastructure. This project is open source and maintained by Oracle Corp. +The home page for the project is [here](https://godoc.org/github.com/oracle/oci-go-sdk/). +>***WARNING:***: To avoid automatically consuming breaking changes if we have to rev the major version of the Go SDK, +please consider using the [Go dependency management tool](https://github.com/golang/dep), or vendoring the SDK. +This will allow you to pin to a specific version of the Go SDK in your project, letting you control how and when you move to the next major version. + +## Dependencies +- Install [Go programming language](https://golang.org/dl/). +- Install [GNU Make](https://www.gnu.org/software/make/), using the package manager or binary distribution tool appropriate for your platform. + + ## Installing -Simply clone this repo into your go sdk you can use the following command +Use the following command to install this SDK: ``` -git clone git@github.com:oracle/oci-go-sdk.git $GOPATH/src/github.com/oracle +go get -u github.com/oracle/oci-go-sdk ``` +Alternatively you can git clone this repo. + +## Working with the Go SDK +To start working with the Go SDK, you import the service package, create a client, and then use that client to make calls. -In addition you'll need to download a testing dependency before you can build or test the sdk +### Configuring +Before using the SDK, set up a config file with the required credentials. See [SDK and Tool Configuration](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/sdkconfig.htm) for instructions. + +Once a config file has been setup, call `common.DefaultConfigProvider()` function as follows: + + ```go + // Import necessary packages + import ( + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/identity" // Identity or any other service you wish to make requests to +) + + //... + +configProvider := common.DefaultConfigProvider() ``` -go get github.com/stretchr/testify + + Or, to configure the SDK programmatically instead, implement the `ConfigurationProvider` interface shown below: + ```go +// ConfigurationProvider wraps information about the account owner +type ConfigurationProvider interface { + KeyProvider + TenancyOCID() (string, error) + UserOCID() (string, error) + KeyFingerprint() (string, error) + Region() (string, error) +} ``` -## Configuring the SDK -You can configure the sdk with your credentials by creating a settings file in: - $HOME/.oci/config - ``` - [DEFAULT] - user=[user ocid] - fingerprint=[fingerprint] - key_file=[path to pem file containing private key] - tenancy=[tenancy ocid] - region=[region for your tenancy] - ``` +### Making a request +To make a request to an OCI service, create a client for the service and then use the client to call a function from the service. -## Making a request -Here is a quick example showing how to make a request to the identity service +- *Creating a client*: All packages provide a function to create clients, using the naming convention `NewClientWithConfigurationProvider`, +such as `NewVirtualNetworkClientWithConfigurationProvider` or `NewIdentityClientWithConfigurationProvider`. To create a new client, +pass a struct that conforms to the `ConfigurationProvider` interface, or use the `DefaultConfigProvider()` function in the common package. + +For example: +```go +config := common.DefaultConfigProvider() +client, err := identity.NewIdentityClientWithConfigurationProvider(config) +if err != nil { + panic(err) +} ``` - c := identity.NewIdentityClientForRegion(getRegion()) - request := identity.ListAvailabilityDomainsRequest{} - response, err := c.ListAvailabilityDomains(context.Background(), request) - fmt.Println(response.Items) + +- *Making calls*: After successfully creating a client, requests can now be made to the service. Generally all functions associated with an operation +accept [`context.Context`](https://golang.org/pkg/context/) and a struct that wraps all input parameters. The functions then return a response struct +that contains the desired data, and an error struct that describes the error if an error occurs. + +For example: +```go +id := "your_group_id" +response, err := client.GetGroup(context.Background(), identity.GetGroupRequest{GroupId:&id}) +if err != nil { + //Something happened + panic(err) +} +//Process the data in response struct +fmt.Println("Group's name is:", response.Name) ``` ## Organization of the SDK +The `oci-go-sdk` contains the following: +- **Service packages**: All packages except `common` and any other package found inside `cmd`. These packages represent +the Oracle Cloud Infrastructure services supported by the Go SDK. Each package represents a service. +These packages include methods to interact with the service, structs that model +input and output parameters, and a client struct that acts as receiver for the above methods. + +- **Common package**: Found in the `common` directory. The common package provides supporting functions and structs used by service packages. +Includes HTTP request/response (de)serialization, request signing, JSON parsing, pointer to reference and other helper functions. Most of the functions +in this package are meant to be used by the service packages. + +- **cmd**: Internal tools used by the `oci-go-sdk`. + +## Examples +Examples can be found [here](https://github.com/oracle/oci-go-sdk/tree/master/example) + +## Documentation +Full documentation can be found [on the godocs site](https://godoc.org/github.com/oracle/oci-go-sdk/). + +## Help +* [Stack Overflow](https://stackoverflow.com/), use the [oracle-cloud-infrastructure](https://stackoverflow.com/questions/tagged/oracle-cloud-infrastructure) and [oci-go-sdk](https://stackoverflow.com/questions/tagged/oci-go-sdk) tags in your post. +* [Developer Tools](https://community.oracle.com/community/cloud_computing/bare-metal/content?filterID=contentstatus%5Bpublished%5D~category%5Bdeveloper-tools%5D&filterID=contentstatus%5Bpublished%5D~objecttype~objecttype%5Bthread%5D) of the Oracle Cloud forums. +* [My Oracle Support](https://support.oracle.com). + + +## Contributing +`oci-go-sdk` is an open source project. See [CONTRIBUTING](/CONTRIBUTING.md) for details. + +Oracle gratefully acknowledges the contributions to oci-go-sdk that have been made by the community. + + +## License +Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +This SDK and sample is dual licensed under the Universal Permissive License 1.0 and the Apache License 2.0. + +See [LICENSE](/LICENSE.txt) for more details. + +## Changes +See [CHANGELOG](/CHANGELOG.md). + +## Known Issues +You can find information on any known issues with the SDK here and under the [Issues](https://github.com/oracle/oci-go-sdk/issues) tab of this project's GitHub repository. ## Building and testing -Building is provided by the make file at the root of the project. To build the project execute +### Dev dependencies +- Install [Testify](https://github.com/stretchr/testify) with the command: +```sh +go get github.com/stretchr/testify +``` +- Install [go lint](https://github.com/golang/lint) with the command: +``` +go get -u github.com/golang/lint/golint +``` +### Build +Building is provided by the make file at the root of the project. To build the project execute. ``` make build ``` -To execute the tests: +To run the tests: ``` make test ``` - diff --git a/vendor/github.com/oracle/oci-go-sdk/audit/audit_client.go b/vendor/github.com/oracle/oci-go-sdk/audit/audit_client.go index 85b826e52..ce0ad0c55 100644 --- a/vendor/github.com/oracle/oci-go-sdk/audit/audit_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/audit/audit_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Audit API @@ -8,123 +8,106 @@ package audit -import( - "github.com/oracle/oci-go-sdk/common" - "context" - "fmt" - "net/http" +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) //AuditClient a client for Audit type AuditClient struct { - common.BaseClient - config *common.ConfigurationProvider + common.BaseClient + config *common.ConfigurationProvider } - // NewAuditClientWithConfigurationProvider Creates a new default Audit client with the given configuration provider. // the configuration provider will be used for the default signer as well as reading the region -func NewAuditClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AuditClient, err error){ - baseClient, err := common.NewClientWithConfig(configProvider) - if err != nil { - return - } - - client = AuditClient{BaseClient: baseClient} - client.BasePath = "20160918" - err = client.setConfigurationProvider(configProvider) - return +func NewAuditClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AuditClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } + + client = AuditClient{BaseClient: baseClient} + client.BasePath = "20160918" + err = client.setConfigurationProvider(configProvider) + return } // SetRegion overrides the region of this client. -func (client *AuditClient) SetRegion(region string) { - client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "audit", region) +func (client *AuditClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "audit", region) } - // SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid func (client *AuditClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } - - // Error has been checked already - region, _ := configProvider.Region() - client.config = &configProvider - client.SetRegion(region) - return nil + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.config = &configProvider + client.SetRegion(region) + return nil } // ConfigurationProvider the ConfigurationProvider used in this client, or null if none set func (client *AuditClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config + return client.config } - - - - - - // GetConfiguration Get the configuration -func(client AuditClient) GetConfiguration(ctx context.Context, request GetConfigurationRequest) (response GetConfigurationResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/configuration", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetConfiguration Get the configuration +func (client AuditClient) GetConfiguration(ctx context.Context, request GetConfigurationRequest) (response GetConfigurationResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/configuration", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListEvents Returns all audit events for the specified compartment that were processed within the specified time range. -func(client AuditClient) ListEvents(ctx context.Context, request ListEventsRequest) (response ListEventsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/auditEvents", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListEvents Returns all audit events for the specified compartment that were processed within the specified time range. +func (client AuditClient) ListEvents(ctx context.Context, request ListEventsRequest) (response ListEventsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/auditEvents", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateConfiguration Update the configuration -func(client AuditClient) UpdateConfiguration(ctx context.Context, request UpdateConfigurationRequest) (response UpdateConfigurationResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/configuration", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateConfiguration Update the configuration +func (client AuditClient) UpdateConfiguration(ctx context.Context, request UpdateConfigurationRequest) (response UpdateConfigurationResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/configuration", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - diff --git a/vendor/github.com/oracle/oci-go-sdk/audit/audit_event.go b/vendor/github.com/oracle/oci-go-sdk/audit/audit_event.go index 2baadad8c..bc0012c6d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/audit/audit_event.go +++ b/vendor/github.com/oracle/oci-go-sdk/audit/audit_event.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Audit API @@ -9,77 +9,70 @@ package audit import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // AuditEvent The representation of AuditEvent +// AuditEvent The representation of AuditEvent type AuditEvent struct { - - // The OCID of the tenant. - TenantId *string `mandatory:"false" json:"tenantId"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The GUID of the event. - EventId *string `mandatory:"false" json:"eventId"` - - // The source of the event. - EventSource *string `mandatory:"false" json:"eventSource"` - - // The type of the event. - EventType *string `mandatory:"false" json:"eventType"` - - // The time the event occurred, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. - EventTime *common.SDKTime `mandatory:"false" json:"eventTime"` - - // The OCID of the user whose action triggered the event. - PrincipalId *string `mandatory:"false" json:"principalId"` - - // The credential ID of the user. This value is extracted from the HTTP 'Authorization' request header. It consists of the tenantId, userId, and user fingerprint, all delimited by a slash (/). - CredentialId *string `mandatory:"false" json:"credentialId"` - - // The HTTP method of the request. - RequestAction *string `mandatory:"false" json:"requestAction"` - - // The opc-request-id of the request. - RequestId *string `mandatory:"false" json:"requestId"` - - // The user agent of the client that made the request. - RequestAgent *string `mandatory:"false" json:"requestAgent"` - - // The HTTP header fields and values in the request. - RequestHeaders map[string][]string `mandatory:"false" json:"requestHeaders"` - - // The IP address of the source of the request. - RequestOrigin *string `mandatory:"false" json:"requestOrigin"` - - // The query parameter fields and values for the request. - RequestParameters map[string][]string `mandatory:"false" json:"requestParameters"` - - // The resource targeted by the request. - RequestResource *string `mandatory:"false" json:"requestResource"` - - // The headers of the response. - ResponseHeaders map[string][]string `mandatory:"false" json:"responseHeaders"` - - // The status code of the response. - ResponseStatus *string `mandatory:"false" json:"responseStatus"` - - // The time of the response to the audited request, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. - ResponseTime *common.SDKTime `mandatory:"false" json:"responseTime"` - - // Metadata of interest from the response payload. For example, the OCID of a resource. - ResponsePayload map[string]interface{} `mandatory:"false" json:"responsePayload"` -} -func (m AuditEvent) String() string { - return common.PointerString(m) -} + // The OCID of the tenant. + TenantId *string `mandatory:"false" json:"tenantId"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The GUID of the event. + EventId *string `mandatory:"false" json:"eventId"` + + // The source of the event. + EventSource *string `mandatory:"false" json:"eventSource"` + + // The type of the event. + EventType *string `mandatory:"false" json:"eventType"` + + // The time the event occurred, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + EventTime *common.SDKTime `mandatory:"false" json:"eventTime"` + + // The OCID of the user whose action triggered the event. + PrincipalId *string `mandatory:"false" json:"principalId"` + + // The credential ID of the user. This value is extracted from the HTTP 'Authorization' request header. It consists of the tenantId, userId, and user fingerprint, all delimited by a slash (/). + CredentialId *string `mandatory:"false" json:"credentialId"` + // The HTTP method of the request. + RequestAction *string `mandatory:"false" json:"requestAction"` + // The opc-request-id of the request. + RequestId *string `mandatory:"false" json:"requestId"` + // The user agent of the client that made the request. + RequestAgent *string `mandatory:"false" json:"requestAgent"` + // The HTTP header fields and values in the request. + RequestHeaders map[string][]string `mandatory:"false" json:"requestHeaders"` + // The IP address of the source of the request. + RequestOrigin *string `mandatory:"false" json:"requestOrigin"` + + // The query parameter fields and values for the request. + RequestParameters map[string][]string `mandatory:"false" json:"requestParameters"` + + // The resource targeted by the request. + RequestResource *string `mandatory:"false" json:"requestResource"` + + // The headers of the response. + ResponseHeaders map[string][]string `mandatory:"false" json:"responseHeaders"` + + // The status code of the response. + ResponseStatus *string `mandatory:"false" json:"responseStatus"` + + // The time of the response to the audited request, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + ResponseTime *common.SDKTime `mandatory:"false" json:"responseTime"` + + // Metadata of interest from the response payload. For example, the OCID of a resource. + ResponsePayload map[string]interface{} `mandatory:"false" json:"responsePayload"` +} + +func (m AuditEvent) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/audit/configuration.go b/vendor/github.com/oracle/oci-go-sdk/audit/configuration.go index ae4e32d0e..35d0c9b07 100644 --- a/vendor/github.com/oracle/oci-go-sdk/audit/configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/audit/configuration.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Audit API @@ -9,23 +9,16 @@ package audit import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Configuration The representation of Configuration +// Configuration The representation of Configuration type Configuration struct { - - // The retention period days - RetentionPeriodDays *int `mandatory:"false" json:"retentionPeriodDays"` + + // The retention period days + RetentionPeriodDays *int `mandatory:"false" json:"retentionPeriodDays"` } func (m Configuration) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/audit/get_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/audit/get_configuration_request_response.go index 11303cef8..684d790b0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/audit/get_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/audit/get_configuration_request_response.go @@ -1,38 +1,34 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package audit import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetConfigurationRequest wrapper for the GetConfiguration operation type GetConfigurationRequest struct { - - // ID of the root compartment (tenancy) - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // ID of the root compartment (tenancy) + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` } func (request GetConfigurationRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetConfigurationResponse wrapper for the GetConfiguration operation type GetConfigurationResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Configuration instance - Configuration `presentIn:"body"` - - + // The underlying http response + RawResponse *http.Response + // The Configuration instance + Configuration `presentIn:"body"` } func (response GetConfigurationResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/audit/list_events_request_response.go b/vendor/github.com/oracle/oci-go-sdk/audit/list_events_request_response.go index 97ecd6eea..e8c6b8d6b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/audit/list_events_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/audit/list_events_request_response.go @@ -1,64 +1,60 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package audit import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListEventsRequest wrapper for the ListEvents operation type ListEventsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // Returns events that were processed at or after this start date and time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. - // For example, a start value of `2017-01-15T11:30:00Z` will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC). - // You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to `0`. - StartTime *common.SDKTime `mandatory:"true" contributesTo:"query" name:"startTime"` - - // Returns events that were processed before this end date and time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. For example, a start value of `2017-01-01T00:00:00Z` and an end value of `2017-01-02T00:00:00Z` will retrieve a list of all events processed on January 1, 2017. - // Similarly, a start value of `2017-01-01T00:00:00Z` and an end value of `2017-02-01T00:00:00Z` will result in a list of all events processed between January 1, 2017 and January 31, 2017. - // You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to `0`. - EndTime *common.SDKTime `mandatory:"true" contributesTo:"query" name:"endTime"` - - // The value of the `opc-next-page` response header from the previous list query. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Returns events that were processed at or after this start date and time, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // For example, a start value of `2017-01-15T11:30:00Z` will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC). + // You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to `0`. + StartTime *common.SDKTime `mandatory:"true" contributesTo:"query" name:"startTime"` + + // Returns events that were processed before this end date and time, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. For example, a start value of `2017-01-01T00:00:00Z` and an end value of `2017-01-02T00:00:00Z` will retrieve a list of all events processed on January 1, 2017. + // Similarly, a start value of `2017-01-01T00:00:00Z` and an end value of `2017-02-01T00:00:00Z` will result in a list of all events processed between January 1, 2017 and January 31, 2017. + // You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to `0`. + EndTime *common.SDKTime `mandatory:"true" contributesTo:"query" name:"endTime"` + + // The value of the `opc-next-page` response header from the previous list query. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request ListEventsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListEventsResponse wrapper for the ListEvents operation type ListEventsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []AuditEvent instance - Items []AuditEvent `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of audit events. When this header appears in the response, - // it means you received a partial list and there are more results. - // Include this value as the `page` parameter for the subsequent ListEvents request to get the next batch of events. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []AuditEvent instance + Items []AuditEvent `presentIn:"body"` + // For pagination of a list of audit events. When this header appears in the response, + // it means you received a partial list and there are more results. + // Include this value as the `page` parameter for the subsequent ListEvents request to get the next batch of events. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListEventsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/audit/update_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/audit/update_configuration_details.go index 2c8e41aae..a1129293b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/audit/update_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/audit/update_configuration_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Audit API @@ -9,23 +9,16 @@ package audit import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateConfigurationDetails The representation of UpdateConfigurationDetails +// UpdateConfigurationDetails The representation of UpdateConfigurationDetails type UpdateConfigurationDetails struct { - - // The retention period days - RetentionPeriodDays *int `mandatory:"false" json:"retentionPeriodDays"` + + // The retention period days + RetentionPeriodDays *int `mandatory:"false" json:"retentionPeriodDays"` } func (m UpdateConfigurationDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/audit/update_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/audit/update_configuration_request_response.go index d9028c56b..2d709a8a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/audit/update_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/audit/update_configuration_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package audit import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateConfigurationRequest wrapper for the UpdateConfiguration operation type UpdateConfigurationRequest struct { - - // ID of the root compartment (tenancy) - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The configuration properties - UpdateConfigurationDetails `contributesTo:"body"` + + // ID of the root compartment (tenancy) + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The configuration properties + UpdateConfigurationDetails `contributesTo:"body"` } func (request UpdateConfigurationRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateConfigurationResponse wrapper for the UpdateConfiguration operation type UpdateConfigurationResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response UpdateConfigurationResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/cmd/genver/main.go b/vendor/github.com/oracle/oci-go-sdk/cmd/genver/main.go index c4103eb59..d9ba965c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/cmd/genver/main.go +++ b/vendor/github.com/oracle/oci-go-sdk/cmd/genver/main.go @@ -1,6 +1,8 @@ -// The following code is used to generate the version of the go sdk +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Package main The following code is used to generate the version of the go sdk // +build ignore + package main import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/cmd/genver/version_template.go b/vendor/github.com/oracle/oci-go-sdk/cmd/genver/version_template.go index 3b31ba355..5c684fd5e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/cmd/genver/version_template.go +++ b/vendor/github.com/oracle/oci-go-sdk/cmd/genver/version_template.go @@ -2,8 +2,9 @@ package main const versionTemplate = ` -// Package common Copyright (c) 2016, 2017, 2018 Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated by go generate; DO NOT EDIT + package common import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/auth/certificate_retriever.go b/vendor/github.com/oracle/oci-go-sdk/common/auth/certificate_retriever.go index 779ac0a1a..e2e04ee7a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/auth/certificate_retriever.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/auth/certificate_retriever.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package auth import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/auth/certificate_retriever_test.go b/vendor/github.com/oracle/oci-go-sdk/common/auth/certificate_retriever_test.go index 7ffaade2c..42dea43ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/auth/certificate_retriever_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/auth/certificate_retriever_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package auth import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/auth/configuration.go b/vendor/github.com/oracle/oci-go-sdk/common/auth/configuration.go index 9f8b78d87..b0f455e9b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/auth/configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/auth/configuration.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package auth import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client.go b/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client.go index ef793041e..f15aff82d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client.go @@ -1,3 +1,6 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +// Package auth provides supporting functions and structs for authentication package auth import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client_test.go b/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client_test.go index 33999c963..f358fd194 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package auth import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/auth/instance_principal_key_provider.go b/vendor/github.com/oracle/oci-go-sdk/common/auth/instance_principal_key_provider.go index e8d236046..ecf14b072 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/auth/instance_principal_key_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/auth/instance_principal_key_provider.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package auth import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/auth/instance_principal_key_provider_test.go b/vendor/github.com/oracle/oci-go-sdk/common/auth/instance_principal_key_provider_test.go index e8dc15193..273450bd4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/auth/instance_principal_key_provider_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/auth/instance_principal_key_provider_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package auth import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/auth/jwt.go b/vendor/github.com/oracle/oci-go-sdk/common/auth/jwt.go index e39334b45..b199a4d68 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/auth/jwt.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/auth/jwt.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package auth import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/auth/jwt_test.go b/vendor/github.com/oracle/oci-go-sdk/common/auth/jwt_test.go index dfac301e6..d06667175 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/auth/jwt_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/auth/jwt_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package auth import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/auth/utils.go b/vendor/github.com/oracle/oci-go-sdk/common/auth/utils.go index 632d67f52..f84490c7d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/auth/utils.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/auth/utils.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package auth import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/client.go b/vendor/github.com/oracle/oci-go-sdk/common/client.go index 0be10ebee..d67e99777 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/client.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/client.go @@ -1,4 +1,6 @@ -// Package common Copyright (c) 2016, 2017, 2018 Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +// Package common provides supporting functions and structs used by service packages package common import ( @@ -81,7 +83,7 @@ func defaultHTTPDispatcher() http.Client { func defaultBaseClient(provider KeyProvider) BaseClient { dispatcher := defaultHTTPDispatcher() - signer := defaultRequestSigner(provider) + signer := DefaultRequestSigner(provider) return newBaseClient(signer, &dispatcher) } @@ -120,7 +122,7 @@ func getHomeFolder() string { // DefaultConfigProvider returns the default config provider. The default config provider // will look for configurations in 3 places: file in $HOME/.oci/config, HOME/.obmcs/config and -// variables names starting with the string TF_VAR. If the same configuration are found in multiple +// variables names starting with the string TF_VAR. If the same configuration is found in multiple // places the provider will prefer the first one. func DefaultConfigProvider() ConfigurationProvider { homeFolder := getHomeFolder() diff --git a/vendor/github.com/oracle/oci-go-sdk/common/client_test.go b/vendor/github.com/oracle/oci-go-sdk/common/client_test.go index 552030e02..b99ddb6e5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/client_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/client_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/common.go b/vendor/github.com/oracle/oci-go-sdk/common/common.go index 670d9f838..9164562b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/common.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/common.go @@ -1,4 +1,5 @@ -// Package common Copyright (c) 2016, 2017, 2018 Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/configuration.go b/vendor/github.com/oracle/oci-go-sdk/common/configuration.go index d45c081df..d2292bb9d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/configuration.go @@ -1,4 +1,5 @@ -// Package common Copyright (c) 2016, 2017, 2018 Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/configuration_test.go b/vendor/github.com/oracle/oci-go-sdk/common/configuration_test.go index 0a6383d21..53c18f785 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/configuration_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/configuration_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/errors.go b/vendor/github.com/oracle/oci-go-sdk/common/errors.go index cab870f85..290bd08bf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/errors.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/errors.go @@ -1,4 +1,5 @@ -// Package common Copyright (c) 2016, 2017, 2018 Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( @@ -17,7 +18,7 @@ type ServiceError interface { GetMessage() string // A short error code that defines the error, meant for programmatic parsing. - // See {{DOC_SERVER_URL}}/Content/API/References/apierrors.htm + // See https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm GetCode() string } diff --git a/vendor/github.com/oracle/oci-go-sdk/common/helpers.go b/vendor/github.com/oracle/oci-go-sdk/common/helpers.go index f408dcbde..554436944 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/helpers.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/helpers.go @@ -1,4 +1,5 @@ -// Package common Copyright (c) 2016, 2017, 2018 Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/helpers_test.go b/vendor/github.com/oracle/oci-go-sdk/common/helpers_test.go index c05c724de..de9006fa2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/helpers_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/helpers_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/http.go b/vendor/github.com/oracle/oci-go-sdk/common/http.go index 5ab31d360..5e75ed4b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/http.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/http.go @@ -1,4 +1,5 @@ -// Package common Copyright (c) 2016, 2017, 2018 Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/http_signer.go b/vendor/github.com/oracle/oci-go-sdk/common/http_signer.go index 90607f1e6..3e82931aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/http_signer.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/http_signer.go @@ -1,4 +1,5 @@ -// Package common Copyright (c) 2016, 2017, 2018 Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( @@ -49,7 +50,8 @@ var ( } ) -func defaultRequestSigner(provider KeyProvider) HTTPRequestSigner { +// DefaultRequestSigner creates a signer with default parameters. +func DefaultRequestSigner(provider KeyProvider) HTTPRequestSigner { return RequestSigner(provider, defaultGenericHeaders, defaultBodyHeaders) } @@ -63,8 +65,8 @@ func RequestSigner(provider KeyProvider, genericHeaders, bodyHeaders []string) H ShouldHashBody: defaultBodyHashPredicate} } -// RequestSignerWithBodyHashingPredicate creates a signer that utilizes the specified header for signing, as well as a predicate for using -// the body of the request as part of the signature +// RequestSignerWithBodyHashingPredicate creates a signer that utilizes the specified headers for signing, as well as a predicate for using +// the body of the request and bodyHeaders parameter as part of the signature func RequestSignerWithBodyHashingPredicate(provider KeyProvider, genericHeaders, bodyHeaders []string, shouldHashBody SignerBodyHashPredicate) HTTPRequestSigner { return ociRequestSigner{ KeyProvider: provider, @@ -94,6 +96,9 @@ func (signer ociRequestSigner) getSigningString(request *http.Request) string { value = getRequestTarget(request) case "host": value = request.URL.Host + if len(value) == 0 { + value = request.Host + } default: value = request.Header.Get(part) } diff --git a/vendor/github.com/oracle/oci-go-sdk/common/http_signer_test.go b/vendor/github.com/oracle/oci-go-sdk/common/http_signer_test.go index e102bc13f..ddb12af54 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/http_signer_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/http_signer_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( @@ -78,6 +80,26 @@ func (kp testKeyProvider) KeyID() (string, error) { return keyID, nil } +func TestOCIRequestSigner_HTTPRequest(t *testing.T) { + s := ociRequestSigner{ + KeyProvider: testKeyProvider{}, + GenericHeaders: defaultGenericHeaders, + ShouldHashBody: defaultBodyHashPredicate, + BodyHeaders: defaultBodyHeaders, + } + + r, err := http.NewRequest("GET", "http://localhost:7000/api", nil) + assert.NoError(t, err) + + r.Header.Set("Date", "Thu, 05 Jan 2014 21:31:40 GMT") + + err = s.Sign(r) + assert.NoError(t, err) + + signature := s.getSigningString(r) + assert.Equal(t, "date: Thu, 05 Jan 2014 21:31:40 GMT\n(request-target): get /api\nhost: localhost:7000", signature) +} + func TestOCIRequestSigner_SigningString(t *testing.T) { s := ociRequestSigner{ KeyProvider: testKeyProvider{}, diff --git a/vendor/github.com/oracle/oci-go-sdk/common/http_test.go b/vendor/github.com/oracle/oci-go-sdk/common/http_test.go index ec9c456c7..66f89ea84 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/http_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/http_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/log.go b/vendor/github.com/oracle/oci-go-sdk/common/log.go index cf7c61b3d..328485fdd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/log.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/log.go @@ -1,4 +1,5 @@ -// Package common Copyright (c) 2016, 2017, 2018 Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + package common import ( diff --git a/vendor/github.com/oracle/oci-go-sdk/common/version.go b/vendor/github.com/oracle/oci-go-sdk/common/version.go index a95a84fe5..be610d170 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/version.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/version.go @@ -1,5 +1,6 @@ -// Package common Copyright (c) 2016, 2017, 2018 Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated by go generate; DO NOT EDIT + package common import ( @@ -9,7 +10,7 @@ import ( ) const ( - major = "0" + major = "1" minor = "0" patch = "0" tag = "" diff --git a/vendor/github.com/oracle/oci-go-sdk/core/add_image_shape_compatibility_entry_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/add_image_shape_compatibility_entry_request_response.go deleted file mode 100644 index e5296bd8e..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/core/add_image_shape_compatibility_entry_request_response.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// AddImageShapeCompatibilityEntryRequest wrapper for the AddImageShapeCompatibilityEntry operation -type AddImageShapeCompatibilityEntryRequest struct { - - // The OCID of the image. - ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` - - // Shape name. - ShapeName *string `mandatory:"true" contributesTo:"path" name:"shapeName"` -} - -func (request AddImageShapeCompatibilityEntryRequest) String() string { - return common.PointerString(request) -} - -// AddImageShapeCompatibilityEntryResponse wrapper for the AddImageShapeCompatibilityEntry operation -type AddImageShapeCompatibilityEntryResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The ImageShapeCompatibilityEntry instance - ImageShapeCompatibilityEntry `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response AddImageShapeCompatibilityEntryResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/attach_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/attach_boot_volume_details.go index 6ff251827..7dc403a4c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/attach_boot_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/attach_boot_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,29 +9,22 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // AttachBootVolumeDetails The representation of AttachBootVolumeDetails +// AttachBootVolumeDetails The representation of AttachBootVolumeDetails type AttachBootVolumeDetails struct { - - // The OCID of the boot volume. - BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` - - // The OCID of the instance. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m AttachBootVolumeDetails) String() string { - return common.PointerString(m) -} - + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` + // The OCID of the instance. + InstanceId *string `mandatory:"true" json:"instanceId"` + // A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} +func (m AttachBootVolumeDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/attach_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/attach_boot_volume_request_response.go index 5545c5afa..f52a01930 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/attach_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/attach_boot_volume_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // AttachBootVolumeRequest wrapper for the AttachBootVolume operation type AttachBootVolumeRequest struct { - - // Attach boot volume request - AttachBootVolumeDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Attach boot volume request + AttachBootVolumeDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request AttachBootVolumeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // AttachBootVolumeResponse wrapper for the AttachBootVolume operation type AttachBootVolumeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The BootVolumeAttachment instance - BootVolumeAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The BootVolumeAttachment instance + BootVolumeAttachment `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response AttachBootVolumeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/attach_i_scsi_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/attach_i_scsi_volume_details.go index 9468ea8c2..827108d2f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/attach_i_scsi_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/attach_i_scsi_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,57 +9,55 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // AttachIScsiVolumeDetails The representation of AttachIScsiVolumeDetails +// AttachIScsiVolumeDetails The representation of AttachIScsiVolumeDetails type AttachIScsiVolumeDetails struct { - - // The OCID of the instance. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The OCID of the volume. - VolumeId *string `mandatory:"true" json:"volumeId"` - - // A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Whether to use CHAP authentication for the volume attachment. Defaults to false. - UseChap *bool `mandatory:"false" json:"useChap"` -} - //GetDisplayName returns DisplayName - func (m AttachIScsiVolumeDetails) GetDisplayName() *string { - return m.DisplayName - } - //GetInstanceId returns InstanceId - func (m AttachIScsiVolumeDetails) GetInstanceId() *string { - return m.InstanceId - } - //GetVolumeId returns VolumeId - func (m AttachIScsiVolumeDetails) GetVolumeId() *string { - return m.VolumeId - } -func (m AttachIScsiVolumeDetails) String() string { - return common.PointerString(m) -} + // The OCID of the instance. + InstanceId *string `mandatory:"true" json:"instanceId"` -// MarshalJSON marshals to json representation -func (m AttachIScsiVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAttachIScsiVolumeDetails AttachIScsiVolumeDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeAttachIScsiVolumeDetails - }{ - "iscsi", - (MarshalTypeAttachIScsiVolumeDetails)(m), - } + // The OCID of the volume. + VolumeId *string `mandatory:"true" json:"volumeId"` + + // A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` - return json.Marshal(&s) + // Whether to use CHAP authentication for the volume attachment. Defaults to false. + UseChap *bool `mandatory:"false" json:"useChap"` } +//GetDisplayName returns DisplayName +func (m AttachIScsiVolumeDetails) GetDisplayName() *string { + return m.DisplayName +} +//GetInstanceId returns InstanceId +func (m AttachIScsiVolumeDetails) GetInstanceId() *string { + return m.InstanceId +} +//GetVolumeId returns VolumeId +func (m AttachIScsiVolumeDetails) GetVolumeId() *string { + return m.VolumeId +} + +func (m AttachIScsiVolumeDetails) String() string { + return common.PointerString(m) +} +// MarshalJSON marshals to json representation +func (m AttachIScsiVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAttachIScsiVolumeDetails AttachIScsiVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAttachIScsiVolumeDetails + }{ + "iscsi", + (MarshalTypeAttachIScsiVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/attach_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/core/attach_vnic_details.go index e3ad1c5e7..a6e978940 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/attach_vnic_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/attach_vnic_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,36 +9,29 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // AttachVnicDetails The representation of AttachVnicDetails +// AttachVnicDetails The representation of AttachVnicDetails type AttachVnicDetails struct { - - // Details for creating a new VNIC. - CreateVnicDetails *CreateVnicDetails `mandatory:"true" json:"createVnicDetails"` - - // The OCID of the instance. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // A user-friendly name for the attachment. Does not have to be unique, and it cannot be changed. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Which physical network interface card (NIC) the VNIC will use. Defaults to 0. - // Certain bare metal instance shapes have two active physical NICs (0 and 1). If - // you add a secondary VNIC to one of these instances, you can specify which NIC - // the VNIC will use. For more information, see - // [Virtual Network Interface Cards (VNICs)]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingVNICs.htm). - NicIndex *int `mandatory:"false" json:"nicIndex"` -} - -func (m AttachVnicDetails) String() string { - return common.PointerString(m) -} + // Details for creating a new VNIC. + CreateVnicDetails *CreateVnicDetails `mandatory:"true" json:"createVnicDetails"` + // The OCID of the instance. + InstanceId *string `mandatory:"true" json:"instanceId"` + // A user-friendly name for the attachment. Does not have to be unique, and it cannot be changed. + DisplayName *string `mandatory:"false" json:"displayName"` + // Which physical network interface card (NIC) the VNIC will use. Defaults to 0. + // Certain bare metal instance shapes have two active physical NICs (0 and 1). If + // you add a secondary VNIC to one of these instances, you can specify which NIC + // the VNIC will use. For more information, see + // Virtual Network Interface Cards (VNICs) (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm). + NicIndex *int `mandatory:"false" json:"nicIndex"` +} +func (m AttachVnicDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/attach_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/attach_vnic_request_response.go index 3d0698e33..3f04c241a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/attach_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/attach_vnic_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // AttachVnicRequest wrapper for the AttachVnic operation type AttachVnicRequest struct { - - // Attach VNIC details. - AttachVnicDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Attach VNIC details. + AttachVnicDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request AttachVnicRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // AttachVnicResponse wrapper for the AttachVnic operation type AttachVnicResponse struct { - // The underlying http response - RawResponse *http.Response - - // The VnicAttachment instance - VnicAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The VnicAttachment instance + VnicAttachment `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response AttachVnicResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_details.go index e7d926ea4..414fc9c3a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,83 +9,78 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // AttachVolumeDetails The representation of AttachVolumeDetails +// AttachVolumeDetails The representation of AttachVolumeDetails type AttachVolumeDetails interface { - - // The OCID of the instance. - GetInstanceId() *string - - // The OCID of the volume. - GetVolumeId() *string - - // A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information. - GetDisplayName() *string + + // The OCID of the instance. + GetInstanceId() *string + + // The OCID of the volume. + GetVolumeId() *string + + // A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information. + GetDisplayName() *string } type attachvolumedetails struct { - JsonData []byte - InstanceId *string `mandatory:"true" json:"instanceId"` - VolumeId *string `mandatory:"true" json:"volumeId"` - DisplayName *string `mandatory:"false" json:"displayName"` - Type string `json:"type"` + JsonData []byte + InstanceId *string `mandatory:"true" json:"instanceId"` + VolumeId *string `mandatory:"true" json:"volumeId"` + DisplayName *string `mandatory:"false" json:"displayName"` + Type string `json:"type"` } - // UnmarshalJSON unmarshals json func (m *attachvolumedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerattachvolumedetails attachvolumedetails - s := struct { - Model Unmarshalerattachvolumedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.InstanceId = s.Model.InstanceId - m.VolumeId = s.Model.VolumeId - m.DisplayName = s.Model.DisplayName - m.Type = s.Model.Type - - return err + m.JsonData = data + type Unmarshalerattachvolumedetails attachvolumedetails + s := struct { + Model Unmarshalerattachvolumedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.InstanceId = s.Model.InstanceId + m.VolumeId = s.Model.VolumeId + m.DisplayName = s.Model.DisplayName + m.Type = s.Model.Type + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *attachvolumedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.Type) { - case "iscsi": - mm := AttachIScsiVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.Type { + case "iscsi": + mm := AttachIScsiVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } } - //GetInstanceId returns InstanceId - func (m attachvolumedetails) GetInstanceId() *string { - return m.InstanceId - } - //GetVolumeId returns VolumeId - func (m attachvolumedetails) GetVolumeId() *string { - return m.VolumeId - } - //GetDisplayName returns DisplayName - func (m attachvolumedetails) GetDisplayName() *string { - return m.DisplayName - } - -func (m attachvolumedetails) String() string { - return common.PointerString(m) +//GetInstanceId returns InstanceId +func (m attachvolumedetails) GetInstanceId() *string { + return m.InstanceId } +//GetVolumeId returns VolumeId +func (m attachvolumedetails) GetVolumeId() *string { + return m.VolumeId +} +//GetDisplayName returns DisplayName +func (m attachvolumedetails) GetDisplayName() *string { + return m.DisplayName +} - - +func (m attachvolumedetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_request_response.go index a2ab646ea..d2f7076f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // AttachVolumeRequest wrapper for the AttachVolume operation type AttachVolumeRequest struct { - - // Attach volume request - AttachVolumeDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Attach volume request + AttachVolumeDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request AttachVolumeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // AttachVolumeResponse wrapper for the AttachVolume operation type AttachVolumeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The VolumeAttachment instance - VolumeAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The VolumeAttachment instance + VolumeAttachment `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response AttachVolumeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume.go b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume.go index 34a057c31..1f57aca45 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,88 +9,78 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // BootVolume A detachable boot volume device that contains the image used to boot an Compute instance. For more information, see - // [Overview of Boot Volumes]({{DOC_SERVER_URL}}/Content/Block/Concepts/bootvolumes.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// BootVolume A detachable boot volume device that contains the image used to boot an Compute instance. For more information, see +// Overview of Boot Volumes (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/bootvolumes.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type BootVolume struct { - - // The Availability Domain of the boot volume. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the boot volume. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The boot volume's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The current state of a boot volume. - LifecycleState BootVolumeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The size of the volume in MBs. The value must be a multiple of 1024. - // This field is deprecated. Please use sizeInGBs. - SizeInMBs *int `mandatory:"true" json:"sizeInMBs"` - - // The date and time the boot volume was created. Format defined by RFC3339. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The image OCID used to create the boot volume. - ImageId *string `mandatory:"false" json:"imageId"` - - // The size of the boot volume in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + + // The Availability Domain of the boot volume. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the boot volume. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The boot volume's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The current state of a boot volume. + LifecycleState BootVolumeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The size of the volume in MBs. The value must be a multiple of 1024. + // This field is deprecated. Please use sizeInGBs. + SizeInMBs *int `mandatory:"true" json:"sizeInMBs"` + + // The date and time the boot volume was created. Format defined by RFC3339. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The image OCID used to create the boot volume. + ImageId *string `mandatory:"false" json:"imageId"` + + // The size of the boot volume in GBs. + SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` } func (m BootVolume) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // BootVolumeLifecycleStateEnum Enum with underlying type: string type BootVolumeLifecycleStateEnum string // Set of constants representing the allowable values for BootVolumeLifecycleState const ( - BootVolumeLifecycleStateProvisioning BootVolumeLifecycleStateEnum = "PROVISIONING" - BootVolumeLifecycleStateRestoring BootVolumeLifecycleStateEnum = "RESTORING" - BootVolumeLifecycleStateAvailable BootVolumeLifecycleStateEnum = "AVAILABLE" - BootVolumeLifecycleStateTerminating BootVolumeLifecycleStateEnum = "TERMINATING" - BootVolumeLifecycleStateTerminated BootVolumeLifecycleStateEnum = "TERMINATED" - BootVolumeLifecycleStateFaulty BootVolumeLifecycleStateEnum = "FAULTY" - BootVolumeLifecycleStateUnknown BootVolumeLifecycleStateEnum = "UNKNOWN" + BootVolumeLifecycleStateProvisioning BootVolumeLifecycleStateEnum = "PROVISIONING" + BootVolumeLifecycleStateRestoring BootVolumeLifecycleStateEnum = "RESTORING" + BootVolumeLifecycleStateAvailable BootVolumeLifecycleStateEnum = "AVAILABLE" + BootVolumeLifecycleStateTerminating BootVolumeLifecycleStateEnum = "TERMINATING" + BootVolumeLifecycleStateTerminated BootVolumeLifecycleStateEnum = "TERMINATED" + BootVolumeLifecycleStateFaulty BootVolumeLifecycleStateEnum = "FAULTY" ) -var mappingBootVolumeLifecycleState = map[string]BootVolumeLifecycleStateEnum { - "PROVISIONING": BootVolumeLifecycleStateProvisioning, - "RESTORING": BootVolumeLifecycleStateRestoring, - "AVAILABLE": BootVolumeLifecycleStateAvailable, - "TERMINATING": BootVolumeLifecycleStateTerminating, - "TERMINATED": BootVolumeLifecycleStateTerminated, - "FAULTY": BootVolumeLifecycleStateFaulty, - "UNKNOWN": BootVolumeLifecycleStateUnknown, +var mappingBootVolumeLifecycleState = map[string]BootVolumeLifecycleStateEnum{ + "PROVISIONING": BootVolumeLifecycleStateProvisioning, + "RESTORING": BootVolumeLifecycleStateRestoring, + "AVAILABLE": BootVolumeLifecycleStateAvailable, + "TERMINATING": BootVolumeLifecycleStateTerminating, + "TERMINATED": BootVolumeLifecycleStateTerminated, + "FAULTY": BootVolumeLifecycleStateFaulty, } // GetBootVolumeLifecycleStateEnumValues Enumerates the set of values for BootVolumeLifecycleState func GetBootVolumeLifecycleStateEnumValues() []BootVolumeLifecycleStateEnum { - values := make([]BootVolumeLifecycleStateEnum, 0) - for _, v := range mappingBootVolumeLifecycleState { - if v != BootVolumeLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]BootVolumeLifecycleStateEnum, 0) + for _, v := range mappingBootVolumeLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_attachment.go index f2fb1cb79..2c24059fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_attachment.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,78 +9,68 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // BootVolumeAttachment Represents an attachment between a boot volume and an instance. +// BootVolumeAttachment Represents an attachment between a boot volume and an instance. type BootVolumeAttachment struct { - - // The Availability Domain of an instance. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the boot volume. - BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the boot volume attachment. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the instance the boot volume is attached to. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The current state of the boot volume attachment. - LifecycleState BootVolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the boot volume was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it cannot be changed. - // Avoid entering confidential information. - // Example: `My boot volume` - DisplayName *string `mandatory:"false" json:"displayName"` + + // The Availability Domain of an instance. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the boot volume attachment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the instance the boot volume is attached to. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The current state of the boot volume attachment. + LifecycleState BootVolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the boot volume was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it cannot be changed. + // Avoid entering confidential information. + // Example: `My boot volume` + DisplayName *string `mandatory:"false" json:"displayName"` } func (m BootVolumeAttachment) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // BootVolumeAttachmentLifecycleStateEnum Enum with underlying type: string type BootVolumeAttachmentLifecycleStateEnum string // Set of constants representing the allowable values for BootVolumeAttachmentLifecycleState const ( - BootVolumeAttachmentLifecycleStateAttaching BootVolumeAttachmentLifecycleStateEnum = "ATTACHING" - BootVolumeAttachmentLifecycleStateAttached BootVolumeAttachmentLifecycleStateEnum = "ATTACHED" - BootVolumeAttachmentLifecycleStateDetaching BootVolumeAttachmentLifecycleStateEnum = "DETACHING" - BootVolumeAttachmentLifecycleStateDetached BootVolumeAttachmentLifecycleStateEnum = "DETACHED" - BootVolumeAttachmentLifecycleStateUnknown BootVolumeAttachmentLifecycleStateEnum = "UNKNOWN" + BootVolumeAttachmentLifecycleStateAttaching BootVolumeAttachmentLifecycleStateEnum = "ATTACHING" + BootVolumeAttachmentLifecycleStateAttached BootVolumeAttachmentLifecycleStateEnum = "ATTACHED" + BootVolumeAttachmentLifecycleStateDetaching BootVolumeAttachmentLifecycleStateEnum = "DETACHING" + BootVolumeAttachmentLifecycleStateDetached BootVolumeAttachmentLifecycleStateEnum = "DETACHED" ) -var mappingBootVolumeAttachmentLifecycleState = map[string]BootVolumeAttachmentLifecycleStateEnum { - "ATTACHING": BootVolumeAttachmentLifecycleStateAttaching, - "ATTACHED": BootVolumeAttachmentLifecycleStateAttached, - "DETACHING": BootVolumeAttachmentLifecycleStateDetaching, - "DETACHED": BootVolumeAttachmentLifecycleStateDetached, - "UNKNOWN": BootVolumeAttachmentLifecycleStateUnknown, +var mappingBootVolumeAttachmentLifecycleState = map[string]BootVolumeAttachmentLifecycleStateEnum{ + "ATTACHING": BootVolumeAttachmentLifecycleStateAttaching, + "ATTACHED": BootVolumeAttachmentLifecycleStateAttached, + "DETACHING": BootVolumeAttachmentLifecycleStateDetaching, + "DETACHED": BootVolumeAttachmentLifecycleStateDetached, } // GetBootVolumeAttachmentLifecycleStateEnumValues Enumerates the set of values for BootVolumeAttachmentLifecycleState func GetBootVolumeAttachmentLifecycleStateEnumValues() []BootVolumeAttachmentLifecycleStateEnum { - values := make([]BootVolumeAttachmentLifecycleStateEnum, 0) - for _, v := range mappingBootVolumeAttachmentLifecycleState { - if v != BootVolumeAttachmentLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]BootVolumeAttachmentLifecycleStateEnum, 0) + for _, v := range mappingBootVolumeAttachmentLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/bulk_add_virtual_circuit_public_prefixes_details.go b/vendor/github.com/oracle/oci-go-sdk/core/bulk_add_virtual_circuit_public_prefixes_details.go index 6720faf0f..bf8afbbf2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/bulk_add_virtual_circuit_public_prefixes_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/bulk_add_virtual_circuit_public_prefixes_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,23 +9,16 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // BulkAddVirtualCircuitPublicPrefixesDetails The representation of BulkAddVirtualCircuitPublicPrefixesDetails +// BulkAddVirtualCircuitPublicPrefixesDetails The representation of BulkAddVirtualCircuitPublicPrefixesDetails type BulkAddVirtualCircuitPublicPrefixesDetails struct { - - // The public IP prefixes (CIDRs) to add to the public virtual circuit. - PublicPrefixes []CreateVirtualCircuitPublicPrefixDetails `mandatory:"true" json:"publicPrefixes"` + + // The public IP prefixes (CIDRs) to add to the public virtual circuit. + PublicPrefixes []CreateVirtualCircuitPublicPrefixDetails `mandatory:"true" json:"publicPrefixes"` } func (m BulkAddVirtualCircuitPublicPrefixesDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/bulk_add_virtual_circuit_public_prefixes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/bulk_add_virtual_circuit_public_prefixes_request_response.go index c31d7f24f..749adc891 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/bulk_add_virtual_circuit_public_prefixes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/bulk_add_virtual_circuit_public_prefixes_request_response.go @@ -1,38 +1,34 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // BulkAddVirtualCircuitPublicPrefixesRequest wrapper for the BulkAddVirtualCircuitPublicPrefixes operation type BulkAddVirtualCircuitPublicPrefixesRequest struct { - - // The OCID of the virtual circuit. - VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` - - // Request with publix prefixes to be added to the virtual circuit - BulkAddVirtualCircuitPublicPrefixesDetails `contributesTo:"body"` + + // The OCID of the virtual circuit. + VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` + + // Request with publix prefixes to be added to the virtual circuit + BulkAddVirtualCircuitPublicPrefixesDetails `contributesTo:"body"` } func (request BulkAddVirtualCircuitPublicPrefixesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // BulkAddVirtualCircuitPublicPrefixesResponse wrapper for the BulkAddVirtualCircuitPublicPrefixes operation type BulkAddVirtualCircuitPublicPrefixesResponse struct { - // The underlying http response - RawResponse *http.Response - - - + // The underlying http response + RawResponse *http.Response } func (response BulkAddVirtualCircuitPublicPrefixesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/bulk_delete_virtual_circuit_public_prefixes_details.go b/vendor/github.com/oracle/oci-go-sdk/core/bulk_delete_virtual_circuit_public_prefixes_details.go index 18bbe14ec..031eea71b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/bulk_delete_virtual_circuit_public_prefixes_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/bulk_delete_virtual_circuit_public_prefixes_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,23 +9,16 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // BulkDeleteVirtualCircuitPublicPrefixesDetails The representation of BulkDeleteVirtualCircuitPublicPrefixesDetails +// BulkDeleteVirtualCircuitPublicPrefixesDetails The representation of BulkDeleteVirtualCircuitPublicPrefixesDetails type BulkDeleteVirtualCircuitPublicPrefixesDetails struct { - - // The public IP prefixes (CIDRs) to remove from the public virtual circuit. - PublicPrefixes []DeleteVirtualCircuitPublicPrefixDetails `mandatory:"true" json:"publicPrefixes"` + + // The public IP prefixes (CIDRs) to remove from the public virtual circuit. + PublicPrefixes []DeleteVirtualCircuitPublicPrefixDetails `mandatory:"true" json:"publicPrefixes"` } func (m BulkDeleteVirtualCircuitPublicPrefixesDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/bulk_delete_virtual_circuit_public_prefixes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/bulk_delete_virtual_circuit_public_prefixes_request_response.go index 6acf4b83d..a57afa64e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/bulk_delete_virtual_circuit_public_prefixes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/bulk_delete_virtual_circuit_public_prefixes_request_response.go @@ -1,38 +1,34 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // BulkDeleteVirtualCircuitPublicPrefixesRequest wrapper for the BulkDeleteVirtualCircuitPublicPrefixes operation type BulkDeleteVirtualCircuitPublicPrefixesRequest struct { - - // The OCID of the virtual circuit. - VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` - - // Request with publix prefixes to be deleted from the virtual circuit - BulkDeleteVirtualCircuitPublicPrefixesDetails `contributesTo:"body"` + + // The OCID of the virtual circuit. + VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` + + // Request with publix prefixes to be deleted from the virtual circuit + BulkDeleteVirtualCircuitPublicPrefixesDetails `contributesTo:"body"` } func (request BulkDeleteVirtualCircuitPublicPrefixesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // BulkDeleteVirtualCircuitPublicPrefixesResponse wrapper for the BulkDeleteVirtualCircuitPublicPrefixes operation type BulkDeleteVirtualCircuitPublicPrefixesResponse struct { - // The underlying http response - RawResponse *http.Response - - - + // The underlying http response + RawResponse *http.Response } func (response BulkDeleteVirtualCircuitPublicPrefixesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/capture_console_history_details.go b/vendor/github.com/oracle/oci-go-sdk/core/capture_console_history_details.go index a06f73b38..9fb153ec6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/capture_console_history_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/capture_console_history_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,26 +9,19 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CaptureConsoleHistoryDetails The representation of CaptureConsoleHistoryDetails +// CaptureConsoleHistoryDetails The representation of CaptureConsoleHistoryDetails type CaptureConsoleHistoryDetails struct { - - // The OCID of the instance to get the console history from. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the instance to get the console history from. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m CaptureConsoleHistoryDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/capture_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/capture_console_history_request_response.go index 294420b06..8e2919b70 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/capture_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/capture_console_history_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CaptureConsoleHistoryRequest wrapper for the CaptureConsoleHistory operation type CaptureConsoleHistoryRequest struct { - - // Console history details - CaptureConsoleHistoryDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Console history details + CaptureConsoleHistoryDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CaptureConsoleHistoryRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CaptureConsoleHistoryResponse wrapper for the CaptureConsoleHistory operation type CaptureConsoleHistoryResponse struct { - // The underlying http response - RawResponse *http.Response - - // The ConsoleHistory instance - ConsoleHistory `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The ConsoleHistory instance + ConsoleHistory `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CaptureConsoleHistoryResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/connect_local_peering_gateways_details.go b/vendor/github.com/oracle/oci-go-sdk/core/connect_local_peering_gateways_details.go index 795d451a3..6a2d06c2a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/connect_local_peering_gateways_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/connect_local_peering_gateways_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,23 +9,16 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // ConnectLocalPeeringGatewaysDetails Information about the other local peering gateway (LPG). +// ConnectLocalPeeringGatewaysDetails Information about the other local peering gateway (LPG). type ConnectLocalPeeringGatewaysDetails struct { - - // The OCID of the LPG you want to peer with. - PeerId *string `mandatory:"true" json:"peerId"` + + // The OCID of the LPG you want to peer with. + PeerId *string `mandatory:"true" json:"peerId"` } func (m ConnectLocalPeeringGatewaysDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/connect_local_peering_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/connect_local_peering_gateways_request_response.go index f7156eb3c..084abbe5d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/connect_local_peering_gateways_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/connect_local_peering_gateways_request_response.go @@ -1,42 +1,38 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ConnectLocalPeeringGatewaysRequest wrapper for the ConnectLocalPeeringGateways operation type ConnectLocalPeeringGatewaysRequest struct { - - // The OCID of the local peering gateway. - LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` - - // Details regarding the local peering gateway to connect. - ConnectLocalPeeringGatewaysDetails `contributesTo:"body"` + + // The OCID of the local peering gateway. + LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` + + // Details regarding the local peering gateway to connect. + ConnectLocalPeeringGatewaysDetails `contributesTo:"body"` } func (request ConnectLocalPeeringGatewaysRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ConnectLocalPeeringGatewaysResponse wrapper for the ConnectLocalPeeringGateways operation type ConnectLocalPeeringGatewaysResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ConnectLocalPeeringGatewaysResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/console_history.go b/vendor/github.com/oracle/oci-go-sdk/core/console_history.go index fced5bd7b..27b9d760a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/console_history.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/console_history.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,77 +9,67 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // ConsoleHistory An instance's serial console data. It includes configuration messages that occur when the - // instance boots, such as kernel and BIOS messages, and is useful for checking the status of - // the instance or diagnosing problems. The console data is minimally formatted ASCII text. +// ConsoleHistory An instance's serial console data. It includes configuration messages that occur when the +// instance boots, such as kernel and BIOS messages, and is useful for checking the status of +// the instance or diagnosing problems. The console data is minimally formatted ASCII text. type ConsoleHistory struct { - - // The Availability Domain of an instance. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the console history metadata object. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the instance this console history was fetched from. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The current state of the console history. - LifecycleState ConsoleHistoryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the history was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My console history metadata` - DisplayName *string `mandatory:"false" json:"displayName"` + + // The Availability Domain of an instance. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the console history metadata object. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the instance this console history was fetched from. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The current state of the console history. + LifecycleState ConsoleHistoryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the history was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + // Example: `My console history metadata` + DisplayName *string `mandatory:"false" json:"displayName"` } func (m ConsoleHistory) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // ConsoleHistoryLifecycleStateEnum Enum with underlying type: string type ConsoleHistoryLifecycleStateEnum string // Set of constants representing the allowable values for ConsoleHistoryLifecycleState const ( - ConsoleHistoryLifecycleStateRequested ConsoleHistoryLifecycleStateEnum = "REQUESTED" - ConsoleHistoryLifecycleStateGettingHistory ConsoleHistoryLifecycleStateEnum = "GETTING-HISTORY" - ConsoleHistoryLifecycleStateSucceeded ConsoleHistoryLifecycleStateEnum = "SUCCEEDED" - ConsoleHistoryLifecycleStateFailed ConsoleHistoryLifecycleStateEnum = "FAILED" - ConsoleHistoryLifecycleStateUnknown ConsoleHistoryLifecycleStateEnum = "UNKNOWN" + ConsoleHistoryLifecycleStateRequested ConsoleHistoryLifecycleStateEnum = "REQUESTED" + ConsoleHistoryLifecycleStateGettingHistory ConsoleHistoryLifecycleStateEnum = "GETTING-HISTORY" + ConsoleHistoryLifecycleStateSucceeded ConsoleHistoryLifecycleStateEnum = "SUCCEEDED" + ConsoleHistoryLifecycleStateFailed ConsoleHistoryLifecycleStateEnum = "FAILED" ) -var mappingConsoleHistoryLifecycleState = map[string]ConsoleHistoryLifecycleStateEnum { - "REQUESTED": ConsoleHistoryLifecycleStateRequested, - "GETTING-HISTORY": ConsoleHistoryLifecycleStateGettingHistory, - "SUCCEEDED": ConsoleHistoryLifecycleStateSucceeded, - "FAILED": ConsoleHistoryLifecycleStateFailed, - "UNKNOWN": ConsoleHistoryLifecycleStateUnknown, +var mappingConsoleHistoryLifecycleState = map[string]ConsoleHistoryLifecycleStateEnum{ + "REQUESTED": ConsoleHistoryLifecycleStateRequested, + "GETTING-HISTORY": ConsoleHistoryLifecycleStateGettingHistory, + "SUCCEEDED": ConsoleHistoryLifecycleStateSucceeded, + "FAILED": ConsoleHistoryLifecycleStateFailed, } // GetConsoleHistoryLifecycleStateEnumValues Enumerates the set of values for ConsoleHistoryLifecycleState func GetConsoleHistoryLifecycleStateEnumValues() []ConsoleHistoryLifecycleStateEnum { - values := make([]ConsoleHistoryLifecycleStateEnum, 0) - for _, v := range mappingConsoleHistoryLifecycleState { - if v != ConsoleHistoryLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]ConsoleHistoryLifecycleStateEnum, 0) + for _, v := range mappingConsoleHistoryLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/core_blockstorage_client.go b/vendor/github.com/oracle/oci-go-sdk/core/core_blockstorage_client.go index 85e675cbc..4b49fcaff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/core_blockstorage_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/core_blockstorage_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -8,388 +8,327 @@ package core -import( - "github.com/oracle/oci-go-sdk/common" - "context" - "fmt" - "net/http" +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) //BlockstorageClient a client for Blockstorage type BlockstorageClient struct { - common.BaseClient - config *common.ConfigurationProvider + common.BaseClient + config *common.ConfigurationProvider } - // NewBlockstorageClientWithConfigurationProvider Creates a new default Blockstorage client with the given configuration provider. // the configuration provider will be used for the default signer as well as reading the region -func NewBlockstorageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client BlockstorageClient, err error){ - baseClient, err := common.NewClientWithConfig(configProvider) - if err != nil { - return - } - - client = BlockstorageClient{BaseClient: baseClient} - client.BasePath = "20160918" - err = client.setConfigurationProvider(configProvider) - return +func NewBlockstorageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client BlockstorageClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } + + client = BlockstorageClient{BaseClient: baseClient} + client.BasePath = "20160918" + err = client.setConfigurationProvider(configProvider) + return } // SetRegion overrides the region of this client. -func (client *BlockstorageClient) SetRegion(region string) { - client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "iaas", region) +func (client *BlockstorageClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "iaas", region) } - // SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid func (client *BlockstorageClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } - - // Error has been checked already - region, _ := configProvider.Region() - client.config = &configProvider - client.SetRegion(region) - return nil + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.config = &configProvider + client.SetRegion(region) + return nil } // ConfigurationProvider the ConfigurationProvider used in this client, or null if none set func (client *BlockstorageClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config + return client.config } - - - - - - // CreateVolume Creates a new volume in the specified compartment. Volumes can be created in sizes ranging from - // 50 GB (51200 MB) to 16 TB (16777216 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB). - // For general information about block volumes, see - // [Overview of Block Volume Service]({{DOC_SERVER_URL}}/Content/Block/Concepts/overview.htm). - // A volume and instance can be in separate compartments but must be in the same Availability Domain. - // For information about access control and compartments, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). For information about - // Availability Domains, see [Regions and Availability Domains]({{DOC_SERVER_URL}}/Content/General/Concepts/regions.htm). - // To get a list of Availability Domains, use the `ListAvailabilityDomains` operation - // in the Identity and Access Management Service API. - // You may optionally specify a *display name* for the volume, which is simply a friendly name or - // description. It does not have to be unique, and you can change it. Avoid entering confidential information. -func(client BlockstorageClient) CreateVolume(ctx context.Context, request CreateVolumeRequest) (response CreateVolumeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/volumes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateVolume Creates a new volume in the specified compartment. Volumes can be created in sizes ranging from +// 50 GB (51200 MB) to 16 TB (16777216 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB). +// For general information about block volumes, see +// Overview of Block Volume Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/overview.htm). +// A volume and instance can be in separate compartments but must be in the same Availability Domain. +// For information about access control and compartments, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about +// Availability Domains, see Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). +// To get a list of Availability Domains, use the `ListAvailabilityDomains` operation +// in the Identity and Access Management Service API. +// You may optionally specify a *display name* for the volume, which is simply a friendly name or +// description. It does not have to be unique, and you can change it. Avoid entering confidential information. +func (client BlockstorageClient) CreateVolume(ctx context.Context, request CreateVolumeRequest) (response CreateVolumeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/volumes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreateVolumeBackup Creates a new backup of the specified volume. For general information about volume backups, - // see [Overview of Block Volume Service Backups]({{DOC_SERVER_URL}}/Content/Block/Concepts/blockvolumebackups.htm) - // When the request is received, the backup object is in a REQUEST_RECEIVED state. - // When the data is imaged, it goes into a CREATING state. - // After the backup is fully uploaded to the cloud, it goes into an AVAILABLE state. -func(client BlockstorageClient) CreateVolumeBackup(ctx context.Context, request CreateVolumeBackupRequest) (response CreateVolumeBackupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/volumeBackups", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateVolumeBackup Creates a new backup of the specified volume. For general information about volume backups, +// see Overview of Block Volume Service Backups (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/blockvolumebackups.htm) +// When the request is received, the backup object is in a REQUEST_RECEIVED state. +// When the data is imaged, it goes into a CREATING state. +// After the backup is fully uploaded to the cloud, it goes into an AVAILABLE state. +func (client BlockstorageClient) CreateVolumeBackup(ctx context.Context, request CreateVolumeBackupRequest) (response CreateVolumeBackupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/volumeBackups", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteBootVolume Deletes the specified boot volume. The volume cannot have an active connection to an instance. - // To disconnect the boot volume from a connected instance, see - // [Disconnecting From a Boot Volume]({{DOC_SERVER_URL}}/Content/Block/Tasks/deletingbootvolume.htm). - // **Warning:** All data on the boot volume will be permanently lost when the boot volume is deleted. -func(client BlockstorageClient) DeleteBootVolume(ctx context.Context, request DeleteBootVolumeRequest) (response DeleteBootVolumeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/bootVolumes/{bootVolumeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteBootVolume Deletes the specified boot volume. The volume cannot have an active connection to an instance. +// To disconnect the boot volume from a connected instance, see +// Disconnecting From a Boot Volume (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Tasks/deletingbootvolume.htm). +// **Warning:** All data on the boot volume will be permanently lost when the boot volume is deleted. +func (client BlockstorageClient) DeleteBootVolume(ctx context.Context, request DeleteBootVolumeRequest) (response DeleteBootVolumeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/bootVolumes/{bootVolumeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteVolume Deletes the specified volume. The volume cannot have an active connection to an instance. - // To disconnect the volume from a connected instance, see - // [Disconnecting From a Volume]({{DOC_SERVER_URL}}/Content/Block/Tasks/disconnectingfromavolume.htm). - // **Warning:** All data on the volume will be permanently lost when the volume is deleted. -func(client BlockstorageClient) DeleteVolume(ctx context.Context, request DeleteVolumeRequest) (response DeleteVolumeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/volumes/{volumeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteVolume Deletes the specified volume. The volume cannot have an active connection to an instance. +// To disconnect the volume from a connected instance, see +// Disconnecting From a Volume (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Tasks/disconnectingfromavolume.htm). +// **Warning:** All data on the volume will be permanently lost when the volume is deleted. +func (client BlockstorageClient) DeleteVolume(ctx context.Context, request DeleteVolumeRequest) (response DeleteVolumeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/volumes/{volumeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteVolumeBackup Deletes a volume backup. -func(client BlockstorageClient) DeleteVolumeBackup(ctx context.Context, request DeleteVolumeBackupRequest) (response DeleteVolumeBackupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/volumeBackups/{volumeBackupId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteVolumeBackup Deletes a volume backup. +func (client BlockstorageClient) DeleteVolumeBackup(ctx context.Context, request DeleteVolumeBackupRequest) (response DeleteVolumeBackupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/volumeBackups/{volumeBackupId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetBootVolume Gets information for the specified boot volume. -func(client BlockstorageClient) GetBootVolume(ctx context.Context, request GetBootVolumeRequest) (response GetBootVolumeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/bootVolumes/{bootVolumeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetBootVolume Gets information for the specified boot volume. +func (client BlockstorageClient) GetBootVolume(ctx context.Context, request GetBootVolumeRequest) (response GetBootVolumeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/bootVolumes/{bootVolumeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetVolume Gets information for the specified volume. -func(client BlockstorageClient) GetVolume(ctx context.Context, request GetVolumeRequest) (response GetVolumeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumes/{volumeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetVolume Gets information for the specified volume. +func (client BlockstorageClient) GetVolume(ctx context.Context, request GetVolumeRequest) (response GetVolumeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumes/{volumeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetVolumeBackup Gets information for the specified volume backup. -func(client BlockstorageClient) GetVolumeBackup(ctx context.Context, request GetVolumeBackupRequest) (response GetVolumeBackupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeBackups/{volumeBackupId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetVolumeBackup Gets information for the specified volume backup. +func (client BlockstorageClient) GetVolumeBackup(ctx context.Context, request GetVolumeBackupRequest) (response GetVolumeBackupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeBackups/{volumeBackupId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListBootVolumes Lists the boot volumes in the specified compartment and Availability Domain. -func(client BlockstorageClient) ListBootVolumes(ctx context.Context, request ListBootVolumesRequest) (response ListBootVolumesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/bootVolumes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListBootVolumes Lists the boot volumes in the specified compartment and Availability Domain. +func (client BlockstorageClient) ListBootVolumes(ctx context.Context, request ListBootVolumesRequest) (response ListBootVolumesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/bootVolumes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListVolumeBackups Lists the volume backups in the specified compartment. You can filter the results by volume. -func(client BlockstorageClient) ListVolumeBackups(ctx context.Context, request ListVolumeBackupsRequest) (response ListVolumeBackupsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeBackups", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListVolumeBackups Lists the volume backups in the specified compartment. You can filter the results by volume. +func (client BlockstorageClient) ListVolumeBackups(ctx context.Context, request ListVolumeBackupsRequest) (response ListVolumeBackupsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeBackups", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListVolumes Lists the volumes in the specified compartment and Availability Domain. -func(client BlockstorageClient) ListVolumes(ctx context.Context, request ListVolumesRequest) (response ListVolumesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListVolumes Lists the volumes in the specified compartment and Availability Domain. +func (client BlockstorageClient) ListVolumes(ctx context.Context, request ListVolumesRequest) (response ListVolumesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateBootVolume Updates the specified boot volume's display name. -func(client BlockstorageClient) UpdateBootVolume(ctx context.Context, request UpdateBootVolumeRequest) (response UpdateBootVolumeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/bootVolumes/{bootVolumeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateBootVolume Updates the specified boot volume's display name. +func (client BlockstorageClient) UpdateBootVolume(ctx context.Context, request UpdateBootVolumeRequest) (response UpdateBootVolumeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/bootVolumes/{bootVolumeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateVolume Updates the specified volume's display name. - // Avoid entering confidential information. -func(client BlockstorageClient) UpdateVolume(ctx context.Context, request UpdateVolumeRequest) (response UpdateVolumeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/volumes/{volumeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateVolume Updates the specified volume's display name. +// Avoid entering confidential information. +func (client BlockstorageClient) UpdateVolume(ctx context.Context, request UpdateVolumeRequest) (response UpdateVolumeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/volumes/{volumeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateVolumeBackup Updates the display name for the specified volume backup. - // Avoid entering confidential information. -func(client BlockstorageClient) UpdateVolumeBackup(ctx context.Context, request UpdateVolumeBackupRequest) (response UpdateVolumeBackupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/volumeBackups/{volumeBackupId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateVolumeBackup Updates the display name for the specified volume backup. +// Avoid entering confidential information. +func (client BlockstorageClient) UpdateVolumeBackup(ctx context.Context, request UpdateVolumeBackupRequest) (response UpdateVolumeBackupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/volumeBackups/{volumeBackupId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/core_compute_client.go b/vendor/github.com/oracle/oci-go-sdk/core/core_compute_client.go index 6bdc8575d..34b17d7b9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/core_compute_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/core_compute_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -8,1018 +8,826 @@ package core -import( - "github.com/oracle/oci-go-sdk/common" - "context" - "fmt" - "net/http" +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) //ComputeClient a client for Compute type ComputeClient struct { - common.BaseClient - config *common.ConfigurationProvider + common.BaseClient + config *common.ConfigurationProvider } - // NewComputeClientWithConfigurationProvider Creates a new default Compute client with the given configuration provider. // the configuration provider will be used for the default signer as well as reading the region -func NewComputeClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ComputeClient, err error){ - baseClient, err := common.NewClientWithConfig(configProvider) - if err != nil { - return - } - - client = ComputeClient{BaseClient: baseClient} - client.BasePath = "20160918" - err = client.setConfigurationProvider(configProvider) - return +func NewComputeClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ComputeClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } + + client = ComputeClient{BaseClient: baseClient} + client.BasePath = "20160918" + err = client.setConfigurationProvider(configProvider) + return } // SetRegion overrides the region of this client. -func (client *ComputeClient) SetRegion(region string) { - client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "iaas", region) +func (client *ComputeClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "iaas", region) } - // SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid func (client *ComputeClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } - - // Error has been checked already - region, _ := configProvider.Region() - client.config = &configProvider - client.SetRegion(region) - return nil + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.config = &configProvider + client.SetRegion(region) + return nil } // ConfigurationProvider the ConfigurationProvider used in this client, or null if none set func (client *ComputeClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - - - - - - - // AddImageShapeCompatibilityEntry Adds a shape to the compatible shapes list for the image. -func(client ComputeClient) AddImageShapeCompatibilityEntry(ctx context.Context, request AddImageShapeCompatibilityEntryRequest) (response AddImageShapeCompatibilityEntryResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/images/{imageId}/shapes/{shapeName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // AttachBootVolume Attaches the specified boot volume to the specified instance. -func(client ComputeClient) AttachBootVolume(ctx context.Context, request AttachBootVolumeRequest) (response AttachBootVolumeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/bootVolumeAttachments/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // AttachVnic Creates a secondary VNIC and attaches it to the specified instance. - // For more information about secondary VNICs, see - // [Virtual Network Interface Cards (VNICs)]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingVNICs.htm). -func(client ComputeClient) AttachVnic(ctx context.Context, request AttachVnicRequest) (response AttachVnicResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/vnicAttachments/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // AttachVolume Attaches the specified storage volume to the specified instance. -func(client ComputeClient) AttachVolume(ctx context.Context, request AttachVolumeRequest) (response AttachVolumeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/volumeAttachments/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &volumeattachment{}) - return + return client.config +} + +// AttachBootVolume Attaches the specified boot volume to the specified instance. +func (client ComputeClient) AttachBootVolume(ctx context.Context, request AttachBootVolumeRequest) (response AttachBootVolumeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/bootVolumeAttachments/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// AttachVnic Creates a secondary VNIC and attaches it to the specified instance. +// For more information about secondary VNICs, see +// Virtual Network Interface Cards (VNICs) (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm). +func (client ComputeClient) AttachVnic(ctx context.Context, request AttachVnicRequest) (response AttachVnicResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/vnicAttachments/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// AttachVolume Attaches the specified storage volume to the specified instance. +func (client ComputeClient) AttachVolume(ctx context.Context, request AttachVolumeRequest) (response AttachVolumeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/volumeAttachments/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &volumeattachment{}) + return +} + +// CaptureConsoleHistory Captures the most recent serial console data (up to a megabyte) for the +// specified instance. +// The `CaptureConsoleHistory` operation works with the other console history operations +// as described below. +// 1. Use `CaptureConsoleHistory` to request the capture of up to a megabyte of the +// most recent console history. This call returns a `ConsoleHistory` +// object. The object will have a state of REQUESTED. +// 2. Wait for the capture operation to succeed by polling `GetConsoleHistory` with +// the identifier of the console history metadata. The state of the +// `ConsoleHistory` object will go from REQUESTED to GETTING-HISTORY and +// then SUCCEEDED (or FAILED). +// 3. Use `GetConsoleHistoryContent` to get the actual console history data (not the +// metadata). +// 4. Optionally, use `DeleteConsoleHistory` to delete the console history metadata +// and the console history data. +func (client ComputeClient) CaptureConsoleHistory(ctx context.Context, request CaptureConsoleHistoryRequest) (response CaptureConsoleHistoryResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/instanceConsoleHistories/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateImage Creates a boot disk image for the specified instance or imports an exported image from the Oracle Cloud Infrastructure Object Storage service. +// When creating a new image, you must provide the OCID of the instance you want to use as the basis for the image, and +// the OCID of the compartment containing that instance. For more information about images, +// see Managing Custom Images (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/managingcustomimages.htm). +// When importing an exported image from Object Storage, you specify the source information +// in ImageSourceDetails. +// When importing an image based on the namespace, bucket name, and object name, +// use ImageSourceViaObjectStorageTupleDetails. +// When importing an image based on the Object Storage URL, use +// ImageSourceViaObjectStorageUriDetails. +// See Object Storage URLs (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm#URLs) and pre-authenticated requests (https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingaccess.htm#pre-auth) +// for constructing URLs for image import/export. +// For more information about importing exported images, see +// Image Import/Export (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm). +// You may optionally specify a *display name* for the image, which is simply a friendly name or description. +// It does not have to be unique, and you can change it. See UpdateImage. +// Avoid entering confidential information. +func (client ComputeClient) CreateImage(ctx context.Context, request CreateImageRequest) (response CreateImageResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/images/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateInstanceConsoleConnection Creates a new console connection to the specified instance. +// Once the console connection has been created and is available, +// you connect to the console using SSH. +// For more information about console access, see Accessing the Console (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/serialconsole.htm). +func (client ComputeClient) CreateInstanceConsoleConnection(ctx context.Context, request CreateInstanceConsoleConnectionRequest) (response CreateInstanceConsoleConnectionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/instanceConsoleConnections", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteConsoleHistory Deletes the specified console history metadata and the console history data. +func (client ComputeClient) DeleteConsoleHistory(ctx context.Context, request DeleteConsoleHistoryRequest) (response DeleteConsoleHistoryResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/instanceConsoleHistories/{instanceConsoleHistoryId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteImage Deletes an image. +func (client ComputeClient) DeleteImage(ctx context.Context, request DeleteImageRequest) (response DeleteImageResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/images/{imageId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteInstanceConsoleConnection Deletes the specified instance console connection. +func (client ComputeClient) DeleteInstanceConsoleConnection(ctx context.Context, request DeleteInstanceConsoleConnectionRequest) (response DeleteInstanceConsoleConnectionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/instanceConsoleConnections/{instanceConsoleConnectionId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DetachBootVolume Detaches a boot volume from an instance. You must specify the OCID of the boot volume attachment. +// This is an asynchronous operation. The attachment's `lifecycleState` will change to DETACHING temporarily +// until the attachment is completely removed. +func (client ComputeClient) DetachBootVolume(ctx context.Context, request DetachBootVolumeRequest) (response DetachBootVolumeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/bootVolumeAttachments/{bootVolumeAttachmentId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DetachVnic Detaches and deletes the specified secondary VNIC. +// This operation cannot be used on the instance's primary VNIC. +// When you terminate an instance, all attached VNICs (primary +// and secondary) are automatically detached and deleted. +// **Important:** If the VNIC has a +// PrivateIp that is the +// target of a route rule (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm#privateip), +// deleting the VNIC causes that route rule to blackhole and the traffic +// will be dropped. +func (client ComputeClient) DetachVnic(ctx context.Context, request DetachVnicRequest) (response DetachVnicResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/vnicAttachments/{vnicAttachmentId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DetachVolume Detaches a storage volume from an instance. You must specify the OCID of the volume attachment. +// This is an asynchronous operation. The attachment's `lifecycleState` will change to DETACHING temporarily +// until the attachment is completely removed. +func (client ComputeClient) DetachVolume(ctx context.Context, request DetachVolumeRequest) (response DetachVolumeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/volumeAttachments/{volumeAttachmentId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ExportImage Exports the specified image to the Oracle Cloud Infrastructure Object Storage service. You can use the Object Storage URL, +// or the namespace, bucket name, and object name when specifying the location to export to. +// For more information about exporting images, see Image Import/Export (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm). +// To perform an image export, you need write access to the Object Storage bucket for the image, +// see Let Users Write Objects to Object Storage Buckets (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/commonpolicies.htm#Let4). +// See Object Storage URLs (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm#URLs) and pre-authenticated requests (https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingaccess.htm#pre-auth) +// for constructing URLs for image import/export. +func (client ComputeClient) ExportImage(ctx context.Context, request ExportImageRequest) (response ExportImageResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/images/{imageId}/actions/export", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetBootVolumeAttachment Gets information about the specified boot volume attachment. +func (client ComputeClient) GetBootVolumeAttachment(ctx context.Context, request GetBootVolumeAttachmentRequest) (response GetBootVolumeAttachmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/bootVolumeAttachments/{bootVolumeAttachmentId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetConsoleHistory Shows the metadata for the specified console history. +// See CaptureConsoleHistory +// for details about using the console history operations. +func (client ComputeClient) GetConsoleHistory(ctx context.Context, request GetConsoleHistoryRequest) (response GetConsoleHistoryResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instanceConsoleHistories/{instanceConsoleHistoryId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetConsoleHistoryContent Gets the actual console history data (not the metadata). +// See CaptureConsoleHistory +// for details about using the console history operations. +func (client ComputeClient) GetConsoleHistoryContent(ctx context.Context, request GetConsoleHistoryContentRequest) (response GetConsoleHistoryContentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instanceConsoleHistories/{instanceConsoleHistoryId}/data", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetImage Gets the specified image. +func (client ComputeClient) GetImage(ctx context.Context, request GetImageRequest) (response GetImageResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/images/{imageId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetInstance Gets information about the specified instance. +func (client ComputeClient) GetInstance(ctx context.Context, request GetInstanceRequest) (response GetInstanceResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instances/{instanceId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetInstanceConsoleConnection Gets the specified instance console connection's information. +func (client ComputeClient) GetInstanceConsoleConnection(ctx context.Context, request GetInstanceConsoleConnectionRequest) (response GetInstanceConsoleConnectionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instanceConsoleConnections/{instanceConsoleConnectionId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetVnicAttachment Gets the information for the specified VNIC attachment. +func (client ComputeClient) GetVnicAttachment(ctx context.Context, request GetVnicAttachmentRequest) (response GetVnicAttachmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/vnicAttachments/{vnicAttachmentId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetVolumeAttachment Gets information about the specified volume attachment. +func (client ComputeClient) GetVolumeAttachment(ctx context.Context, request GetVolumeAttachmentRequest) (response GetVolumeAttachmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeAttachments/{volumeAttachmentId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &volumeattachment{}) + return +} + +// GetWindowsInstanceInitialCredentials Gets the generated credentials for the instance. Only works for Windows instances. The returned credentials +// are only valid for the initial login. +func (client ComputeClient) GetWindowsInstanceInitialCredentials(ctx context.Context, request GetWindowsInstanceInitialCredentialsRequest) (response GetWindowsInstanceInitialCredentialsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instances/{instanceId}/initialCredentials", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// InstanceAction Performs one of the power actions (start, stop, softreset, or reset) +// on the specified instance. +// **start** - power on +// **stop** - power off +// **softreset** - ACPI shutdown and power on +// **reset** - power off and power on +// Note that the **stop** state has no effect on the resources you consume. +// Billing continues for instances that you stop, and related resources continue +// to apply against any relevant quotas. You must terminate an instance +// (TerminateInstance) +// to remove its resources from billing and quotas. +func (client ComputeClient) InstanceAction(ctx context.Context, request InstanceActionRequest) (response InstanceActionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/instances/{instanceId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// LaunchInstance Creates a new instance in the specified compartment and the specified Availability Domain. +// For general information about instances, see +// Overview of the Compute Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Concepts/computeoverview.htm). +// For information about access control and compartments, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// For information about Availability Domains, see +// Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). +// To get a list of Availability Domains, use the `ListAvailabilityDomains` operation +// in the Identity and Access Management Service API. +// All Oracle Cloud Infrastructure resources, including instances, get an Oracle-assigned, +// unique ID called an Oracle Cloud Identifier (OCID). +// When you create a resource, you can find its OCID in the response. You can +// also retrieve a resource's OCID by using a List API operation +// on that resource type, or by viewing the resource in the Console. +// When you launch an instance, it is automatically attached to a virtual +// network interface card (VNIC), called the *primary VNIC*. The VNIC +// has a private IP address from the subnet's CIDR. You can either assign a +// private IP address of your choice or let Oracle automatically assign one. +// You can choose whether the instance has a public IP address. To retrieve the +// addresses, use the ListVnicAttachments +// operation to get the VNIC ID for the instance, and then call +// GetVnic with the VNIC ID. +// You can later add secondary VNICs to an instance. For more information, see +// Virtual Network Interface Cards (VNICs) (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm). +func (client ComputeClient) LaunchInstance(ctx context.Context, request LaunchInstanceRequest) (response LaunchInstanceResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/instances/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListBootVolumeAttachments Lists the boot volume attachments in the specified compartment. You can filter the +// list by specifying an instance OCID, boot volume OCID, or both. +func (client ComputeClient) ListBootVolumeAttachments(ctx context.Context, request ListBootVolumeAttachmentsRequest) (response ListBootVolumeAttachmentsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/bootVolumeAttachments/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListConsoleHistories Lists the console history metadata for the specified compartment or instance. +func (client ComputeClient) ListConsoleHistories(ctx context.Context, request ListConsoleHistoriesRequest) (response ListConsoleHistoriesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instanceConsoleHistories/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListImages Lists the available images in the specified compartment. +// If you specify a value for the `sortBy` parameter, Oracle-provided images appear first in the list, followed by custom images. +// For more +// information about images, see +// Managing Custom Images (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/managingcustomimages.htm). +func (client ComputeClient) ListImages(ctx context.Context, request ListImagesRequest) (response ListImagesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/images/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListInstanceConsoleConnections Lists the console connections for the specified compartment or instance. +// For more information about console access, see Accessing the Instance Console (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/serialconsole.htm). +func (client ComputeClient) ListInstanceConsoleConnections(ctx context.Context, request ListInstanceConsoleConnectionsRequest) (response ListInstanceConsoleConnectionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instanceConsoleConnections", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListInstances Lists the instances in the specified compartment and the specified Availability Domain. +// You can filter the results by specifying an instance name (the list will include all the identically-named +// instances in the compartment). +func (client ComputeClient) ListInstances(ctx context.Context, request ListInstancesRequest) (response ListInstancesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instances/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListShapes Lists the shapes that can be used to launch an instance within the specified compartment. You can +// filter the list by compatibility with a specific image. +func (client ComputeClient) ListShapes(ctx context.Context, request ListShapesRequest) (response ListShapesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/shapes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListVnicAttachments Lists the VNIC attachments in the specified compartment. A VNIC attachment +// resides in the same compartment as the attached instance. The list can be +// filtered by instance, VNIC, or Availability Domain. +func (client ComputeClient) ListVnicAttachments(ctx context.Context, request ListVnicAttachmentsRequest) (response ListVnicAttachmentsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/vnicAttachments/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CaptureConsoleHistory Captures the most recent serial console data (up to a megabyte) for the - // specified instance. - // The `CaptureConsoleHistory` operation works with the other console history operations - // as described below. - // 1. Use `CaptureConsoleHistory` to request the capture of up to a megabyte of the - // most recent console history. This call returns a `ConsoleHistory` - // object. The object will have a state of REQUESTED. - // 2. Wait for the capture operation to succeed by polling `GetConsoleHistory` with - // the identifier of the console history metadata. The state of the - // `ConsoleHistory` object will go from REQUESTED to GETTING-HISTORY and - // then SUCCEEDED (or FAILED). - // 3. Use `GetConsoleHistoryContent` to get the actual console history data (not the - // metadata). - // 4. Optionally, use `DeleteConsoleHistory` to delete the console history metadata - // and the console history data. -func(client ComputeClient) CaptureConsoleHistory(ctx context.Context, request CaptureConsoleHistoryRequest) (response CaptureConsoleHistoryResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/instanceConsoleHistories/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateImage Creates a boot disk image for the specified instance or imports an exported image from the Oracle Cloud Infrastructure Object Storage service. - // When creating a new image, you must provide the OCID of the instance you want to use as the basis for the image, and - // the OCID of the compartment containing that instance. For more information about images, - // see [Managing Custom Images]({{DOC_SERVER_URL}}/Content/Compute/Tasks/managingcustomimages.htm). - // When importing an exported image from Object Storage, you specify the source information - // in ImageSourceDetails. - // When importing an image based on the namespace, bucket name, and object name, - // use ImageSourceViaObjectStorageTupleDetails. - // When importing an image based on the Object Storage URL, use - // ImageSourceViaObjectStorageUriDetails. - // See [Object Storage URLs]({{DOC_SERVER_URL}}/Content/Compute/Tasks/imageimportexport.htm#URLs) and [pre-authenticated requests]({{DOC_SERVER_URL}}/Content/Object/Tasks/managingaccess.htm#pre-auth) - // for constructing URLs for image import/export. - // For more information about importing exported images, see - // [Image Import/Export]({{DOC_SERVER_URL}}/Content/Compute/Tasks/imageimportexport.htm). - // You may optionally specify a *display name* for the image, which is simply a friendly name or description. - // It does not have to be unique, and you can change it. See UpdateImage. - // Avoid entering confidential information. -func(client ComputeClient) CreateImage(ctx context.Context, request CreateImageRequest) (response CreateImageResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/images/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateInstanceConsoleConnection Creates a new console connection to the specified instance. - // Once the console connection has been created and is available, - // you connect to the console using SSH. - // For more information about console access, see [Accessing the Console]({{DOC_SERVER_URL}}/Content/Compute/References/serialconsole.htm). -func(client ComputeClient) CreateInstanceConsoleConnection(ctx context.Context, request CreateInstanceConsoleConnectionRequest) (response CreateInstanceConsoleConnectionResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/instanceConsoleConnections", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteConsoleHistory Deletes the specified console history metadata and the console history data. -func(client ComputeClient) DeleteConsoleHistory(ctx context.Context, request DeleteConsoleHistoryRequest) (response DeleteConsoleHistoryResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/instanceConsoleHistories/{instanceConsoleHistoryId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteImage Deletes an image. -func(client ComputeClient) DeleteImage(ctx context.Context, request DeleteImageRequest) (response DeleteImageResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/images/{imageId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteInstanceConsoleConnection Deletes the specified instance console connection. -func(client ComputeClient) DeleteInstanceConsoleConnection(ctx context.Context, request DeleteInstanceConsoleConnectionRequest) (response DeleteInstanceConsoleConnectionResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/instanceConsoleConnections/{instanceConsoleConnectionId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DetachBootVolume Detaches a boot volume from an instance. You must specify the OCID of the boot volume attachment. - // This is an asynchronous operation. The attachment's `lifecycleState` will change to DETACHING temporarily - // until the attachment is completely removed. -func(client ComputeClient) DetachBootVolume(ctx context.Context, request DetachBootVolumeRequest) (response DetachBootVolumeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/bootVolumeAttachments/{bootVolumeAttachmentId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DetachVnic Detaches and deletes the specified secondary VNIC. - // This operation cannot be used on the instance's primary VNIC. - // When you terminate an instance, all attached VNICs (primary - // and secondary) are automatically detached and deleted. - // **Important:** If the VNIC has a - // PrivateIp that is the - // [target of a route rule]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingroutetables.htm#privateip), - // deleting the VNIC causes that route rule to blackhole and the traffic - // will be dropped. -func(client ComputeClient) DetachVnic(ctx context.Context, request DetachVnicRequest) (response DetachVnicResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/vnicAttachments/{vnicAttachmentId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DetachVolume Detaches a storage volume from an instance. You must specify the OCID of the volume attachment. - // This is an asynchronous operation. The attachment's `lifecycleState` will change to DETACHING temporarily - // until the attachment is completely removed. -func(client ComputeClient) DetachVolume(ctx context.Context, request DetachVolumeRequest) (response DetachVolumeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/volumeAttachments/{volumeAttachmentId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ExportImage Exports the specified image to the Oracle Cloud Infrastructure Object Storage service. You can use the Object Storage URL, - // or the namespace, bucket name, and object name when specifying the location to export to. - // For more information about exporting images, see [Image Import/Export]({{DOC_SERVER_URL}}/Content/Compute/Tasks/imageimportexport.htm). - // To perform an image export, you need write access to the Object Storage bucket for the image, - // see [Let Users Write Objects to Object Storage Buckets]({{DOC_SERVER_URL}}/Content/Identity/Concepts/commonpolicies.htm#Let4). - // See [Object Storage URLs]({{DOC_SERVER_URL}}/Content/Compute/Tasks/imageimportexport.htm#URLs) and [pre-authenticated requests]({{DOC_SERVER_URL}}/Content/Object/Tasks/managingaccess.htm#pre-auth) - // for constructing URLs for image import/export. -func(client ComputeClient) ExportImage(ctx context.Context, request ExportImageRequest) (response ExportImageResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/images/{imageId}/actions/export", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetBootVolumeAttachment Gets information about the specified boot volume attachment. -func(client ComputeClient) GetBootVolumeAttachment(ctx context.Context, request GetBootVolumeAttachmentRequest) (response GetBootVolumeAttachmentResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/bootVolumeAttachments/{bootVolumeAttachmentId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetConsoleHistory Shows the metadata for the specified console history. - // See CaptureConsoleHistory - // for details about using the console history operations. -func(client ComputeClient) GetConsoleHistory(ctx context.Context, request GetConsoleHistoryRequest) (response GetConsoleHistoryResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instanceConsoleHistories/{instanceConsoleHistoryId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetConsoleHistoryContent Gets the actual console history data (not the metadata). - // See CaptureConsoleHistory - // for details about using the console history operations. -func(client ComputeClient) GetConsoleHistoryContent(ctx context.Context, request GetConsoleHistoryContentRequest) (response GetConsoleHistoryContentResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instanceConsoleHistories/{instanceConsoleHistoryId}/data", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetImage Gets the specified image. -func(client ComputeClient) GetImage(ctx context.Context, request GetImageRequest) (response GetImageResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/images/{imageId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetInstance Gets information about the specified instance. -func(client ComputeClient) GetInstance(ctx context.Context, request GetInstanceRequest) (response GetInstanceResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instances/{instanceId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetInstanceConsoleConnection Gets the specified instance console connection's information. -func(client ComputeClient) GetInstanceConsoleConnection(ctx context.Context, request GetInstanceConsoleConnectionRequest) (response GetInstanceConsoleConnectionResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instanceConsoleConnections/{instanceConsoleConnectionId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetVnicAttachment Gets the information for the specified VNIC attachment. -func(client ComputeClient) GetVnicAttachment(ctx context.Context, request GetVnicAttachmentRequest) (response GetVnicAttachmentResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/vnicAttachments/{vnicAttachmentId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetVolumeAttachment Gets information about the specified volume attachment. -func(client ComputeClient) GetVolumeAttachment(ctx context.Context, request GetVolumeAttachmentRequest) (response GetVolumeAttachmentResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeAttachments/{volumeAttachmentId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &volumeattachment{}) - return -} - - - - - // GetWindowsInstanceInitialCredentials Gets the generated credentials for the instance. Only works for Windows instances. The returned credentials - // are only valid for the initial login. -func(client ComputeClient) GetWindowsInstanceInitialCredentials(ctx context.Context, request GetWindowsInstanceInitialCredentialsRequest) (response GetWindowsInstanceInitialCredentialsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instances/{instanceId}/initialCredentials", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // InstanceAction Performs one of the power actions (start, stop, softreset, or reset) - // on the specified instance. - // **start** - power on - // **stop** - power off - // **softreset** - ACPI shutdown and power on - // **reset** - power off and power on - // Note that the **stop** state has no effect on the resources you consume. - // Billing continues for instances that you stop, and related resources continue - // to apply against any relevant quotas. You must terminate an instance - // (TerminateInstance) - // to remove its resources from billing and quotas. -func(client ComputeClient) InstanceAction(ctx context.Context, request InstanceActionRequest) (response InstanceActionResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/instances/{instanceId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // LaunchInstance Creates a new instance in the specified compartment and the specified Availability Domain. - // For general information about instances, see - // [Overview of the Compute Service]({{DOC_SERVER_URL}}/Content/Compute/Concepts/computeoverview.htm). - // For information about access control and compartments, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // For information about Availability Domains, see - // [Regions and Availability Domains]({{DOC_SERVER_URL}}/Content/General/Concepts/regions.htm). - // To get a list of Availability Domains, use the `ListAvailabilityDomains` operation - // in the Identity and Access Management Service API. - // All Oracle Cloud Infrastructure resources, including instances, get an Oracle-assigned, - // unique ID called an Oracle Cloud Identifier (OCID). - // When you create a resource, you can find its OCID in the response. You can - // also retrieve a resource's OCID by using a List API operation - // on that resource type, or by viewing the resource in the Console. - // When you launch an instance, it is automatically attached to a virtual - // network interface card (VNIC), called the *primary VNIC*. The VNIC - // has a private IP address from the subnet's CIDR. You can either assign a - // private IP address of your choice or let Oracle automatically assign one. - // You can choose whether the instance has a public IP address. To retrieve the - // addresses, use the ListVnicAttachments - // operation to get the VNIC ID for the instance, and then call - // GetVnic with the VNIC ID. - // You can later add secondary VNICs to an instance. For more information, see - // [Virtual Network Interface Cards (VNICs)]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingVNICs.htm). -func(client ComputeClient) LaunchInstance(ctx context.Context, request LaunchInstanceRequest) (response LaunchInstanceResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/instances/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListBootVolumeAttachments Lists the boot volume attachments in the specified compartment. You can filter the - // list by specifying an instance OCID, boot volume OCID, or both. -func(client ComputeClient) ListBootVolumeAttachments(ctx context.Context, request ListBootVolumeAttachmentsRequest) (response ListBootVolumeAttachmentsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/bootVolumeAttachments/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListConsoleHistories Lists the console history metadata for the specified compartment or instance. -func(client ComputeClient) ListConsoleHistories(ctx context.Context, request ListConsoleHistoriesRequest) (response ListConsoleHistoriesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instanceConsoleHistories/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListImages Lists the available images in the specified compartment. - // If you specify a value for the `sortBy` parameter, Oracle-provided images appear first in the list, followed by custom images. - // For more - // information about images, see - // [Managing Custom Images]({{DOC_SERVER_URL}}/Content/Compute/Tasks/managingcustomimages.htm). -func(client ComputeClient) ListImages(ctx context.Context, request ListImagesRequest) (response ListImagesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/images/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListInstanceConsoleConnections Lists the console connections for the specified compartment or instance. - // For more information about console access, see [Accessing the Instance Console]({{DOC_SERVER_URL}}/Content/Compute/References/serialconsole.htm). -func(client ComputeClient) ListInstanceConsoleConnections(ctx context.Context, request ListInstanceConsoleConnectionsRequest) (response ListInstanceConsoleConnectionsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instanceConsoleConnections", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListInstances Lists the instances in the specified compartment and the specified Availability Domain. - // You can filter the results by specifying an instance name (the list will include all the identically-named - // instances in the compartment). -func(client ComputeClient) ListInstances(ctx context.Context, request ListInstancesRequest) (response ListInstancesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/instances/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListShapes Lists the shapes that can be used to launch an instance within the specified compartment. You can - // filter the list by compatibility with a specific image. -func(client ComputeClient) ListShapes(ctx context.Context, request ListShapesRequest) (response ListShapesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/shapes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListVnicAttachments Lists the VNIC attachments in the specified compartment. A VNIC attachment - // resides in the same compartment as the attached instance. The list can be - // filtered by instance, VNIC, or Availability Domain. -func(client ComputeClient) ListVnicAttachments(ctx context.Context, request ListVnicAttachmentsRequest) (response ListVnicAttachmentsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/vnicAttachments/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - //listvolumeattachment allows to unmarshal list of polymorphic VolumeAttachment type listvolumeattachment []volumeattachment //UnmarshalPolymorphicJSON unmarshals polymorphic json list of items func (m *listvolumeattachment) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - res := make([]VolumeAttachment, len(*m)) - for i, v := range *m { - nn, err := v.UnmarshalPolymorphicJSON(v.JsonData) - if err != nil { - return nil, err - } - res[i] = nn.(VolumeAttachment) - } - return res, nil + res := make([]VolumeAttachment, len(*m)) + for i, v := range *m { + nn, err := v.UnmarshalPolymorphicJSON(v.JsonData) + if err != nil { + return nil, err + } + res[i] = nn.(VolumeAttachment) + } + return res, nil +} + +// ListVolumeAttachments Lists the volume attachments in the specified compartment. You can filter the +// list by specifying an instance OCID, volume OCID, or both. +// Currently, the only supported volume attachment type is IScsiVolumeAttachment. +func (client ComputeClient) ListVolumeAttachments(ctx context.Context, request ListVolumeAttachmentsRequest) (response ListVolumeAttachmentsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeAttachments/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &listvolumeattachment{}) + return +} + +// TerminateInstance Terminates the specified instance. Any attached VNICs and volumes are automatically detached +// when the instance terminates. +// To preserve the boot volume associated with the instance, specify `true` for `PreserveBootVolumeQueryParam`. +// To delete the boot volume when the instance is deleted, specify `false` or do not specify a value for `PreserveBootVolumeQueryParam`. +// This is an asynchronous operation. The instance's `lifecycleState` will change to TERMINATING temporarily +// until the instance is completely removed. +func (client ComputeClient) TerminateInstance(ctx context.Context, request TerminateInstanceRequest) (response TerminateInstanceResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/instances/{instanceId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateConsoleHistory Updates the specified console history metadata. +func (client ComputeClient) UpdateConsoleHistory(ctx context.Context, request UpdateConsoleHistoryRequest) (response UpdateConsoleHistoryResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/instanceConsoleHistories/{instanceConsoleHistoryId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateImage Updates the display name of the image. Avoid entering confidential information. +func (client ComputeClient) UpdateImage(ctx context.Context, request UpdateImageRequest) (response UpdateImageResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/images/{imageId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateInstance Updates the display name of the specified instance. Avoid entering confidential information. +// The OCID of the instance remains the same. +func (client ComputeClient) UpdateInstance(ctx context.Context, request UpdateInstanceRequest) (response UpdateInstanceResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/instances/{instanceId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - // ListVolumeAttachments Lists the volume attachments in the specified compartment. You can filter the - // list by specifying an instance OCID, volume OCID, or both. - // Currently, the only supported volume attachment type is IScsiVolumeAttachment. -func(client ComputeClient) ListVolumeAttachments(ctx context.Context, request ListVolumeAttachmentsRequest) (response ListVolumeAttachmentsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeAttachments/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &listvolumeattachment{}) - return -} - - - - - // RemoveImageShapeCompatibilityEntry Removes a shape from the compatible shapes list for the image. -func(client ComputeClient) RemoveImageShapeCompatibilityEntry(ctx context.Context, request RemoveImageShapeCompatibilityEntryRequest) (response RemoveImageShapeCompatibilityEntryResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/images/{imageId}/shapes/{shapeName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // TerminateInstance Terminates the specified instance. Any attached VNICs and volumes are automatically detached - // when the instance terminates. - // To preserve the boot volume associated with the instance, specify `true` for `PreserveBootVolumeQueryParam`. - // To delete the boot volume when the instance is deleted, specify `false` or do not specify a value for `PreserveBootVolumeQueryParam`. - // This is an asynchronous operation. The instance's `lifecycleState` will change to TERMINATING temporarily - // until the instance is completely removed. -func(client ComputeClient) TerminateInstance(ctx context.Context, request TerminateInstanceRequest) (response TerminateInstanceResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/instances/{instanceId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateConsoleHistory Updates the specified console history metadata. -func(client ComputeClient) UpdateConsoleHistory(ctx context.Context, request UpdateConsoleHistoryRequest) (response UpdateConsoleHistoryResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/instanceConsoleHistories/{instanceConsoleHistoryId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateImage Updates the display name of the image. Avoid entering confidential information. -func(client ComputeClient) UpdateImage(ctx context.Context, request UpdateImageRequest) (response UpdateImageResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/images/{imageId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateInstance Updates the display name of the specified instance. Avoid entering confidential information. - // The OCID of the instance remains the same. -func(client ComputeClient) UpdateInstance(ctx context.Context, request UpdateInstanceRequest) (response UpdateInstanceResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/instances/{instanceId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/core_virtualnetwork_client.go b/vendor/github.com/oracle/oci-go-sdk/core/core_virtualnetwork_client.go index 633212d2b..2888effff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/core_virtualnetwork_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/core_virtualnetwork_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -8,2371 +8,2002 @@ package core -import( - "github.com/oracle/oci-go-sdk/common" - "context" - "fmt" - "net/http" +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) //VirtualNetworkClient a client for VirtualNetwork type VirtualNetworkClient struct { - common.BaseClient - config *common.ConfigurationProvider + common.BaseClient + config *common.ConfigurationProvider } - // NewVirtualNetworkClientWithConfigurationProvider Creates a new default VirtualNetwork client with the given configuration provider. // the configuration provider will be used for the default signer as well as reading the region -func NewVirtualNetworkClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client VirtualNetworkClient, err error){ - baseClient, err := common.NewClientWithConfig(configProvider) - if err != nil { - return - } +func NewVirtualNetworkClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client VirtualNetworkClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } - client = VirtualNetworkClient{BaseClient: baseClient} - client.BasePath = "20160918" - err = client.setConfigurationProvider(configProvider) - return + client = VirtualNetworkClient{BaseClient: baseClient} + client.BasePath = "20160918" + err = client.setConfigurationProvider(configProvider) + return } // SetRegion overrides the region of this client. -func (client *VirtualNetworkClient) SetRegion(region string) { - client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "iaas", region) +func (client *VirtualNetworkClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "iaas", region) } - // SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid func (client *VirtualNetworkClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } - // Error has been checked already - region, _ := configProvider.Region() - client.config = &configProvider - client.SetRegion(region) - return nil + // Error has been checked already + region, _ := configProvider.Region() + client.config = &configProvider + client.SetRegion(region) + return nil } // ConfigurationProvider the ConfigurationProvider used in this client, or null if none set func (client *VirtualNetworkClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - - - - - - - // BulkAddVirtualCircuitPublicPrefixes Adds one or more customer public IP prefixes to the specified public virtual circuit. - // Use this operation (and not UpdateVirtualCircuit) - // to add prefixes to the virtual circuit. Oracle must verify the customer's ownership - // of each prefix before traffic for that prefix will flow across the virtual circuit. -func(client VirtualNetworkClient) BulkAddVirtualCircuitPublicPrefixes(ctx context.Context, request BulkAddVirtualCircuitPublicPrefixesRequest) ( err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/virtualCircuits/{virtualCircuitId}/actions/bulkAddPublicPrefixes", request) - if err != nil { - return - } - - - _, err = client.Call(ctx, &httpRequest) - return -} - - - - - // BulkDeleteVirtualCircuitPublicPrefixes Removes one or more customer public IP prefixes from the specified public virtual circuit. - // Use this operation (and not UpdateVirtualCircuit) - // to remove prefixes from the virtual circuit. When the virtual circuit's state switches - // back to PROVISIONED, Oracle stops advertising the specified prefixes across the connection. -func(client VirtualNetworkClient) BulkDeleteVirtualCircuitPublicPrefixes(ctx context.Context, request BulkDeleteVirtualCircuitPublicPrefixesRequest) ( err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/virtualCircuits/{virtualCircuitId}/actions/bulkDeletePublicPrefixes", request) - if err != nil { - return - } - - - _, err = client.Call(ctx, &httpRequest) - return -} - - - - - // ConnectLocalPeeringGateways Connects this local peering gateway (LPG) to another one in the same region. - // This operation must be called by the VCN administrator who is designated as - // the *requestor* in the peering relationship. The *acceptor* must implement - // an Identity and Access Management (IAM) policy that gives the requestor permission - // to connect to LPGs in the acceptor's compartment. Without that permission, this - // operation will fail. For more information, see - // [VCN Peering]({{DOC_SERVER_URL}}/Content/Network/Tasks/VCNpeering.htm). -func(client VirtualNetworkClient) ConnectLocalPeeringGateways(ctx context.Context, request ConnectLocalPeeringGatewaysRequest) (response ConnectLocalPeeringGatewaysResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/localPeeringGateways/{localPeeringGatewayId}/actions/connect", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateCpe Creates a new virtual Customer-Premises Equipment (CPE) object in the specified compartment. For - // more information, see [IPSec VPNs]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingIPsec.htm). - // For the purposes of access control, you must provide the OCID of the compartment where you want - // the CPE to reside. Notice that the CPE doesn't have to be in the same compartment as the IPSec - // connection or other Networking Service components. If you're not sure which compartment to - // use, put the CPE in the same compartment as the DRG. For more information about - // compartments and access control, see [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // For information about OCIDs, see [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You must provide the public IP address of your on-premises router. See - // [Configuring Your On-Premises Router for an IPSec VPN]({{DOC_SERVER_URL}}/Content/Network/Tasks/configuringCPE.htm). - // You may optionally specify a *display name* for the CPE, otherwise a default is provided. It does not have to - // be unique, and you can change it. Avoid entering confidential information. -func(client VirtualNetworkClient) CreateCpe(ctx context.Context, request CreateCpeRequest) (response CreateCpeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/cpes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateCrossConnect Creates a new cross-connect. Oracle recommends you create each cross-connect in a - // CrossConnectGroup so you can use link aggregation - // with the connection. - // After creating the `CrossConnect` object, you need to go the FastConnect location - // and request to have the physical cable installed. For more information, see - // [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). - // For the purposes of access control, you must provide the OCID of the - // compartment where you want the cross-connect to reside. If you're - // not sure which compartment to use, put the cross-connect in the - // same compartment with your VCN. For more information about - // compartments and access control, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // For information about OCIDs, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You may optionally specify a *display name* for the cross-connect. - // It does not have to be unique, and you can change it. Avoid entering confidential information. -func(client VirtualNetworkClient) CreateCrossConnect(ctx context.Context, request CreateCrossConnectRequest) (response CreateCrossConnectResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/crossConnects", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateCrossConnectGroup Creates a new cross-connect group to use with Oracle Cloud Infrastructure - // FastConnect. For more information, see - // [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). - // For the purposes of access control, you must provide the OCID of the - // compartment where you want the cross-connect group to reside. If you're - // not sure which compartment to use, put the cross-connect group in the - // same compartment with your VCN. For more information about - // compartments and access control, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // For information about OCIDs, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You may optionally specify a *display name* for the cross-connect group. - // It does not have to be unique, and you can change it. Avoid entering confidential information. -func(client VirtualNetworkClient) CreateCrossConnectGroup(ctx context.Context, request CreateCrossConnectGroupRequest) (response CreateCrossConnectGroupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/crossConnectGroups", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateDhcpOptions Creates a new set of DHCP options for the specified VCN. For more information, see - // DhcpOptions. - // For the purposes of access control, you must provide the OCID of the compartment where you want the set of - // DHCP options to reside. Notice that the set of options doesn't have to be in the same compartment as the VCN, - // subnets, or other Networking Service components. If you're not sure which compartment to use, put the set - // of DHCP options in the same compartment as the VCN. For more information about compartments and access control, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). For information about OCIDs, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You may optionally specify a *display name* for the set of DHCP options, otherwise a default is provided. - // It does not have to be unique, and you can change it. Avoid entering confidential information. -func(client VirtualNetworkClient) CreateDhcpOptions(ctx context.Context, request CreateDhcpOptionsRequest) (response CreateDhcpOptionsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/dhcps", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateDrg Creates a new Dynamic Routing Gateway (DRG) in the specified compartment. For more information, - // see [Dynamic Routing Gateways (DRGs)]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingDRGs.htm). - // For the purposes of access control, you must provide the OCID of the compartment where you want - // the DRG to reside. Notice that the DRG doesn't have to be in the same compartment as the VCN, - // the DRG attachment, or other Networking Service components. If you're not sure which compartment - // to use, put the DRG in the same compartment as the VCN. For more information about compartments - // and access control, see [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // For information about OCIDs, see [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You may optionally specify a *display name* for the DRG, otherwise a default is provided. - // It does not have to be unique, and you can change it. Avoid entering confidential information. -func(client VirtualNetworkClient) CreateDrg(ctx context.Context, request CreateDrgRequest) (response CreateDrgResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/drgs", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateDrgAttachment Attaches the specified DRG to the specified VCN. A VCN can be attached to only one DRG at a time, - // and vice versa. The response includes a `DrgAttachment` object with its own OCID. For more - // information about DRGs, see - // [Dynamic Routing Gateways (DRGs)]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingDRGs.htm). - // You may optionally specify a *display name* for the attachment, otherwise a default is provided. - // It does not have to be unique, and you can change it. Avoid entering confidential information. - // For the purposes of access control, the DRG attachment is automatically placed into the same compartment - // as the VCN. For more information about compartments and access control, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). -func(client VirtualNetworkClient) CreateDrgAttachment(ctx context.Context, request CreateDrgAttachmentRequest) (response CreateDrgAttachmentResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/drgAttachments", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateIPSecConnection Creates a new IPSec connection between the specified DRG and CPE. For more information, see - // [IPSec VPNs]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingIPsec.htm). - // In the request, you must include at least one static route to the CPE object (you're allowed a maximum - // of 10). For example: 10.0.8.0/16. - // For the purposes of access control, you must provide the OCID of the compartment where you want the - // IPSec connection to reside. Notice that the IPSec connection doesn't have to be in the same compartment - // as the DRG, CPE, or other Networking Service components. If you're not sure which compartment to - // use, put the IPSec connection in the same compartment as the DRG. For more information about - // compartments and access control, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // For information about OCIDs, see [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You may optionally specify a *display name* for the IPSec connection, otherwise a default is provided. - // It does not have to be unique, and you can change it. Avoid entering confidential information. - // After creating the IPSec connection, you need to configure your on-premises router - // with tunnel-specific information returned by - // GetIPSecConnectionDeviceConfig. - // For each tunnel, that operation gives you the IP address of Oracle's VPN headend and the shared secret - // (that is, the pre-shared key). For more information, see - // [Configuring Your On-Premises Router for an IPSec VPN]({{DOC_SERVER_URL}}/Content/Network/Tasks/configuringCPE.htm). - // To get the status of the tunnels (whether they're up or down), use - // GetIPSecConnectionDeviceStatus. -func(client VirtualNetworkClient) CreateIPSecConnection(ctx context.Context, request CreateIPSecConnectionRequest) (response CreateIPSecConnectionResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/ipsecConnections", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateInternetGateway Creates a new Internet Gateway for the specified VCN. For more information, see - // [Connectivity to the Internet]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingIGs.htm). - // For the purposes of access control, you must provide the OCID of the compartment where you want the Internet - // Gateway to reside. Notice that the Internet Gateway doesn't have to be in the same compartment as the VCN or - // other Networking Service components. If you're not sure which compartment to use, put the Internet - // Gateway in the same compartment with the VCN. For more information about compartments and access control, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). For information about OCIDs, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You may optionally specify a *display name* for the Internet Gateway, otherwise a default is provided. It - // does not have to be unique, and you can change it. Avoid entering confidential information. - // For traffic to flow between a subnet and an Internet Gateway, you must create a route rule accordingly in - // the subnet's route table (for example, 0.0.0.0/0 > Internet Gateway). See - // UpdateRouteTable. - // You must specify whether the Internet Gateway is enabled when you create it. If it's disabled, that means no - // traffic will flow to/from the internet even if there's a route rule that enables that traffic. You can later - // use UpdateInternetGateway to easily disable/enable - // the gateway without changing the route rule. -func(client VirtualNetworkClient) CreateInternetGateway(ctx context.Context, request CreateInternetGatewayRequest) (response CreateInternetGatewayResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/internetGateways", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateLocalPeeringGateway Creates a new local peering gateway (LPG) for the specified VCN. -func(client VirtualNetworkClient) CreateLocalPeeringGateway(ctx context.Context, request CreateLocalPeeringGatewayRequest) (response CreateLocalPeeringGatewayResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/localPeeringGateways", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreatePrivateIp Creates a secondary private IP for the specified VNIC. - // For more information about secondary private IPs, see - // [IP Addresses]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingIPaddresses.htm). -func(client VirtualNetworkClient) CreatePrivateIp(ctx context.Context, request CreatePrivateIpRequest) (response CreatePrivateIpResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/privateIps", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateRouteTable Creates a new route table for the specified VCN. In the request you must also include at least one route - // rule for the new route table. For information on the number of rules you can have in a route table, see - // [Service Limits]({{DOC_SERVER_URL}}/Content/General/Concepts/servicelimits.htm). For general information about route - // tables in your VCN and the types of targets you can use in route rules, - // see [Route Tables]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingroutetables.htm). - // For the purposes of access control, you must provide the OCID of the compartment where you want the route - // table to reside. Notice that the route table doesn't have to be in the same compartment as the VCN, subnets, - // or other Networking Service components. If you're not sure which compartment to use, put the route - // table in the same compartment as the VCN. For more information about compartments and access control, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). For information about OCIDs, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You may optionally specify a *display name* for the route table, otherwise a default is provided. - // It does not have to be unique, and you can change it. Avoid entering confidential information. -func(client VirtualNetworkClient) CreateRouteTable(ctx context.Context, request CreateRouteTableRequest) (response CreateRouteTableResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/routeTables", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateSecurityList Creates a new security list for the specified VCN. For more information - // about security lists, see [Security Lists]({{DOC_SERVER_URL}}/Content/Network/Concepts/securitylists.htm). - // For information on the number of rules you can have in a security list, see - // [Service Limits]({{DOC_SERVER_URL}}/Content/General/Concepts/servicelimits.htm). - // For the purposes of access control, you must provide the OCID of the compartment where you want the security - // list to reside. Notice that the security list doesn't have to be in the same compartment as the VCN, subnets, - // or other Networking Service components. If you're not sure which compartment to use, put the security - // list in the same compartment as the VCN. For more information about compartments and access control, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). For information about OCIDs, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You may optionally specify a *display name* for the security list, otherwise a default is provided. - // It does not have to be unique, and you can change it. Avoid entering confidential information. -func(client VirtualNetworkClient) CreateSecurityList(ctx context.Context, request CreateSecurityListRequest) (response CreateSecurityListResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/securityLists", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateSubnet Creates a new subnet in the specified VCN. You can't change the size of the subnet after creation, - // so it's important to think about the size of subnets you need before creating them. - // For more information, see [VCNs and Subnets]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingVCNs.htm). - // For information on the number of subnets you can have in a VCN, see - // [Service Limits]({{DOC_SERVER_URL}}/Content/General/Concepts/servicelimits.htm). - // For the purposes of access control, you must provide the OCID of the compartment where you want the subnet - // to reside. Notice that the subnet doesn't have to be in the same compartment as the VCN, route tables, or - // other Networking Service components. If you're not sure which compartment to use, put the subnet in - // the same compartment as the VCN. For more information about compartments and access control, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). For information about OCIDs, - // see [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You may optionally associate a route table with the subnet. If you don't, the subnet will use the - // VCN's default route table. For more information about route tables, see - // [Route Tables]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingroutetables.htm). - // You may optionally associate a security list with the subnet. If you don't, the subnet will use the - // VCN's default security list. For more information about security lists, see - // [Security Lists]({{DOC_SERVER_URL}}/Content/Network/Concepts/securitylists.htm). - // You may optionally associate a set of DHCP options with the subnet. If you don't, the subnet will use the - // VCN's default set. For more information about DHCP options, see - // [DHCP Options]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingDHCP.htm). - // You may optionally specify a *display name* for the subnet, otherwise a default is provided. - // It does not have to be unique, and you can change it. Avoid entering confidential information. - // You can also add a DNS label for the subnet, which is required if you want the Internet and - // VCN Resolver to resolve hostnames for instances in the subnet. For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). -func(client VirtualNetworkClient) CreateSubnet(ctx context.Context, request CreateSubnetRequest) (response CreateSubnetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/subnets", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateVcn Creates a new Virtual Cloud Network (VCN). For more information, see - // [VCNs and Subnets]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingVCNs.htm). - // For the VCN you must specify a single, contiguous IPv4 CIDR block. Oracle recommends using one of the - // private IP address ranges specified in [RFC 1918](https://tools.ietf.org/html/rfc1918) (10.0.0.0/8, - // 172.16/12, and 192.168/16). Example: 172.16.0.0/16. The CIDR block can range from /16 to /30, and it - // must not overlap with your on-premises network. You can't change the size of the VCN after creation. - // For the purposes of access control, you must provide the OCID of the compartment where you want the VCN to - // reside. Consult an Oracle Cloud Infrastructure administrator in your organization if you're not sure which - // compartment to use. Notice that the VCN doesn't have to be in the same compartment as the subnets or other - // Networking Service components. For more information about compartments and access control, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). For information about OCIDs, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You may optionally specify a *display name* for the VCN, otherwise a default is provided. It does not have to - // be unique, and you can change it. Avoid entering confidential information. - // You can also add a DNS label for the VCN, which is required if you want the instances to use the - // Interent and VCN Resolver option for DNS in the VCN. For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // The VCN automatically comes with a default route table, default security list, and default set of DHCP options. - // The OCID for each is returned in the response. You can't delete these default objects, but you can change their - // contents (that is, change the route rules, security list rules, and so on). - // The VCN and subnets you create are not accessible until you attach an Internet Gateway or set up an IPSec VPN - // or FastConnect. For more information, see - // [Overview of the Networking Service]({{DOC_SERVER_URL}}/Content/Network/Concepts/overview.htm). -func(client VirtualNetworkClient) CreateVcn(ctx context.Context, request CreateVcnRequest) (response CreateVcnResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/vcns", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateVirtualCircuit Creates a new virtual circuit to use with Oracle Cloud - // Infrastructure FastConnect. For more information, see - // [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). - // For the purposes of access control, you must provide the OCID of the - // compartment where you want the virtual circuit to reside. If you're - // not sure which compartment to use, put the virtual circuit in the - // same compartment with the DRG it's using. For more information about - // compartments and access control, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // For information about OCIDs, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You may optionally specify a *display name* for the virtual circuit. - // It does not have to be unique, and you can change it. Avoid entering confidential information. - // **Important:** When creating a virtual circuit, you specify a DRG for - // the traffic to flow through. Make sure you attach the DRG to your - // VCN and confirm the VCN's routing sends traffic to the DRG. Otherwise - // traffic will not flow. For more information, see - // [Route Tables]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingroutetables.htm). -func(client VirtualNetworkClient) CreateVirtualCircuit(ctx context.Context, request CreateVirtualCircuitRequest) (response CreateVirtualCircuitResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/virtualCircuits", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteCpe Deletes the specified CPE object. The CPE must not be connected to a DRG. This is an asynchronous - // operation. The CPE's `lifecycleState` will change to TERMINATING temporarily until the CPE is completely - // removed. -func(client VirtualNetworkClient) DeleteCpe(ctx context.Context, request DeleteCpeRequest) (response DeleteCpeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/cpes/{cpeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteCrossConnect Deletes the specified cross-connect. It must not be mapped to a - // VirtualCircuit. -func(client VirtualNetworkClient) DeleteCrossConnect(ctx context.Context, request DeleteCrossConnectRequest) (response DeleteCrossConnectResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/crossConnects/{crossConnectId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteCrossConnectGroup Deletes the specified cross-connect group. It must not contain any - // cross-connects, and it cannot be mapped to a - // VirtualCircuit. -func(client VirtualNetworkClient) DeleteCrossConnectGroup(ctx context.Context, request DeleteCrossConnectGroupRequest) (response DeleteCrossConnectGroupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/crossConnectGroups/{crossConnectGroupId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteDhcpOptions Deletes the specified set of DHCP options, but only if it's not associated with a subnet. You can't delete a - // VCN's default set of DHCP options. - // This is an asynchronous operation. The state of the set of options will switch to TERMINATING temporarily - // until the set is completely removed. -func(client VirtualNetworkClient) DeleteDhcpOptions(ctx context.Context, request DeleteDhcpOptionsRequest) (response DeleteDhcpOptionsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/dhcps/{dhcpId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteDrg Deletes the specified DRG. The DRG must not be attached to a VCN or be connected to your on-premise - // network. Also, there must not be a route table that lists the DRG as a target. This is an asynchronous - // operation. The DRG's `lifecycleState` will change to TERMINATING temporarily until the DRG is completely - // removed. -func(client VirtualNetworkClient) DeleteDrg(ctx context.Context, request DeleteDrgRequest) (response DeleteDrgResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/drgs/{drgId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteDrgAttachment Detaches a DRG from a VCN by deleting the corresponding `DrgAttachment`. This is an asynchronous - // operation. The attachment's `lifecycleState` will change to DETACHING temporarily until the attachment - // is completely removed. -func(client VirtualNetworkClient) DeleteDrgAttachment(ctx context.Context, request DeleteDrgAttachmentRequest) (response DeleteDrgAttachmentResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/drgAttachments/{drgAttachmentId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteIPSecConnection Deletes the specified IPSec connection. If your goal is to disable the IPSec VPN between your VCN and - // on-premises network, it's easiest to simply detach the DRG but keep all the IPSec VPN components intact. - // If you were to delete all the components and then later need to create an IPSec VPN again, you would - // need to configure your on-premises router again with the new information returned from - // CreateIPSecConnection. - // This is an asynchronous operation. The connection's `lifecycleState` will change to TERMINATING temporarily - // until the connection is completely removed. -func(client VirtualNetworkClient) DeleteIPSecConnection(ctx context.Context, request DeleteIPSecConnectionRequest) (response DeleteIPSecConnectionResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/ipsecConnections/{ipscId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteInternetGateway Deletes the specified Internet Gateway. The Internet Gateway does not have to be disabled, but - // there must not be a route table that lists it as a target. - // This is an asynchronous operation. The gateway's `lifecycleState` will change to TERMINATING temporarily - // until the gateway is completely removed. -func(client VirtualNetworkClient) DeleteInternetGateway(ctx context.Context, request DeleteInternetGatewayRequest) (response DeleteInternetGatewayResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/internetGateways/{igId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteLocalPeeringGateway Deletes the specified local peering gateway (LPG). - // This is an asynchronous operation; the local peering gateway's `lifecycleState` changes to TERMINATING temporarily - // until the local peering gateway is completely removed. -func(client VirtualNetworkClient) DeleteLocalPeeringGateway(ctx context.Context, request DeleteLocalPeeringGatewayRequest) (response DeleteLocalPeeringGatewayResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/localPeeringGateways/{localPeeringGatewayId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeletePrivateIp Unassigns and deletes the specified private IP. You must - // specify the object's OCID. The private IP address is returned to - // the subnet's pool of available addresses. - // This operation cannot be used with primary private IPs, which are - // automatically unassigned and deleted when the VNIC is terminated. - // **Important:** If a secondary private IP is the - // [target of a route rule]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingroutetables.htm#privateip), - // unassigning it from the VNIC causes that route rule to blackhole and the traffic - // will be dropped. -func(client VirtualNetworkClient) DeletePrivateIp(ctx context.Context, request DeletePrivateIpRequest) (response DeletePrivateIpResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/privateIps/{privateIpId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteRouteTable Deletes the specified route table, but only if it's not associated with a subnet. You can't delete a - // VCN's default route table. - // This is an asynchronous operation. The route table's `lifecycleState` will change to TERMINATING temporarily - // until the route table is completely removed. -func(client VirtualNetworkClient) DeleteRouteTable(ctx context.Context, request DeleteRouteTableRequest) (response DeleteRouteTableResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/routeTables/{rtId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteSecurityList Deletes the specified security list, but only if it's not associated with a subnet. You can't delete - // a VCN's default security list. - // This is an asynchronous operation. The security list's `lifecycleState` will change to TERMINATING temporarily - // until the security list is completely removed. -func(client VirtualNetworkClient) DeleteSecurityList(ctx context.Context, request DeleteSecurityListRequest) (response DeleteSecurityListResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/securityLists/{securityListId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteSubnet Deletes the specified subnet, but only if there are no instances in the subnet. This is an asynchronous - // operation. The subnet's `lifecycleState` will change to TERMINATING temporarily. If there are any - // instances in the subnet, the state will instead change back to AVAILABLE. -func(client VirtualNetworkClient) DeleteSubnet(ctx context.Context, request DeleteSubnetRequest) (response DeleteSubnetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/subnets/{subnetId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteVcn Deletes the specified VCN. The VCN must be empty and have no attached gateways. This is an asynchronous - // operation. The VCN's `lifecycleState` will change to TERMINATING temporarily until the VCN is completely - // removed. -func(client VirtualNetworkClient) DeleteVcn(ctx context.Context, request DeleteVcnRequest) (response DeleteVcnResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/vcns/{vcnId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteVirtualCircuit Deletes the specified virtual circuit. - // **Important:** If you're using FastConnect via a provider, - // make sure to also terminate the connection with - // the provider, or else the provider may continue to bill you. -func(client VirtualNetworkClient) DeleteVirtualCircuit(ctx context.Context, request DeleteVirtualCircuitRequest) (response DeleteVirtualCircuitResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/virtualCircuits/{virtualCircuitId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetCpe Gets the specified CPE's information. -func(client VirtualNetworkClient) GetCpe(ctx context.Context, request GetCpeRequest) (response GetCpeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/cpes/{cpeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetCrossConnect Gets the specified cross-connect's information. -func(client VirtualNetworkClient) GetCrossConnect(ctx context.Context, request GetCrossConnectRequest) (response GetCrossConnectResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnects/{crossConnectId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetCrossConnectGroup Gets the specified cross-connect group's information. -func(client VirtualNetworkClient) GetCrossConnectGroup(ctx context.Context, request GetCrossConnectGroupRequest) (response GetCrossConnectGroupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnectGroups/{crossConnectGroupId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetCrossConnectLetterOfAuthority Gets the Letter of Authority for the specified cross-connect. -func(client VirtualNetworkClient) GetCrossConnectLetterOfAuthority(ctx context.Context, request GetCrossConnectLetterOfAuthorityRequest) (response GetCrossConnectLetterOfAuthorityResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnects/{crossConnectId}/letterOfAuthority", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetCrossConnectStatus Gets the status of the specified cross-connect. -func(client VirtualNetworkClient) GetCrossConnectStatus(ctx context.Context, request GetCrossConnectStatusRequest) (response GetCrossConnectStatusResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnects/{crossConnectId}/status", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDhcpOptions Gets the specified set of DHCP options. -func(client VirtualNetworkClient) GetDhcpOptions(ctx context.Context, request GetDhcpOptionsRequest) (response GetDhcpOptionsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dhcps/{dhcpId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDrg Gets the specified DRG's information. -func(client VirtualNetworkClient) GetDrg(ctx context.Context, request GetDrgRequest) (response GetDrgResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/drgs/{drgId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDrgAttachment Gets the information for the specified `DrgAttachment`. -func(client VirtualNetworkClient) GetDrgAttachment(ctx context.Context, request GetDrgAttachmentRequest) (response GetDrgAttachmentResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/drgAttachments/{drgAttachmentId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return + return client.config +} + +// BulkAddVirtualCircuitPublicPrefixes Adds one or more customer public IP prefixes to the specified public virtual circuit. +// Use this operation (and not UpdateVirtualCircuit) +// to add prefixes to the virtual circuit. Oracle must verify the customer's ownership +// of each prefix before traffic for that prefix will flow across the virtual circuit. +func (client VirtualNetworkClient) BulkAddVirtualCircuitPublicPrefixes(ctx context.Context, request BulkAddVirtualCircuitPublicPrefixesRequest) (err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/virtualCircuits/{virtualCircuitId}/actions/bulkAddPublicPrefixes", request) + if err != nil { + return + } + + _, err = client.Call(ctx, &httpRequest) + return +} + +// BulkDeleteVirtualCircuitPublicPrefixes Removes one or more customer public IP prefixes from the specified public virtual circuit. +// Use this operation (and not UpdateVirtualCircuit) +// to remove prefixes from the virtual circuit. When the virtual circuit's state switches +// back to PROVISIONED, Oracle stops advertising the specified prefixes across the connection. +func (client VirtualNetworkClient) BulkDeleteVirtualCircuitPublicPrefixes(ctx context.Context, request BulkDeleteVirtualCircuitPublicPrefixesRequest) (err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/virtualCircuits/{virtualCircuitId}/actions/bulkDeletePublicPrefixes", request) + if err != nil { + return + } + + _, err = client.Call(ctx, &httpRequest) + return +} + +// ConnectLocalPeeringGateways Connects this local peering gateway (LPG) to another one in the same region. +// This operation must be called by the VCN administrator who is designated as +// the *requestor* in the peering relationship. The *acceptor* must implement +// an Identity and Access Management (IAM) policy that gives the requestor permission +// to connect to LPGs in the acceptor's compartment. Without that permission, this +// operation will fail. For more information, see +// VCN Peering (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/VCNpeering.htm). +func (client VirtualNetworkClient) ConnectLocalPeeringGateways(ctx context.Context, request ConnectLocalPeeringGatewaysRequest) (response ConnectLocalPeeringGatewaysResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/localPeeringGateways/{localPeeringGatewayId}/actions/connect", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateCpe Creates a new virtual Customer-Premises Equipment (CPE) object in the specified compartment. For +// more information, see IPSec VPNs (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPsec.htm). +// For the purposes of access control, you must provide the OCID of the compartment where you want +// the CPE to reside. Notice that the CPE doesn't have to be in the same compartment as the IPSec +// connection or other Networking Service components. If you're not sure which compartment to +// use, put the CPE in the same compartment as the DRG. For more information about +// compartments and access control, see Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// For information about OCIDs, see Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You must provide the public IP address of your on-premises router. See +// Configuring Your On-Premises Router for an IPSec VPN (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/configuringCPE.htm). +// You may optionally specify a *display name* for the CPE, otherwise a default is provided. It does not have to +// be unique, and you can change it. Avoid entering confidential information. +func (client VirtualNetworkClient) CreateCpe(ctx context.Context, request CreateCpeRequest) (response CreateCpeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/cpes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateCrossConnect Creates a new cross-connect. Oracle recommends you create each cross-connect in a +// CrossConnectGroup so you can use link aggregation +// with the connection. +// After creating the `CrossConnect` object, you need to go the FastConnect location +// and request to have the physical cable installed. For more information, see +// FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). +// For the purposes of access control, you must provide the OCID of the +// compartment where you want the cross-connect to reside. If you're +// not sure which compartment to use, put the cross-connect in the +// same compartment with your VCN. For more information about +// compartments and access control, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// For information about OCIDs, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You may optionally specify a *display name* for the cross-connect. +// It does not have to be unique, and you can change it. Avoid entering confidential information. +func (client VirtualNetworkClient) CreateCrossConnect(ctx context.Context, request CreateCrossConnectRequest) (response CreateCrossConnectResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/crossConnects", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateCrossConnectGroup Creates a new cross-connect group to use with Oracle Cloud Infrastructure +// FastConnect. For more information, see +// FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). +// For the purposes of access control, you must provide the OCID of the +// compartment where you want the cross-connect group to reside. If you're +// not sure which compartment to use, put the cross-connect group in the +// same compartment with your VCN. For more information about +// compartments and access control, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// For information about OCIDs, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You may optionally specify a *display name* for the cross-connect group. +// It does not have to be unique, and you can change it. Avoid entering confidential information. +func (client VirtualNetworkClient) CreateCrossConnectGroup(ctx context.Context, request CreateCrossConnectGroupRequest) (response CreateCrossConnectGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/crossConnectGroups", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateDhcpOptions Creates a new set of DHCP options for the specified VCN. For more information, see +// DhcpOptions. +// For the purposes of access control, you must provide the OCID of the compartment where you want the set of +// DHCP options to reside. Notice that the set of options doesn't have to be in the same compartment as the VCN, +// subnets, or other Networking Service components. If you're not sure which compartment to use, put the set +// of DHCP options in the same compartment as the VCN. For more information about compartments and access control, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You may optionally specify a *display name* for the set of DHCP options, otherwise a default is provided. +// It does not have to be unique, and you can change it. Avoid entering confidential information. +func (client VirtualNetworkClient) CreateDhcpOptions(ctx context.Context, request CreateDhcpOptionsRequest) (response CreateDhcpOptionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/dhcps", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateDrg Creates a new Dynamic Routing Gateway (DRG) in the specified compartment. For more information, +// see Dynamic Routing Gateways (DRGs) (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingDRGs.htm). +// For the purposes of access control, you must provide the OCID of the compartment where you want +// the DRG to reside. Notice that the DRG doesn't have to be in the same compartment as the VCN, +// the DRG attachment, or other Networking Service components. If you're not sure which compartment +// to use, put the DRG in the same compartment as the VCN. For more information about compartments +// and access control, see Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// For information about OCIDs, see Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You may optionally specify a *display name* for the DRG, otherwise a default is provided. +// It does not have to be unique, and you can change it. Avoid entering confidential information. +func (client VirtualNetworkClient) CreateDrg(ctx context.Context, request CreateDrgRequest) (response CreateDrgResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/drgs", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateDrgAttachment Attaches the specified DRG to the specified VCN. A VCN can be attached to only one DRG at a time, +// and vice versa. The response includes a `DrgAttachment` object with its own OCID. For more +// information about DRGs, see +// Dynamic Routing Gateways (DRGs) (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingDRGs.htm). +// You may optionally specify a *display name* for the attachment, otherwise a default is provided. +// It does not have to be unique, and you can change it. Avoid entering confidential information. +// For the purposes of access control, the DRG attachment is automatically placed into the same compartment +// as the VCN. For more information about compartments and access control, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +func (client VirtualNetworkClient) CreateDrgAttachment(ctx context.Context, request CreateDrgAttachmentRequest) (response CreateDrgAttachmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/drgAttachments", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateIPSecConnection Creates a new IPSec connection between the specified DRG and CPE. For more information, see +// IPSec VPNs (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPsec.htm). +// In the request, you must include at least one static route to the CPE object (you're allowed a maximum +// of 10). For example: 10.0.8.0/16. +// For the purposes of access control, you must provide the OCID of the compartment where you want the +// IPSec connection to reside. Notice that the IPSec connection doesn't have to be in the same compartment +// as the DRG, CPE, or other Networking Service components. If you're not sure which compartment to +// use, put the IPSec connection in the same compartment as the DRG. For more information about +// compartments and access control, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// For information about OCIDs, see Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You may optionally specify a *display name* for the IPSec connection, otherwise a default is provided. +// It does not have to be unique, and you can change it. Avoid entering confidential information. +// After creating the IPSec connection, you need to configure your on-premises router +// with tunnel-specific information returned by +// GetIPSecConnectionDeviceConfig. +// For each tunnel, that operation gives you the IP address of Oracle's VPN headend and the shared secret +// (that is, the pre-shared key). For more information, see +// Configuring Your On-Premises Router for an IPSec VPN (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/configuringCPE.htm). +// To get the status of the tunnels (whether they're up or down), use +// GetIPSecConnectionDeviceStatus. +func (client VirtualNetworkClient) CreateIPSecConnection(ctx context.Context, request CreateIPSecConnectionRequest) (response CreateIPSecConnectionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/ipsecConnections", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateInternetGateway Creates a new Internet Gateway for the specified VCN. For more information, see +// Connectivity to the Internet (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIGs.htm). +// For the purposes of access control, you must provide the OCID of the compartment where you want the Internet +// Gateway to reside. Notice that the Internet Gateway doesn't have to be in the same compartment as the VCN or +// other Networking Service components. If you're not sure which compartment to use, put the Internet +// Gateway in the same compartment with the VCN. For more information about compartments and access control, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You may optionally specify a *display name* for the Internet Gateway, otherwise a default is provided. It +// does not have to be unique, and you can change it. Avoid entering confidential information. +// For traffic to flow between a subnet and an Internet Gateway, you must create a route rule accordingly in +// the subnet's route table (for example, 0.0.0.0/0 > Internet Gateway). See +// UpdateRouteTable. +// You must specify whether the Internet Gateway is enabled when you create it. If it's disabled, that means no +// traffic will flow to/from the internet even if there's a route rule that enables that traffic. You can later +// use UpdateInternetGateway to easily disable/enable +// the gateway without changing the route rule. +func (client VirtualNetworkClient) CreateInternetGateway(ctx context.Context, request CreateInternetGatewayRequest) (response CreateInternetGatewayResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/internetGateways", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateLocalPeeringGateway Creates a new local peering gateway (LPG) for the specified VCN. +func (client VirtualNetworkClient) CreateLocalPeeringGateway(ctx context.Context, request CreateLocalPeeringGatewayRequest) (response CreateLocalPeeringGatewayResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/localPeeringGateways", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreatePrivateIp Creates a secondary private IP for the specified VNIC. +// For more information about secondary private IPs, see +// IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPaddresses.htm). +func (client VirtualNetworkClient) CreatePrivateIp(ctx context.Context, request CreatePrivateIpRequest) (response CreatePrivateIpResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/privateIps", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateRouteTable Creates a new route table for the specified VCN. In the request you must also include at least one route +// rule for the new route table. For information on the number of rules you can have in a route table, see +// Service Limits (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/servicelimits.htm). For general information about route +// tables in your VCN and the types of targets you can use in route rules, +// see Route Tables (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm). +// For the purposes of access control, you must provide the OCID of the compartment where you want the route +// table to reside. Notice that the route table doesn't have to be in the same compartment as the VCN, subnets, +// or other Networking Service components. If you're not sure which compartment to use, put the route +// table in the same compartment as the VCN. For more information about compartments and access control, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You may optionally specify a *display name* for the route table, otherwise a default is provided. +// It does not have to be unique, and you can change it. Avoid entering confidential information. +func (client VirtualNetworkClient) CreateRouteTable(ctx context.Context, request CreateRouteTableRequest) (response CreateRouteTableResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/routeTables", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateSecurityList Creates a new security list for the specified VCN. For more information +// about security lists, see Security Lists (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/securitylists.htm). +// For information on the number of rules you can have in a security list, see +// Service Limits (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/servicelimits.htm). +// For the purposes of access control, you must provide the OCID of the compartment where you want the security +// list to reside. Notice that the security list doesn't have to be in the same compartment as the VCN, subnets, +// or other Networking Service components. If you're not sure which compartment to use, put the security +// list in the same compartment as the VCN. For more information about compartments and access control, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You may optionally specify a *display name* for the security list, otherwise a default is provided. +// It does not have to be unique, and you can change it. Avoid entering confidential information. +func (client VirtualNetworkClient) CreateSecurityList(ctx context.Context, request CreateSecurityListRequest) (response CreateSecurityListResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/securityLists", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateSubnet Creates a new subnet in the specified VCN. You can't change the size of the subnet after creation, +// so it's important to think about the size of subnets you need before creating them. +// For more information, see VCNs and Subnets (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVCNs.htm). +// For information on the number of subnets you can have in a VCN, see +// Service Limits (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/servicelimits.htm). +// For the purposes of access control, you must provide the OCID of the compartment where you want the subnet +// to reside. Notice that the subnet doesn't have to be in the same compartment as the VCN, route tables, or +// other Networking Service components. If you're not sure which compartment to use, put the subnet in +// the same compartment as the VCN. For more information about compartments and access control, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, +// see Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You may optionally associate a route table with the subnet. If you don't, the subnet will use the +// VCN's default route table. For more information about route tables, see +// Route Tables (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm). +// You may optionally associate a security list with the subnet. If you don't, the subnet will use the +// VCN's default security list. For more information about security lists, see +// Security Lists (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/securitylists.htm). +// You may optionally associate a set of DHCP options with the subnet. If you don't, the subnet will use the +// VCN's default set. For more information about DHCP options, see +// DHCP Options (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingDHCP.htm). +// You may optionally specify a *display name* for the subnet, otherwise a default is provided. +// It does not have to be unique, and you can change it. Avoid entering confidential information. +// You can also add a DNS label for the subnet, which is required if you want the Internet and +// VCN Resolver to resolve hostnames for instances in the subnet. For more information, see +// DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). +func (client VirtualNetworkClient) CreateSubnet(ctx context.Context, request CreateSubnetRequest) (response CreateSubnetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/subnets", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateVcn Creates a new Virtual Cloud Network (VCN). For more information, see +// VCNs and Subnets (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVCNs.htm). +// For the VCN you must specify a single, contiguous IPv4 CIDR block. Oracle recommends using one of the +// private IP address ranges specified in RFC 1918 (https://tools.ietf.org/html/rfc1918) (10.0.0.0/8, +// 172.16/12, and 192.168/16). Example: 172.16.0.0/16. The CIDR block can range from /16 to /30, and it +// must not overlap with your on-premises network. You can't change the size of the VCN after creation. +// For the purposes of access control, you must provide the OCID of the compartment where you want the VCN to +// reside. Consult an Oracle Cloud Infrastructure administrator in your organization if you're not sure which +// compartment to use. Notice that the VCN doesn't have to be in the same compartment as the subnets or other +// Networking Service components. For more information about compartments and access control, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You may optionally specify a *display name* for the VCN, otherwise a default is provided. It does not have to +// be unique, and you can change it. Avoid entering confidential information. +// You can also add a DNS label for the VCN, which is required if you want the instances to use the +// Interent and VCN Resolver option for DNS in the VCN. For more information, see +// DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). +// The VCN automatically comes with a default route table, default security list, and default set of DHCP options. +// The OCID for each is returned in the response. You can't delete these default objects, but you can change their +// contents (that is, change the route rules, security list rules, and so on). +// The VCN and subnets you create are not accessible until you attach an Internet Gateway or set up an IPSec VPN +// or FastConnect. For more information, see +// Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm). +func (client VirtualNetworkClient) CreateVcn(ctx context.Context, request CreateVcnRequest) (response CreateVcnResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/vcns", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateVirtualCircuit Creates a new virtual circuit to use with Oracle Cloud +// Infrastructure FastConnect. For more information, see +// FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). +// For the purposes of access control, you must provide the OCID of the +// compartment where you want the virtual circuit to reside. If you're +// not sure which compartment to use, put the virtual circuit in the +// same compartment with the DRG it's using. For more information about +// compartments and access control, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// For information about OCIDs, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You may optionally specify a *display name* for the virtual circuit. +// It does not have to be unique, and you can change it. Avoid entering confidential information. +// **Important:** When creating a virtual circuit, you specify a DRG for +// the traffic to flow through. Make sure you attach the DRG to your +// VCN and confirm the VCN's routing sends traffic to the DRG. Otherwise +// traffic will not flow. For more information, see +// Route Tables (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm). +func (client VirtualNetworkClient) CreateVirtualCircuit(ctx context.Context, request CreateVirtualCircuitRequest) (response CreateVirtualCircuitResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/virtualCircuits", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteCpe Deletes the specified CPE object. The CPE must not be connected to a DRG. This is an asynchronous +// operation. The CPE's `lifecycleState` will change to TERMINATING temporarily until the CPE is completely +// removed. +func (client VirtualNetworkClient) DeleteCpe(ctx context.Context, request DeleteCpeRequest) (response DeleteCpeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/cpes/{cpeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteCrossConnect Deletes the specified cross-connect. It must not be mapped to a +// VirtualCircuit. +func (client VirtualNetworkClient) DeleteCrossConnect(ctx context.Context, request DeleteCrossConnectRequest) (response DeleteCrossConnectResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/crossConnects/{crossConnectId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteCrossConnectGroup Deletes the specified cross-connect group. It must not contain any +// cross-connects, and it cannot be mapped to a +// VirtualCircuit. +func (client VirtualNetworkClient) DeleteCrossConnectGroup(ctx context.Context, request DeleteCrossConnectGroupRequest) (response DeleteCrossConnectGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/crossConnectGroups/{crossConnectGroupId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteDhcpOptions Deletes the specified set of DHCP options, but only if it's not associated with a subnet. You can't delete a +// VCN's default set of DHCP options. +// This is an asynchronous operation. The state of the set of options will switch to TERMINATING temporarily +// until the set is completely removed. +func (client VirtualNetworkClient) DeleteDhcpOptions(ctx context.Context, request DeleteDhcpOptionsRequest) (response DeleteDhcpOptionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/dhcps/{dhcpId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteDrg Deletes the specified DRG. The DRG must not be attached to a VCN or be connected to your on-premise +// network. Also, there must not be a route table that lists the DRG as a target. This is an asynchronous +// operation. The DRG's `lifecycleState` will change to TERMINATING temporarily until the DRG is completely +// removed. +func (client VirtualNetworkClient) DeleteDrg(ctx context.Context, request DeleteDrgRequest) (response DeleteDrgResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/drgs/{drgId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteDrgAttachment Detaches a DRG from a VCN by deleting the corresponding `DrgAttachment`. This is an asynchronous +// operation. The attachment's `lifecycleState` will change to DETACHING temporarily until the attachment +// is completely removed. +func (client VirtualNetworkClient) DeleteDrgAttachment(ctx context.Context, request DeleteDrgAttachmentRequest) (response DeleteDrgAttachmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/drgAttachments/{drgAttachmentId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteIPSecConnection Deletes the specified IPSec connection. If your goal is to disable the IPSec VPN between your VCN and +// on-premises network, it's easiest to simply detach the DRG but keep all the IPSec VPN components intact. +// If you were to delete all the components and then later need to create an IPSec VPN again, you would +// need to configure your on-premises router again with the new information returned from +// CreateIPSecConnection. +// This is an asynchronous operation. The connection's `lifecycleState` will change to TERMINATING temporarily +// until the connection is completely removed. +func (client VirtualNetworkClient) DeleteIPSecConnection(ctx context.Context, request DeleteIPSecConnectionRequest) (response DeleteIPSecConnectionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/ipsecConnections/{ipscId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteInternetGateway Deletes the specified Internet Gateway. The Internet Gateway does not have to be disabled, but +// there must not be a route table that lists it as a target. +// This is an asynchronous operation. The gateway's `lifecycleState` will change to TERMINATING temporarily +// until the gateway is completely removed. +func (client VirtualNetworkClient) DeleteInternetGateway(ctx context.Context, request DeleteInternetGatewayRequest) (response DeleteInternetGatewayResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/internetGateways/{igId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteLocalPeeringGateway Deletes the specified local peering gateway (LPG). +// This is an asynchronous operation; the local peering gateway's `lifecycleState` changes to TERMINATING temporarily +// until the local peering gateway is completely removed. +func (client VirtualNetworkClient) DeleteLocalPeeringGateway(ctx context.Context, request DeleteLocalPeeringGatewayRequest) (response DeleteLocalPeeringGatewayResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/localPeeringGateways/{localPeeringGatewayId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeletePrivateIp Unassigns and deletes the specified private IP. You must +// specify the object's OCID. The private IP address is returned to +// the subnet's pool of available addresses. +// This operation cannot be used with primary private IPs, which are +// automatically unassigned and deleted when the VNIC is terminated. +// **Important:** If a secondary private IP is the +// target of a route rule (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm#privateip), +// unassigning it from the VNIC causes that route rule to blackhole and the traffic +// will be dropped. +func (client VirtualNetworkClient) DeletePrivateIp(ctx context.Context, request DeletePrivateIpRequest) (response DeletePrivateIpResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/privateIps/{privateIpId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteRouteTable Deletes the specified route table, but only if it's not associated with a subnet. You can't delete a +// VCN's default route table. +// This is an asynchronous operation. The route table's `lifecycleState` will change to TERMINATING temporarily +// until the route table is completely removed. +func (client VirtualNetworkClient) DeleteRouteTable(ctx context.Context, request DeleteRouteTableRequest) (response DeleteRouteTableResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/routeTables/{rtId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteSecurityList Deletes the specified security list, but only if it's not associated with a subnet. You can't delete +// a VCN's default security list. +// This is an asynchronous operation. The security list's `lifecycleState` will change to TERMINATING temporarily +// until the security list is completely removed. +func (client VirtualNetworkClient) DeleteSecurityList(ctx context.Context, request DeleteSecurityListRequest) (response DeleteSecurityListResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/securityLists/{securityListId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteSubnet Deletes the specified subnet, but only if there are no instances in the subnet. This is an asynchronous +// operation. The subnet's `lifecycleState` will change to TERMINATING temporarily. If there are any +// instances in the subnet, the state will instead change back to AVAILABLE. +func (client VirtualNetworkClient) DeleteSubnet(ctx context.Context, request DeleteSubnetRequest) (response DeleteSubnetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/subnets/{subnetId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteVcn Deletes the specified VCN. The VCN must be empty and have no attached gateways. This is an asynchronous +// operation. The VCN's `lifecycleState` will change to TERMINATING temporarily until the VCN is completely +// removed. +func (client VirtualNetworkClient) DeleteVcn(ctx context.Context, request DeleteVcnRequest) (response DeleteVcnResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/vcns/{vcnId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteVirtualCircuit Deletes the specified virtual circuit. +// **Important:** If you're using FastConnect via a provider, +// make sure to also terminate the connection with +// the provider, or else the provider may continue to bill you. +func (client VirtualNetworkClient) DeleteVirtualCircuit(ctx context.Context, request DeleteVirtualCircuitRequest) (response DeleteVirtualCircuitResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/virtualCircuits/{virtualCircuitId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetCpe Gets the specified CPE's information. +func (client VirtualNetworkClient) GetCpe(ctx context.Context, request GetCpeRequest) (response GetCpeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/cpes/{cpeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetCrossConnect Gets the specified cross-connect's information. +func (client VirtualNetworkClient) GetCrossConnect(ctx context.Context, request GetCrossConnectRequest) (response GetCrossConnectResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnects/{crossConnectId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetCrossConnectGroup Gets the specified cross-connect group's information. +func (client VirtualNetworkClient) GetCrossConnectGroup(ctx context.Context, request GetCrossConnectGroupRequest) (response GetCrossConnectGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnectGroups/{crossConnectGroupId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetCrossConnectLetterOfAuthority Gets the Letter of Authority for the specified cross-connect. +func (client VirtualNetworkClient) GetCrossConnectLetterOfAuthority(ctx context.Context, request GetCrossConnectLetterOfAuthorityRequest) (response GetCrossConnectLetterOfAuthorityResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnects/{crossConnectId}/letterOfAuthority", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetCrossConnectStatus Gets the status of the specified cross-connect. +func (client VirtualNetworkClient) GetCrossConnectStatus(ctx context.Context, request GetCrossConnectStatusRequest) (response GetCrossConnectStatusResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnects/{crossConnectId}/status", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDhcpOptions Gets the specified set of DHCP options. +func (client VirtualNetworkClient) GetDhcpOptions(ctx context.Context, request GetDhcpOptionsRequest) (response GetDhcpOptionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dhcps/{dhcpId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDrg Gets the specified DRG's information. +func (client VirtualNetworkClient) GetDrg(ctx context.Context, request GetDrgRequest) (response GetDrgResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/drgs/{drgId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDrgAttachment Gets the information for the specified `DrgAttachment`. +func (client VirtualNetworkClient) GetDrgAttachment(ctx context.Context, request GetDrgAttachmentRequest) (response GetDrgAttachmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/drgAttachments/{drgAttachmentId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetFastConnectProviderService Gets the specified provider service. +// For more information, see FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). +func (client VirtualNetworkClient) GetFastConnectProviderService(ctx context.Context, request GetFastConnectProviderServiceRequest) (response GetFastConnectProviderServiceResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/fastConnectProviderServices/{providerServiceId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetIPSecConnection Gets the specified IPSec connection's basic information, including the static routes for the +// on-premises router. If you want the status of the connection (whether it's up or down), use +// GetIPSecConnectionDeviceStatus. +func (client VirtualNetworkClient) GetIPSecConnection(ctx context.Context, request GetIPSecConnectionRequest) (response GetIPSecConnectionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/ipsecConnections/{ipscId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetIPSecConnectionDeviceConfig Gets the configuration information for the specified IPSec connection. For each tunnel, the +// response includes the IP address of Oracle's VPN headend and the shared secret. +func (client VirtualNetworkClient) GetIPSecConnectionDeviceConfig(ctx context.Context, request GetIPSecConnectionDeviceConfigRequest) (response GetIPSecConnectionDeviceConfigResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/ipsecConnections/{ipscId}/deviceConfig", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetIPSecConnectionDeviceStatus Gets the status of the specified IPSec connection (whether it's up or down). +func (client VirtualNetworkClient) GetIPSecConnectionDeviceStatus(ctx context.Context, request GetIPSecConnectionDeviceStatusRequest) (response GetIPSecConnectionDeviceStatusResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/ipsecConnections/{ipscId}/deviceStatus", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetInternetGateway Gets the specified Internet Gateway's information. +func (client VirtualNetworkClient) GetInternetGateway(ctx context.Context, request GetInternetGatewayRequest) (response GetInternetGatewayResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/internetGateways/{igId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetLocalPeeringGateway Gets the specified local peering gateway's information. +func (client VirtualNetworkClient) GetLocalPeeringGateway(ctx context.Context, request GetLocalPeeringGatewayRequest) (response GetLocalPeeringGatewayResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/localPeeringGateways/{localPeeringGatewayId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetPrivateIp Gets the specified private IP. You must specify the object's OCID. +// Alternatively, you can get the object by using +// ListPrivateIps +// with the private IP address (for example, 10.0.3.3) and subnet OCID. +func (client VirtualNetworkClient) GetPrivateIp(ctx context.Context, request GetPrivateIpRequest) (response GetPrivateIpResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/privateIps/{privateIpId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetRouteTable Gets the specified route table's information. +func (client VirtualNetworkClient) GetRouteTable(ctx context.Context, request GetRouteTableRequest) (response GetRouteTableResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/routeTables/{rtId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetSecurityList Gets the specified security list's information. +func (client VirtualNetworkClient) GetSecurityList(ctx context.Context, request GetSecurityListRequest) (response GetSecurityListResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/securityLists/{securityListId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetSubnet Gets the specified subnet's information. +func (client VirtualNetworkClient) GetSubnet(ctx context.Context, request GetSubnetRequest) (response GetSubnetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/subnets/{subnetId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetVcn Gets the specified VCN's information. +func (client VirtualNetworkClient) GetVcn(ctx context.Context, request GetVcnRequest) (response GetVcnResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/vcns/{vcnId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetVirtualCircuit Gets the specified virtual circuit's information. +func (client VirtualNetworkClient) GetVirtualCircuit(ctx context.Context, request GetVirtualCircuitRequest) (response GetVirtualCircuitResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/virtualCircuits/{virtualCircuitId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetVnic Gets the information for the specified virtual network interface card (VNIC). +// You can get the VNIC OCID from the +// ListVnicAttachments +// operation. +func (client VirtualNetworkClient) GetVnic(ctx context.Context, request GetVnicRequest) (response GetVnicResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/vnics/{vnicId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListCpes Lists the Customer-Premises Equipment objects (CPEs) in the specified compartment. +func (client VirtualNetworkClient) ListCpes(ctx context.Context, request ListCpesRequest) (response ListCpesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/cpes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListCrossConnectGroups Lists the cross-connect groups in the specified compartment. +func (client VirtualNetworkClient) ListCrossConnectGroups(ctx context.Context, request ListCrossConnectGroupsRequest) (response ListCrossConnectGroupsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnectGroups", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListCrossConnectLocations Lists the available FastConnect locations for cross-connect installation. You need +// this information so you can specify your desired location when you create a cross-connect. +func (client VirtualNetworkClient) ListCrossConnectLocations(ctx context.Context, request ListCrossConnectLocationsRequest) (response ListCrossConnectLocationsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnectLocations", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListCrossConnects Lists the cross-connects in the specified compartment. You can filter the list +// by specifying the OCID of a cross-connect group. +func (client VirtualNetworkClient) ListCrossConnects(ctx context.Context, request ListCrossConnectsRequest) (response ListCrossConnectsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnects", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListCrossconnectPortSpeedShapes Lists the available port speeds for cross-connects. You need this information +// so you can specify your desired port speed (that is, shape) when you create a +// cross-connect. +func (client VirtualNetworkClient) ListCrossconnectPortSpeedShapes(ctx context.Context, request ListCrossconnectPortSpeedShapesRequest) (response ListCrossconnectPortSpeedShapesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnectPortSpeedShapes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDhcpOptions Lists the sets of DHCP options in the specified VCN and specified compartment. +// The response includes the default set of options that automatically comes with each VCN, +// plus any other sets you've created. +func (client VirtualNetworkClient) ListDhcpOptions(ctx context.Context, request ListDhcpOptionsRequest) (response ListDhcpOptionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dhcps", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDrgAttachments Lists the `DrgAttachment` objects for the specified compartment. You can filter the +// results by VCN or DRG. +func (client VirtualNetworkClient) ListDrgAttachments(ctx context.Context, request ListDrgAttachmentsRequest) (response ListDrgAttachmentsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/drgAttachments", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDrgs Lists the DRGs in the specified compartment. +func (client VirtualNetworkClient) ListDrgs(ctx context.Context, request ListDrgsRequest) (response ListDrgsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/drgs", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListFastConnectProviderServices Lists the service offerings from supported providers. You need this +// information so you can specify your desired provider and service +// offering when you create a virtual circuit. +// For the compartment ID, provide the OCID of your tenancy (the root compartment). +// For more information, see FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). +func (client VirtualNetworkClient) ListFastConnectProviderServices(ctx context.Context, request ListFastConnectProviderServicesRequest) (response ListFastConnectProviderServicesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/fastConnectProviderServices", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListFastConnectProviderVirtualCircuitBandwidthShapes Gets the list of available virtual circuit bandwidth levels for a provider. +// You need this information so you can specify your desired bandwidth level (shape) when you create a virtual circuit. +// For more information about virtual circuits, see FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). +func (client VirtualNetworkClient) ListFastConnectProviderVirtualCircuitBandwidthShapes(ctx context.Context, request ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) (response ListFastConnectProviderVirtualCircuitBandwidthShapesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/fastConnectProviderServices/{providerServiceId}/virtualCircuitBandwidthShapes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListIPSecConnections Lists the IPSec connections for the specified compartment. You can filter the +// results by DRG or CPE. +func (client VirtualNetworkClient) ListIPSecConnections(ctx context.Context, request ListIPSecConnectionsRequest) (response ListIPSecConnectionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/ipsecConnections", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListInternetGateways Lists the Internet Gateways in the specified VCN and the specified compartment. +func (client VirtualNetworkClient) ListInternetGateways(ctx context.Context, request ListInternetGatewaysRequest) (response ListInternetGatewaysResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/internetGateways", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListLocalPeeringGateways Lists the local peering gateways (LPGs) for the specified VCN and compartment +// (the LPG's compartment). +func (client VirtualNetworkClient) ListLocalPeeringGateways(ctx context.Context, request ListLocalPeeringGatewaysRequest) (response ListLocalPeeringGatewaysResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/localPeeringGateways", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListPrivateIps Lists the PrivateIp objects based +// on one of these filters: +// - Subnet OCID. +// - VNIC OCID. +// - Both private IP address and subnet OCID: This lets +// you get a `privateIP` object based on its private IP +// address (for example, 10.0.3.3) and not its OCID. For comparison, +// GetPrivateIp +// requires the OCID. +// If you're listing all the private IPs associated with a given subnet +// or VNIC, the response includes both primary and secondary private IPs. +func (client VirtualNetworkClient) ListPrivateIps(ctx context.Context, request ListPrivateIpsRequest) (response ListPrivateIpsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/privateIps", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListRouteTables Lists the route tables in the specified VCN and specified compartment. The response +// includes the default route table that automatically comes with each VCN, plus any route tables +// you've created. +func (client VirtualNetworkClient) ListRouteTables(ctx context.Context, request ListRouteTablesRequest) (response ListRouteTablesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/routeTables", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListSecurityLists Lists the security lists in the specified VCN and compartment. +func (client VirtualNetworkClient) ListSecurityLists(ctx context.Context, request ListSecurityListsRequest) (response ListSecurityListsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/securityLists", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListSubnets Lists the subnets in the specified VCN and the specified compartment. +func (client VirtualNetworkClient) ListSubnets(ctx context.Context, request ListSubnetsRequest) (response ListSubnetsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/subnets", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListVcns Lists the Virtual Cloud Networks (VCNs) in the specified compartment. +func (client VirtualNetworkClient) ListVcns(ctx context.Context, request ListVcnsRequest) (response ListVcnsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/vcns", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListVirtualCircuitBandwidthShapes The deprecated operation lists available bandwidth levels for virtual circuits. For the compartment ID, provide the OCID of your tenancy (the root compartment). +func (client VirtualNetworkClient) ListVirtualCircuitBandwidthShapes(ctx context.Context, request ListVirtualCircuitBandwidthShapesRequest) (response ListVirtualCircuitBandwidthShapesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/virtualCircuitBandwidthShapes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListVirtualCircuitPublicPrefixes Lists the public IP prefixes and their details for the specified +// public virtual circuit. +func (client VirtualNetworkClient) ListVirtualCircuitPublicPrefixes(ctx context.Context, request ListVirtualCircuitPublicPrefixesRequest) (response ListVirtualCircuitPublicPrefixesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/virtualCircuits/{virtualCircuitId}/publicPrefixes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListVirtualCircuits Lists the virtual circuits in the specified compartment. +func (client VirtualNetworkClient) ListVirtualCircuits(ctx context.Context, request ListVirtualCircuitsRequest) (response ListVirtualCircuitsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/virtualCircuits", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateCpe Updates the specified CPE's display name. +// Avoid entering confidential information. +func (client VirtualNetworkClient) UpdateCpe(ctx context.Context, request UpdateCpeRequest) (response UpdateCpeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/cpes/{cpeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateCrossConnect Updates the specified cross-connect. +func (client VirtualNetworkClient) UpdateCrossConnect(ctx context.Context, request UpdateCrossConnectRequest) (response UpdateCrossConnectResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/crossConnects/{crossConnectId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateCrossConnectGroup Updates the specified cross-connect group's display name. +// Avoid entering confidential information. +func (client VirtualNetworkClient) UpdateCrossConnectGroup(ctx context.Context, request UpdateCrossConnectGroupRequest) (response UpdateCrossConnectGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/crossConnectGroups/{crossConnectGroupId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateDhcpOptions Updates the specified set of DHCP options. You can update the display name or the options +// themselves. Avoid entering confidential information. +// Note that the `options` object you provide replaces the entire existing set of options. +func (client VirtualNetworkClient) UpdateDhcpOptions(ctx context.Context, request UpdateDhcpOptionsRequest) (response UpdateDhcpOptionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/dhcps/{dhcpId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateDrg Updates the specified DRG's display name. Avoid entering confidential information. +func (client VirtualNetworkClient) UpdateDrg(ctx context.Context, request UpdateDrgRequest) (response UpdateDrgResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/drgs/{drgId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateDrgAttachment Updates the display name for the specified `DrgAttachment`. +// Avoid entering confidential information. +func (client VirtualNetworkClient) UpdateDrgAttachment(ctx context.Context, request UpdateDrgAttachmentRequest) (response UpdateDrgAttachmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/drgAttachments/{drgAttachmentId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateIPSecConnection Updates the display name for the specified IPSec connection. +// Avoid entering confidential information. +func (client VirtualNetworkClient) UpdateIPSecConnection(ctx context.Context, request UpdateIPSecConnectionRequest) (response UpdateIPSecConnectionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/ipsecConnections/{ipscId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateInternetGateway Updates the specified Internet Gateway. You can disable/enable it, or change its display name. +// Avoid entering confidential information. +// If the gateway is disabled, that means no traffic will flow to/from the internet even if there's +// a route rule that enables that traffic. +func (client VirtualNetworkClient) UpdateInternetGateway(ctx context.Context, request UpdateInternetGatewayRequest) (response UpdateInternetGatewayResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/internetGateways/{igId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateLocalPeeringGateway Updates the specified local peering gateway (LPG). +func (client VirtualNetworkClient) UpdateLocalPeeringGateway(ctx context.Context, request UpdateLocalPeeringGatewayRequest) (response UpdateLocalPeeringGatewayResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/localPeeringGateways/{localPeeringGatewayId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdatePrivateIp Updates the specified private IP. You must specify the object's OCID. +// Use this operation if you want to: +// - Move a secondary private IP to a different VNIC in the same subnet. +// - Change the display name for a secondary private IP. +// - Change the hostname for a secondary private IP. +// This operation cannot be used with primary private IPs. +// To update the hostname for the primary IP on a VNIC, use +// UpdateVnic. +func (client VirtualNetworkClient) UpdatePrivateIp(ctx context.Context, request UpdatePrivateIpRequest) (response UpdatePrivateIpResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/privateIps/{privateIpId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateRouteTable Updates the specified route table's display name or route rules. +// Avoid entering confidential information. +// Note that the `routeRules` object you provide replaces the entire existing set of rules. +func (client VirtualNetworkClient) UpdateRouteTable(ctx context.Context, request UpdateRouteTableRequest) (response UpdateRouteTableResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/routeTables/{rtId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateSecurityList Updates the specified security list's display name or rules. +// Avoid entering confidential information. +// Note that the `egressSecurityRules` or `ingressSecurityRules` objects you provide replace the entire +// existing objects. +func (client VirtualNetworkClient) UpdateSecurityList(ctx context.Context, request UpdateSecurityListRequest) (response UpdateSecurityListResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/securityLists/{securityListId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateSubnet Updates the specified subnet's display name. Avoid entering confidential information. +func (client VirtualNetworkClient) UpdateSubnet(ctx context.Context, request UpdateSubnetRequest) (response UpdateSubnetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/subnets/{subnetId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateVcn Updates the specified VCN's display name. +// Avoid entering confidential information. +func (client VirtualNetworkClient) UpdateVcn(ctx context.Context, request UpdateVcnRequest) (response UpdateVcnResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/vcns/{vcnId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateVirtualCircuit Updates the specified virtual circuit. This can be called by +// either the customer who owns the virtual circuit, or the +// provider (when provisioning or de-provisioning the virtual +// circuit from their end). The documentation for +// UpdateVirtualCircuitDetails +// indicates who can update each property of the virtual circuit. +// **Important:** If the virtual circuit is working and in the +// PROVISIONED state, updating any of the network-related properties +// (such as the DRG being used, the BGP ASN, and so on) will cause the virtual +// circuit's state to switch to PROVISIONING and the related BGP +// session to go down. After Oracle re-provisions the virtual circuit, +// its state will return to PROVISIONED. Make sure you confirm that +// the associated BGP session is back up. For more information +// about the various states and how to test connectivity, see +// FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). +// To change the list of public IP prefixes for a public virtual circuit, +// use BulkAddVirtualCircuitPublicPrefixes +// and +// BulkDeleteVirtualCircuitPublicPrefixes. +// Updating the list of prefixes does NOT cause the BGP session to go down. However, +// Oracle must verify the customer's ownership of each added prefix before +// traffic for that prefix will flow across the virtual circuit. +func (client VirtualNetworkClient) UpdateVirtualCircuit(ctx context.Context, request UpdateVirtualCircuitRequest) (response UpdateVirtualCircuitResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/virtualCircuits/{virtualCircuitId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateVnic Updates the specified VNIC. +func (client VirtualNetworkClient) UpdateVnic(ctx context.Context, request UpdateVnicRequest) (response UpdateVnicResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/vnics/{vnicId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - - // GetFastConnectProviderService Gets the specified provider service. - // For more information, see [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). -func(client VirtualNetworkClient) GetFastConnectProviderService(ctx context.Context, request GetFastConnectProviderServiceRequest) (response GetFastConnectProviderServiceResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/fastConnectProviderServices/{providerServiceId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetIPSecConnection Gets the specified IPSec connection's basic information, including the static routes for the - // on-premises router. If you want the status of the connection (whether it's up or down), use - // GetIPSecConnectionDeviceStatus. -func(client VirtualNetworkClient) GetIPSecConnection(ctx context.Context, request GetIPSecConnectionRequest) (response GetIPSecConnectionResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/ipsecConnections/{ipscId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetIPSecConnectionDeviceConfig Gets the configuration information for the specified IPSec connection. For each tunnel, the - // response includes the IP address of Oracle's VPN headend and the shared secret. -func(client VirtualNetworkClient) GetIPSecConnectionDeviceConfig(ctx context.Context, request GetIPSecConnectionDeviceConfigRequest) (response GetIPSecConnectionDeviceConfigResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/ipsecConnections/{ipscId}/deviceConfig", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetIPSecConnectionDeviceStatus Gets the status of the specified IPSec connection (whether it's up or down). -func(client VirtualNetworkClient) GetIPSecConnectionDeviceStatus(ctx context.Context, request GetIPSecConnectionDeviceStatusRequest) (response GetIPSecConnectionDeviceStatusResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/ipsecConnections/{ipscId}/deviceStatus", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetInternetGateway Gets the specified Internet Gateway's information. -func(client VirtualNetworkClient) GetInternetGateway(ctx context.Context, request GetInternetGatewayRequest) (response GetInternetGatewayResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/internetGateways/{igId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetLocalPeeringGateway Gets the specified local peering gateway's information. -func(client VirtualNetworkClient) GetLocalPeeringGateway(ctx context.Context, request GetLocalPeeringGatewayRequest) (response GetLocalPeeringGatewayResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/localPeeringGateways/{localPeeringGatewayId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetPrivateIp Gets the specified private IP. You must specify the object's OCID. - // Alternatively, you can get the object by using - // ListPrivateIps - // with the private IP address (for example, 10.0.3.3) and subnet OCID. -func(client VirtualNetworkClient) GetPrivateIp(ctx context.Context, request GetPrivateIpRequest) (response GetPrivateIpResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/privateIps/{privateIpId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetRouteTable Gets the specified route table's information. -func(client VirtualNetworkClient) GetRouteTable(ctx context.Context, request GetRouteTableRequest) (response GetRouteTableResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/routeTables/{rtId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetSecurityList Gets the specified security list's information. -func(client VirtualNetworkClient) GetSecurityList(ctx context.Context, request GetSecurityListRequest) (response GetSecurityListResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/securityLists/{securityListId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetSubnet Gets the specified subnet's information. -func(client VirtualNetworkClient) GetSubnet(ctx context.Context, request GetSubnetRequest) (response GetSubnetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/subnets/{subnetId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetVcn Gets the specified VCN's information. -func(client VirtualNetworkClient) GetVcn(ctx context.Context, request GetVcnRequest) (response GetVcnResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/vcns/{vcnId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetVirtualCircuit Gets the specified virtual circuit's information. -func(client VirtualNetworkClient) GetVirtualCircuit(ctx context.Context, request GetVirtualCircuitRequest) (response GetVirtualCircuitResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/virtualCircuits/{virtualCircuitId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetVnic Gets the information for the specified virtual network interface card (VNIC). - // You can get the VNIC OCID from the - // ListVnicAttachments - // operation. -func(client VirtualNetworkClient) GetVnic(ctx context.Context, request GetVnicRequest) (response GetVnicResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/vnics/{vnicId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListCpes Lists the Customer-Premises Equipment objects (CPEs) in the specified compartment. -func(client VirtualNetworkClient) ListCpes(ctx context.Context, request ListCpesRequest) (response ListCpesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/cpes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListCrossConnectGroups Lists the cross-connect groups in the specified compartment. -func(client VirtualNetworkClient) ListCrossConnectGroups(ctx context.Context, request ListCrossConnectGroupsRequest) (response ListCrossConnectGroupsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnectGroups", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListCrossConnectLocations Lists the available FastConnect locations for cross-connect installation. You need - // this information so you can specify your desired location when you create a cross-connect. -func(client VirtualNetworkClient) ListCrossConnectLocations(ctx context.Context, request ListCrossConnectLocationsRequest) (response ListCrossConnectLocationsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnectLocations", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListCrossConnects Lists the cross-connects in the specified compartment. You can filter the list - // by specifying the OCID of a cross-connect group. -func(client VirtualNetworkClient) ListCrossConnects(ctx context.Context, request ListCrossConnectsRequest) (response ListCrossConnectsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnects", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListCrossconnectPortSpeedShapes Lists the available port speeds for cross-connects. You need this information - // so you can specify your desired port speed (that is, shape) when you create a - // cross-connect. -func(client VirtualNetworkClient) ListCrossconnectPortSpeedShapes(ctx context.Context, request ListCrossconnectPortSpeedShapesRequest) (response ListCrossconnectPortSpeedShapesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/crossConnectPortSpeedShapes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDhcpOptions Lists the sets of DHCP options in the specified VCN and specified compartment. - // The response includes the default set of options that automatically comes with each VCN, - // plus any other sets you've created. -func(client VirtualNetworkClient) ListDhcpOptions(ctx context.Context, request ListDhcpOptionsRequest) (response ListDhcpOptionsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dhcps", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDrgAttachments Lists the `DrgAttachment` objects for the specified compartment. You can filter the - // results by VCN or DRG. -func(client VirtualNetworkClient) ListDrgAttachments(ctx context.Context, request ListDrgAttachmentsRequest) (response ListDrgAttachmentsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/drgAttachments", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDrgs Lists the DRGs in the specified compartment. -func(client VirtualNetworkClient) ListDrgs(ctx context.Context, request ListDrgsRequest) (response ListDrgsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/drgs", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListFastConnectProviderServices Lists the service offerings from supported providers. You need this - // information so you can specify your desired provider and service - // offering when you create a virtual circuit. - // For the compartment ID, provide the OCID of your tenancy (the root compartment). - // For more information, see [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). -func(client VirtualNetworkClient) ListFastConnectProviderServices(ctx context.Context, request ListFastConnectProviderServicesRequest) (response ListFastConnectProviderServicesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/fastConnectProviderServices", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListFastConnectProviderVirtualCircuitBandwidthShapes Gets the list of available virtual circuit bandwidth levels for a provider. - // You need this information so you can specify your desired bandwidth level (shape) when you create a virtual circuit. - // For more information about virtual circuits, see [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). -func(client VirtualNetworkClient) ListFastConnectProviderVirtualCircuitBandwidthShapes(ctx context.Context, request ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) (response ListFastConnectProviderVirtualCircuitBandwidthShapesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/fastConnectProviderServices/{providerServiceId}/virtualCircuitBandwidthShapes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListIPSecConnections Lists the IPSec connections for the specified compartment. You can filter the - // results by DRG or CPE. -func(client VirtualNetworkClient) ListIPSecConnections(ctx context.Context, request ListIPSecConnectionsRequest) (response ListIPSecConnectionsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/ipsecConnections", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListInternetGateways Lists the Internet Gateways in the specified VCN and the specified compartment. -func(client VirtualNetworkClient) ListInternetGateways(ctx context.Context, request ListInternetGatewaysRequest) (response ListInternetGatewaysResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/internetGateways", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListLocalPeeringGateways Lists the local peering gateways (LPGs) for the specified VCN and compartment - // (the LPG's compartment). -func(client VirtualNetworkClient) ListLocalPeeringGateways(ctx context.Context, request ListLocalPeeringGatewaysRequest) (response ListLocalPeeringGatewaysResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/localPeeringGateways", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListPrivateIps Lists the PrivateIp objects based - // on one of these filters: - // - Subnet OCID. - // - VNIC OCID. - // - Both private IP address and subnet OCID: This lets - // you get a `privateIP` object based on its private IP - // address (for example, 10.0.3.3) and not its OCID. For comparison, - // GetPrivateIp - // requires the OCID. - // If you're listing all the private IPs associated with a given subnet - // or VNIC, the response includes both primary and secondary private IPs. -func(client VirtualNetworkClient) ListPrivateIps(ctx context.Context, request ListPrivateIpsRequest) (response ListPrivateIpsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/privateIps", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListRouteTables Lists the route tables in the specified VCN and specified compartment. The response - // includes the default route table that automatically comes with each VCN, plus any route tables - // you've created. -func(client VirtualNetworkClient) ListRouteTables(ctx context.Context, request ListRouteTablesRequest) (response ListRouteTablesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/routeTables", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListSecurityLists Lists the security lists in the specified VCN and compartment. -func(client VirtualNetworkClient) ListSecurityLists(ctx context.Context, request ListSecurityListsRequest) (response ListSecurityListsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/securityLists", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListSubnets Lists the subnets in the specified VCN and the specified compartment. -func(client VirtualNetworkClient) ListSubnets(ctx context.Context, request ListSubnetsRequest) (response ListSubnetsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/subnets", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListVcns Lists the Virtual Cloud Networks (VCNs) in the specified compartment. -func(client VirtualNetworkClient) ListVcns(ctx context.Context, request ListVcnsRequest) (response ListVcnsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/vcns", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListVirtualCircuitBandwidthShapes The deprecated operation lists available bandwidth levels for virtual circuits. For the compartment ID, provide the OCID of your tenancy (the root compartment). -func(client VirtualNetworkClient) ListVirtualCircuitBandwidthShapes(ctx context.Context, request ListVirtualCircuitBandwidthShapesRequest) (response ListVirtualCircuitBandwidthShapesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/virtualCircuitBandwidthShapes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListVirtualCircuitPublicPrefixes Lists the public IP prefixes and their details for the specified - // public virtual circuit. -func(client VirtualNetworkClient) ListVirtualCircuitPublicPrefixes(ctx context.Context, request ListVirtualCircuitPublicPrefixesRequest) (response ListVirtualCircuitPublicPrefixesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/virtualCircuits/{virtualCircuitId}/publicPrefixes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListVirtualCircuits Lists the virtual circuits in the specified compartment. -func(client VirtualNetworkClient) ListVirtualCircuits(ctx context.Context, request ListVirtualCircuitsRequest) (response ListVirtualCircuitsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/virtualCircuits", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateCpe Updates the specified CPE's display name. - // Avoid entering confidential information. -func(client VirtualNetworkClient) UpdateCpe(ctx context.Context, request UpdateCpeRequest) (response UpdateCpeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/cpes/{cpeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateCrossConnect Updates the specified cross-connect. -func(client VirtualNetworkClient) UpdateCrossConnect(ctx context.Context, request UpdateCrossConnectRequest) (response UpdateCrossConnectResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/crossConnects/{crossConnectId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateCrossConnectGroup Updates the specified cross-connect group's display name. - // Avoid entering confidential information. -func(client VirtualNetworkClient) UpdateCrossConnectGroup(ctx context.Context, request UpdateCrossConnectGroupRequest) (response UpdateCrossConnectGroupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/crossConnectGroups/{crossConnectGroupId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateDhcpOptions Updates the specified set of DHCP options. You can update the display name or the options - // themselves. Avoid entering confidential information. - // Note that the `options` object you provide replaces the entire existing set of options. -func(client VirtualNetworkClient) UpdateDhcpOptions(ctx context.Context, request UpdateDhcpOptionsRequest) (response UpdateDhcpOptionsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/dhcps/{dhcpId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateDrg Updates the specified DRG's display name. Avoid entering confidential information. -func(client VirtualNetworkClient) UpdateDrg(ctx context.Context, request UpdateDrgRequest) (response UpdateDrgResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/drgs/{drgId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateDrgAttachment Updates the display name for the specified `DrgAttachment`. - // Avoid entering confidential information. -func(client VirtualNetworkClient) UpdateDrgAttachment(ctx context.Context, request UpdateDrgAttachmentRequest) (response UpdateDrgAttachmentResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/drgAttachments/{drgAttachmentId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateIPSecConnection Updates the display name for the specified IPSec connection. - // Avoid entering confidential information. -func(client VirtualNetworkClient) UpdateIPSecConnection(ctx context.Context, request UpdateIPSecConnectionRequest) (response UpdateIPSecConnectionResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/ipsecConnections/{ipscId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateInternetGateway Updates the specified Internet Gateway. You can disable/enable it, or change its display name. - // Avoid entering confidential information. - // If the gateway is disabled, that means no traffic will flow to/from the internet even if there's - // a route rule that enables that traffic. -func(client VirtualNetworkClient) UpdateInternetGateway(ctx context.Context, request UpdateInternetGatewayRequest) (response UpdateInternetGatewayResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/internetGateways/{igId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateLocalPeeringGateway Updates the specified local peering gateway (LPG). -func(client VirtualNetworkClient) UpdateLocalPeeringGateway(ctx context.Context, request UpdateLocalPeeringGatewayRequest) (response UpdateLocalPeeringGatewayResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/localPeeringGateways/{localPeeringGatewayId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdatePrivateIp Updates the specified private IP. You must specify the object's OCID. - // Use this operation if you want to: - // - Move a secondary private IP to a different VNIC in the same subnet. - // - Change the display name for a secondary private IP. - // - Change the hostname for a secondary private IP. - // This operation cannot be used with primary private IPs. - // To update the hostname for the primary IP on a VNIC, use - // UpdateVnic. -func(client VirtualNetworkClient) UpdatePrivateIp(ctx context.Context, request UpdatePrivateIpRequest) (response UpdatePrivateIpResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/privateIps/{privateIpId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateRouteTable Updates the specified route table's display name or route rules. - // Avoid entering confidential information. - // Note that the `routeRules` object you provide replaces the entire existing set of rules. -func(client VirtualNetworkClient) UpdateRouteTable(ctx context.Context, request UpdateRouteTableRequest) (response UpdateRouteTableResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/routeTables/{rtId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateSecurityList Updates the specified security list's display name or rules. - // Avoid entering confidential information. - // Note that the `egressSecurityRules` or `ingressSecurityRules` objects you provide replace the entire - // existing objects. -func(client VirtualNetworkClient) UpdateSecurityList(ctx context.Context, request UpdateSecurityListRequest) (response UpdateSecurityListResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/securityLists/{securityListId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateSubnet Updates the specified subnet's display name. Avoid entering confidential information. -func(client VirtualNetworkClient) UpdateSubnet(ctx context.Context, request UpdateSubnetRequest) (response UpdateSubnetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/subnets/{subnetId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateVcn Updates the specified VCN's display name. - // Avoid entering confidential information. -func(client VirtualNetworkClient) UpdateVcn(ctx context.Context, request UpdateVcnRequest) (response UpdateVcnResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/vcns/{vcnId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateVirtualCircuit Updates the specified virtual circuit. This can be called by - // either the customer who owns the virtual circuit, or the - // provider (when provisioning or de-provisioning the virtual - // circuit from their end). The documentation for - // UpdateVirtualCircuitDetails - // indicates who can update each property of the virtual circuit. - // **Important:** If the virtual circuit is working and in the - // PROVISIONED state, updating any of the network-related properties - // (such as the DRG being used, the BGP ASN, and so on) will cause the virtual - // circuit's state to switch to PROVISIONING and the related BGP - // session to go down. After Oracle re-provisions the virtual circuit, - // its state will return to PROVISIONED. Make sure you confirm that - // the associated BGP session is back up. For more information - // about the various states and how to test connectivity, see - // [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). - // To change the list of public IP prefixes for a public virtual circuit, - // use BulkAddVirtualCircuitPublicPrefixes - // and - // BulkDeleteVirtualCircuitPublicPrefixes. - // Updating the list of prefixes does NOT cause the BGP session to go down. However, - // Oracle must verify the customer's ownership of each added prefix before - // traffic for that prefix will flow across the virtual circuit. -func(client VirtualNetworkClient) UpdateVirtualCircuit(ctx context.Context, request UpdateVirtualCircuitRequest) (response UpdateVirtualCircuitResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/virtualCircuits/{virtualCircuitId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateVnic Updates the specified VNIC. -func(client VirtualNetworkClient) UpdateVnic(ctx context.Context, request UpdateVnicRequest) (response UpdateVnicResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/vnics/{vnicId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/cpe.go b/vendor/github.com/oracle/oci-go-sdk/core/cpe.go index 71d51734a..9759c8cbf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/cpe.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/cpe.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,44 +9,37 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Cpe An object you create when setting up an IPSec VPN between your on-premises network - // and VCN. The `Cpe` is a virtual representation of your Customer-Premises Equipment, - // which is the actual router on-premises at your site at your end of the IPSec VPN connection. - // For more information, - // see [Overview of the Networking Service]({{DOC_SERVER_URL}}/Content/Network/Concepts/overview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Cpe An object you create when setting up an IPSec VPN between your on-premises network +// and VCN. The `Cpe` is a virtual representation of your Customer-Premises Equipment, +// which is the actual router on-premises at your site at your end of the IPSec VPN connection. +// For more information, +// see Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Cpe struct { - - // The OCID of the compartment containing the CPE. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The CPE's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The public IP address of the on-premises router. - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The date and time the CPE was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} -func (m Cpe) String() string { - return common.PointerString(m) -} + // The OCID of the compartment containing the CPE. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The CPE's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + // The public IP address of the on-premises router. + IpAddress *string `mandatory:"true" json:"ipAddress"` + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + // The date and time the CPE was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} +func (m Cpe) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_cpe_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_cpe_details.go index 883f73fa2..0dff34734 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_cpe_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_cpe_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,30 +9,23 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateCpeDetails The representation of CreateCpeDetails +// CreateCpeDetails The representation of CreateCpeDetails type CreateCpeDetails struct { - - // The OCID of the compartment to contain the CPE. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The public IP address of the on-premises router. - // Example: `143.19.23.16` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m CreateCpeDetails) String() string { - return common.PointerString(m) -} - + // The OCID of the compartment to contain the CPE. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The public IP address of the on-premises router. + // Example: `143.19.23.16` + IpAddress *string `mandatory:"true" json:"ipAddress"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} +func (m CreateCpeDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_cpe_request_response.go index 697f71bcf..c4a5314a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_cpe_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateCpeRequest wrapper for the CreateCpe operation type CreateCpeRequest struct { - - // Details for creating a CPE. - CreateCpeDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details for creating a CPE. + CreateCpeDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateCpeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateCpeResponse wrapper for the CreateCpe operation type CreateCpeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Cpe instance - Cpe `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Cpe instance + Cpe `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateCpeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_details.go index b45778cfb..6a17ea194 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,52 +9,45 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateCrossConnectDetails The representation of CreateCrossConnectDetails +// CreateCrossConnectDetails The representation of CreateCrossConnectDetails type CreateCrossConnectDetails struct { - - // The OCID of the compartment to contain the cross-connect. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name of the FastConnect location where this cross-connect will be installed. - // To get a list of the available locations, see - // ListCrossConnectLocations. - // Example: `CyrusOne, Chandler, AZ` - LocationName *string `mandatory:"true" json:"locationName"` - - // The port speed for this cross-connect. To get a list of the available port speeds, see - // ListCrossconnectPortSpeedShapes. - // Example: `10 Gbps` - PortSpeedShapeName *string `mandatory:"true" json:"portSpeedShapeName"` - - // The OCID of the cross-connect group to put this cross-connect in. - CrossConnectGroupId *string `mandatory:"false" json:"crossConnectGroupId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // If you already have an existing cross-connect or cross-connect group at this FastConnect - // location, and you want this new cross-connect to be on a different router (for the - // purposes of redundancy), provide the OCID of that existing cross-connect or - // cross-connect group. - FarCrossConnectOrCrossConnectGroupId *string `mandatory:"false" json:"farCrossConnectOrCrossConnectGroupId"` - - // If you already have an existing cross-connect or cross-connect group at this FastConnect - // location, and you want this new cross-connect to be on the same router, provide the - // OCID of that existing cross-connect or cross-connect group. - NearCrossConnectOrCrossConnectGroupId *string `mandatory:"false" json:"nearCrossConnectOrCrossConnectGroupId"` + + // The OCID of the compartment to contain the cross-connect. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name of the FastConnect location where this cross-connect will be installed. + // To get a list of the available locations, see + // ListCrossConnectLocations. + // Example: `CyrusOne, Chandler, AZ` + LocationName *string `mandatory:"true" json:"locationName"` + + // The port speed for this cross-connect. To get a list of the available port speeds, see + // ListCrossconnectPortSpeedShapes. + // Example: `10 Gbps` + PortSpeedShapeName *string `mandatory:"true" json:"portSpeedShapeName"` + + // The OCID of the cross-connect group to put this cross-connect in. + CrossConnectGroupId *string `mandatory:"false" json:"crossConnectGroupId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // If you already have an existing cross-connect or cross-connect group at this FastConnect + // location, and you want this new cross-connect to be on a different router (for the + // purposes of redundancy), provide the OCID of that existing cross-connect or + // cross-connect group. + FarCrossConnectOrCrossConnectGroupId *string `mandatory:"false" json:"farCrossConnectOrCrossConnectGroupId"` + + // If you already have an existing cross-connect or cross-connect group at this FastConnect + // location, and you want this new cross-connect to be on the same router, provide the + // OCID of that existing cross-connect or cross-connect group. + NearCrossConnectOrCrossConnectGroupId *string `mandatory:"false" json:"nearCrossConnectOrCrossConnectGroupId"` } func (m CreateCrossConnectDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_group_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_group_details.go index 84f76c484..c1232cfca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_group_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,27 +9,20 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateCrossConnectGroupDetails The representation of CreateCrossConnectGroupDetails +// CreateCrossConnectGroupDetails The representation of CreateCrossConnectGroupDetails type CreateCrossConnectGroupDetails struct { - - // The OCID of the compartment to contain the cross-connect group. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the compartment to contain the cross-connect group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m CreateCrossConnectGroupDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_group_request_response.go index 8f2bef272..33cdec7e9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_group_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateCrossConnectGroupRequest wrapper for the CreateCrossConnectGroup operation type CreateCrossConnectGroupRequest struct { - - // Details to create a CrossConnectGroup - CreateCrossConnectGroupDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details to create a CrossConnectGroup + CreateCrossConnectGroupDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateCrossConnectGroupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateCrossConnectGroupResponse wrapper for the CreateCrossConnectGroup operation type CreateCrossConnectGroupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The CrossConnectGroup instance - CrossConnectGroup `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The CrossConnectGroup instance + CrossConnectGroup `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateCrossConnectGroupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_request_response.go index 330782ed4..b9bf4a46e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_cross_connect_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateCrossConnectRequest wrapper for the CreateCrossConnect operation type CreateCrossConnectRequest struct { - - // Details to create a CrossConnect - CreateCrossConnectDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details to create a CrossConnect + CreateCrossConnectDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateCrossConnectRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateCrossConnectResponse wrapper for the CreateCrossConnect operation type CreateCrossConnectResponse struct { - // The underlying http response - RawResponse *http.Response - - // The CrossConnect instance - CrossConnect `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The CrossConnect instance + CrossConnect `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateCrossConnectResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_details.go index 36805a689..a29660b37 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,59 +9,53 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateDhcpDetails The representation of CreateDhcpDetails +// CreateDhcpDetails The representation of CreateDhcpDetails type CreateDhcpDetails struct { - - // The OCID of the compartment to contain the set of DHCP options. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A set of DHCP options. - Options []DhcpOption `mandatory:"true" json:"options"` - - // The OCID of the VCN the set of DHCP options belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m CreateDhcpDetails) String() string { - return common.PointerString(m) -} - // UnmarshalJSON unmarshals from json - func (m *CreateDhcpDetails) UnmarshalJSON(data []byte) (e error){ - model := struct{ - DisplayName *string `json:"displayName"` - CompartmentId *string `json:"compartmentId"` - Options []dhcpoption `json:"options"` - VcnId *string `json:"vcnId"` - }{} + // The OCID of the compartment to contain the set of DHCP options. + CompartmentId *string `mandatory:"true" json:"compartmentId"` - e = json.Unmarshal(data, &model) - if e != nil { - return - } - m.DisplayName = model.DisplayName - m.CompartmentId = model.CompartmentId - m.Options = make([]DhcpOption, len(model.Options)) - for i, n := range model.Options { - nn, err := n.UnmarshalPolymorphicJSON(n.JsonData) - if err != nil { - return err - } - m.Options[i] = nn - } - m.VcnId = model.VcnId - return - } + // A set of DHCP options. + Options []DhcpOption `mandatory:"true" json:"options"` + // The OCID of the VCN the set of DHCP options belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} +func (m CreateDhcpDetails) String() string { + return common.PointerString(m) +} +// UnmarshalJSON unmarshals from json +func (m *CreateDhcpDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + CompartmentId *string `json:"compartmentId"` + Options []dhcpoption `json:"options"` + VcnId *string `json:"vcnId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + m.DisplayName = model.DisplayName + m.CompartmentId = model.CompartmentId + m.Options = make([]DhcpOption, len(model.Options)) + for i, n := range model.Options { + nn, err := n.UnmarshalPolymorphicJSON(n.JsonData) + if err != nil { + return err + } + m.Options[i] = nn + } + m.VcnId = model.VcnId + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_options_request_response.go index e8a6beda4..6fed1770d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_options_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateDhcpOptionsRequest wrapper for the CreateDhcpOptions operation type CreateDhcpOptionsRequest struct { - - // Request object for creating a new set of DHCP options. - CreateDhcpDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request object for creating a new set of DHCP options. + CreateDhcpDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateDhcpOptionsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateDhcpOptionsResponse wrapper for the CreateDhcpOptions operation type CreateDhcpOptionsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DhcpOptions instance - DhcpOptions `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DhcpOptions instance + DhcpOptions `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateDhcpOptionsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_drg_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_drg_attachment_details.go index e7c785f0e..d76431fc9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_drg_attachment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_drg_attachment_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,29 +9,22 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateDrgAttachmentDetails The representation of CreateDrgAttachmentDetails +// CreateDrgAttachmentDetails The representation of CreateDrgAttachmentDetails type CreateDrgAttachmentDetails struct { - - // The OCID of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // The OCID of the VCN. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m CreateDrgAttachmentDetails) String() string { - return common.PointerString(m) -} - + // The OCID of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + // The OCID of the VCN. + VcnId *string `mandatory:"true" json:"vcnId"` + // A user-friendly name. Does not have to be unique. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} +func (m CreateDrgAttachmentDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_drg_attachment_request_response.go index 1677353e3..4e50c9bd6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_drg_attachment_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateDrgAttachmentRequest wrapper for the CreateDrgAttachment operation type CreateDrgAttachmentRequest struct { - - // Details for creating a `DrgAttachment`. - CreateDrgAttachmentDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details for creating a `DrgAttachment`. + CreateDrgAttachmentDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateDrgAttachmentRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateDrgAttachmentResponse wrapper for the CreateDrgAttachment operation type CreateDrgAttachmentResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DrgAttachment instance - DrgAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DrgAttachment instance + DrgAttachment `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateDrgAttachmentResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_drg_details.go index 30dafc60b..a4a7d6f65 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_drg_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_drg_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,26 +9,19 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateDrgDetails The representation of CreateDrgDetails +// CreateDrgDetails The representation of CreateDrgDetails type CreateDrgDetails struct { - - // The OCID of the compartment to contain the DRG. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the compartment to contain the DRG. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m CreateDrgDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_drg_request_response.go index 9cedd2b5b..a1fa6bae0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_drg_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateDrgRequest wrapper for the CreateDrg operation type CreateDrgRequest struct { - - // Details for creating a DRG. - CreateDrgDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details for creating a DRG. + CreateDrgDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateDrgRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateDrgResponse wrapper for the CreateDrg operation type CreateDrgResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Drg instance - Drg `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Drg instance + Drg `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateDrgResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_i_p_sec_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_i_p_sec_connection_request_response.go index b4c3f8def..877bcc9c8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_i_p_sec_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_i_p_sec_connection_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateIPSecConnectionRequest wrapper for the CreateIPSecConnection operation type CreateIPSecConnectionRequest struct { - - // Details for creating an `IPSecConnection`. - CreateIpSecConnectionDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details for creating an `IPSecConnection`. + CreateIpSecConnectionDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateIPSecConnectionRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateIPSecConnectionResponse wrapper for the CreateIPSecConnection operation type CreateIPSecConnectionResponse struct { - // The underlying http response - RawResponse *http.Response - - // The IpSecConnection instance - IpSecConnection `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The IpSecConnection instance + IpSecConnection `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateIPSecConnectionResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_image_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_image_details.go index 4084d770c..6a482ea01 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_image_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_image_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,59 +9,53 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateImageDetails Either instanceId or imageSourceDetails must be provided in addition to other required parameters. +// CreateImageDetails Either instanceId or imageSourceDetails must be provided in addition to other required parameters. type CreateImageDetails struct { - - // The OCID of the compartment containing the instance you want to use as the basis for the image. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name for the image. It does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // You cannot use an Oracle-provided image name as a custom image name. - // Example: `My Oracle Linux image` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Details for creating an image through import - ImageSourceDetails ImageSourceDetails `mandatory:"false" json:"imageSourceDetails"` - - // The OCID of the instance you want to use as the basis for the image. - InstanceId *string `mandatory:"false" json:"instanceId"` -} - -func (m CreateImageDetails) String() string { - return common.PointerString(m) -} - // UnmarshalJSON unmarshals from json - func (m *CreateImageDetails) UnmarshalJSON(data []byte) (e error){ - model := struct{ - DisplayName *string `json:"displayName"` - ImageSourceDetails imagesourcedetails `json:"imageSourceDetails"` - InstanceId *string `json:"instanceId"` - CompartmentId *string `json:"compartmentId"` - }{} + // The OCID of the compartment containing the instance you want to use as the basis for the image. + CompartmentId *string `mandatory:"true" json:"compartmentId"` - e = json.Unmarshal(data, &model) - if e != nil { - return - } - m.DisplayName = model.DisplayName - nn, e := model.ImageSourceDetails.UnmarshalPolymorphicJSON(model.ImageSourceDetails.JsonData) - if e != nil { - return - } - m.ImageSourceDetails = nn - m.InstanceId = model.InstanceId - m.CompartmentId = model.CompartmentId - return - } + // A user-friendly name for the image. It does not have to be unique, and it's changeable. + // Avoid entering confidential information. + // You cannot use an Oracle-provided image name as a custom image name. + // Example: `My Oracle Linux image` + DisplayName *string `mandatory:"false" json:"displayName"` + // Details for creating an image through import + ImageSourceDetails ImageSourceDetails `mandatory:"false" json:"imageSourceDetails"` + // The OCID of the instance you want to use as the basis for the image. + InstanceId *string `mandatory:"false" json:"instanceId"` +} +func (m CreateImageDetails) String() string { + return common.PointerString(m) +} +// UnmarshalJSON unmarshals from json +func (m *CreateImageDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + ImageSourceDetails imagesourcedetails `json:"imageSourceDetails"` + InstanceId *string `json:"instanceId"` + CompartmentId *string `json:"compartmentId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + m.DisplayName = model.DisplayName + nn, e := model.ImageSourceDetails.UnmarshalPolymorphicJSON(model.ImageSourceDetails.JsonData) + if e != nil { + return + } + m.ImageSourceDetails = nn + m.InstanceId = model.InstanceId + m.CompartmentId = model.CompartmentId + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_image_request_response.go index 9d358d6ea..0481d6924 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_image_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateImageRequest wrapper for the CreateImage operation type CreateImageRequest struct { - - // Image creation details - CreateImageDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Image creation details + CreateImageDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateImageRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateImageResponse wrapper for the CreateImage operation type CreateImageResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Image instance - Image `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Image instance + Image `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateImageResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_instance_console_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_instance_console_connection_details.go index 42d8cd3eb..3d3225bf7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_instance_console_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_instance_console_connection_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,27 +9,20 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateInstanceConsoleConnectionDetails The details for creating a instance console connection. - // The instance console connection is created in the same compartment as the instance. +// CreateInstanceConsoleConnectionDetails The details for creating a instance console connection. +// The instance console connection is created in the same compartment as the instance. type CreateInstanceConsoleConnectionDetails struct { - - // The OCID of the instance to create the console connection to. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The SSH public key used to authenticate the console connection. - PublicKey *string `mandatory:"true" json:"publicKey"` + + // The OCID of the instance to create the console connection to. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The SSH public key used to authenticate the console connection. + PublicKey *string `mandatory:"true" json:"publicKey"` } func (m CreateInstanceConsoleConnectionDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_instance_console_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_instance_console_connection_request_response.go index c9ef575b5..456bd9b78 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_instance_console_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_instance_console_connection_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateInstanceConsoleConnectionRequest wrapper for the CreateInstanceConsoleConnection operation type CreateInstanceConsoleConnectionRequest struct { - - // Request object for creating an InstanceConsoleConnection - CreateInstanceConsoleConnectionDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request object for creating an InstanceConsoleConnection + CreateInstanceConsoleConnectionDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateInstanceConsoleConnectionRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateInstanceConsoleConnectionResponse wrapper for the CreateInstanceConsoleConnection operation type CreateInstanceConsoleConnectionResponse struct { - // The underlying http response - RawResponse *http.Response - - // The InstanceConsoleConnection instance - InstanceConsoleConnection `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The InstanceConsoleConnection instance + InstanceConsoleConnection `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateInstanceConsoleConnectionResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_details.go index a324a41bf..df49670c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,32 +9,25 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateInternetGatewayDetails The representation of CreateInternetGatewayDetails +// CreateInternetGatewayDetails The representation of CreateInternetGatewayDetails type CreateInternetGatewayDetails struct { - - // The OCID of the compartment to contain the Internet Gateway. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Whether the gateway is enabled upon creation. - IsEnabled *bool `mandatory:"true" json:"isEnabled"` - - // The OCID of the VCN the Internet Gateway is attached to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m CreateInternetGatewayDetails) String() string { - return common.PointerString(m) -} + // The OCID of the compartment to contain the Internet Gateway. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // Whether the gateway is enabled upon creation. + IsEnabled *bool `mandatory:"true" json:"isEnabled"` + // The OCID of the VCN the Internet Gateway is attached to. + VcnId *string `mandatory:"true" json:"vcnId"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} +func (m CreateInternetGatewayDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_request_response.go index fa1cf2ee9..767747486 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateInternetGatewayRequest wrapper for the CreateInternetGateway operation type CreateInternetGatewayRequest struct { - - // Details for creating a new Internet Gateway. - CreateInternetGatewayDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details for creating a new Internet Gateway. + CreateInternetGatewayDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateInternetGatewayRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateInternetGatewayResponse wrapper for the CreateInternetGateway operation type CreateInternetGatewayResponse struct { - // The underlying http response - RawResponse *http.Response - - // The InternetGateway instance - InternetGateway `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The InternetGateway instance + InternetGateway `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateInternetGatewayResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_ip_sec_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_ip_sec_connection_details.go index c58a25931..31cf23fa8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_ip_sec_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_ip_sec_connection_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,37 +9,30 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateIpSecConnectionDetails The representation of CreateIpSecConnectionDetails +// CreateIpSecConnectionDetails The representation of CreateIpSecConnectionDetails type CreateIpSecConnectionDetails struct { - - // The OCID of the compartment to contain the IPSec connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the CPE. - CpeId *string `mandatory:"true" json:"cpeId"` - - // The OCID of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // Static routes to the CPE. At least one route must be included. The CIDR must not be a - // multicast address or class E address. - // Example: `10.0.1.0/24` - StaticRoutes []string `mandatory:"true" json:"staticRoutes"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} -func (m CreateIpSecConnectionDetails) String() string { - return common.PointerString(m) -} + // The OCID of the compartment to contain the IPSec connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The OCID of the CPE. + CpeId *string `mandatory:"true" json:"cpeId"` + // The OCID of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + // Static routes to the CPE. At least one route must be included. The CIDR must not be a + // multicast address or class E address. + // Example: `10.0.1.0/24` + StaticRoutes []string `mandatory:"true" json:"staticRoutes"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} +func (m CreateIpSecConnectionDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_local_peering_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_local_peering_gateway_details.go index b4e03a69d..6e0b45439 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_local_peering_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_local_peering_gateway_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,30 +9,23 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateLocalPeeringGatewayDetails The representation of CreateLocalPeeringGatewayDetails +// CreateLocalPeeringGatewayDetails The representation of CreateLocalPeeringGatewayDetails type CreateLocalPeeringGatewayDetails struct { - - // The OCID of the compartment containing the local peering gateway (LPG). - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the VCN the LPG belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid - // entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m CreateLocalPeeringGatewayDetails) String() string { - return common.PointerString(m) -} - + // The OCID of the compartment containing the local peering gateway (LPG). + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The OCID of the VCN the LPG belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid + // entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} +func (m CreateLocalPeeringGatewayDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_local_peering_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_local_peering_gateway_request_response.go index 2f9bf54cd..4f72bdb5c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_local_peering_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_local_peering_gateway_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateLocalPeeringGatewayRequest wrapper for the CreateLocalPeeringGateway operation type CreateLocalPeeringGatewayRequest struct { - - // Details for creating a new local peering gateway. - CreateLocalPeeringGatewayDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details for creating a new local peering gateway. + CreateLocalPeeringGatewayDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateLocalPeeringGatewayRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateLocalPeeringGatewayResponse wrapper for the CreateLocalPeeringGateway operation type CreateLocalPeeringGatewayResponse struct { - // The underlying http response - RawResponse *http.Response - - // The LocalPeeringGateway instance - LocalPeeringGateway `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The LocalPeeringGateway instance + LocalPeeringGateway `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateLocalPeeringGatewayResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_private_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_private_ip_details.go index 2b3ed61e5..b9da8cc51 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_private_ip_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_private_ip_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,45 +9,38 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreatePrivateIpDetails The representation of CreatePrivateIpDetails +// CreatePrivateIpDetails The representation of CreatePrivateIpDetails type CreatePrivateIpDetails struct { - - // The OCID of the VNIC to assign the private IP to. The VNIC and private IP - // must be in the same subnet. - VnicId *string `mandatory:"true" json:"vnicId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid - // entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The hostname for the private IP. Used for DNS. The value - // is the hostname portion of the private IP's fully qualified domain name (FQDN) - // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be unique across all VNICs in the subnet and comply with - // [RFC 952](https://tools.ietf.org/html/rfc952) and - // [RFC 1123](https://tools.ietf.org/html/rfc1123). - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // Example: `bminstance-1` - HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - - // A private IP address of your choice. Must be an available IP address within - // the subnet's CIDR. If you don't specify a value, Oracle automatically - // assigns a private IP address from the subnet. - // Example: `10.0.3.3` - IpAddress *string `mandatory:"false" json:"ipAddress"` + + // The OCID of the VNIC to assign the private IP to. The VNIC and private IP + // must be in the same subnet. + VnicId *string `mandatory:"true" json:"vnicId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid + // entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The hostname for the private IP. Used for DNS. The value + // is the hostname portion of the private IP's fully qualified domain name (FQDN) + // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be unique across all VNICs in the subnet and comply with + // RFC 952 (https://tools.ietf.org/html/rfc952) and + // RFC 1123 (https://tools.ietf.org/html/rfc1123). + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // Example: `bminstance-1` + HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` + + // A private IP address of your choice. Must be an available IP address within + // the subnet's CIDR. If you don't specify a value, Oracle automatically + // assigns a private IP address from the subnet. + // Example: `10.0.3.3` + IpAddress *string `mandatory:"false" json:"ipAddress"` } func (m CreatePrivateIpDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_private_ip_request_response.go index 0908c3b1a..941d3a3ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_private_ip_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreatePrivateIpRequest wrapper for the CreatePrivateIp operation type CreatePrivateIpRequest struct { - - // Create private IP details. - CreatePrivateIpDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Create private IP details. + CreatePrivateIpDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreatePrivateIpRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreatePrivateIpResponse wrapper for the CreatePrivateIp operation type CreatePrivateIpResponse struct { - // The underlying http response - RawResponse *http.Response - - // The PrivateIp instance - PrivateIp `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The PrivateIp instance + PrivateIp `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreatePrivateIpResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_route_table_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_route_table_details.go index a29579e5a..8f3005acd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_route_table_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_route_table_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,32 +9,25 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateRouteTableDetails The representation of CreateRouteTableDetails +// CreateRouteTableDetails The representation of CreateRouteTableDetails type CreateRouteTableDetails struct { - - // The OCID of the compartment to contain the route table. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The collection of rules used for routing destination IPs to network devices. - RouteRules []RouteRule `mandatory:"true" json:"routeRules"` - - // The OCID of the VCN the route table belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m CreateRouteTableDetails) String() string { - return common.PointerString(m) -} + // The OCID of the compartment to contain the route table. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The collection of rules used for routing destination IPs to network devices. + RouteRules []RouteRule `mandatory:"true" json:"routeRules"` + // The OCID of the VCN the route table belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} +func (m CreateRouteTableDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_route_table_request_response.go index 01b587983..7e70b4de8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_route_table_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateRouteTableRequest wrapper for the CreateRouteTable operation type CreateRouteTableRequest struct { - - // Details for creating a new route table. - CreateRouteTableDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details for creating a new route table. + CreateRouteTableDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateRouteTableRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateRouteTableResponse wrapper for the CreateRouteTable operation type CreateRouteTableResponse struct { - // The underlying http response - RawResponse *http.Response - - // The RouteTable instance - RouteTable `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The RouteTable instance + RouteTable `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateRouteTableResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_security_list_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_security_list_details.go index be7b27ee3..06d4c4ec9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_security_list_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_security_list_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,35 +9,28 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateSecurityListDetails The representation of CreateSecurityListDetails +// CreateSecurityListDetails The representation of CreateSecurityListDetails type CreateSecurityListDetails struct { - - // The OCID of the compartment to contain the security list. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Rules for allowing egress IP packets. - EgressSecurityRules []EgressSecurityRule `mandatory:"true" json:"egressSecurityRules"` - - // Rules for allowing ingress IP packets. - IngressSecurityRules []IngressSecurityRule `mandatory:"true" json:"ingressSecurityRules"` - - // The OCID of the VCN the security list belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} -func (m CreateSecurityListDetails) String() string { - return common.PointerString(m) -} + // The OCID of the compartment to contain the security list. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // Rules for allowing egress IP packets. + EgressSecurityRules []EgressSecurityRule `mandatory:"true" json:"egressSecurityRules"` + // Rules for allowing ingress IP packets. + IngressSecurityRules []IngressSecurityRule `mandatory:"true" json:"ingressSecurityRules"` + // The OCID of the VCN the security list belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} +func (m CreateSecurityListDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_security_list_request_response.go index d22972bcf..e652c644b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_security_list_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateSecurityListRequest wrapper for the CreateSecurityList operation type CreateSecurityListRequest struct { - - // Details regarding the security list to create. - CreateSecurityListDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details regarding the security list to create. + CreateSecurityListDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateSecurityListRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateSecurityListResponse wrapper for the CreateSecurityList operation type CreateSecurityListResponse struct { - // The underlying http response - RawResponse *http.Response - - // The SecurityList instance - SecurityList `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The SecurityList instance + SecurityList `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateSecurityListResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_details.go index 8d871c9cf..bc50b2add 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,75 +9,68 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateSubnetDetails The representation of CreateSubnetDetails +// CreateSubnetDetails The representation of CreateSubnetDetails type CreateSubnetDetails struct { - - // The Availability Domain to contain the subnet. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The CIDR IP address range of the subnet. - // Example: `172.16.1.0/24` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // The OCID of the compartment to contain the subnet. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the VCN to contain the subnet. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The OCID of the set of DHCP options the subnet will use. If you don't - // provide a value, the subnet will use the VCN's default set of DHCP options. - DhcpOptionsId *string `mandatory:"false" json:"dhcpOptionsId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A DNS label for the subnet, used in conjunction with the VNIC's hostname and - // VCN's DNS label to form a fully qualified domain name (FQDN) for each VNIC - // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be an alphanumeric string that begins with a letter and is unique within the VCN. - // The value cannot be changed. - // This value must be set if you want to use the Internet and VCN Resolver to resolve the - // hostnames of instances in the subnet. It can only be set if the VCN itself - // was created with a DNS label. - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // Example: `subnet123` - DnsLabel *string `mandatory:"false" json:"dnsLabel"` - - // Whether VNICs within this subnet can have public IP addresses. - // Defaults to false, which means VNICs created in this subnet will - // automatically be assigned public IP addresses unless specified - // otherwise during instance launch or VNIC creation (with the - // `assignPublicIp` flag in CreateVnicDetails). - // If `prohibitPublicIpOnVnic` is set to true, VNICs created in this - // subnet cannot have public IP addresses (that is, it's a private - // subnet). - // Example: `true` - ProhibitPublicIpOnVnic *bool `mandatory:"false" json:"prohibitPublicIpOnVnic"` - - // The OCID of the route table the subnet will use. If you don't provide a value, - // the subnet will use the VCN's default route table. - RouteTableId *string `mandatory:"false" json:"routeTableId"` - - // OCIDs for the security lists to associate with the subnet. If you don't - // provide a value, the VCN's default security list will be associated with - // the subnet. Remember that security lists are associated at the subnet - // level, but the rules are applied to the individual VNICs in the subnet. - SecurityListIds []string `mandatory:"false" json:"securityListIds"` -} -func (m CreateSubnetDetails) String() string { - return common.PointerString(m) -} + // The Availability Domain to contain the subnet. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The CIDR IP address range of the subnet. + // Example: `172.16.1.0/24` + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // The OCID of the compartment to contain the subnet. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The OCID of the VCN to contain the subnet. + VcnId *string `mandatory:"true" json:"vcnId"` + // The OCID of the set of DHCP options the subnet will use. If you don't + // provide a value, the subnet will use the VCN's default set of DHCP options. + DhcpOptionsId *string `mandatory:"false" json:"dhcpOptionsId"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + // A DNS label for the subnet, used in conjunction with the VNIC's hostname and + // VCN's DNS label to form a fully qualified domain name (FQDN) for each VNIC + // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be an alphanumeric string that begins with a letter and is unique within the VCN. + // The value cannot be changed. + // This value must be set if you want to use the Internet and VCN Resolver to resolve the + // hostnames of instances in the subnet. It can only be set if the VCN itself + // was created with a DNS label. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // Example: `subnet123` + DnsLabel *string `mandatory:"false" json:"dnsLabel"` + // Whether VNICs within this subnet can have public IP addresses. + // Defaults to false, which means VNICs created in this subnet will + // automatically be assigned public IP addresses unless specified + // otherwise during instance launch or VNIC creation (with the + // `assignPublicIp` flag in CreateVnicDetails). + // If `prohibitPublicIpOnVnic` is set to true, VNICs created in this + // subnet cannot have public IP addresses (that is, it's a private + // subnet). + // Example: `true` + ProhibitPublicIpOnVnic *bool `mandatory:"false" json:"prohibitPublicIpOnVnic"` + + // The OCID of the route table the subnet will use. If you don't provide a value, + // the subnet will use the VCN's default route table. + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // OCIDs for the security lists to associate with the subnet. If you don't + // provide a value, the VCN's default security list will be associated with + // the subnet. Remember that security lists are associated at the subnet + // level, but the rules are applied to the individual VNICs in the subnet. + SecurityListIds []string `mandatory:"false" json:"securityListIds"` +} + +func (m CreateSubnetDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_request_response.go index c564ed678..8d5818ec7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateSubnetRequest wrapper for the CreateSubnet operation type CreateSubnetRequest struct { - - // Details for creating a subnet. - CreateSubnetDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details for creating a subnet. + CreateSubnetDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateSubnetRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateSubnetResponse wrapper for the CreateSubnet operation type CreateSubnetResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Subnet instance - Subnet `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Subnet instance + Subnet `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateSubnetResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_vcn_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_vcn_details.go index 9af261c9f..70eb2c240 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_vcn_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_vcn_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,44 +9,37 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateVcnDetails The representation of CreateVcnDetails +// CreateVcnDetails The representation of CreateVcnDetails type CreateVcnDetails struct { - - // The CIDR IP address block of the VCN. - // Example: `172.16.0.0/16` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // The OCID of the compartment to contain the VCN. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A DNS label for the VCN, used in conjunction with the VNIC's hostname and - // subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC - // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Not required to be unique, but it's a best practice to set unique DNS labels - // for VCNs in your tenancy. Must be an alphanumeric string that begins with a letter. - // The value cannot be changed. - // You must set this value if you want instances to be able to use hostnames to - // resolve other instances in the VCN. Otherwise the Internet and VCN Resolver - // will not work. - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // Example: `vcn1` - DnsLabel *string `mandatory:"false" json:"dnsLabel"` + + // The CIDR IP address block of the VCN. + // Example: `172.16.0.0/16` + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // The OCID of the compartment to contain the VCN. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A DNS label for the VCN, used in conjunction with the VNIC's hostname and + // subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC + // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Not required to be unique, but it's a best practice to set unique DNS labels + // for VCNs in your tenancy. Must be an alphanumeric string that begins with a letter. + // The value cannot be changed. + // You must set this value if you want instances to be able to use hostnames to + // resolve other instances in the VCN. Otherwise the Internet and VCN Resolver + // will not work. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // Example: `vcn1` + DnsLabel *string `mandatory:"false" json:"dnsLabel"` } func (m CreateVcnDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_vcn_request_response.go index 5d9773b87..99cd907af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_vcn_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateVcnRequest wrapper for the CreateVcn operation type CreateVcnRequest struct { - - // Details for creating a new VCN. - CreateVcnDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details for creating a new VCN. + CreateVcnDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateVcnRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateVcnResponse wrapper for the CreateVcn operation type CreateVcnResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Vcn instance - Vcn `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Vcn instance + Vcn `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateVcnResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_details.go index 9ab880bf3..f663f9854 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,100 +9,90 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateVirtualCircuitDetails The representation of CreateVirtualCircuitDetails +// CreateVirtualCircuitDetails The representation of CreateVirtualCircuitDetails type CreateVirtualCircuitDetails struct { - - // The OCID of the compartment to contain the virtual circuit. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The type of IP addresses used in this virtual circuit. PRIVATE - // means [RFC 1918](https://tools.ietf.org/html/rfc1918) addresses - // (10.0.0.0/8, 172.16/12, and 192.168/16). Only PRIVATE is supported. - Type CreateVirtualCircuitDetailsTypeEnum `mandatory:"true" json:"type"` - - // The provisioned data rate of the connection. To get a list of the - // available bandwidth levels (that is, shapes), see - // ListFastConnectProviderVirtualCircuitBandwidthShapes. - // Example: `10 Gbps` - BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` - - // Create a `CrossConnectMapping` for each cross-connect or cross-connect - // group this virtual circuit will run on. - CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` - - // Your BGP ASN (either public or private). Provide this value only if - // there's a BGP session that goes from your edge router to Oracle. - // Otherwise, leave this empty or null. - CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // For private virtual circuits only. The OCID of the Drg - // that this virtual circuit uses. - GatewayId *string `mandatory:"false" json:"gatewayId"` - - // Deprecated. Instead use `providerServiceId`. - // To get a list of the provider names, see - // ListFastConnectProviderServices. - ProviderName *string `mandatory:"false" json:"providerName"` - - // The OCID of the service offered by the provider (if you're connecting - // via a provider). To get a list of the available service offerings, see - // ListFastConnectProviderServices. - ProviderServiceId *string `mandatory:"false" json:"providerServiceId"` - - // Deprecated. Instead use `providerServiceId`. - // To get a list of the provider names, see - // ListFastConnectProviderServices. - ProviderServiceName *string `mandatory:"false" json:"providerServiceName"` - - // For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to - // advertise across the connection. - PublicPrefixes []CreateVirtualCircuitPublicPrefixDetails `mandatory:"false" json:"publicPrefixes"` - - // The Oracle Cloud Infrastructure region where this virtual - // circuit is located. - // Example: `phx` - Region *string `mandatory:"false" json:"region"` + + // The OCID of the compartment to contain the virtual circuit. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The type of IP addresses used in this virtual circuit. PRIVATE + // means RFC 1918 (https://tools.ietf.org/html/rfc1918) addresses + // (10.0.0.0/8, 172.16/12, and 192.168/16). Only PRIVATE is supported. + Type CreateVirtualCircuitDetailsTypeEnum `mandatory:"true" json:"type"` + + // The provisioned data rate of the connection. To get a list of the + // available bandwidth levels (that is, shapes), see + // ListFastConnectProviderVirtualCircuitBandwidthShapes. + // Example: `10 Gbps` + BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` + + // Create a `CrossConnectMapping` for each cross-connect or cross-connect + // group this virtual circuit will run on. + CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` + + // Your BGP ASN (either public or private). Provide this value only if + // there's a BGP session that goes from your edge router to Oracle. + // Otherwise, leave this empty or null. + CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // For private virtual circuits only. The OCID of the Drg + // that this virtual circuit uses. + GatewayId *string `mandatory:"false" json:"gatewayId"` + + // Deprecated. Instead use `providerServiceId`. + // To get a list of the provider names, see + // ListFastConnectProviderServices. + ProviderName *string `mandatory:"false" json:"providerName"` + + // The OCID of the service offered by the provider (if you're connecting + // via a provider). To get a list of the available service offerings, see + // ListFastConnectProviderServices. + ProviderServiceId *string `mandatory:"false" json:"providerServiceId"` + + // Deprecated. Instead use `providerServiceId`. + // To get a list of the provider names, see + // ListFastConnectProviderServices. + ProviderServiceName *string `mandatory:"false" json:"providerServiceName"` + + // For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to + // advertise across the connection. + PublicPrefixes []CreateVirtualCircuitPublicPrefixDetails `mandatory:"false" json:"publicPrefixes"` + + // The Oracle Cloud Infrastructure region where this virtual + // circuit is located. + // Example: `phx` + Region *string `mandatory:"false" json:"region"` } func (m CreateVirtualCircuitDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // CreateVirtualCircuitDetailsTypeEnum Enum with underlying type: string type CreateVirtualCircuitDetailsTypeEnum string // Set of constants representing the allowable values for CreateVirtualCircuitDetailsType const ( - CreateVirtualCircuitDetailsTypePublic CreateVirtualCircuitDetailsTypeEnum = "PUBLIC" - CreateVirtualCircuitDetailsTypePrivate CreateVirtualCircuitDetailsTypeEnum = "PRIVATE" - CreateVirtualCircuitDetailsTypeUnknown CreateVirtualCircuitDetailsTypeEnum = "UNKNOWN" + CreateVirtualCircuitDetailsTypePublic CreateVirtualCircuitDetailsTypeEnum = "PUBLIC" + CreateVirtualCircuitDetailsTypePrivate CreateVirtualCircuitDetailsTypeEnum = "PRIVATE" ) -var mappingCreateVirtualCircuitDetailsType = map[string]CreateVirtualCircuitDetailsTypeEnum { - "PUBLIC": CreateVirtualCircuitDetailsTypePublic, - "PRIVATE": CreateVirtualCircuitDetailsTypePrivate, - "UNKNOWN": CreateVirtualCircuitDetailsTypeUnknown, +var mappingCreateVirtualCircuitDetailsType = map[string]CreateVirtualCircuitDetailsTypeEnum{ + "PUBLIC": CreateVirtualCircuitDetailsTypePublic, + "PRIVATE": CreateVirtualCircuitDetailsTypePrivate, } // GetCreateVirtualCircuitDetailsTypeEnumValues Enumerates the set of values for CreateVirtualCircuitDetailsType func GetCreateVirtualCircuitDetailsTypeEnumValues() []CreateVirtualCircuitDetailsTypeEnum { - values := make([]CreateVirtualCircuitDetailsTypeEnum, 0) - for _, v := range mappingCreateVirtualCircuitDetailsType { - if v != CreateVirtualCircuitDetailsTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]CreateVirtualCircuitDetailsTypeEnum, 0) + for _, v := range mappingCreateVirtualCircuitDetailsType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_public_prefix_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_public_prefix_details.go index c6b939850..10e13c8f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_public_prefix_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_public_prefix_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateVirtualCircuitPublicPrefixDetails The representation of CreateVirtualCircuitPublicPrefixDetails +// CreateVirtualCircuitPublicPrefixDetails The representation of CreateVirtualCircuitPublicPrefixDetails type CreateVirtualCircuitPublicPrefixDetails struct { - - // An individual public IP prefix (CIDR) to add to the public virtual circuit. - // Must be /24 or less specific. - CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // An individual public IP prefix (CIDR) to add to the public virtual circuit. + // Must be /24 or less specific. + CidrBlock *string `mandatory:"true" json:"cidrBlock"` } func (m CreateVirtualCircuitPublicPrefixDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_request_response.go index e13ef33e0..629fc3e8a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateVirtualCircuitRequest wrapper for the CreateVirtualCircuit operation type CreateVirtualCircuitRequest struct { - - // Details to create a VirtualCircuit. - CreateVirtualCircuitDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details to create a VirtualCircuit. + CreateVirtualCircuitDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateVirtualCircuitRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateVirtualCircuitResponse wrapper for the CreateVirtualCircuit operation type CreateVirtualCircuitResponse struct { - // The underlying http response - RawResponse *http.Response - - // The VirtualCircuit instance - VirtualCircuit `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The VirtualCircuit instance + VirtualCircuit `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateVirtualCircuitResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_vnic_details.go index 39da5d220..c92cd1a5c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_vnic_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_vnic_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,84 +9,77 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateVnicDetails Contains properties for a VNIC. You use this object when creating the - // primary VNIC during instance launch or when creating a secondary VNIC. - // For more information about VNICs, see - // [Virtual Network Interface Cards (VNICs)]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingVNICs.htm). +// CreateVnicDetails Contains properties for a VNIC. You use this object when creating the +// primary VNIC during instance launch or when creating a secondary VNIC. +// For more information about VNICs, see +// Virtual Network Interface Cards (VNICs) (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm). type CreateVnicDetails struct { - - // The OCID of the subnet to create the VNIC in. When launching an instance, - // use this `subnetId` instead of the deprecated `subnetId` in - // LaunchInstanceDetails. - // At least one of them is required; if you provide both, the values must match. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // Whether the VNIC should be assigned a public IP address. Defaults to whether - // the subnet is public or private. If not set and the VNIC is being created - // in a private subnet (that is, where `prohibitPublicIpOnVnic` = true in the - // Subnet), then no public IP address is assigned. - // If not set and the subnet is public (`prohibitPublicIpOnVnic` = false), then - // a public IP address is assigned. If set to true and - // `prohibitPublicIpOnVnic` = true, an error is returned. - // **Note:** This public IP address is associated with the primary private IP - // on the VNIC. Secondary private IPs cannot have public IP - // addresses associated with them. For more information, see - // [IP Addresses]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingIPaddresses.htm). - // Example: `false` - AssignPublicIp *bool `mandatory:"false" json:"assignPublicIp"` - - // A user-friendly name for the VNIC. Does not have to be unique. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname - // portion of the primary private IP's fully qualified domain name (FQDN) - // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be unique across all VNICs in the subnet and comply with - // [RFC 952](https://tools.ietf.org/html/rfc952) and - // [RFC 1123](https://tools.ietf.org/html/rfc1123). - // The value appears in the Vnic object and also the - // PrivateIp object returned by - // ListPrivateIps and - // GetPrivateIp. - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // When launching an instance, use this `hostnameLabel` instead - // of the deprecated `hostnameLabel` in - // LaunchInstanceDetails. - // If you provide both, the values must match. - // Example: `bminstance-1` - HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - - // A private IP address of your choice to assign to the VNIC. Must be an - // available IP address within the subnet's CIDR. If you don't specify a - // value, Oracle automatically assigns a private IP address from the subnet. - // This is the VNIC's *primary* private IP address. The value appears in - // the Vnic object and also the - // PrivateIp object returned by - // ListPrivateIps and - // GetPrivateIp. - // Example: `10.0.3.3` - PrivateIp *string `mandatory:"false" json:"privateIp"` - - // Whether the source/destination check is disabled on the VNIC. - // Defaults to `false`, which means the check is performed. For information - // about why you would skip the source/destination check, see - // [Using a Private IP as a Route Target]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingroutetables.htm#privateip). - // Example: `true` - SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"` -} -func (m CreateVnicDetails) String() string { - return common.PointerString(m) -} + // The OCID of the subnet to create the VNIC in. When launching an instance, + // use this `subnetId` instead of the deprecated `subnetId` in + // LaunchInstanceDetails. + // At least one of them is required; if you provide both, the values must match. + SubnetId *string `mandatory:"true" json:"subnetId"` + // Whether the VNIC should be assigned a public IP address. Defaults to whether + // the subnet is public or private. If not set and the VNIC is being created + // in a private subnet (that is, where `prohibitPublicIpOnVnic` = true in the + // Subnet), then no public IP address is assigned. + // If not set and the subnet is public (`prohibitPublicIpOnVnic` = false), then + // a public IP address is assigned. If set to true and + // `prohibitPublicIpOnVnic` = true, an error is returned. + // **Note:** This public IP address is associated with the primary private IP + // on the VNIC. Secondary private IPs cannot have public IP + // addresses associated with them. For more information, see + // IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPaddresses.htm). + // Example: `false` + AssignPublicIp *bool `mandatory:"false" json:"assignPublicIp"` + // A user-friendly name for the VNIC. Does not have to be unique. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + // The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname + // portion of the primary private IP's fully qualified domain name (FQDN) + // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be unique across all VNICs in the subnet and comply with + // RFC 952 (https://tools.ietf.org/html/rfc952) and + // RFC 1123 (https://tools.ietf.org/html/rfc1123). + // The value appears in the Vnic object and also the + // PrivateIp object returned by + // ListPrivateIps and + // GetPrivateIp. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // When launching an instance, use this `hostnameLabel` instead + // of the deprecated `hostnameLabel` in + // LaunchInstanceDetails. + // If you provide both, the values must match. + // Example: `bminstance-1` + HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` + // A private IP address of your choice to assign to the VNIC. Must be an + // available IP address within the subnet's CIDR. If you don't specify a + // value, Oracle automatically assigns a private IP address from the subnet. + // This is the VNIC's *primary* private IP address. The value appears in + // the Vnic object and also the + // PrivateIp object returned by + // ListPrivateIps and + // GetPrivateIp. + // Example: `10.0.3.3` + PrivateIp *string `mandatory:"false" json:"privateIp"` + // Whether the source/destination check is disabled on the VNIC. + // Defaults to `false`, which means the check is performed. For information + // about why you would skip the source/destination check, see + // Using a Private IP as a Route Target (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm#privateip). + // Example: `true` + SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"` +} + +func (m CreateVnicDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_details.go index 0dd611dcc..8a1907cb0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,27 +9,20 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateVolumeBackupDetails The representation of CreateVolumeBackupDetails +// CreateVolumeBackupDetails The representation of CreateVolumeBackupDetails type CreateVolumeBackupDetails struct { - - // The OCID of the volume that needs to be backed up. - VolumeId *string `mandatory:"true" json:"volumeId"` - - // A user-friendly name for the volume backup. Does not have to be unique and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the volume that needs to be backed up. + VolumeId *string `mandatory:"true" json:"volumeId"` + + // A user-friendly name for the volume backup. Does not have to be unique and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m CreateVolumeBackupDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_request_response.go index ea12828c8..44e47b735 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateVolumeBackupRequest wrapper for the CreateVolumeBackup operation type CreateVolumeBackupRequest struct { - - // Request to create a new backup of given volume. - CreateVolumeBackupDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request to create a new backup of given volume. + CreateVolumeBackupDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateVolumeBackupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateVolumeBackupResponse wrapper for the CreateVolumeBackup operation type CreateVolumeBackupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The VolumeBackup instance - VolumeBackup `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The VolumeBackup instance + VolumeBackup `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateVolumeBackupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_details.go index 9cc4159a5..492c815fb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,78 +9,72 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateVolumeDetails The representation of CreateVolumeDetails +// CreateVolumeDetails The representation of CreateVolumeDetails type CreateVolumeDetails struct { - - // The Availability Domain of the volume. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the volume. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The size of the volume in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` - - // The size of the volume in MBs. The value must be a multiple of 1024. - // This field is deprecated. Use sizeInGBs instead. - SizeInMBs *int `mandatory:"false" json:"sizeInMBs"` - - // Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. - // This is an optional field. If not specified or set to null, the new Block volume will be empty. - // When specified, the new Block volume will contain data from the source volume or backup. - SourceDetails VolumeSourceDetails `mandatory:"false" json:"sourceDetails"` - - // The OCID of the volume backup from which the data should be restored on the newly created volume. - // This field is deprecated. Use the sourceDetails field instead to specify the - // backup for the volume. - VolumeBackupId *string `mandatory:"false" json:"volumeBackupId"` -} -func (m CreateVolumeDetails) String() string { - return common.PointerString(m) -} + // The Availability Domain of the volume. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the volume. + CompartmentId *string `mandatory:"true" json:"compartmentId"` - // UnmarshalJSON unmarshals from json - func (m *CreateVolumeDetails) UnmarshalJSON(data []byte) (e error){ - model := struct{ - DisplayName *string `json:"displayName"` - SizeInGBs *int `json:"sizeInGBs"` - SizeInMBs *int `json:"sizeInMBs"` - SourceDetails volumesourcedetails `json:"sourceDetails"` - VolumeBackupId *string `json:"volumeBackupId"` - AvailabilityDomain *string `json:"availabilityDomain"` - CompartmentId *string `json:"compartmentId"` - }{} + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` - e = json.Unmarshal(data, &model) - if e != nil { - return - } - m.DisplayName = model.DisplayName - m.SizeInGBs = model.SizeInGBs - m.SizeInMBs = model.SizeInMBs - nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) - if e != nil { - return - } - m.SourceDetails = nn - m.VolumeBackupId = model.VolumeBackupId - m.AvailabilityDomain = model.AvailabilityDomain - m.CompartmentId = model.CompartmentId - return - } + // The size of the volume in GBs. + SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + // The size of the volume in MBs. The value must be a multiple of 1024. + // This field is deprecated. Use sizeInGBs instead. + SizeInMBs *int `mandatory:"false" json:"sizeInMBs"` + // Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. + // This is an optional field. If not specified or set to null, the new Block volume will be empty. + // When specified, the new Block volume will contain data from the source volume or backup. + SourceDetails VolumeSourceDetails `mandatory:"false" json:"sourceDetails"` + // The OCID of the volume backup from which the data should be restored on the newly created volume. + // This field is deprecated. Use the sourceDetails field instead to specify the + // backup for the volume. + VolumeBackupId *string `mandatory:"false" json:"volumeBackupId"` +} +func (m CreateVolumeDetails) String() string { + return common.PointerString(m) +} + +// UnmarshalJSON unmarshals from json +func (m *CreateVolumeDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + SizeInGBs *int `json:"sizeInGBs"` + SizeInMBs *int `json:"sizeInMBs"` + SourceDetails volumesourcedetails `json:"sourceDetails"` + VolumeBackupId *string `json:"volumeBackupId"` + AvailabilityDomain *string `json:"availabilityDomain"` + CompartmentId *string `json:"compartmentId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + m.DisplayName = model.DisplayName + m.SizeInGBs = model.SizeInGBs + m.SizeInMBs = model.SizeInMBs + nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + m.SourceDetails = nn + m.VolumeBackupId = model.VolumeBackupId + m.AvailabilityDomain = model.AvailabilityDomain + m.CompartmentId = model.CompartmentId + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_request_response.go index 4ec3c46d0..d505805f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateVolumeRequest wrapper for the CreateVolume operation type CreateVolumeRequest struct { - - // Request to create a new volume. - CreateVolumeDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request to create a new volume. + CreateVolumeDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateVolumeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateVolumeResponse wrapper for the CreateVolume operation type CreateVolumeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Volume instance - Volume `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Volume instance + Volume `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateVolumeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect.go b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect.go index 4dec5e9ef..67f43bf74 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,96 +9,86 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CrossConnect For use with Oracle Cloud Infrastructure FastConnect. A cross-connect represents a - // physical connection between an existing network and Oracle. Customers who are colocated - // with Oracle in a FastConnect location create and use cross-connects. For more - // information, see [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). - // Oracle recommends you create each cross-connect in a - // CrossConnectGroup so you can use link aggregation - // with the connection. - // **Note:** If you're a provider who is setting up a physical connection to Oracle so customers - // can use FastConnect over the connection, be aware that your connection is modeled the - // same way as a colocated customer's (with `CrossConnect` and `CrossConnectGroup` objects, and so on). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// CrossConnect For use with Oracle Cloud Infrastructure FastConnect. A cross-connect represents a +// physical connection between an existing network and Oracle. Customers who are colocated +// with Oracle in a FastConnect location create and use cross-connects. For more +// information, see FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). +// Oracle recommends you create each cross-connect in a +// CrossConnectGroup so you can use link aggregation +// with the connection. +// **Note:** If you're a provider who is setting up a physical connection to Oracle so customers +// can use FastConnect over the connection, be aware that your connection is modeled the +// same way as a colocated customer's (with `CrossConnect` and `CrossConnectGroup` objects, and so on). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type CrossConnect struct { - - // The OCID of the compartment containing the cross-connect group. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The OCID of the cross-connect group this cross-connect belongs to (if any). - CrossConnectGroupId *string `mandatory:"false" json:"crossConnectGroupId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The cross-connect's Oracle ID (OCID). - Id *string `mandatory:"false" json:"id"` - - // The cross-connect's current state. - LifecycleState CrossConnectLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The name of the FastConnect location where this cross-connect is installed. - LocationName *string `mandatory:"false" json:"locationName"` - - // A string identifying the meet-me room port for this cross-connect. - PortName *string `mandatory:"false" json:"portName"` - - // The port speed for this cross-connect. - // Example: `10 Gbps` - PortSpeedShapeName *string `mandatory:"false" json:"portSpeedShapeName"` - - // The date and time the cross-connect was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the compartment containing the cross-connect group. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID of the cross-connect group this cross-connect belongs to (if any). + CrossConnectGroupId *string `mandatory:"false" json:"crossConnectGroupId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The cross-connect's Oracle ID (OCID). + Id *string `mandatory:"false" json:"id"` + + // The cross-connect's current state. + LifecycleState CrossConnectLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The name of the FastConnect location where this cross-connect is installed. + LocationName *string `mandatory:"false" json:"locationName"` + + // A string identifying the meet-me room port for this cross-connect. + PortName *string `mandatory:"false" json:"portName"` + + // The port speed for this cross-connect. + // Example: `10 Gbps` + PortSpeedShapeName *string `mandatory:"false" json:"portSpeedShapeName"` + + // The date and time the cross-connect was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m CrossConnect) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // CrossConnectLifecycleStateEnum Enum with underlying type: string type CrossConnectLifecycleStateEnum string // Set of constants representing the allowable values for CrossConnectLifecycleState const ( - CrossConnectLifecycleStatePendingCustomer CrossConnectLifecycleStateEnum = "PENDING_CUSTOMER" - CrossConnectLifecycleStateProvisioning CrossConnectLifecycleStateEnum = "PROVISIONING" - CrossConnectLifecycleStateProvisioned CrossConnectLifecycleStateEnum = "PROVISIONED" - CrossConnectLifecycleStateInactive CrossConnectLifecycleStateEnum = "INACTIVE" - CrossConnectLifecycleStateTerminating CrossConnectLifecycleStateEnum = "TERMINATING" - CrossConnectLifecycleStateTerminated CrossConnectLifecycleStateEnum = "TERMINATED" - CrossConnectLifecycleStateUnknown CrossConnectLifecycleStateEnum = "UNKNOWN" + CrossConnectLifecycleStatePendingCustomer CrossConnectLifecycleStateEnum = "PENDING_CUSTOMER" + CrossConnectLifecycleStateProvisioning CrossConnectLifecycleStateEnum = "PROVISIONING" + CrossConnectLifecycleStateProvisioned CrossConnectLifecycleStateEnum = "PROVISIONED" + CrossConnectLifecycleStateInactive CrossConnectLifecycleStateEnum = "INACTIVE" + CrossConnectLifecycleStateTerminating CrossConnectLifecycleStateEnum = "TERMINATING" + CrossConnectLifecycleStateTerminated CrossConnectLifecycleStateEnum = "TERMINATED" ) -var mappingCrossConnectLifecycleState = map[string]CrossConnectLifecycleStateEnum { - "PENDING_CUSTOMER": CrossConnectLifecycleStatePendingCustomer, - "PROVISIONING": CrossConnectLifecycleStateProvisioning, - "PROVISIONED": CrossConnectLifecycleStateProvisioned, - "INACTIVE": CrossConnectLifecycleStateInactive, - "TERMINATING": CrossConnectLifecycleStateTerminating, - "TERMINATED": CrossConnectLifecycleStateTerminated, - "UNKNOWN": CrossConnectLifecycleStateUnknown, +var mappingCrossConnectLifecycleState = map[string]CrossConnectLifecycleStateEnum{ + "PENDING_CUSTOMER": CrossConnectLifecycleStatePendingCustomer, + "PROVISIONING": CrossConnectLifecycleStateProvisioning, + "PROVISIONED": CrossConnectLifecycleStateProvisioned, + "INACTIVE": CrossConnectLifecycleStateInactive, + "TERMINATING": CrossConnectLifecycleStateTerminating, + "TERMINATED": CrossConnectLifecycleStateTerminated, } // GetCrossConnectLifecycleStateEnumValues Enumerates the set of values for CrossConnectLifecycleState func GetCrossConnectLifecycleStateEnumValues() []CrossConnectLifecycleStateEnum { - values := make([]CrossConnectLifecycleStateEnum, 0) - for _, v := range mappingCrossConnectLifecycleState { - if v != CrossConnectLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]CrossConnectLifecycleStateEnum, 0) + for _, v := range mappingCrossConnectLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_group.go b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_group.go index d75f972b4..2193bf7e7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_group.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,79 +9,69 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CrossConnectGroup For use with Oracle Cloud Infrastructure FastConnect. A cross-connect group - // is a link aggregation group (LAG), which can contain one or more - // CrossConnect. Customers who are colocated with - // Oracle in a FastConnect location create and use cross-connect groups. For more - // information, see [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). - // **Note:** If you're a provider who is setting up a physical connection to Oracle so customers - // can use FastConnect over the connection, be aware that your connection is modeled the - // same way as a colocated customer's (with `CrossConnect` and `CrossConnectGroup` objects, and so on). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// CrossConnectGroup For use with Oracle Cloud Infrastructure FastConnect. A cross-connect group +// is a link aggregation group (LAG), which can contain one or more +// CrossConnect. Customers who are colocated with +// Oracle in a FastConnect location create and use cross-connect groups. For more +// information, see FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). +// **Note:** If you're a provider who is setting up a physical connection to Oracle so customers +// can use FastConnect over the connection, be aware that your connection is modeled the +// same way as a colocated customer's (with `CrossConnect` and `CrossConnectGroup` objects, and so on). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type CrossConnectGroup struct { - - // The OCID of the compartment containing the cross-connect group. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The display name of A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The cross-connect group's Oracle ID (OCID). - Id *string `mandatory:"false" json:"id"` - - // The cross-connect group's current state. - LifecycleState CrossConnectGroupLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The date and time the cross-connect group was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the compartment containing the cross-connect group. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The display name of A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The cross-connect group's Oracle ID (OCID). + Id *string `mandatory:"false" json:"id"` + + // The cross-connect group's current state. + LifecycleState CrossConnectGroupLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The date and time the cross-connect group was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m CrossConnectGroup) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // CrossConnectGroupLifecycleStateEnum Enum with underlying type: string type CrossConnectGroupLifecycleStateEnum string // Set of constants representing the allowable values for CrossConnectGroupLifecycleState const ( - CrossConnectGroupLifecycleStateProvisioning CrossConnectGroupLifecycleStateEnum = "PROVISIONING" - CrossConnectGroupLifecycleStateProvisioned CrossConnectGroupLifecycleStateEnum = "PROVISIONED" - CrossConnectGroupLifecycleStateInactive CrossConnectGroupLifecycleStateEnum = "INACTIVE" - CrossConnectGroupLifecycleStateTerminating CrossConnectGroupLifecycleStateEnum = "TERMINATING" - CrossConnectGroupLifecycleStateTerminated CrossConnectGroupLifecycleStateEnum = "TERMINATED" - CrossConnectGroupLifecycleStateUnknown CrossConnectGroupLifecycleStateEnum = "UNKNOWN" + CrossConnectGroupLifecycleStateProvisioning CrossConnectGroupLifecycleStateEnum = "PROVISIONING" + CrossConnectGroupLifecycleStateProvisioned CrossConnectGroupLifecycleStateEnum = "PROVISIONED" + CrossConnectGroupLifecycleStateInactive CrossConnectGroupLifecycleStateEnum = "INACTIVE" + CrossConnectGroupLifecycleStateTerminating CrossConnectGroupLifecycleStateEnum = "TERMINATING" + CrossConnectGroupLifecycleStateTerminated CrossConnectGroupLifecycleStateEnum = "TERMINATED" ) -var mappingCrossConnectGroupLifecycleState = map[string]CrossConnectGroupLifecycleStateEnum { - "PROVISIONING": CrossConnectGroupLifecycleStateProvisioning, - "PROVISIONED": CrossConnectGroupLifecycleStateProvisioned, - "INACTIVE": CrossConnectGroupLifecycleStateInactive, - "TERMINATING": CrossConnectGroupLifecycleStateTerminating, - "TERMINATED": CrossConnectGroupLifecycleStateTerminated, - "UNKNOWN": CrossConnectGroupLifecycleStateUnknown, +var mappingCrossConnectGroupLifecycleState = map[string]CrossConnectGroupLifecycleStateEnum{ + "PROVISIONING": CrossConnectGroupLifecycleStateProvisioning, + "PROVISIONED": CrossConnectGroupLifecycleStateProvisioned, + "INACTIVE": CrossConnectGroupLifecycleStateInactive, + "TERMINATING": CrossConnectGroupLifecycleStateTerminating, + "TERMINATED": CrossConnectGroupLifecycleStateTerminated, } // GetCrossConnectGroupLifecycleStateEnumValues Enumerates the set of values for CrossConnectGroupLifecycleState func GetCrossConnectGroupLifecycleStateEnumValues() []CrossConnectGroupLifecycleStateEnum { - values := make([]CrossConnectGroupLifecycleStateEnum, 0) - for _, v := range mappingCrossConnectGroupLifecycleState { - if v != CrossConnectGroupLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]CrossConnectGroupLifecycleStateEnum, 0) + for _, v := range mappingCrossConnectGroupLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_location.go b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_location.go index fe24bb234..3a291556b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_location.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_location.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,27 +9,20 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CrossConnectLocation An individual FastConnect location. +// CrossConnectLocation An individual FastConnect location. type CrossConnectLocation struct { - - // A description of the location. - Description *string `mandatory:"true" json:"description"` - - // The name of the location. - // Example: `CyrusOne, Chandler, AZ` - Name *string `mandatory:"true" json:"name"` + + // A description of the location. + Description *string `mandatory:"true" json:"description"` + + // The name of the location. + // Example: `CyrusOne, Chandler, AZ` + Name *string `mandatory:"true" json:"name"` } func (m CrossConnectLocation) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_mapping.go b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_mapping.go index bd63e356b..43ec7d68e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_mapping.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_mapping.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,75 +9,68 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CrossConnectMapping For use with Oracle Cloud Infrastructure FastConnect. Each - // VirtualCircuit runs on one or - // more cross-connects or cross-connect groups. A `CrossConnectMapping` - // contains the properties for an individual cross-connect or cross-connect group - // associated with a given virtual circuit. - // The mapping includes information about the cross-connect or - // cross-connect group, the VLAN, and the BGP peering session. - // If you're a customer who is colocated with Oracle, that means you own both - // the virtual circuit and the physical connection it runs on (cross-connect or - // cross-connect group), so you specify all the information in the mapping. There's - // one exception: for a public virtual circuit, Oracle specifies the BGP IP - // addresses. - // If you're a provider, then you own the physical connection that the customer's - // virtual circuit runs on, so you contribute information about the cross-connect - // or cross-connect group and VLAN. - // Who specifies the BGP peering information in the case of customer connection via - // provider? If the BGP session goes from Oracle to the provider's edge router, then - // the provider also specifies the BGP peering information. If the BGP session instead - // goes from Oracle to the customer's edge router, then the customer specifies the BGP - // peering information. There's one exception: for a public virtual circuit, Oracle - // specifies the BGP IP addresses. +// CrossConnectMapping For use with Oracle Cloud Infrastructure FastConnect. Each +// VirtualCircuit runs on one or +// more cross-connects or cross-connect groups. A `CrossConnectMapping` +// contains the properties for an individual cross-connect or cross-connect group +// associated with a given virtual circuit. +// The mapping includes information about the cross-connect or +// cross-connect group, the VLAN, and the BGP peering session. +// If you're a customer who is colocated with Oracle, that means you own both +// the virtual circuit and the physical connection it runs on (cross-connect or +// cross-connect group), so you specify all the information in the mapping. There's +// one exception: for a public virtual circuit, Oracle specifies the BGP IP +// addresses. +// If you're a provider, then you own the physical connection that the customer's +// virtual circuit runs on, so you contribute information about the cross-connect +// or cross-connect group and VLAN. +// Who specifies the BGP peering information in the case of customer connection via +// provider? If the BGP session goes from Oracle to the provider's edge router, then +// the provider also specifies the BGP peering information. If the BGP session instead +// goes from Oracle to the customer's edge router, then the customer specifies the BGP +// peering information. There's one exception: for a public virtual circuit, Oracle +// specifies the BGP IP addresses. type CrossConnectMapping struct { - - // The key for BGP MD5 authentication. Only applicable if your system - // requires MD5 authentication. If empty or not set (null), that - // means you don't use BGP MD5 authentication. - BgpMd5AuthKey *string `mandatory:"false" json:"bgpMd5AuthKey"` - - // The OCID of the cross-connect or cross-connect group for this mapping. - // Specified by the owner of the cross-connect or cross-connect group (the - // customer if the customer is colocated with Oracle, or the provider if the - // customer is connecting via provider). - CrossConnectOrCrossConnectGroupId *string `mandatory:"false" json:"crossConnectOrCrossConnectGroupId"` - - // The BGP IP address for the router on the other end of the BGP session from - // Oracle. Specified by the owner of that router. If the session goes from Oracle - // to a customer, this is the BGP IP address of the customer's edge router. If the - // session goes from Oracle to a provider, this is the BGP IP address of the - // provider's edge router. Must use a /30 or /31 subnet mask. - // There's one exception: for a public virtual circuit, Oracle specifies the BGP IP addresses. - // Example: `10.0.0.18/31` - CustomerBgpPeeringIp *string `mandatory:"false" json:"customerBgpPeeringIp"` - - // The IP address for Oracle's end of the BGP session. Must use a /30 or /31 - // subnet mask. If the session goes from Oracle to a customer's edge router, - // the customer specifies this information. If the session goes from Oracle to - // a provider's edge router, the provider specifies this. - // There's one exception: for a public virtual circuit, Oracle specifies the BGP IP addresses. - // Example: `10.0.0.19/31` - OracleBgpPeeringIp *string `mandatory:"false" json:"oracleBgpPeeringIp"` - - // The number of the specific VLAN (on the cross-connect or cross-connect group) - // that is assigned to this virtual circuit. Specified by the owner of the cross-connect - // or cross-connect group (the customer if the customer is colocated with Oracle, or - // the provider if the customer is connecting via provider). - // Example: `200` - Vlan *int `mandatory:"false" json:"vlan"` -} -func (m CrossConnectMapping) String() string { - return common.PointerString(m) -} + // The key for BGP MD5 authentication. Only applicable if your system + // requires MD5 authentication. If empty or not set (null), that + // means you don't use BGP MD5 authentication. + BgpMd5AuthKey *string `mandatory:"false" json:"bgpMd5AuthKey"` + // The OCID of the cross-connect or cross-connect group for this mapping. + // Specified by the owner of the cross-connect or cross-connect group (the + // customer if the customer is colocated with Oracle, or the provider if the + // customer is connecting via provider). + CrossConnectOrCrossConnectGroupId *string `mandatory:"false" json:"crossConnectOrCrossConnectGroupId"` + // The BGP IP address for the router on the other end of the BGP session from + // Oracle. Specified by the owner of that router. If the session goes from Oracle + // to a customer, this is the BGP IP address of the customer's edge router. If the + // session goes from Oracle to a provider, this is the BGP IP address of the + // provider's edge router. Must use a /30 or /31 subnet mask. + // There's one exception: for a public virtual circuit, Oracle specifies the BGP IP addresses. + // Example: `10.0.0.18/31` + CustomerBgpPeeringIp *string `mandatory:"false" json:"customerBgpPeeringIp"` + // The IP address for Oracle's end of the BGP session. Must use a /30 or /31 + // subnet mask. If the session goes from Oracle to a customer's edge router, + // the customer specifies this information. If the session goes from Oracle to + // a provider's edge router, the provider specifies this. + // There's one exception: for a public virtual circuit, Oracle specifies the BGP IP addresses. + // Example: `10.0.0.19/31` + OracleBgpPeeringIp *string `mandatory:"false" json:"oracleBgpPeeringIp"` + // The number of the specific VLAN (on the cross-connect or cross-connect group) + // that is assigned to this virtual circuit. Specified by the owner of the cross-connect + // or cross-connect group (the customer if the customer is colocated with Oracle, or + // the provider if the customer is connecting via provider). + // Example: `200` + Vlan *int `mandatory:"false" json:"vlan"` +} +func (m CrossConnectMapping) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_port_speed_shape.go b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_port_speed_shape.go index e9701ce69..3e854fa23 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_port_speed_shape.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_port_speed_shape.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,28 +9,21 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CrossConnectPortSpeedShape An individual port speed level for cross-connects. +// CrossConnectPortSpeedShape An individual port speed level for cross-connects. type CrossConnectPortSpeedShape struct { - - // The name of the port speed shape. - // Example: `10 Gbps` - Name *string `mandatory:"true" json:"name"` - - // The port speed in Gbps. - // Example: `10` - PortSpeedInGbps *int `mandatory:"true" json:"portSpeedInGbps"` + + // The name of the port speed shape. + // Example: `10 Gbps` + Name *string `mandatory:"true" json:"name"` + + // The port speed in Gbps. + // Example: `10` + PortSpeedInGbps *int `mandatory:"true" json:"portSpeedInGbps"` } func (m CrossConnectPortSpeedShape) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_status.go b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_status.go index 7e04fb9b8..608ab9c80 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_status.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_status.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,96 +9,83 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CrossConnectStatus The status of the cross-connect. +// CrossConnectStatus The status of the cross-connect. type CrossConnectStatus struct { - - // The OCID of the cross-connect. - CrossConnectId *string `mandatory:"true" json:"crossConnectId"` - - // Whether Oracle's side of the interface is up or down. - InterfaceState CrossConnectStatusInterfaceStateEnum `mandatory:"false" json:"interfaceState,omitempty"` - - // The light level of the cross-connect (in dBm). - // Example: `14.0` - LightLevelIndBm *float32 `mandatory:"false" json:"lightLevelIndBm"` - - // Status indicator corresponding to the light level. - // * **NO_LIGHT:** No measurable light - // * **LOW_WARN:** There's measurable light but it's too low - // * **HIGH_WARN:** Light level is too high - // * **BAD:** There's measurable light but the signal-to-noise ratio is bad - // * **GOOD:** Good light level - LightLevelIndicator CrossConnectStatusLightLevelIndicatorEnum `mandatory:"false" json:"lightLevelIndicator,omitempty"` + + // The OCID of the cross-connect. + CrossConnectId *string `mandatory:"true" json:"crossConnectId"` + + // Whether Oracle's side of the interface is up or down. + InterfaceState CrossConnectStatusInterfaceStateEnum `mandatory:"false" json:"interfaceState,omitempty"` + + // The light level of the cross-connect (in dBm). + // Example: `14.0` + LightLevelIndBm *float32 `mandatory:"false" json:"lightLevelIndBm"` + + // Status indicator corresponding to the light level. + // * **NO_LIGHT:** No measurable light + // * **LOW_WARN:** There's measurable light but it's too low + // * **HIGH_WARN:** Light level is too high + // * **BAD:** There's measurable light but the signal-to-noise ratio is bad + // * **GOOD:** Good light level + LightLevelIndicator CrossConnectStatusLightLevelIndicatorEnum `mandatory:"false" json:"lightLevelIndicator,omitempty"` } func (m CrossConnectStatus) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // CrossConnectStatusInterfaceStateEnum Enum with underlying type: string type CrossConnectStatusInterfaceStateEnum string // Set of constants representing the allowable values for CrossConnectStatusInterfaceState const ( - CrossConnectStatusInterfaceStateUp CrossConnectStatusInterfaceStateEnum = "UP" - CrossConnectStatusInterfaceStateDown CrossConnectStatusInterfaceStateEnum = "DOWN" - CrossConnectStatusInterfaceStateUnknown CrossConnectStatusInterfaceStateEnum = "UNKNOWN" + CrossConnectStatusInterfaceStateUp CrossConnectStatusInterfaceStateEnum = "UP" + CrossConnectStatusInterfaceStateDown CrossConnectStatusInterfaceStateEnum = "DOWN" ) -var mappingCrossConnectStatusInterfaceState = map[string]CrossConnectStatusInterfaceStateEnum { - "UP": CrossConnectStatusInterfaceStateUp, - "DOWN": CrossConnectStatusInterfaceStateDown, - "UNKNOWN": CrossConnectStatusInterfaceStateUnknown, +var mappingCrossConnectStatusInterfaceState = map[string]CrossConnectStatusInterfaceStateEnum{ + "UP": CrossConnectStatusInterfaceStateUp, + "DOWN": CrossConnectStatusInterfaceStateDown, } // GetCrossConnectStatusInterfaceStateEnumValues Enumerates the set of values for CrossConnectStatusInterfaceState func GetCrossConnectStatusInterfaceStateEnumValues() []CrossConnectStatusInterfaceStateEnum { - values := make([]CrossConnectStatusInterfaceStateEnum, 0) - for _, v := range mappingCrossConnectStatusInterfaceState { - if v != CrossConnectStatusInterfaceStateUnknown { - values = append(values, v) - } - } - return values + values := make([]CrossConnectStatusInterfaceStateEnum, 0) + for _, v := range mappingCrossConnectStatusInterfaceState { + values = append(values, v) + } + return values } + // CrossConnectStatusLightLevelIndicatorEnum Enum with underlying type: string type CrossConnectStatusLightLevelIndicatorEnum string // Set of constants representing the allowable values for CrossConnectStatusLightLevelIndicator const ( - CrossConnectStatusLightLevelIndicatorNoLight CrossConnectStatusLightLevelIndicatorEnum = "NO_LIGHT" - CrossConnectStatusLightLevelIndicatorLowWarn CrossConnectStatusLightLevelIndicatorEnum = "LOW_WARN" - CrossConnectStatusLightLevelIndicatorHighWarn CrossConnectStatusLightLevelIndicatorEnum = "HIGH_WARN" - CrossConnectStatusLightLevelIndicatorBad CrossConnectStatusLightLevelIndicatorEnum = "BAD" - CrossConnectStatusLightLevelIndicatorGood CrossConnectStatusLightLevelIndicatorEnum = "GOOD" - CrossConnectStatusLightLevelIndicatorUnknown CrossConnectStatusLightLevelIndicatorEnum = "UNKNOWN" + CrossConnectStatusLightLevelIndicatorNoLight CrossConnectStatusLightLevelIndicatorEnum = "NO_LIGHT" + CrossConnectStatusLightLevelIndicatorLowWarn CrossConnectStatusLightLevelIndicatorEnum = "LOW_WARN" + CrossConnectStatusLightLevelIndicatorHighWarn CrossConnectStatusLightLevelIndicatorEnum = "HIGH_WARN" + CrossConnectStatusLightLevelIndicatorBad CrossConnectStatusLightLevelIndicatorEnum = "BAD" + CrossConnectStatusLightLevelIndicatorGood CrossConnectStatusLightLevelIndicatorEnum = "GOOD" ) -var mappingCrossConnectStatusLightLevelIndicator = map[string]CrossConnectStatusLightLevelIndicatorEnum { - "NO_LIGHT": CrossConnectStatusLightLevelIndicatorNoLight, - "LOW_WARN": CrossConnectStatusLightLevelIndicatorLowWarn, - "HIGH_WARN": CrossConnectStatusLightLevelIndicatorHighWarn, - "BAD": CrossConnectStatusLightLevelIndicatorBad, - "GOOD": CrossConnectStatusLightLevelIndicatorGood, - "UNKNOWN": CrossConnectStatusLightLevelIndicatorUnknown, +var mappingCrossConnectStatusLightLevelIndicator = map[string]CrossConnectStatusLightLevelIndicatorEnum{ + "NO_LIGHT": CrossConnectStatusLightLevelIndicatorNoLight, + "LOW_WARN": CrossConnectStatusLightLevelIndicatorLowWarn, + "HIGH_WARN": CrossConnectStatusLightLevelIndicatorHighWarn, + "BAD": CrossConnectStatusLightLevelIndicatorBad, + "GOOD": CrossConnectStatusLightLevelIndicatorGood, } // GetCrossConnectStatusLightLevelIndicatorEnumValues Enumerates the set of values for CrossConnectStatusLightLevelIndicator func GetCrossConnectStatusLightLevelIndicatorEnumValues() []CrossConnectStatusLightLevelIndicatorEnum { - values := make([]CrossConnectStatusLightLevelIndicatorEnum, 0) - for _, v := range mappingCrossConnectStatusLightLevelIndicator { - if v != CrossConnectStatusLightLevelIndicatorUnknown { - values = append(values, v) - } - } - return values + values := make([]CrossConnectStatusLightLevelIndicatorEnum, 0) + for _, v := range mappingCrossConnectStatusLightLevelIndicator { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_boot_volume_request_response.go index 67bcd20a3..1f5d59d9a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_boot_volume_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteBootVolumeRequest wrapper for the DeleteBootVolume operation type DeleteBootVolumeRequest struct { - - // The OCID of the boot volume. - BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteBootVolumeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteBootVolumeResponse wrapper for the DeleteBootVolume operation type DeleteBootVolumeResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteBootVolumeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_console_history_request_response.go index b62e573b1..e964e9bf4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_console_history_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteConsoleHistoryRequest wrapper for the DeleteConsoleHistory operation type DeleteConsoleHistoryRequest struct { - - // The OCID of the console history. - InstanceConsoleHistoryId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleHistoryId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the console history. + InstanceConsoleHistoryId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleHistoryId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteConsoleHistoryRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteConsoleHistoryResponse wrapper for the DeleteConsoleHistory operation type DeleteConsoleHistoryResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteConsoleHistoryResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_cpe_request_response.go index bed3f3ecb..6a398d922 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_cpe_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteCpeRequest wrapper for the DeleteCpe operation type DeleteCpeRequest struct { - - // The OCID of the CPE. - CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the CPE. + CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteCpeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteCpeResponse wrapper for the DeleteCpe operation type DeleteCpeResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteCpeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_cross_connect_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_cross_connect_group_request_response.go index 75b9610d1..fbfaf81e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_cross_connect_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_cross_connect_group_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteCrossConnectGroupRequest wrapper for the DeleteCrossConnectGroup operation type DeleteCrossConnectGroupRequest struct { - - // The OCID of the cross-connect group. - CrossConnectGroupId *string `mandatory:"true" contributesTo:"path" name:"crossConnectGroupId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the cross-connect group. + CrossConnectGroupId *string `mandatory:"true" contributesTo:"path" name:"crossConnectGroupId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteCrossConnectGroupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteCrossConnectGroupResponse wrapper for the DeleteCrossConnectGroup operation type DeleteCrossConnectGroupResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteCrossConnectGroupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_cross_connect_request_response.go index 37e54ad76..f3641dfd2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_cross_connect_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteCrossConnectRequest wrapper for the DeleteCrossConnect operation type DeleteCrossConnectRequest struct { - - // The OCID of the cross-connect. - CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the cross-connect. + CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteCrossConnectRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteCrossConnectResponse wrapper for the DeleteCrossConnect operation type DeleteCrossConnectResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteCrossConnectResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_dhcp_options_request_response.go index 17c2a28a0..e89249eec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_dhcp_options_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteDhcpOptionsRequest wrapper for the DeleteDhcpOptions operation type DeleteDhcpOptionsRequest struct { - - // The OCID for the set of DHCP options. - DhcpId *string `mandatory:"true" contributesTo:"path" name:"dhcpId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID for the set of DHCP options. + DhcpId *string `mandatory:"true" contributesTo:"path" name:"dhcpId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteDhcpOptionsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteDhcpOptionsResponse wrapper for the DeleteDhcpOptions operation type DeleteDhcpOptionsResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteDhcpOptionsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_drg_attachment_request_response.go index 516371d0a..a921056e5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_drg_attachment_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteDrgAttachmentRequest wrapper for the DeleteDrgAttachment operation type DeleteDrgAttachmentRequest struct { - - // The OCID of the DRG attachment. - DrgAttachmentId *string `mandatory:"true" contributesTo:"path" name:"drgAttachmentId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the DRG attachment. + DrgAttachmentId *string `mandatory:"true" contributesTo:"path" name:"drgAttachmentId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteDrgAttachmentRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteDrgAttachmentResponse wrapper for the DeleteDrgAttachment operation type DeleteDrgAttachmentResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteDrgAttachmentResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_drg_request_response.go index cc540f513..225db2c44 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_drg_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteDrgRequest wrapper for the DeleteDrg operation type DeleteDrgRequest struct { - - // The OCID of the DRG. - DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the DRG. + DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteDrgRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteDrgResponse wrapper for the DeleteDrg operation type DeleteDrgResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteDrgResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_i_p_sec_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_i_p_sec_connection_request_response.go index 2da5c3057..47a19acff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_i_p_sec_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_i_p_sec_connection_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteIPSecConnectionRequest wrapper for the DeleteIPSecConnection operation type DeleteIPSecConnectionRequest struct { - - // The OCID of the IPSec connection. - IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the IPSec connection. + IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteIPSecConnectionRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteIPSecConnectionResponse wrapper for the DeleteIPSecConnection operation type DeleteIPSecConnectionResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteIPSecConnectionResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_image_request_response.go index e265b2e58..f7c0a2b7f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_image_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteImageRequest wrapper for the DeleteImage operation type DeleteImageRequest struct { - - // The OCID of the image. - ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the image. + ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteImageRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteImageResponse wrapper for the DeleteImage operation type DeleteImageResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteImageResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_instance_console_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_instance_console_connection_request_response.go index 1a84164f5..126d52c84 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_instance_console_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_instance_console_connection_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteInstanceConsoleConnectionRequest wrapper for the DeleteInstanceConsoleConnection operation type DeleteInstanceConsoleConnectionRequest struct { - - // The OCID of the intance console connection - InstanceConsoleConnectionId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleConnectionId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the intance console connection + InstanceConsoleConnectionId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleConnectionId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteInstanceConsoleConnectionRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteInstanceConsoleConnectionResponse wrapper for the DeleteInstanceConsoleConnection operation type DeleteInstanceConsoleConnectionResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteInstanceConsoleConnectionResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_internet_gateway_request_response.go index df94e4a18..e1c2fcf27 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_internet_gateway_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteInternetGatewayRequest wrapper for the DeleteInternetGateway operation type DeleteInternetGatewayRequest struct { - - // The OCID of the Internet Gateway. - IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the Internet Gateway. + IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteInternetGatewayRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteInternetGatewayResponse wrapper for the DeleteInternetGateway operation type DeleteInternetGatewayResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteInternetGatewayResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_local_peering_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_local_peering_gateway_request_response.go index c2a15eb88..312cd7485 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_local_peering_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_local_peering_gateway_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteLocalPeeringGatewayRequest wrapper for the DeleteLocalPeeringGateway operation type DeleteLocalPeeringGatewayRequest struct { - - // The OCID of the local peering gateway. - LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the local peering gateway. + LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteLocalPeeringGatewayRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteLocalPeeringGatewayResponse wrapper for the DeleteLocalPeeringGateway operation type DeleteLocalPeeringGatewayResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteLocalPeeringGatewayResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_private_ip_request_response.go index 3b515455b..6994c1320 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_private_ip_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeletePrivateIpRequest wrapper for the DeletePrivateIp operation type DeletePrivateIpRequest struct { - - // The private IP's OCID. - PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The private IP's OCID. + PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeletePrivateIpRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeletePrivateIpResponse wrapper for the DeletePrivateIp operation type DeletePrivateIpResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeletePrivateIpResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_route_table_request_response.go index 4e5a3126a..79cf5fee0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_route_table_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteRouteTableRequest wrapper for the DeleteRouteTable operation type DeleteRouteTableRequest struct { - - // The OCID of the route table. - RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the route table. + RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteRouteTableRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteRouteTableResponse wrapper for the DeleteRouteTable operation type DeleteRouteTableResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteRouteTableResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_security_list_request_response.go index a8049bb10..6fccea27e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_security_list_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteSecurityListRequest wrapper for the DeleteSecurityList operation type DeleteSecurityListRequest struct { - - // The OCID of the security list. - SecurityListId *string `mandatory:"true" contributesTo:"path" name:"securityListId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the security list. + SecurityListId *string `mandatory:"true" contributesTo:"path" name:"securityListId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteSecurityListRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteSecurityListResponse wrapper for the DeleteSecurityList operation type DeleteSecurityListResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteSecurityListResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_subnet_request_response.go index 3ee441783..cd198d893 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_subnet_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteSubnetRequest wrapper for the DeleteSubnet operation type DeleteSubnetRequest struct { - - // The OCID of the subnet. - SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the subnet. + SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteSubnetRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteSubnetResponse wrapper for the DeleteSubnet operation type DeleteSubnetResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteSubnetResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_vcn_request_response.go index ef3b086ea..9e30cccc4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_vcn_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteVcnRequest wrapper for the DeleteVcn operation type DeleteVcnRequest struct { - - // The OCID of the VCN. - VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the VCN. + VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteVcnRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteVcnResponse wrapper for the DeleteVcn operation type DeleteVcnResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteVcnResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_virtual_circuit_public_prefix_details.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_virtual_circuit_public_prefix_details.go index 8ddb65aeb..cea9aca23 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_virtual_circuit_public_prefix_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_virtual_circuit_public_prefix_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,23 +9,16 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DeleteVirtualCircuitPublicPrefixDetails The representation of DeleteVirtualCircuitPublicPrefixDetails +// DeleteVirtualCircuitPublicPrefixDetails The representation of DeleteVirtualCircuitPublicPrefixDetails type DeleteVirtualCircuitPublicPrefixDetails struct { - - // An individual public IP prefix (CIDR) to remove from the public virtual circuit. - CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // An individual public IP prefix (CIDR) to remove from the public virtual circuit. + CidrBlock *string `mandatory:"true" json:"cidrBlock"` } func (m DeleteVirtualCircuitPublicPrefixDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_virtual_circuit_request_response.go index f9d3c96fb..55caa0d27 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_virtual_circuit_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteVirtualCircuitRequest wrapper for the DeleteVirtualCircuit operation type DeleteVirtualCircuitRequest struct { - - // The OCID of the virtual circuit. - VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the virtual circuit. + VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteVirtualCircuitRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteVirtualCircuitResponse wrapper for the DeleteVirtualCircuit operation type DeleteVirtualCircuitResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteVirtualCircuitResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_backup_request_response.go index 8587adc67..4c1e30354 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_backup_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteVolumeBackupRequest wrapper for the DeleteVolumeBackup operation type DeleteVolumeBackupRequest struct { - - // The OCID of the volume backup. - VolumeBackupId *string `mandatory:"true" contributesTo:"path" name:"volumeBackupId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the volume backup. + VolumeBackupId *string `mandatory:"true" contributesTo:"path" name:"volumeBackupId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteVolumeBackupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteVolumeBackupResponse wrapper for the DeleteVolumeBackup operation type DeleteVolumeBackupResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteVolumeBackupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_request_response.go index a46b1d3db..e9bfd8a60 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteVolumeRequest wrapper for the DeleteVolume operation type DeleteVolumeRequest struct { - - // The OCID of the volume. - VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the volume. + VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteVolumeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteVolumeResponse wrapper for the DeleteVolume operation type DeleteVolumeResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteVolumeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/detach_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/detach_boot_volume_request_response.go index 991a60256..5820949e9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/detach_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/detach_boot_volume_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DetachBootVolumeRequest wrapper for the DetachBootVolume operation type DetachBootVolumeRequest struct { - - // The OCID of the boot volume attachment. - BootVolumeAttachmentId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeAttachmentId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the boot volume attachment. + BootVolumeAttachmentId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeAttachmentId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DetachBootVolumeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DetachBootVolumeResponse wrapper for the DetachBootVolume operation type DetachBootVolumeResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DetachBootVolumeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/detach_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/detach_vnic_request_response.go index 5b5de146b..7f4bf5e93 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/detach_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/detach_vnic_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DetachVnicRequest wrapper for the DetachVnic operation type DetachVnicRequest struct { - - // The OCID of the VNIC attachment. - VnicAttachmentId *string `mandatory:"true" contributesTo:"path" name:"vnicAttachmentId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the VNIC attachment. + VnicAttachmentId *string `mandatory:"true" contributesTo:"path" name:"vnicAttachmentId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DetachVnicRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DetachVnicResponse wrapper for the DetachVnic operation type DetachVnicResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DetachVnicResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/detach_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/detach_volume_request_response.go index 534b78f00..59188b434 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/detach_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/detach_volume_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DetachVolumeRequest wrapper for the DetachVolume operation type DetachVolumeRequest struct { - - // The OCID of the volume attachment. - VolumeAttachmentId *string `mandatory:"true" contributesTo:"path" name:"volumeAttachmentId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the volume attachment. + VolumeAttachmentId *string `mandatory:"true" contributesTo:"path" name:"volumeAttachmentId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DetachVolumeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DetachVolumeResponse wrapper for the DetachVolume operation type DetachVolumeResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DetachVolumeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_dns_option.go b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_dns_option.go index 60fcfca3d..51237ca28 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_dns_option.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_dns_option.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,51 +9,50 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // DhcpDnsOption DHCP option for specifying how DNS (hostname resolution) is handled in the subnets in the VCN. - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). +// DhcpDnsOption DHCP option for specifying how DNS (hostname resolution) is handled in the subnets in the VCN. +// For more information, see +// DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). type DhcpDnsOption struct { - - // If you set `serverType` to `CustomDnsServer`, specify the IP address - // of at least one DNS server of your choice (three maximum). - CustomDnsServers []string `mandatory:"false" json:"customDnsServers"` - - // - **VcnLocal:** Reserved for future use. - // - **VcnLocalPlusInternet:** Also referred to as "Internet and VCN Resolver". - // Instances can resolve internet hostnames (no Internet Gateway is required), - // and can resolve hostnames of instances in the VCN. This is the default - // value in the default set of DHCP options in the VCN. For the Internet and - // VCN Resolver to work across the VCN, there must also be a DNS label set for - // the VCN, a DNS label set for each subnet, and a hostname for each instance. - // The Internet and VCN Resolver also enables reverse DNS lookup, which lets - // you determine the hostname corresponding to the private IP address. For more - // information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // - **CustomDnsServer:** Instances use a DNS server of your choice (three maximum). - ServerType DhcpDnsOptionServerTypeEnum `mandatory:"true" json:"serverType"` + + // If you set `serverType` to `CustomDnsServer`, specify the IP address + // of at least one DNS server of your choice (three maximum). + CustomDnsServers []string `mandatory:"false" json:"customDnsServers"` + + // - **VcnLocal:** Reserved for future use. + // - **VcnLocalPlusInternet:** Also referred to as "Internet and VCN Resolver". + // Instances can resolve internet hostnames (no Internet Gateway is required), + // and can resolve hostnames of instances in the VCN. This is the default + // value in the default set of DHCP options in the VCN. For the Internet and + // VCN Resolver to work across the VCN, there must also be a DNS label set for + // the VCN, a DNS label set for each subnet, and a hostname for each instance. + // The Internet and VCN Resolver also enables reverse DNS lookup, which lets + // you determine the hostname corresponding to the private IP address. For more + // information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // - **CustomDnsServer:** Instances use a DNS server of your choice (three maximum). + ServerType DhcpDnsOptionServerTypeEnum `mandatory:"true" json:"serverType"` } func (m DhcpDnsOption) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m DhcpDnsOption) MarshalJSON() (buff []byte, e error) { - type MarshalTypeDhcpDnsOption DhcpDnsOption - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeDhcpDnsOption - }{ - "DomainNameServer", - (MarshalTypeDhcpDnsOption)(m), - } + type MarshalTypeDhcpDnsOption DhcpDnsOption + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeDhcpDnsOption + }{ + "DomainNameServer", + (MarshalTypeDhcpDnsOption)(m), + } - return json.Marshal(&s) + return json.Marshal(&s) } // DhcpDnsOptionServerTypeEnum Enum with underlying type: string @@ -61,29 +60,22 @@ type DhcpDnsOptionServerTypeEnum string // Set of constants representing the allowable values for DhcpDnsOptionServerType const ( - DhcpDnsOptionServerTypeVcnlocal DhcpDnsOptionServerTypeEnum = "VcnLocal" - DhcpDnsOptionServerTypeVcnlocalplusinternet DhcpDnsOptionServerTypeEnum = "VcnLocalPlusInternet" - DhcpDnsOptionServerTypeCustomdnsserver DhcpDnsOptionServerTypeEnum = "CustomDnsServer" - DhcpDnsOptionServerTypeUnknown DhcpDnsOptionServerTypeEnum = "UNKNOWN" + DhcpDnsOptionServerTypeVcnlocal DhcpDnsOptionServerTypeEnum = "VcnLocal" + DhcpDnsOptionServerTypeVcnlocalplusinternet DhcpDnsOptionServerTypeEnum = "VcnLocalPlusInternet" + DhcpDnsOptionServerTypeCustomdnsserver DhcpDnsOptionServerTypeEnum = "CustomDnsServer" ) -var mappingDhcpDnsOptionServerType = map[string]DhcpDnsOptionServerTypeEnum { - "VcnLocal": DhcpDnsOptionServerTypeVcnlocal, - "VcnLocalPlusInternet": DhcpDnsOptionServerTypeVcnlocalplusinternet, - "CustomDnsServer": DhcpDnsOptionServerTypeCustomdnsserver, - "UNKNOWN": DhcpDnsOptionServerTypeUnknown, +var mappingDhcpDnsOptionServerType = map[string]DhcpDnsOptionServerTypeEnum{ + "VcnLocal": DhcpDnsOptionServerTypeVcnlocal, + "VcnLocalPlusInternet": DhcpDnsOptionServerTypeVcnlocalplusinternet, + "CustomDnsServer": DhcpDnsOptionServerTypeCustomdnsserver, } // GetDhcpDnsOptionServerTypeEnumValues Enumerates the set of values for DhcpDnsOptionServerType func GetDhcpDnsOptionServerTypeEnumValues() []DhcpDnsOptionServerTypeEnum { - values := make([]DhcpDnsOptionServerTypeEnum, 0) - for _, v := range mappingDhcpDnsOptionServerType { - if v != DhcpDnsOptionServerTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]DhcpDnsOptionServerTypeEnum, 0) + for _, v := range mappingDhcpDnsOptionServerType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_option.go b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_option.go index e7973ba2d..742f3411b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_option.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_option.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,64 +9,56 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // DhcpOption A single DHCP option according to [RFC 1533](https://tools.ietf.org/html/rfc1533). - // The two options available to use are DhcpDnsOption - // and DhcpSearchDomainOption. For more - // information, see [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm) - // and [DHCP Options]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingDHCP.htm). +// DhcpOption A single DHCP option according to RFC 1533 (https://tools.ietf.org/html/rfc1533). +// The two options available to use are DhcpDnsOption +// and DhcpSearchDomainOption. For more +// information, see DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm) +// and DHCP Options (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingDHCP.htm). type DhcpOption interface { } type dhcpoption struct { - JsonData []byte - Type string `json:"type"` + JsonData []byte + Type string `json:"type"` } - // UnmarshalJSON unmarshals json func (m *dhcpoption) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerdhcpoption dhcpoption - s := struct { - Model Unmarshalerdhcpoption - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Type = s.Model.Type - - return err + m.JsonData = data + type Unmarshalerdhcpoption dhcpoption + s := struct { + Model Unmarshalerdhcpoption + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *dhcpoption) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.Type) { - case "DomainNameServer": - mm := DhcpDnsOption{} - err = json.Unmarshal(data, &mm) - return mm, err - case "SearchDomain": - mm := DhcpSearchDomainOption{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.Type { + case "DomainNameServer": + mm := DhcpDnsOption{} + err = json.Unmarshal(data, &mm) + return mm, err + case "SearchDomain": + mm := DhcpSearchDomainOption{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } } - func (m dhcpoption) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_options.go b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_options.go index a568b5a43..f96edd995 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_options.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_options.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,116 +9,107 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - - // DhcpOptions A set of DHCP options. Used by the VCN to automatically provide configuration - // information to the instances when they boot up. There are two options you can set: - // - DhcpDnsOption: Lets you specify how DNS (hostname resolution) is - // handled in the subnets in your VCN. - // - DhcpSearchDomainOption: Lets you specify - // a search domain name to use for DNS queries. - // For more information, see [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm) - // and [DHCP Options]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingDHCP.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// DhcpOptions A set of DHCP options. Used by the VCN to automatically provide configuration +// information to the instances when they boot up. There are two options you can set: +// - DhcpDnsOption: Lets you specify how DNS (hostname resolution) is +// handled in the subnets in your VCN. +// - DhcpSearchDomainOption: Lets you specify +// a search domain name to use for DNS queries. +// For more information, see DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm) +// and DHCP Options (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingDHCP.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type DhcpOptions struct { - - // The OCID of the compartment containing the set of DHCP options. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Oracle ID (OCID) for the set of DHCP options. - Id *string `mandatory:"true" json:"id"` - - // The current state of the set of DHCP options. - LifecycleState DhcpOptionsLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The collection of individual DHCP options. - Options []DhcpOption `mandatory:"true" json:"options"` - - // Date and time the set of DHCP options was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the VCN the set of DHCP options belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the compartment containing the set of DHCP options. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Oracle ID (OCID) for the set of DHCP options. + Id *string `mandatory:"true" json:"id"` + + // The current state of the set of DHCP options. + LifecycleState DhcpOptionsLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The collection of individual DHCP options. + Options []DhcpOption `mandatory:"true" json:"options"` + + // Date and time the set of DHCP options was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the VCN the set of DHCP options belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m DhcpOptions) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // UnmarshalJSON unmarshals from json - func (m *DhcpOptions) UnmarshalJSON(data []byte) (e error){ - model := struct{ - DisplayName *string `json:"displayName"` - CompartmentId *string `json:"compartmentId"` - Id *string `json:"id"` - LifecycleState DhcpOptionsLifecycleStateEnum `json:"lifecycleState"` - Options []dhcpoption `json:"options"` - TimeCreated *common.SDKTime `json:"timeCreated"` - VcnId *string `json:"vcnId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - m.DisplayName = model.DisplayName - m.CompartmentId = model.CompartmentId - m.Id = model.Id - m.LifecycleState = model.LifecycleState - m.Options = make([]DhcpOption, len(model.Options)) - for i, n := range model.Options { - nn, err := n.UnmarshalPolymorphicJSON(n.JsonData) - if err != nil { - return err - } - m.Options[i] = nn - } - m.TimeCreated = model.TimeCreated - m.VcnId = model.VcnId - return - } +// UnmarshalJSON unmarshals from json +func (m *DhcpOptions) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + CompartmentId *string `json:"compartmentId"` + Id *string `json:"id"` + LifecycleState DhcpOptionsLifecycleStateEnum `json:"lifecycleState"` + Options []dhcpoption `json:"options"` + TimeCreated *common.SDKTime `json:"timeCreated"` + VcnId *string `json:"vcnId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + m.DisplayName = model.DisplayName + m.CompartmentId = model.CompartmentId + m.Id = model.Id + m.LifecycleState = model.LifecycleState + m.Options = make([]DhcpOption, len(model.Options)) + for i, n := range model.Options { + nn, err := n.UnmarshalPolymorphicJSON(n.JsonData) + if err != nil { + return err + } + m.Options[i] = nn + } + m.TimeCreated = model.TimeCreated + m.VcnId = model.VcnId + return +} // DhcpOptionsLifecycleStateEnum Enum with underlying type: string type DhcpOptionsLifecycleStateEnum string // Set of constants representing the allowable values for DhcpOptionsLifecycleState const ( - DhcpOptionsLifecycleStateProvisioning DhcpOptionsLifecycleStateEnum = "PROVISIONING" - DhcpOptionsLifecycleStateAvailable DhcpOptionsLifecycleStateEnum = "AVAILABLE" - DhcpOptionsLifecycleStateTerminating DhcpOptionsLifecycleStateEnum = "TERMINATING" - DhcpOptionsLifecycleStateTerminated DhcpOptionsLifecycleStateEnum = "TERMINATED" - DhcpOptionsLifecycleStateUnknown DhcpOptionsLifecycleStateEnum = "UNKNOWN" + DhcpOptionsLifecycleStateProvisioning DhcpOptionsLifecycleStateEnum = "PROVISIONING" + DhcpOptionsLifecycleStateAvailable DhcpOptionsLifecycleStateEnum = "AVAILABLE" + DhcpOptionsLifecycleStateTerminating DhcpOptionsLifecycleStateEnum = "TERMINATING" + DhcpOptionsLifecycleStateTerminated DhcpOptionsLifecycleStateEnum = "TERMINATED" ) -var mappingDhcpOptionsLifecycleState = map[string]DhcpOptionsLifecycleStateEnum { - "PROVISIONING": DhcpOptionsLifecycleStateProvisioning, - "AVAILABLE": DhcpOptionsLifecycleStateAvailable, - "TERMINATING": DhcpOptionsLifecycleStateTerminating, - "TERMINATED": DhcpOptionsLifecycleStateTerminated, - "UNKNOWN": DhcpOptionsLifecycleStateUnknown, +var mappingDhcpOptionsLifecycleState = map[string]DhcpOptionsLifecycleStateEnum{ + "PROVISIONING": DhcpOptionsLifecycleStateProvisioning, + "AVAILABLE": DhcpOptionsLifecycleStateAvailable, + "TERMINATING": DhcpOptionsLifecycleStateTerminating, + "TERMINATED": DhcpOptionsLifecycleStateTerminated, } // GetDhcpOptionsLifecycleStateEnumValues Enumerates the set of values for DhcpOptionsLifecycleState func GetDhcpOptionsLifecycleStateEnumValues() []DhcpOptionsLifecycleStateEnum { - values := make([]DhcpOptionsLifecycleStateEnum, 0) - for _, v := range mappingDhcpOptionsLifecycleState { - if v != DhcpOptionsLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DhcpOptionsLifecycleStateEnum, 0) + for _, v := range mappingDhcpOptionsLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_search_domain_option.go b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_search_domain_option.go index a3b218d88..58968eb53 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_search_domain_option.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_search_domain_option.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,47 +9,42 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // DhcpSearchDomainOption DHCP option for specifying a search domain name for DNS queries. For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). +// DhcpSearchDomainOption DHCP option for specifying a search domain name for DNS queries. For more information, see +// DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). type DhcpSearchDomainOption struct { - - // A single search domain name according to [RFC 952](https://tools.ietf.org/html/rfc952) - // and [RFC 1123](https://tools.ietf.org/html/rfc1123). During a DNS query, - // the OS will append this search domain name to the value being queried. - // If you set DhcpDnsOption to `VcnLocalPlusInternet`, - // and you assign a DNS label to the VCN during creation, the search domain name in the - // VCN's default set of DHCP options is automatically set to the VCN domain - // (for example, `vcn1.oraclevcn.com`). - // If you don't want to use a search domain name, omit this option from the - // set of DHCP options. Do not include this option with an empty list - // of search domain names, or with an empty string as the value for any search - // domain name. - SearchDomainNames []string `mandatory:"true" json:"searchDomainNames"` + + // A single search domain name according to RFC 952 (https://tools.ietf.org/html/rfc952) + // and RFC 1123 (https://tools.ietf.org/html/rfc1123). During a DNS query, + // the OS will append this search domain name to the value being queried. + // If you set DhcpDnsOption to `VcnLocalPlusInternet`, + // and you assign a DNS label to the VCN during creation, the search domain name in the + // VCN's default set of DHCP options is automatically set to the VCN domain + // (for example, `vcn1.oraclevcn.com`). + // If you don't want to use a search domain name, omit this option from the + // set of DHCP options. Do not include this option with an empty list + // of search domain names, or with an empty string as the value for any search + // domain name. + SearchDomainNames []string `mandatory:"true" json:"searchDomainNames"` } func (m DhcpSearchDomainOption) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m DhcpSearchDomainOption) MarshalJSON() (buff []byte, e error) { - type MarshalTypeDhcpSearchDomainOption DhcpSearchDomainOption - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeDhcpSearchDomainOption - }{ - "SearchDomain", - (MarshalTypeDhcpSearchDomainOption)(m), - } - - return json.Marshal(&s) + type MarshalTypeDhcpSearchDomainOption DhcpSearchDomainOption + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeDhcpSearchDomainOption + }{ + "SearchDomain", + (MarshalTypeDhcpSearchDomainOption)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/drg.go b/vendor/github.com/oracle/oci-go-sdk/core/drg.go index 28fe3f8af..b87673bba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/drg.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/drg.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,74 +9,64 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Drg A Dynamic Routing Gateway (DRG), which is a virtual router that provides a path for private - // network traffic between your VCN and your existing network. You use it with other Networking - // Service components to create an IPSec VPN or a connection that uses - // Oracle Cloud Infrastructure FastConnect. For more information, see - // [Overview of the Networking Service]({{DOC_SERVER_URL}}/Content/Network/Concepts/overview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Drg A Dynamic Routing Gateway (DRG), which is a virtual router that provides a path for private +// network traffic between your VCN and your existing network. You use it with other Networking +// Service components to create an IPSec VPN or a connection that uses +// Oracle Cloud Infrastructure FastConnect. For more information, see +// Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Drg struct { - - // The OCID of the compartment containing the DRG. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The DRG's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The DRG's current state. - LifecycleState DrgLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The date and time the DRG was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the compartment containing the DRG. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The DRG's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The DRG's current state. + LifecycleState DrgLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The date and time the DRG was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m Drg) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DrgLifecycleStateEnum Enum with underlying type: string type DrgLifecycleStateEnum string // Set of constants representing the allowable values for DrgLifecycleState const ( - DrgLifecycleStateProvisioning DrgLifecycleStateEnum = "PROVISIONING" - DrgLifecycleStateAvailable DrgLifecycleStateEnum = "AVAILABLE" - DrgLifecycleStateTerminating DrgLifecycleStateEnum = "TERMINATING" - DrgLifecycleStateTerminated DrgLifecycleStateEnum = "TERMINATED" - DrgLifecycleStateUnknown DrgLifecycleStateEnum = "UNKNOWN" + DrgLifecycleStateProvisioning DrgLifecycleStateEnum = "PROVISIONING" + DrgLifecycleStateAvailable DrgLifecycleStateEnum = "AVAILABLE" + DrgLifecycleStateTerminating DrgLifecycleStateEnum = "TERMINATING" + DrgLifecycleStateTerminated DrgLifecycleStateEnum = "TERMINATED" ) -var mappingDrgLifecycleState = map[string]DrgLifecycleStateEnum { - "PROVISIONING": DrgLifecycleStateProvisioning, - "AVAILABLE": DrgLifecycleStateAvailable, - "TERMINATING": DrgLifecycleStateTerminating, - "TERMINATED": DrgLifecycleStateTerminated, - "UNKNOWN": DrgLifecycleStateUnknown, +var mappingDrgLifecycleState = map[string]DrgLifecycleStateEnum{ + "PROVISIONING": DrgLifecycleStateProvisioning, + "AVAILABLE": DrgLifecycleStateAvailable, + "TERMINATING": DrgLifecycleStateTerminating, + "TERMINATED": DrgLifecycleStateTerminated, } // GetDrgLifecycleStateEnumValues Enumerates the set of values for DrgLifecycleState func GetDrgLifecycleStateEnumValues() []DrgLifecycleStateEnum { - values := make([]DrgLifecycleStateEnum, 0) - for _, v := range mappingDrgLifecycleState { - if v != DrgLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DrgLifecycleStateEnum, 0) + for _, v := range mappingDrgLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/drg_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/drg_attachment.go index 5306c09c6..108763457 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/drg_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/drg_attachment.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,74 +9,64 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DrgAttachment A link between a DRG and VCN. For more information, see - // [Overview of the Networking Service]({{DOC_SERVER_URL}}/Content/Network/Concepts/overview.htm). +// DrgAttachment A link between a DRG and VCN. For more information, see +// Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm). type DrgAttachment struct { - - // The OCID of the compartment containing the DRG attachment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // The DRG attachment's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The DRG attachment's current state. - LifecycleState DrgAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID of the VCN. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The date and time the DRG attachment was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the compartment containing the DRG attachment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // The DRG attachment's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The DRG attachment's current state. + LifecycleState DrgAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID of the VCN. + VcnId *string `mandatory:"true" json:"vcnId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The date and time the DRG attachment was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m DrgAttachment) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DrgAttachmentLifecycleStateEnum Enum with underlying type: string type DrgAttachmentLifecycleStateEnum string // Set of constants representing the allowable values for DrgAttachmentLifecycleState const ( - DrgAttachmentLifecycleStateAttaching DrgAttachmentLifecycleStateEnum = "ATTACHING" - DrgAttachmentLifecycleStateAttached DrgAttachmentLifecycleStateEnum = "ATTACHED" - DrgAttachmentLifecycleStateDetaching DrgAttachmentLifecycleStateEnum = "DETACHING" - DrgAttachmentLifecycleStateDetached DrgAttachmentLifecycleStateEnum = "DETACHED" - DrgAttachmentLifecycleStateUnknown DrgAttachmentLifecycleStateEnum = "UNKNOWN" + DrgAttachmentLifecycleStateAttaching DrgAttachmentLifecycleStateEnum = "ATTACHING" + DrgAttachmentLifecycleStateAttached DrgAttachmentLifecycleStateEnum = "ATTACHED" + DrgAttachmentLifecycleStateDetaching DrgAttachmentLifecycleStateEnum = "DETACHING" + DrgAttachmentLifecycleStateDetached DrgAttachmentLifecycleStateEnum = "DETACHED" ) -var mappingDrgAttachmentLifecycleState = map[string]DrgAttachmentLifecycleStateEnum { - "ATTACHING": DrgAttachmentLifecycleStateAttaching, - "ATTACHED": DrgAttachmentLifecycleStateAttached, - "DETACHING": DrgAttachmentLifecycleStateDetaching, - "DETACHED": DrgAttachmentLifecycleStateDetached, - "UNKNOWN": DrgAttachmentLifecycleStateUnknown, +var mappingDrgAttachmentLifecycleState = map[string]DrgAttachmentLifecycleStateEnum{ + "ATTACHING": DrgAttachmentLifecycleStateAttaching, + "ATTACHED": DrgAttachmentLifecycleStateAttached, + "DETACHING": DrgAttachmentLifecycleStateDetaching, + "DETACHED": DrgAttachmentLifecycleStateDetached, } // GetDrgAttachmentLifecycleStateEnumValues Enumerates the set of values for DrgAttachmentLifecycleState func GetDrgAttachmentLifecycleStateEnumValues() []DrgAttachmentLifecycleStateEnum { - values := make([]DrgAttachmentLifecycleStateEnum, 0) - for _, v := range mappingDrgAttachmentLifecycleState { - if v != DrgAttachmentLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DrgAttachmentLifecycleStateEnum, 0) + for _, v := range mappingDrgAttachmentLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/egress_security_rule.go b/vendor/github.com/oracle/oci-go-sdk/core/egress_security_rule.go index 5e92e7ab4..313470a2f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/egress_security_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/egress_security_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,55 +9,48 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // EgressSecurityRule A rule for allowing outbound IP packets. +// EgressSecurityRule A rule for allowing outbound IP packets. type EgressSecurityRule struct { - - // The destination CIDR block for the egress rule. This is the range of IP addresses that a - // packet originating from the instance can go to. - Destination *string `mandatory:"true" json:"destination"` - - // The transport protocol. Specify either `all` or an IPv4 protocol number as - // defined in - // [Protocol Numbers](http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). - // Options are supported only for ICMP ("1"), TCP ("6"), and UDP ("17"). - Protocol *string `mandatory:"true" json:"protocol"` - - // Optional and valid only for ICMP. Use to specify a particular ICMP type and code - // as defined in - // [ICMP Parameters](http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml). - // If you specify ICMP as the protocol but omit this object, then all ICMP types and - // codes are allowed. If you do provide this object, the type is required and the code is optional. - // To enable MTU negotiation for ingress internet traffic, make sure to allow type 3 ("Destination - // Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify - // multiple codes for a single type, create a separate security list rule for each. - IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` - - // A stateless rule allows traffic in one direction. Remember to add a corresponding - // stateless rule in the other direction if you need to support bidirectional traffic. For - // example, if egress traffic allows TCP destination port 80, there should be an ingress - // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful - // and a corresponding rule is not necessary for bidirectional traffic. - IsStateless *bool `mandatory:"false" json:"isStateless"` - - // Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. - // If you specify TCP as the protocol but omit this object, then all destination ports are allowed. - TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` - - // Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. - // If you specify UDP as the protocol but omit this object, then all destination ports are allowed. - UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` + + // The destination CIDR block for the egress rule. This is the range of IP addresses that a + // packet originating from the instance can go to. + Destination *string `mandatory:"true" json:"destination"` + + // The transport protocol. Specify either `all` or an IPv4 protocol number as + // defined in + // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + // Options are supported only for ICMP ("1"), TCP ("6"), and UDP ("17"). + Protocol *string `mandatory:"true" json:"protocol"` + + // Optional and valid only for ICMP. Use to specify a particular ICMP type and code + // as defined in + // ICMP Parameters (http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml). + // If you specify ICMP as the protocol but omit this object, then all ICMP types and + // codes are allowed. If you do provide this object, the type is required and the code is optional. + // To enable MTU negotiation for ingress internet traffic, make sure to allow type 3 ("Destination + // Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify + // multiple codes for a single type, create a separate security list rule for each. + IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` + + // A stateless rule allows traffic in one direction. Remember to add a corresponding + // stateless rule in the other direction if you need to support bidirectional traffic. For + // example, if egress traffic allows TCP destination port 80, there should be an ingress + // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful + // and a corresponding rule is not necessary for bidirectional traffic. + IsStateless *bool `mandatory:"false" json:"isStateless"` + + // Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. + // If you specify TCP as the protocol but omit this object, then all destination ports are allowed. + TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` + + // Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. + // If you specify UDP as the protocol but omit this object, then all destination ports are allowed. + UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` } func (m EgressSecurityRule) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/export_image_details.go b/vendor/github.com/oracle/oci-go-sdk/core/export_image_details.go index 4e3a0484a..f066a58a7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/export_image_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/export_image_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,66 +9,58 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // ExportImageDetails The destination details for the image export. - // Set `destinationType` to `objectStorageTuple` - // and use ExportImageViaObjectStorageTupleDetails - // when specifying the namespace, bucket name, and object name. - // Set `destinationType` to `objectStorageUri` and - // use ExportImageViaObjectStorageUriDetails - // when specifying the Object Storage URL. +// ExportImageDetails The destination details for the image export. +// Set `destinationType` to `objectStorageTuple` +// and use ExportImageViaObjectStorageTupleDetails +// when specifying the namespace, bucket name, and object name. +// Set `destinationType` to `objectStorageUri` and +// use ExportImageViaObjectStorageUriDetails +// when specifying the Object Storage URL. type ExportImageDetails interface { } type exportimagedetails struct { - JsonData []byte - DestinationType string `json:"destinationType"` + JsonData []byte + DestinationType string `json:"destinationType"` } - // UnmarshalJSON unmarshals json func (m *exportimagedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerexportimagedetails exportimagedetails - s := struct { - Model Unmarshalerexportimagedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.DestinationType = s.Model.DestinationType - - return err + m.JsonData = data + type Unmarshalerexportimagedetails exportimagedetails + s := struct { + Model Unmarshalerexportimagedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.DestinationType = s.Model.DestinationType + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *exportimagedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.DestinationType) { - case "objectStorageUri": - mm := ExportImageViaObjectStorageUriDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "objectStorageTuple": - mm := ExportImageViaObjectStorageTupleDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.DestinationType { + case "objectStorageUri": + mm := ExportImageViaObjectStorageUriDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "objectStorageTuple": + mm := ExportImageViaObjectStorageTupleDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } } - func (m exportimagedetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/export_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/export_image_request_response.go index 5e89c5888..4ecb1a3ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/export_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/export_image_request_response.go @@ -1,60 +1,56 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ExportImageRequest wrapper for the ExportImage operation type ExportImageRequest struct { - - // The OCID of the image. - ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` - - // Details for the image export. - ExportImageDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the image. + ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` + + // Details for the image export. + ExportImageDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request ExportImageRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ExportImageResponse wrapper for the ExportImage operation type ExportImageResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Image instance - Image `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Image instance + Image `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ExportImageResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/export_image_via_object_storage_tuple_details.go b/vendor/github.com/oracle/oci-go-sdk/core/export_image_via_object_storage_tuple_details.go index 185f7cff9..39d08873f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/export_image_via_object_storage_tuple_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/export_image_via_object_storage_tuple_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,42 +9,37 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // ExportImageViaObjectStorageTupleDetails The representation of ExportImageViaObjectStorageTupleDetails +// ExportImageViaObjectStorageTupleDetails The representation of ExportImageViaObjectStorageTupleDetails type ExportImageViaObjectStorageTupleDetails struct { - - // The Object Storage bucket to export the image to. - BucketName *string `mandatory:"false" json:"bucketName"` - - // The Object Storage namespace to export the image to. - NamespaceName *string `mandatory:"false" json:"namespaceName"` - - // The Object Storage object name for the exported image. - ObjectName *string `mandatory:"false" json:"objectName"` + + // The Object Storage bucket to export the image to. + BucketName *string `mandatory:"false" json:"bucketName"` + + // The Object Storage namespace to export the image to. + NamespaceName *string `mandatory:"false" json:"namespaceName"` + + // The Object Storage object name for the exported image. + ObjectName *string `mandatory:"false" json:"objectName"` } func (m ExportImageViaObjectStorageTupleDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m ExportImageViaObjectStorageTupleDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeExportImageViaObjectStorageTupleDetails ExportImageViaObjectStorageTupleDetails - s := struct { - DiscriminatorParam string `json:"destinationType"` - MarshalTypeExportImageViaObjectStorageTupleDetails - }{ - "objectStorageTuple", - (MarshalTypeExportImageViaObjectStorageTupleDetails)(m), - } - - return json.Marshal(&s) + type MarshalTypeExportImageViaObjectStorageTupleDetails ExportImageViaObjectStorageTupleDetails + s := struct { + DiscriminatorParam string `json:"destinationType"` + MarshalTypeExportImageViaObjectStorageTupleDetails + }{ + "objectStorageTuple", + (MarshalTypeExportImageViaObjectStorageTupleDetails)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/export_image_via_object_storage_uri_details.go b/vendor/github.com/oracle/oci-go-sdk/core/export_image_via_object_storage_uri_details.go index ea5cc5602..5a44a21a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/export_image_via_object_storage_uri_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/export_image_via_object_storage_uri_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,37 +9,32 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // ExportImageViaObjectStorageUriDetails The representation of ExportImageViaObjectStorageUriDetails +// ExportImageViaObjectStorageUriDetails The representation of ExportImageViaObjectStorageUriDetails type ExportImageViaObjectStorageUriDetails struct { - - // The Object Storage URL to export the image to. See [Object Storage URLs]({{DOC_SERVER_URL}}/Content/Compute/Tasks/imageimportexport.htm#URLs) - // and [pre-authenticated requests]({{DOC_SERVER_URL}}/Content/Object/Tasks/managingaccess.htm#pre-auth) for constructing URLs for image import/export. - DestinationUri *string `mandatory:"true" json:"destinationUri"` + + // The Object Storage URL to export the image to. See Object Storage URLs (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm#URLs) + // and pre-authenticated requests (https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingaccess.htm#pre-auth) for constructing URLs for image import/export. + DestinationUri *string `mandatory:"true" json:"destinationUri"` } func (m ExportImageViaObjectStorageUriDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m ExportImageViaObjectStorageUriDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeExportImageViaObjectStorageUriDetails ExportImageViaObjectStorageUriDetails - s := struct { - DiscriminatorParam string `json:"destinationType"` - MarshalTypeExportImageViaObjectStorageUriDetails - }{ - "objectStorageUri", - (MarshalTypeExportImageViaObjectStorageUriDetails)(m), - } - - return json.Marshal(&s) + type MarshalTypeExportImageViaObjectStorageUriDetails ExportImageViaObjectStorageUriDetails + s := struct { + DiscriminatorParam string `json:"destinationType"` + MarshalTypeExportImageViaObjectStorageUriDetails + }{ + "objectStorageUri", + (MarshalTypeExportImageViaObjectStorageUriDetails)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/fast_connect_provider_service.go b/vendor/github.com/oracle/oci-go-sdk/core/fast_connect_provider_service.go index 51dc851a1..1b8dcca1d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/fast_connect_provider_service.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/fast_connect_provider_service.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,153 +9,134 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // FastConnectProviderService A service offering from a supported provider. For more information, - // see [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). +// FastConnectProviderService A service offering from a supported provider. For more information, +// see FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). type FastConnectProviderService struct { - - // The OCID of the service offered by the provider. - Id *string `mandatory:"true" json:"id"` - - // Private peering BGP management. - PrivatePeeringBgpManagement FastConnectProviderServicePrivatePeeringBgpManagementEnum `mandatory:"true" json:"privatePeeringBgpManagement"` - - // The name of the provider. - ProviderName *string `mandatory:"true" json:"providerName"` - - // The name of the service offered by the provider. - ProviderServiceName *string `mandatory:"true" json:"providerServiceName"` - - // Public peering BGP management. - PublicPeeringBgpManagement FastConnectProviderServicePublicPeeringBgpManagementEnum `mandatory:"true" json:"publicPeeringBgpManagement"` - - // Provider service type. - Type FastConnectProviderServiceTypeEnum `mandatory:"true" json:"type"` - - // A description of the service offered by the provider. - Description *string `mandatory:"false" json:"description"` - - // An array of virtual circuit types supported by this service. - SupportedVirtualCircuitTypes []FastConnectProviderServiceSupportedVirtualCircuitTypesEnum `mandatory:"false" json:"supportedVirtualCircuitTypes,omitempty"` + + // The OCID of the service offered by the provider. + Id *string `mandatory:"true" json:"id"` + + // Private peering BGP management. + PrivatePeeringBgpManagement FastConnectProviderServicePrivatePeeringBgpManagementEnum `mandatory:"true" json:"privatePeeringBgpManagement"` + + // The name of the provider. + ProviderName *string `mandatory:"true" json:"providerName"` + + // The name of the service offered by the provider. + ProviderServiceName *string `mandatory:"true" json:"providerServiceName"` + + // Public peering BGP management. + PublicPeeringBgpManagement FastConnectProviderServicePublicPeeringBgpManagementEnum `mandatory:"true" json:"publicPeeringBgpManagement"` + + // Provider service type. + Type FastConnectProviderServiceTypeEnum `mandatory:"true" json:"type"` + + // A description of the service offered by the provider. + Description *string `mandatory:"false" json:"description"` + + // An array of virtual circuit types supported by this service. + SupportedVirtualCircuitTypes []FastConnectProviderServiceSupportedVirtualCircuitTypesEnum `mandatory:"false" json:"supportedVirtualCircuitTypes,omitempty"` } func (m FastConnectProviderService) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // FastConnectProviderServicePrivatePeeringBgpManagementEnum Enum with underlying type: string type FastConnectProviderServicePrivatePeeringBgpManagementEnum string // Set of constants representing the allowable values for FastConnectProviderServicePrivatePeeringBgpManagement const ( - FastConnectProviderServicePrivatePeeringBgpManagementCustomerManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "CUSTOMER_MANAGED" - FastConnectProviderServicePrivatePeeringBgpManagementProviderManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "PROVIDER_MANAGED" - FastConnectProviderServicePrivatePeeringBgpManagementOracleManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "ORACLE_MANAGED" - FastConnectProviderServicePrivatePeeringBgpManagementUnknown FastConnectProviderServicePrivatePeeringBgpManagementEnum = "UNKNOWN" + FastConnectProviderServicePrivatePeeringBgpManagementCustomerManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "CUSTOMER_MANAGED" + FastConnectProviderServicePrivatePeeringBgpManagementProviderManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "PROVIDER_MANAGED" + FastConnectProviderServicePrivatePeeringBgpManagementOracleManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "ORACLE_MANAGED" ) -var mappingFastConnectProviderServicePrivatePeeringBgpManagement = map[string]FastConnectProviderServicePrivatePeeringBgpManagementEnum { - "CUSTOMER_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementCustomerManaged, - "PROVIDER_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementProviderManaged, - "ORACLE_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementOracleManaged, - "UNKNOWN": FastConnectProviderServicePrivatePeeringBgpManagementUnknown, +var mappingFastConnectProviderServicePrivatePeeringBgpManagement = map[string]FastConnectProviderServicePrivatePeeringBgpManagementEnum{ + "CUSTOMER_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementCustomerManaged, + "PROVIDER_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementProviderManaged, + "ORACLE_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementOracleManaged, } // GetFastConnectProviderServicePrivatePeeringBgpManagementEnumValues Enumerates the set of values for FastConnectProviderServicePrivatePeeringBgpManagement func GetFastConnectProviderServicePrivatePeeringBgpManagementEnumValues() []FastConnectProviderServicePrivatePeeringBgpManagementEnum { - values := make([]FastConnectProviderServicePrivatePeeringBgpManagementEnum, 0) - for _, v := range mappingFastConnectProviderServicePrivatePeeringBgpManagement { - if v != FastConnectProviderServicePrivatePeeringBgpManagementUnknown { - values = append(values, v) - } - } - return values + values := make([]FastConnectProviderServicePrivatePeeringBgpManagementEnum, 0) + for _, v := range mappingFastConnectProviderServicePrivatePeeringBgpManagement { + values = append(values, v) + } + return values } + // FastConnectProviderServicePublicPeeringBgpManagementEnum Enum with underlying type: string type FastConnectProviderServicePublicPeeringBgpManagementEnum string // Set of constants representing the allowable values for FastConnectProviderServicePublicPeeringBgpManagement const ( - FastConnectProviderServicePublicPeeringBgpManagementCustomerManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "CUSTOMER_MANAGED" - FastConnectProviderServicePublicPeeringBgpManagementProviderManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "PROVIDER_MANAGED" - FastConnectProviderServicePublicPeeringBgpManagementOracleManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "ORACLE_MANAGED" - FastConnectProviderServicePublicPeeringBgpManagementUnknown FastConnectProviderServicePublicPeeringBgpManagementEnum = "UNKNOWN" + FastConnectProviderServicePublicPeeringBgpManagementCustomerManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "CUSTOMER_MANAGED" + FastConnectProviderServicePublicPeeringBgpManagementProviderManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "PROVIDER_MANAGED" + FastConnectProviderServicePublicPeeringBgpManagementOracleManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "ORACLE_MANAGED" ) -var mappingFastConnectProviderServicePublicPeeringBgpManagement = map[string]FastConnectProviderServicePublicPeeringBgpManagementEnum { - "CUSTOMER_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementCustomerManaged, - "PROVIDER_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementProviderManaged, - "ORACLE_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementOracleManaged, - "UNKNOWN": FastConnectProviderServicePublicPeeringBgpManagementUnknown, +var mappingFastConnectProviderServicePublicPeeringBgpManagement = map[string]FastConnectProviderServicePublicPeeringBgpManagementEnum{ + "CUSTOMER_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementCustomerManaged, + "PROVIDER_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementProviderManaged, + "ORACLE_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementOracleManaged, } // GetFastConnectProviderServicePublicPeeringBgpManagementEnumValues Enumerates the set of values for FastConnectProviderServicePublicPeeringBgpManagement func GetFastConnectProviderServicePublicPeeringBgpManagementEnumValues() []FastConnectProviderServicePublicPeeringBgpManagementEnum { - values := make([]FastConnectProviderServicePublicPeeringBgpManagementEnum, 0) - for _, v := range mappingFastConnectProviderServicePublicPeeringBgpManagement { - if v != FastConnectProviderServicePublicPeeringBgpManagementUnknown { - values = append(values, v) - } - } - return values + values := make([]FastConnectProviderServicePublicPeeringBgpManagementEnum, 0) + for _, v := range mappingFastConnectProviderServicePublicPeeringBgpManagement { + values = append(values, v) + } + return values } + // FastConnectProviderServiceSupportedVirtualCircuitTypesEnum Enum with underlying type: string type FastConnectProviderServiceSupportedVirtualCircuitTypesEnum string // Set of constants representing the allowable values for FastConnectProviderServiceSupportedVirtualCircuitTypes const ( - FastConnectProviderServiceSupportedVirtualCircuitTypesPublic FastConnectProviderServiceSupportedVirtualCircuitTypesEnum = "PUBLIC" - FastConnectProviderServiceSupportedVirtualCircuitTypesPrivate FastConnectProviderServiceSupportedVirtualCircuitTypesEnum = "PRIVATE" - FastConnectProviderServiceSupportedVirtualCircuitTypesUnknown FastConnectProviderServiceSupportedVirtualCircuitTypesEnum = "UNKNOWN" + FastConnectProviderServiceSupportedVirtualCircuitTypesPublic FastConnectProviderServiceSupportedVirtualCircuitTypesEnum = "PUBLIC" + FastConnectProviderServiceSupportedVirtualCircuitTypesPrivate FastConnectProviderServiceSupportedVirtualCircuitTypesEnum = "PRIVATE" ) -var mappingFastConnectProviderServiceSupportedVirtualCircuitTypes = map[string]FastConnectProviderServiceSupportedVirtualCircuitTypesEnum { - "PUBLIC": FastConnectProviderServiceSupportedVirtualCircuitTypesPublic, - "PRIVATE": FastConnectProviderServiceSupportedVirtualCircuitTypesPrivate, - "UNKNOWN": FastConnectProviderServiceSupportedVirtualCircuitTypesUnknown, +var mappingFastConnectProviderServiceSupportedVirtualCircuitTypes = map[string]FastConnectProviderServiceSupportedVirtualCircuitTypesEnum{ + "PUBLIC": FastConnectProviderServiceSupportedVirtualCircuitTypesPublic, + "PRIVATE": FastConnectProviderServiceSupportedVirtualCircuitTypesPrivate, } // GetFastConnectProviderServiceSupportedVirtualCircuitTypesEnumValues Enumerates the set of values for FastConnectProviderServiceSupportedVirtualCircuitTypes func GetFastConnectProviderServiceSupportedVirtualCircuitTypesEnumValues() []FastConnectProviderServiceSupportedVirtualCircuitTypesEnum { - values := make([]FastConnectProviderServiceSupportedVirtualCircuitTypesEnum, 0) - for _, v := range mappingFastConnectProviderServiceSupportedVirtualCircuitTypes { - if v != FastConnectProviderServiceSupportedVirtualCircuitTypesUnknown { - values = append(values, v) - } - } - return values + values := make([]FastConnectProviderServiceSupportedVirtualCircuitTypesEnum, 0) + for _, v := range mappingFastConnectProviderServiceSupportedVirtualCircuitTypes { + values = append(values, v) + } + return values } + // FastConnectProviderServiceTypeEnum Enum with underlying type: string type FastConnectProviderServiceTypeEnum string // Set of constants representing the allowable values for FastConnectProviderServiceType const ( - FastConnectProviderServiceTypeLayer2 FastConnectProviderServiceTypeEnum = "LAYER2" - FastConnectProviderServiceTypeLayer3 FastConnectProviderServiceTypeEnum = "LAYER3" - FastConnectProviderServiceTypeUnknown FastConnectProviderServiceTypeEnum = "UNKNOWN" + FastConnectProviderServiceTypeLayer2 FastConnectProviderServiceTypeEnum = "LAYER2" + FastConnectProviderServiceTypeLayer3 FastConnectProviderServiceTypeEnum = "LAYER3" ) -var mappingFastConnectProviderServiceType = map[string]FastConnectProviderServiceTypeEnum { - "LAYER2": FastConnectProviderServiceTypeLayer2, - "LAYER3": FastConnectProviderServiceTypeLayer3, - "UNKNOWN": FastConnectProviderServiceTypeUnknown, +var mappingFastConnectProviderServiceType = map[string]FastConnectProviderServiceTypeEnum{ + "LAYER2": FastConnectProviderServiceTypeLayer2, + "LAYER3": FastConnectProviderServiceTypeLayer3, } // GetFastConnectProviderServiceTypeEnumValues Enumerates the set of values for FastConnectProviderServiceType func GetFastConnectProviderServiceTypeEnumValues() []FastConnectProviderServiceTypeEnum { - values := make([]FastConnectProviderServiceTypeEnum, 0) - for _, v := range mappingFastConnectProviderServiceType { - if v != FastConnectProviderServiceTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]FastConnectProviderServiceTypeEnum, 0) + for _, v := range mappingFastConnectProviderServiceType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_boot_volume_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_boot_volume_attachment_request_response.go index 754b93b38..e14e9201b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_boot_volume_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_boot_volume_attachment_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetBootVolumeAttachmentRequest wrapper for the GetBootVolumeAttachment operation type GetBootVolumeAttachmentRequest struct { - - // The OCID of the boot volume attachment. - BootVolumeAttachmentId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeAttachmentId"` + + // The OCID of the boot volume attachment. + BootVolumeAttachmentId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeAttachmentId"` } func (request GetBootVolumeAttachmentRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetBootVolumeAttachmentResponse wrapper for the GetBootVolumeAttachment operation type GetBootVolumeAttachmentResponse struct { - // The underlying http response - RawResponse *http.Response - - // The BootVolumeAttachment instance - BootVolumeAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The BootVolumeAttachment instance + BootVolumeAttachment `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetBootVolumeAttachmentResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_boot_volume_request_response.go index c9903949f..95c3d0909 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_boot_volume_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetBootVolumeRequest wrapper for the GetBootVolume operation type GetBootVolumeRequest struct { - - // The OCID of the boot volume. - BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"` + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"` } func (request GetBootVolumeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetBootVolumeResponse wrapper for the GetBootVolume operation type GetBootVolumeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The BootVolume instance - BootVolume `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The BootVolume instance + BootVolume `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetBootVolumeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_console_history_content_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_console_history_content_request_response.go index 72353abce..4fc8e50ba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_console_history_content_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_console_history_content_request_response.go @@ -1,51 +1,47 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetConsoleHistoryContentRequest wrapper for the GetConsoleHistoryContent operation type GetConsoleHistoryContentRequest struct { - - // The OCID of the console history. - InstanceConsoleHistoryId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleHistoryId"` - - // Offset of the snapshot data to retrieve. - Offset *int `mandatory:"false" contributesTo:"query" name:"offset"` - - // Length of the snapshot data to retrieve. - Length *int `mandatory:"false" contributesTo:"query" name:"length"` + + // The OCID of the console history. + InstanceConsoleHistoryId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleHistoryId"` + + // Offset of the snapshot data to retrieve. + Offset *int `mandatory:"false" contributesTo:"query" name:"offset"` + + // Length of the snapshot data to retrieve. + Length *int `mandatory:"false" contributesTo:"query" name:"length"` } func (request GetConsoleHistoryContentRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetConsoleHistoryContentResponse wrapper for the GetConsoleHistoryContent operation type GetConsoleHistoryContentResponse struct { - // The underlying http response - RawResponse *http.Response - - // The string instance - Value *string `presentIn:"body" encoding:"plain-text"` + // The underlying http response + RawResponse *http.Response - - // The number of bytes remaining in the snapshot. - OpcBytesRemaining *int `presentIn:"header" name:"opc-bytes-remaining"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The string instance + Value *string `presentIn:"body" encoding:"plain-text"` + // The number of bytes remaining in the snapshot. + OpcBytesRemaining *int `presentIn:"header" name:"opc-bytes-remaining"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetConsoleHistoryContentResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_console_history_request_response.go index 763d26f02..b5aa9eb38 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_console_history_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetConsoleHistoryRequest wrapper for the GetConsoleHistory operation type GetConsoleHistoryRequest struct { - - // The OCID of the console history. - InstanceConsoleHistoryId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleHistoryId"` + + // The OCID of the console history. + InstanceConsoleHistoryId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleHistoryId"` } func (request GetConsoleHistoryRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetConsoleHistoryResponse wrapper for the GetConsoleHistory operation type GetConsoleHistoryResponse struct { - // The underlying http response - RawResponse *http.Response - - // The ConsoleHistory instance - ConsoleHistory `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The ConsoleHistory instance + ConsoleHistory `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetConsoleHistoryResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_cpe_request_response.go index 94b2c3119..0ed76a7f9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_cpe_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetCpeRequest wrapper for the GetCpe operation type GetCpeRequest struct { - - // The OCID of the CPE. - CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` + + // The OCID of the CPE. + CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` } func (request GetCpeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetCpeResponse wrapper for the GetCpe operation type GetCpeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Cpe instance - Cpe `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Cpe instance + Cpe `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetCpeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_group_request_response.go index ca8079acc..fd3d8803e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_group_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetCrossConnectGroupRequest wrapper for the GetCrossConnectGroup operation type GetCrossConnectGroupRequest struct { - - // The OCID of the cross-connect group. - CrossConnectGroupId *string `mandatory:"true" contributesTo:"path" name:"crossConnectGroupId"` + + // The OCID of the cross-connect group. + CrossConnectGroupId *string `mandatory:"true" contributesTo:"path" name:"crossConnectGroupId"` } func (request GetCrossConnectGroupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetCrossConnectGroupResponse wrapper for the GetCrossConnectGroup operation type GetCrossConnectGroupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The CrossConnectGroup instance - CrossConnectGroup `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The CrossConnectGroup instance + CrossConnectGroup `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetCrossConnectGroupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_letter_of_authority_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_letter_of_authority_request_response.go index c606eaf7d..674ea1f19 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_letter_of_authority_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_letter_of_authority_request_response.go @@ -1,42 +1,38 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetCrossConnectLetterOfAuthorityRequest wrapper for the GetCrossConnectLetterOfAuthority operation type GetCrossConnectLetterOfAuthorityRequest struct { - - // The OCID of the cross-connect. - CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` + + // The OCID of the cross-connect. + CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` } func (request GetCrossConnectLetterOfAuthorityRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetCrossConnectLetterOfAuthorityResponse wrapper for the GetCrossConnectLetterOfAuthority operation type GetCrossConnectLetterOfAuthorityResponse struct { - // The underlying http response - RawResponse *http.Response - - // The LetterOfAuthority instance - LetterOfAuthority `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The LetterOfAuthority instance + LetterOfAuthority `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetCrossConnectLetterOfAuthorityResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_request_response.go index 3a16f3c5b..b505c6ad5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetCrossConnectRequest wrapper for the GetCrossConnect operation type GetCrossConnectRequest struct { - - // The OCID of the cross-connect. - CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` + + // The OCID of the cross-connect. + CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` } func (request GetCrossConnectRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetCrossConnectResponse wrapper for the GetCrossConnect operation type GetCrossConnectResponse struct { - // The underlying http response - RawResponse *http.Response - - // The CrossConnect instance - CrossConnect `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The CrossConnect instance + CrossConnect `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetCrossConnectResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_status_request_response.go index c8c2d9d81..cf826242e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_status_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_cross_connect_status_request_response.go @@ -1,42 +1,38 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetCrossConnectStatusRequest wrapper for the GetCrossConnectStatus operation type GetCrossConnectStatusRequest struct { - - // The OCID of the cross-connect. - CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` + + // The OCID of the cross-connect. + CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` } func (request GetCrossConnectStatusRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetCrossConnectStatusResponse wrapper for the GetCrossConnectStatus operation type GetCrossConnectStatusResponse struct { - // The underlying http response - RawResponse *http.Response - - // The CrossConnectStatus instance - CrossConnectStatus `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The CrossConnectStatus instance + CrossConnectStatus `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetCrossConnectStatusResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_dhcp_options_request_response.go index c541b84a5..72f46761c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_dhcp_options_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDhcpOptionsRequest wrapper for the GetDhcpOptions operation type GetDhcpOptionsRequest struct { - - // The OCID for the set of DHCP options. - DhcpId *string `mandatory:"true" contributesTo:"path" name:"dhcpId"` + + // The OCID for the set of DHCP options. + DhcpId *string `mandatory:"true" contributesTo:"path" name:"dhcpId"` } func (request GetDhcpOptionsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDhcpOptionsResponse wrapper for the GetDhcpOptions operation type GetDhcpOptionsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DhcpOptions instance - DhcpOptions `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DhcpOptions instance + DhcpOptions `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDhcpOptionsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_drg_attachment_request_response.go index caef2ddb7..b485721ae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_drg_attachment_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDrgAttachmentRequest wrapper for the GetDrgAttachment operation type GetDrgAttachmentRequest struct { - - // The OCID of the DRG attachment. - DrgAttachmentId *string `mandatory:"true" contributesTo:"path" name:"drgAttachmentId"` + + // The OCID of the DRG attachment. + DrgAttachmentId *string `mandatory:"true" contributesTo:"path" name:"drgAttachmentId"` } func (request GetDrgAttachmentRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDrgAttachmentResponse wrapper for the GetDrgAttachment operation type GetDrgAttachmentResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DrgAttachment instance - DrgAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DrgAttachment instance + DrgAttachment `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDrgAttachmentResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_drg_request_response.go index b3096e6ae..4488accfc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_drg_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDrgRequest wrapper for the GetDrg operation type GetDrgRequest struct { - - // The OCID of the DRG. - DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` + + // The OCID of the DRG. + DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` } func (request GetDrgRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDrgResponse wrapper for the GetDrg operation type GetDrgResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Drg instance - Drg `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Drg instance + Drg `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDrgResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_fast_connect_provider_service_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_fast_connect_provider_service_request_response.go index e4247f990..28b352403 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_fast_connect_provider_service_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_fast_connect_provider_service_request_response.go @@ -1,42 +1,38 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetFastConnectProviderServiceRequest wrapper for the GetFastConnectProviderService operation type GetFastConnectProviderServiceRequest struct { - - // The OCID of the provider service. - ProviderServiceId *string `mandatory:"true" contributesTo:"path" name:"providerServiceId"` + + // The OCID of the provider service. + ProviderServiceId *string `mandatory:"true" contributesTo:"path" name:"providerServiceId"` } func (request GetFastConnectProviderServiceRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetFastConnectProviderServiceResponse wrapper for the GetFastConnectProviderService operation type GetFastConnectProviderServiceResponse struct { - // The underlying http response - RawResponse *http.Response - - // The FastConnectProviderService instance - FastConnectProviderService `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The FastConnectProviderService instance + FastConnectProviderService `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetFastConnectProviderServiceResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_device_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_device_config_request_response.go index 226f77b72..a41b69aed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_device_config_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_device_config_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetIPSecConnectionDeviceConfigRequest wrapper for the GetIPSecConnectionDeviceConfig operation type GetIPSecConnectionDeviceConfigRequest struct { - - // The OCID of the IPSec connection. - IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` + + // The OCID of the IPSec connection. + IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` } func (request GetIPSecConnectionDeviceConfigRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetIPSecConnectionDeviceConfigResponse wrapper for the GetIPSecConnectionDeviceConfig operation type GetIPSecConnectionDeviceConfigResponse struct { - // The underlying http response - RawResponse *http.Response - - // The IpSecConnectionDeviceConfig instance - IpSecConnectionDeviceConfig `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The IpSecConnectionDeviceConfig instance + IpSecConnectionDeviceConfig `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetIPSecConnectionDeviceConfigResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_device_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_device_status_request_response.go index 6549f144f..c3fbde11d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_device_status_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_device_status_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetIPSecConnectionDeviceStatusRequest wrapper for the GetIPSecConnectionDeviceStatus operation type GetIPSecConnectionDeviceStatusRequest struct { - - // The OCID of the IPSec connection. - IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` + + // The OCID of the IPSec connection. + IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` } func (request GetIPSecConnectionDeviceStatusRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetIPSecConnectionDeviceStatusResponse wrapper for the GetIPSecConnectionDeviceStatus operation type GetIPSecConnectionDeviceStatusResponse struct { - // The underlying http response - RawResponse *http.Response - - // The IpSecConnectionDeviceStatus instance - IpSecConnectionDeviceStatus `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The IpSecConnectionDeviceStatus instance + IpSecConnectionDeviceStatus `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetIPSecConnectionDeviceStatusResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_request_response.go index c8a8586dd..1ba8d86d0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_i_p_sec_connection_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetIPSecConnectionRequest wrapper for the GetIPSecConnection operation type GetIPSecConnectionRequest struct { - - // The OCID of the IPSec connection. - IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` + + // The OCID of the IPSec connection. + IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` } func (request GetIPSecConnectionRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetIPSecConnectionResponse wrapper for the GetIPSecConnection operation type GetIPSecConnectionResponse struct { - // The underlying http response - RawResponse *http.Response - - // The IpSecConnection instance - IpSecConnection `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The IpSecConnection instance + IpSecConnection `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetIPSecConnectionResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_image_request_response.go index e086c5a3b..9c64a2429 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_image_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetImageRequest wrapper for the GetImage operation type GetImageRequest struct { - - // The OCID of the image. - ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` + + // The OCID of the image. + ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` } func (request GetImageRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetImageResponse wrapper for the GetImage operation type GetImageResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Image instance - Image `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Image instance + Image `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetImageResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_instance_console_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_instance_console_connection_request_response.go index 0dbdb4b20..c90d9c464 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_instance_console_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_instance_console_connection_request_response.go @@ -1,42 +1,38 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetInstanceConsoleConnectionRequest wrapper for the GetInstanceConsoleConnection operation type GetInstanceConsoleConnectionRequest struct { - - // The OCID of the intance console connection - InstanceConsoleConnectionId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleConnectionId"` + + // The OCID of the intance console connection + InstanceConsoleConnectionId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleConnectionId"` } func (request GetInstanceConsoleConnectionRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetInstanceConsoleConnectionResponse wrapper for the GetInstanceConsoleConnection operation type GetInstanceConsoleConnectionResponse struct { - // The underlying http response - RawResponse *http.Response - - // The InstanceConsoleConnection instance - InstanceConsoleConnection `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The InstanceConsoleConnection instance + InstanceConsoleConnection `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetInstanceConsoleConnectionResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_instance_request_response.go index 3440e6b2d..8619c5ade 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_instance_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetInstanceRequest wrapper for the GetInstance operation type GetInstanceRequest struct { - - // The OCID of the instance. - InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // The OCID of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` } func (request GetInstanceRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetInstanceResponse wrapper for the GetInstance operation type GetInstanceResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Instance instance - Instance `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Instance instance + Instance `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetInstanceResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_internet_gateway_request_response.go index ef84e273d..61423dffb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_internet_gateway_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetInternetGatewayRequest wrapper for the GetInternetGateway operation type GetInternetGatewayRequest struct { - - // The OCID of the Internet Gateway. - IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` + + // The OCID of the Internet Gateway. + IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` } func (request GetInternetGatewayRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetInternetGatewayResponse wrapper for the GetInternetGateway operation type GetInternetGatewayResponse struct { - // The underlying http response - RawResponse *http.Response - - // The InternetGateway instance - InternetGateway `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The InternetGateway instance + InternetGateway `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetInternetGatewayResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_local_peering_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_local_peering_gateway_request_response.go index 6a03a16b9..3a04a7c17 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_local_peering_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_local_peering_gateway_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetLocalPeeringGatewayRequest wrapper for the GetLocalPeeringGateway operation type GetLocalPeeringGatewayRequest struct { - - // The OCID of the local peering gateway. - LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` + + // The OCID of the local peering gateway. + LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` } func (request GetLocalPeeringGatewayRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetLocalPeeringGatewayResponse wrapper for the GetLocalPeeringGateway operation type GetLocalPeeringGatewayResponse struct { - // The underlying http response - RawResponse *http.Response - - // The LocalPeeringGateway instance - LocalPeeringGateway `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The LocalPeeringGateway instance + LocalPeeringGateway `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetLocalPeeringGatewayResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_private_ip_request_response.go index 9867d6f6f..778c771bf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_private_ip_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetPrivateIpRequest wrapper for the GetPrivateIp operation type GetPrivateIpRequest struct { - - // The private IP's OCID. - PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` + + // The private IP's OCID. + PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` } func (request GetPrivateIpRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetPrivateIpResponse wrapper for the GetPrivateIp operation type GetPrivateIpResponse struct { - // The underlying http response - RawResponse *http.Response - - // The PrivateIp instance - PrivateIp `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The PrivateIp instance + PrivateIp `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetPrivateIpResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_route_table_request_response.go index 6b6c62509..f74bee61b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_route_table_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetRouteTableRequest wrapper for the GetRouteTable operation type GetRouteTableRequest struct { - - // The OCID of the route table. - RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` + + // The OCID of the route table. + RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` } func (request GetRouteTableRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetRouteTableResponse wrapper for the GetRouteTable operation type GetRouteTableResponse struct { - // The underlying http response - RawResponse *http.Response - - // The RouteTable instance - RouteTable `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The RouteTable instance + RouteTable `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetRouteTableResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_security_list_request_response.go index d5d8a06db..a62a52d89 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_security_list_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetSecurityListRequest wrapper for the GetSecurityList operation type GetSecurityListRequest struct { - - // The OCID of the security list. - SecurityListId *string `mandatory:"true" contributesTo:"path" name:"securityListId"` + + // The OCID of the security list. + SecurityListId *string `mandatory:"true" contributesTo:"path" name:"securityListId"` } func (request GetSecurityListRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetSecurityListResponse wrapper for the GetSecurityList operation type GetSecurityListResponse struct { - // The underlying http response - RawResponse *http.Response - - // The SecurityList instance - SecurityList `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The SecurityList instance + SecurityList `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetSecurityListResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_subnet_request_response.go index 5052fc3a1..a8ffa4c10 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_subnet_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetSubnetRequest wrapper for the GetSubnet operation type GetSubnetRequest struct { - - // The OCID of the subnet. - SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` + + // The OCID of the subnet. + SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` } func (request GetSubnetRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetSubnetResponse wrapper for the GetSubnet operation type GetSubnetResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Subnet instance - Subnet `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Subnet instance + Subnet `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetSubnetResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_vcn_request_response.go index 5827800c6..5696f7c3f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_vcn_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetVcnRequest wrapper for the GetVcn operation type GetVcnRequest struct { - - // The OCID of the VCN. - VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` + + // The OCID of the VCN. + VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` } func (request GetVcnRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetVcnResponse wrapper for the GetVcn operation type GetVcnResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Vcn instance - Vcn `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Vcn instance + Vcn `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetVcnResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_virtual_circuit_request_response.go index 9cc3834de..85ac11259 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_virtual_circuit_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetVirtualCircuitRequest wrapper for the GetVirtualCircuit operation type GetVirtualCircuitRequest struct { - - // The OCID of the virtual circuit. - VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` + + // The OCID of the virtual circuit. + VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` } func (request GetVirtualCircuitRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetVirtualCircuitResponse wrapper for the GetVirtualCircuit operation type GetVirtualCircuitResponse struct { - // The underlying http response - RawResponse *http.Response - - // The VirtualCircuit instance - VirtualCircuit `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The VirtualCircuit instance + VirtualCircuit `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetVirtualCircuitResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_vnic_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_vnic_attachment_request_response.go index c74d59ea6..3c0e62d0e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_vnic_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_vnic_attachment_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetVnicAttachmentRequest wrapper for the GetVnicAttachment operation type GetVnicAttachmentRequest struct { - - // The OCID of the VNIC attachment. - VnicAttachmentId *string `mandatory:"true" contributesTo:"path" name:"vnicAttachmentId"` + + // The OCID of the VNIC attachment. + VnicAttachmentId *string `mandatory:"true" contributesTo:"path" name:"vnicAttachmentId"` } func (request GetVnicAttachmentRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetVnicAttachmentResponse wrapper for the GetVnicAttachment operation type GetVnicAttachmentResponse struct { - // The underlying http response - RawResponse *http.Response - - // The VnicAttachment instance - VnicAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The VnicAttachment instance + VnicAttachment `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetVnicAttachmentResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_vnic_request_response.go index 8fab44bb1..6f52d96c5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_vnic_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetVnicRequest wrapper for the GetVnic operation type GetVnicRequest struct { - - // The OCID of the VNIC. - VnicId *string `mandatory:"true" contributesTo:"path" name:"vnicId"` + + // The OCID of the VNIC. + VnicId *string `mandatory:"true" contributesTo:"path" name:"vnicId"` } func (request GetVnicRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetVnicResponse wrapper for the GetVnic operation type GetVnicResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Vnic instance - Vnic `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Vnic instance + Vnic `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetVnicResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_attachment_request_response.go index 591d84c64..e9492439f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_attachment_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetVolumeAttachmentRequest wrapper for the GetVolumeAttachment operation type GetVolumeAttachmentRequest struct { - - // The OCID of the volume attachment. - VolumeAttachmentId *string `mandatory:"true" contributesTo:"path" name:"volumeAttachmentId"` + + // The OCID of the volume attachment. + VolumeAttachmentId *string `mandatory:"true" contributesTo:"path" name:"volumeAttachmentId"` } func (request GetVolumeAttachmentRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetVolumeAttachmentResponse wrapper for the GetVolumeAttachment operation type GetVolumeAttachmentResponse struct { - // The underlying http response - RawResponse *http.Response - - // The VolumeAttachment instance - VolumeAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The VolumeAttachment instance + VolumeAttachment `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetVolumeAttachmentResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_request_response.go index 317c5d8a7..6ca44c977 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetVolumeBackupRequest wrapper for the GetVolumeBackup operation type GetVolumeBackupRequest struct { - - // The OCID of the volume backup. - VolumeBackupId *string `mandatory:"true" contributesTo:"path" name:"volumeBackupId"` + + // The OCID of the volume backup. + VolumeBackupId *string `mandatory:"true" contributesTo:"path" name:"volumeBackupId"` } func (request GetVolumeBackupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetVolumeBackupResponse wrapper for the GetVolumeBackup operation type GetVolumeBackupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The VolumeBackup instance - VolumeBackup `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The VolumeBackup instance + VolumeBackup `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetVolumeBackupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_request_response.go index 647c28586..57e71a0f2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetVolumeRequest wrapper for the GetVolume operation type GetVolumeRequest struct { - - // The OCID of the volume. - VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` + + // The OCID of the volume. + VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` } func (request GetVolumeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetVolumeResponse wrapper for the GetVolume operation type GetVolumeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Volume instance - Volume `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Volume instance + Volume `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetVolumeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_windows_instance_initial_credentials_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_windows_instance_initial_credentials_request_response.go index 6690e3632..98d138e2b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_windows_instance_initial_credentials_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_windows_instance_initial_credentials_request_response.go @@ -1,42 +1,38 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetWindowsInstanceInitialCredentialsRequest wrapper for the GetWindowsInstanceInitialCredentials operation type GetWindowsInstanceInitialCredentialsRequest struct { - - // The OCID of the instance. - InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // The OCID of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` } func (request GetWindowsInstanceInitialCredentialsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetWindowsInstanceInitialCredentialsResponse wrapper for the GetWindowsInstanceInitialCredentials operation type GetWindowsInstanceInitialCredentialsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The InstanceCredentials instance - InstanceCredentials `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The InstanceCredentials instance + InstanceCredentials `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetWindowsInstanceInitialCredentialsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/i_scsi_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/i_scsi_volume_attachment.go index fa213dd36..107ab34f3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/i_scsi_volume_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/i_scsi_volume_attachment.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,114 +9,117 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // IScsiVolumeAttachment An ISCSI volume attachment. +// IScsiVolumeAttachment An ISCSI volume attachment. type IScsiVolumeAttachment struct { - - // The Availability Domain of an instance. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the volume attachment. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the instance the volume is attached to. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The date and time the volume was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the volume. - VolumeId *string `mandatory:"true" json:"volumeId"` - - // The volume's iSCSI IP address. - // Example: `169.254.0.2` - Ipv4 *string `mandatory:"true" json:"ipv4"` - - // The target volume's iSCSI Qualified Name in the format defined by RFC 3720. - // Example: `iqn.2015-12.us.oracle.com:456b0391-17b8-4122-bbf1-f85fc0bb97d9` - Iqn *string `mandatory:"true" json:"iqn"` - - // The volume's iSCSI port. - // Example: `3260` - Port *int `mandatory:"true" json:"port"` - - // A user-friendly name. Does not have to be unique, and it cannot be changed. - // Avoid entering confidential information. - // Example: `My volume attachment` - DisplayName *string `mandatory:"false" json:"displayName"` - - // The Challenge-Handshake-Authentication-Protocol (CHAP) secret valid for the associated CHAP user name. - // (Also called the "CHAP password".) - // Example: `d6866c0d-298b-48ba-95af-309b4faux45e` - ChapSecret *string `mandatory:"false" json:"chapSecret"` - - // The volume's system-generated Challenge-Handshake-Authentication-Protocol (CHAP) user name. - // Example: `ocid1.volume.oc1.phx.abyhqljrgvttnlx73nmrwfaux7kcvzfs3s66izvxf2h4lgvyndsdsnoiwr5q` - ChapUsername *string `mandatory:"false" json:"chapUsername"` - - // The current state of the volume attachment. - LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The Availability Domain of an instance. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the volume attachment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the instance the volume is attached to. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The date and time the volume was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the volume. + VolumeId *string `mandatory:"true" json:"volumeId"` + + // The volume's iSCSI IP address. + // Example: `169.254.0.2` + Ipv4 *string `mandatory:"true" json:"ipv4"` + + // The target volume's iSCSI Qualified Name in the format defined by RFC 3720. + // Example: `iqn.2015-12.us.oracle.com:456b0391-17b8-4122-bbf1-f85fc0bb97d9` + Iqn *string `mandatory:"true" json:"iqn"` + + // The volume's iSCSI port. + // Example: `3260` + Port *int `mandatory:"true" json:"port"` + + // A user-friendly name. Does not have to be unique, and it cannot be changed. + // Avoid entering confidential information. + // Example: `My volume attachment` + DisplayName *string `mandatory:"false" json:"displayName"` + + // The Challenge-Handshake-Authentication-Protocol (CHAP) secret valid for the associated CHAP user name. + // (Also called the "CHAP password".) + // Example: `d6866c0d-298b-48ba-95af-309b4faux45e` + ChapSecret *string `mandatory:"false" json:"chapSecret"` + + // The volume's system-generated Challenge-Handshake-Authentication-Protocol (CHAP) user name. + // Example: `ocid1.volume.oc1.phx.abyhqljrgvttnlx73nmrwfaux7kcvzfs3s66izvxf2h4lgvyndsdsnoiwr5q` + ChapUsername *string `mandatory:"false" json:"chapUsername"` + + // The current state of the volume attachment. + LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` } - //GetAvailabilityDomain returns AvailabilityDomain - func (m IScsiVolumeAttachment) GetAvailabilityDomain() *string { - return m.AvailabilityDomain - } - //GetCompartmentId returns CompartmentId - func (m IScsiVolumeAttachment) GetCompartmentId() *string { - return m.CompartmentId - } - //GetDisplayName returns DisplayName - func (m IScsiVolumeAttachment) GetDisplayName() *string { - return m.DisplayName - } - //GetId returns Id - func (m IScsiVolumeAttachment) GetId() *string { - return m.Id - } - //GetInstanceId returns InstanceId - func (m IScsiVolumeAttachment) GetInstanceId() *string { - return m.InstanceId - } - //GetLifecycleState returns LifecycleState - func (m IScsiVolumeAttachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { - return m.LifecycleState - } - //GetTimeCreated returns TimeCreated - func (m IScsiVolumeAttachment) GetTimeCreated() *common.SDKTime { - return m.TimeCreated - } - //GetVolumeId returns VolumeId - func (m IScsiVolumeAttachment) GetVolumeId() *string { - return m.VolumeId - } -func (m IScsiVolumeAttachment) String() string { - return common.PointerString(m) +//GetAvailabilityDomain returns AvailabilityDomain +func (m IScsiVolumeAttachment) GetAvailabilityDomain() *string { + return m.AvailabilityDomain } -// MarshalJSON marshals to json representation -func (m IScsiVolumeAttachment) MarshalJSON() (buff []byte, e error) { - type MarshalTypeIScsiVolumeAttachment IScsiVolumeAttachment - s := struct { - DiscriminatorParam string `json:"attachmentType"` - MarshalTypeIScsiVolumeAttachment - }{ - "iscsi", - (MarshalTypeIScsiVolumeAttachment)(m), - } - - return json.Marshal(&s) +//GetCompartmentId returns CompartmentId +func (m IScsiVolumeAttachment) GetCompartmentId() *string { + return m.CompartmentId } +//GetDisplayName returns DisplayName +func (m IScsiVolumeAttachment) GetDisplayName() *string { + return m.DisplayName +} + +//GetId returns Id +func (m IScsiVolumeAttachment) GetId() *string { + return m.Id +} + +//GetInstanceId returns InstanceId +func (m IScsiVolumeAttachment) GetInstanceId() *string { + return m.InstanceId +} + +//GetLifecycleState returns LifecycleState +func (m IScsiVolumeAttachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { + return m.LifecycleState +} + +//GetTimeCreated returns TimeCreated +func (m IScsiVolumeAttachment) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +//GetVolumeId returns VolumeId +func (m IScsiVolumeAttachment) GetVolumeId() *string { + return m.VolumeId +} +func (m IScsiVolumeAttachment) String() string { + return common.PointerString(m) +} +// MarshalJSON marshals to json representation +func (m IScsiVolumeAttachment) MarshalJSON() (buff []byte, e error) { + type MarshalTypeIScsiVolumeAttachment IScsiVolumeAttachment + s := struct { + DiscriminatorParam string `json:"attachmentType"` + MarshalTypeIScsiVolumeAttachment + }{ + "iscsi", + (MarshalTypeIScsiVolumeAttachment)(m), + } + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/icmp_options.go b/vendor/github.com/oracle/oci-go-sdk/core/icmp_options.go index afc4368f7..79b841e78 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/icmp_options.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/icmp_options.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,32 +9,25 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // IcmpOptions Optional object to specify a particular ICMP type and code. If you specify ICMP as the protocol - // but do not provide this object, then all ICMP types and codes are allowed. If you do provide - // this object, the type is required and the code is optional. - // See [ICMP Parameters](http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml) - // for allowed values. To enable MTU negotiation for ingress internet traffic, make sure to allow - // type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). - // If you need to specify multiple codes for a single type, create a separate security list rule for each. +// IcmpOptions Optional object to specify a particular ICMP type and code. If you specify ICMP as the protocol +// but do not provide this object, then all ICMP types and codes are allowed. If you do provide +// this object, the type is required and the code is optional. +// See ICMP Parameters (http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml) +// for allowed values. To enable MTU negotiation for ingress internet traffic, make sure to allow +// type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). +// If you need to specify multiple codes for a single type, create a separate security list rule for each. type IcmpOptions struct { - - // The ICMP type. - Type *int `mandatory:"true" json:"type"` - - // The ICMP code (optional). - Code *int `mandatory:"false" json:"code"` + + // The ICMP type. + Type *int `mandatory:"true" json:"type"` + + // The ICMP code (optional). + Code *int `mandatory:"false" json:"code"` } func (m IcmpOptions) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/image.go b/vendor/github.com/oracle/oci-go-sdk/core/image.go index 5980cc249..250a1af1c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/image.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/image.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,92 +9,82 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Image A boot disk image for launching an instance. For more information, see - // [Overview of the Compute Service]({{DOC_SERVER_URL}}/Content/Compute/Concepts/computeoverview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Image A boot disk image for launching an instance. For more information, see +// Overview of the Compute Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Concepts/computeoverview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Image struct { - - // The OCID of the compartment containing the instance you want to use as the basis for the image. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Whether instances launched with this image can be used to create new images. - // For example, you cannot create an image of an Oracle Database instance. - // Example: `true` - CreateImageAllowed *bool `mandatory:"true" json:"createImageAllowed"` - - // The OCID of the image. - Id *string `mandatory:"true" json:"id"` - - LifecycleState ImageLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The image's operating system. - // Example: `Oracle Linux` - OperatingSystem *string `mandatory:"true" json:"operatingSystem"` - - // The image's operating system version. - // Example: `7.2` - OperatingSystemVersion *string `mandatory:"true" json:"operatingSystemVersion"` - - // The date and time the image was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the image originally used to launch the instance. - BaseImageId *string `mandatory:"false" json:"baseImageId"` - - // A user-friendly name for the image. It does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // You cannot use an Oracle-provided image name as a custom image name. - // Example: `My custom Oracle Linux image` - DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the compartment containing the instance you want to use as the basis for the image. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Whether instances launched with this image can be used to create new images. + // For example, you cannot create an image of an Oracle Database instance. + // Example: `true` + CreateImageAllowed *bool `mandatory:"true" json:"createImageAllowed"` + + // The OCID of the image. + Id *string `mandatory:"true" json:"id"` + + LifecycleState ImageLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The image's operating system. + // Example: `Oracle Linux` + OperatingSystem *string `mandatory:"true" json:"operatingSystem"` + + // The image's operating system version. + // Example: `7.2` + OperatingSystemVersion *string `mandatory:"true" json:"operatingSystemVersion"` + + // The date and time the image was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the image originally used to launch the instance. + BaseImageId *string `mandatory:"false" json:"baseImageId"` + + // A user-friendly name for the image. It does not have to be unique, and it's changeable. + // Avoid entering confidential information. + // You cannot use an Oracle-provided image name as a custom image name. + // Example: `My custom Oracle Linux image` + DisplayName *string `mandatory:"false" json:"displayName"` } func (m Image) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // ImageLifecycleStateEnum Enum with underlying type: string type ImageLifecycleStateEnum string // Set of constants representing the allowable values for ImageLifecycleState const ( - ImageLifecycleStateProvisioning ImageLifecycleStateEnum = "PROVISIONING" - ImageLifecycleStateImporting ImageLifecycleStateEnum = "IMPORTING" - ImageLifecycleStateAvailable ImageLifecycleStateEnum = "AVAILABLE" - ImageLifecycleStateExporting ImageLifecycleStateEnum = "EXPORTING" - ImageLifecycleStateDisabled ImageLifecycleStateEnum = "DISABLED" - ImageLifecycleStateDeleted ImageLifecycleStateEnum = "DELETED" - ImageLifecycleStateUnknown ImageLifecycleStateEnum = "UNKNOWN" + ImageLifecycleStateProvisioning ImageLifecycleStateEnum = "PROVISIONING" + ImageLifecycleStateImporting ImageLifecycleStateEnum = "IMPORTING" + ImageLifecycleStateAvailable ImageLifecycleStateEnum = "AVAILABLE" + ImageLifecycleStateExporting ImageLifecycleStateEnum = "EXPORTING" + ImageLifecycleStateDisabled ImageLifecycleStateEnum = "DISABLED" + ImageLifecycleStateDeleted ImageLifecycleStateEnum = "DELETED" ) -var mappingImageLifecycleState = map[string]ImageLifecycleStateEnum { - "PROVISIONING": ImageLifecycleStateProvisioning, - "IMPORTING": ImageLifecycleStateImporting, - "AVAILABLE": ImageLifecycleStateAvailable, - "EXPORTING": ImageLifecycleStateExporting, - "DISABLED": ImageLifecycleStateDisabled, - "DELETED": ImageLifecycleStateDeleted, - "UNKNOWN": ImageLifecycleStateUnknown, +var mappingImageLifecycleState = map[string]ImageLifecycleStateEnum{ + "PROVISIONING": ImageLifecycleStateProvisioning, + "IMPORTING": ImageLifecycleStateImporting, + "AVAILABLE": ImageLifecycleStateAvailable, + "EXPORTING": ImageLifecycleStateExporting, + "DISABLED": ImageLifecycleStateDisabled, + "DELETED": ImageLifecycleStateDeleted, } // GetImageLifecycleStateEnumValues Enumerates the set of values for ImageLifecycleState func GetImageLifecycleStateEnumValues() []ImageLifecycleStateEnum { - values := make([]ImageLifecycleStateEnum, 0) - for _, v := range mappingImageLifecycleState { - if v != ImageLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]ImageLifecycleStateEnum, 0) + for _, v := range mappingImageLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/image_shape_compatibility_entry.go b/vendor/github.com/oracle/oci-go-sdk/core/image_shape_compatibility_entry.go deleted file mode 100644 index 1f68eb66d..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/core/image_shape_compatibility_entry.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// APIs for Networking Service, Compute Service, and Block Volume Service. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // ImageShapeCompatibilityEntry An image and shape that are compatible. -type ImageShapeCompatibilityEntry struct { - - // The image OCID. - ImageId *string `mandatory:"true" json:"imageId"` - - // The shape name. - Shape *string `mandatory:"true" json:"shape"` -} - -func (m ImageShapeCompatibilityEntry) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/image_source_details.go b/vendor/github.com/oracle/oci-go-sdk/core/image_source_details.go index d640c7001..ae8d32acb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/image_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/image_source_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,60 +9,52 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // ImageSourceDetails The representation of ImageSourceDetails +// ImageSourceDetails The representation of ImageSourceDetails type ImageSourceDetails interface { } type imagesourcedetails struct { - JsonData []byte - SourceType string `json:"sourceType"` + JsonData []byte + SourceType string `json:"sourceType"` } - // UnmarshalJSON unmarshals json func (m *imagesourcedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerimagesourcedetails imagesourcedetails - s := struct { - Model Unmarshalerimagesourcedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.SourceType = s.Model.SourceType - - return err + m.JsonData = data + type Unmarshalerimagesourcedetails imagesourcedetails + s := struct { + Model Unmarshalerimagesourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.SourceType = s.Model.SourceType + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *imagesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.SourceType) { - case "objectStorageTuple": - mm := ImageSourceViaObjectStorageTupleDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "objectStorageUri": - mm := ImageSourceViaObjectStorageUriDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.SourceType { + case "objectStorageTuple": + mm := ImageSourceViaObjectStorageTupleDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "objectStorageUri": + mm := ImageSourceViaObjectStorageUriDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } } - func (m imagesourcedetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/image_source_via_object_storage_tuple_details.go b/vendor/github.com/oracle/oci-go-sdk/core/image_source_via_object_storage_tuple_details.go index d52117b7b..61eddb488 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/image_source_via_object_storage_tuple_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/image_source_via_object_storage_tuple_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,42 +9,37 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // ImageSourceViaObjectStorageTupleDetails The representation of ImageSourceViaObjectStorageTupleDetails +// ImageSourceViaObjectStorageTupleDetails The representation of ImageSourceViaObjectStorageTupleDetails type ImageSourceViaObjectStorageTupleDetails struct { - - // The Object Storage bucket for the image. - BucketName *string `mandatory:"true" json:"bucketName"` - - // The Object Storage namespace for the image. - NamespaceName *string `mandatory:"true" json:"namespaceName"` - - // The Object Storage name for the image. - ObjectName *string `mandatory:"true" json:"objectName"` + + // The Object Storage bucket for the image. + BucketName *string `mandatory:"true" json:"bucketName"` + + // The Object Storage namespace for the image. + NamespaceName *string `mandatory:"true" json:"namespaceName"` + + // The Object Storage name for the image. + ObjectName *string `mandatory:"true" json:"objectName"` } func (m ImageSourceViaObjectStorageTupleDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m ImageSourceViaObjectStorageTupleDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeImageSourceViaObjectStorageTupleDetails ImageSourceViaObjectStorageTupleDetails - s := struct { - DiscriminatorParam string `json:"sourceType"` - MarshalTypeImageSourceViaObjectStorageTupleDetails - }{ - "objectStorageTuple", - (MarshalTypeImageSourceViaObjectStorageTupleDetails)(m), - } - - return json.Marshal(&s) + type MarshalTypeImageSourceViaObjectStorageTupleDetails ImageSourceViaObjectStorageTupleDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeImageSourceViaObjectStorageTupleDetails + }{ + "objectStorageTuple", + (MarshalTypeImageSourceViaObjectStorageTupleDetails)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/image_source_via_object_storage_uri_details.go b/vendor/github.com/oracle/oci-go-sdk/core/image_source_via_object_storage_uri_details.go index 6193510d5..e65376d4d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/image_source_via_object_storage_uri_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/image_source_via_object_storage_uri_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,36 +9,31 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // ImageSourceViaObjectStorageUriDetails The representation of ImageSourceViaObjectStorageUriDetails +// ImageSourceViaObjectStorageUriDetails The representation of ImageSourceViaObjectStorageUriDetails type ImageSourceViaObjectStorageUriDetails struct { - - // The Object Storage URL for the image. - SourceUri *string `mandatory:"true" json:"sourceUri"` + + // The Object Storage URL for the image. + SourceUri *string `mandatory:"true" json:"sourceUri"` } func (m ImageSourceViaObjectStorageUriDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m ImageSourceViaObjectStorageUriDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeImageSourceViaObjectStorageUriDetails ImageSourceViaObjectStorageUriDetails - s := struct { - DiscriminatorParam string `json:"sourceType"` - MarshalTypeImageSourceViaObjectStorageUriDetails - }{ - "objectStorageUri", - (MarshalTypeImageSourceViaObjectStorageUriDetails)(m), - } - - return json.Marshal(&s) + type MarshalTypeImageSourceViaObjectStorageUriDetails ImageSourceViaObjectStorageUriDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeImageSourceViaObjectStorageUriDetails + }{ + "objectStorageUri", + (MarshalTypeImageSourceViaObjectStorageUriDetails)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/ingress_security_rule.go b/vendor/github.com/oracle/oci-go-sdk/core/ingress_security_rule.go index f67c148bf..fbd7d7561 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/ingress_security_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/ingress_security_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,55 +9,48 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // IngressSecurityRule A rule for allowing inbound IP packets. +// IngressSecurityRule A rule for allowing inbound IP packets. type IngressSecurityRule struct { - - // The transport protocol. Specify either `all` or an IPv4 protocol number as - // defined in - // [Protocol Numbers](http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). - // Options are supported only for ICMP ("1"), TCP ("6"), and UDP ("17"). - Protocol *string `mandatory:"true" json:"protocol"` - - // The source CIDR block for the ingress rule. This is the range of IP addresses that a - // packet coming into the instance can come from. - Source *string `mandatory:"true" json:"source"` - - // Optional and valid only for ICMP. Use to specify a particular ICMP type and code - // as defined in - // [ICMP Parameters](http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml). - // If you specify ICMP as the protocol but omit this object, then all ICMP types and - // codes are allowed. If you do provide this object, the type is required and the code is optional. - // To enable MTU negotiation for ingress internet traffic, make sure to allow type 3 ("Destination - // Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify - // multiple codes for a single type, create a separate security list rule for each. - IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` - - // A stateless rule allows traffic in one direction. Remember to add a corresponding - // stateless rule in the other direction if you need to support bidirectional traffic. For - // example, if ingress traffic allows TCP destination port 80, there should be an egress - // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful - // and a corresponding rule is not necessary for bidirectional traffic. - IsStateless *bool `mandatory:"false" json:"isStateless"` - - // Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. - // If you specify TCP as the protocol but omit this object, then all destination ports are allowed. - TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` - - // Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. - // If you specify UDP as the protocol but omit this object, then all destination ports are allowed. - UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` + + // The transport protocol. Specify either `all` or an IPv4 protocol number as + // defined in + // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + // Options are supported only for ICMP ("1"), TCP ("6"), and UDP ("17"). + Protocol *string `mandatory:"true" json:"protocol"` + + // The source CIDR block for the ingress rule. This is the range of IP addresses that a + // packet coming into the instance can come from. + Source *string `mandatory:"true" json:"source"` + + // Optional and valid only for ICMP. Use to specify a particular ICMP type and code + // as defined in + // ICMP Parameters (http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml). + // If you specify ICMP as the protocol but omit this object, then all ICMP types and + // codes are allowed. If you do provide this object, the type is required and the code is optional. + // To enable MTU negotiation for ingress internet traffic, make sure to allow type 3 ("Destination + // Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify + // multiple codes for a single type, create a separate security list rule for each. + IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` + + // A stateless rule allows traffic in one direction. Remember to add a corresponding + // stateless rule in the other direction if you need to support bidirectional traffic. For + // example, if ingress traffic allows TCP destination port 80, there should be an egress + // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful + // and a corresponding rule is not necessary for bidirectional traffic. + IsStateless *bool `mandatory:"false" json:"isStateless"` + + // Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. + // If you specify TCP as the protocol but omit this object, then all destination ports are allowed. + TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` + + // Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. + // If you specify UDP as the protocol but omit this object, then all destination ports are allowed. + UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` } func (m IngressSecurityRule) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/instance.go b/vendor/github.com/oracle/oci-go-sdk/core/instance.go index b9bb0a57b..afad7986f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/instance.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/instance.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,171 +9,162 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - - // Instance A compute host. The image used to launch the instance determines its operating system and other - // software. The shape specified during the launch process determines the number of CPUs and memory - // allocated to the instance. For more information, see - // [Overview of the Compute Service]({{DOC_SERVER_URL}}/Content/Compute/Concepts/computeoverview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Instance A compute host. The image used to launch the instance determines its operating system and other +// software. The shape specified during the launch process determines the number of CPUs and memory +// allocated to the instance. For more information, see +// Overview of the Compute Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Concepts/computeoverview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Instance struct { - - // The Availability Domain the instance is running in. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the instance. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the instance. - Id *string `mandatory:"true" json:"id"` - - // The current state of the instance. - LifecycleState InstanceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The region that contains the Availability Domain the instance is running in. - // Example: `phx` - Region *string `mandatory:"true" json:"region"` - - // The shape of the instance. The shape determines the number of CPUs and the amount of memory - // allocated to the instance. You can enumerate all available shapes by calling - // ListShapes. - Shape *string `mandatory:"true" json:"shape"` - - // The date and time the instance was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My bare metal instance` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Additional metadata key/value pairs that you provide. They serve a similar purpose and functionality from fields in the 'metadata' object. - // They are distinguished from 'metadata' fields in that these can be nested JSON objects (whereas 'metadata' fields are string/string maps only). - // If you don't need nested metadata values, it is strongly advised to avoid using this object and use the Metadata object instead. - ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` - - // Deprecated. Use `sourceDetails` instead. - ImageId *string `mandatory:"false" json:"imageId"` - - // When a bare metal or virtual machine - // instance boots, the iPXE firmware that runs on the instance is - // configured to run an iPXE script to continue the boot process. - // If you want more control over the boot process, you can provide - // your own custom iPXE script that will run when the instance boots; - // however, you should be aware that the same iPXE script will run - // every time an instance boots; not only after the initial - // LaunchInstance call. - // The default iPXE script connects to the instance's local boot - // volume over iSCSI and performs a network boot. If you use a custom iPXE - // script and want to network-boot from the instance's local boot volume - // over iSCSI the same way as the default iPXE script, you should use the - // following iSCSI IP address: 169.254.0.2, and boot volume IQN: - // iqn.2015-02.oracle.boot. - // For more information about the Bring Your Own Image feature of - // Oracle Cloud Infrastructure, see - // [Bring Your Own Image]({{DOC_SERVER_URL}}/Content/Compute/References/bringyourownimage.htm). - // For more information about iPXE, see http://ipxe.org. - IpxeScript *string `mandatory:"false" json:"ipxeScript"` - - // Custom metadata that you provide. - Metadata map[string]string `mandatory:"false" json:"metadata"` - - // Details for creating an instance - SourceDetails InstanceSourceDetails `mandatory:"false" json:"sourceDetails"` + + // The Availability Domain the instance is running in. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the instance. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the instance. + Id *string `mandatory:"true" json:"id"` + + // The current state of the instance. + LifecycleState InstanceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The region that contains the Availability Domain the instance is running in. + // Example: `phx` + Region *string `mandatory:"true" json:"region"` + + // The shape of the instance. The shape determines the number of CPUs and the amount of memory + // allocated to the instance. You can enumerate all available shapes by calling + // ListShapes. + Shape *string `mandatory:"true" json:"shape"` + + // The date and time the instance was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + // Example: `My bare metal instance` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Additional metadata key/value pairs that you provide. They serve a similar purpose and functionality from fields in the 'metadata' object. + // They are distinguished from 'metadata' fields in that these can be nested JSON objects (whereas 'metadata' fields are string/string maps only). + // If you don't need nested metadata values, it is strongly advised to avoid using this object and use the Metadata object instead. + ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` + + // Deprecated. Use `sourceDetails` instead. + ImageId *string `mandatory:"false" json:"imageId"` + + // When a bare metal or virtual machine + // instance boots, the iPXE firmware that runs on the instance is + // configured to run an iPXE script to continue the boot process. + // If you want more control over the boot process, you can provide + // your own custom iPXE script that will run when the instance boots; + // however, you should be aware that the same iPXE script will run + // every time an instance boots; not only after the initial + // LaunchInstance call. + // The default iPXE script connects to the instance's local boot + // volume over iSCSI and performs a network boot. If you use a custom iPXE + // script and want to network-boot from the instance's local boot volume + // over iSCSI the same way as the default iPXE script, you should use the + // following iSCSI IP address: 169.254.0.2, and boot volume IQN: + // iqn.2015-02.oracle.boot. + // For more information about the Bring Your Own Image feature of + // Oracle Cloud Infrastructure, see + // Bring Your Own Image (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/bringyourownimage.htm). + // For more information about iPXE, see http://ipxe.org. + IpxeScript *string `mandatory:"false" json:"ipxeScript"` + + // Custom metadata that you provide. + Metadata map[string]string `mandatory:"false" json:"metadata"` + + // Details for creating an instance + SourceDetails InstanceSourceDetails `mandatory:"false" json:"sourceDetails"` } func (m Instance) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // UnmarshalJSON unmarshals from json - func (m *Instance) UnmarshalJSON(data []byte) (e error){ - model := struct{ - DisplayName *string `json:"displayName"` - ExtendedMetadata map[string]interface{} `json:"extendedMetadata"` - ImageId *string `json:"imageId"` - IpxeScript *string `json:"ipxeScript"` - Metadata map[string]string `json:"metadata"` - SourceDetails instancesourcedetails `json:"sourceDetails"` - AvailabilityDomain *string `json:"availabilityDomain"` - CompartmentId *string `json:"compartmentId"` - Id *string `json:"id"` - LifecycleState InstanceLifecycleStateEnum `json:"lifecycleState"` - Region *string `json:"region"` - Shape *string `json:"shape"` - TimeCreated *common.SDKTime `json:"timeCreated"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - m.DisplayName = model.DisplayName - m.ExtendedMetadata = model.ExtendedMetadata - m.ImageId = model.ImageId - m.IpxeScript = model.IpxeScript - m.Metadata = model.Metadata - nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) - if e != nil { - return - } - m.SourceDetails = nn - m.AvailabilityDomain = model.AvailabilityDomain - m.CompartmentId = model.CompartmentId - m.Id = model.Id - m.LifecycleState = model.LifecycleState - m.Region = model.Region - m.Shape = model.Shape - m.TimeCreated = model.TimeCreated - return - } +// UnmarshalJSON unmarshals from json +func (m *Instance) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + ExtendedMetadata map[string]interface{} `json:"extendedMetadata"` + ImageId *string `json:"imageId"` + IpxeScript *string `json:"ipxeScript"` + Metadata map[string]string `json:"metadata"` + SourceDetails instancesourcedetails `json:"sourceDetails"` + AvailabilityDomain *string `json:"availabilityDomain"` + CompartmentId *string `json:"compartmentId"` + Id *string `json:"id"` + LifecycleState InstanceLifecycleStateEnum `json:"lifecycleState"` + Region *string `json:"region"` + Shape *string `json:"shape"` + TimeCreated *common.SDKTime `json:"timeCreated"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + m.DisplayName = model.DisplayName + m.ExtendedMetadata = model.ExtendedMetadata + m.ImageId = model.ImageId + m.IpxeScript = model.IpxeScript + m.Metadata = model.Metadata + nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + m.SourceDetails = nn + m.AvailabilityDomain = model.AvailabilityDomain + m.CompartmentId = model.CompartmentId + m.Id = model.Id + m.LifecycleState = model.LifecycleState + m.Region = model.Region + m.Shape = model.Shape + m.TimeCreated = model.TimeCreated + return +} // InstanceLifecycleStateEnum Enum with underlying type: string type InstanceLifecycleStateEnum string // Set of constants representing the allowable values for InstanceLifecycleState const ( - InstanceLifecycleStateProvisioning InstanceLifecycleStateEnum = "PROVISIONING" - InstanceLifecycleStateRunning InstanceLifecycleStateEnum = "RUNNING" - InstanceLifecycleStateStarting InstanceLifecycleStateEnum = "STARTING" - InstanceLifecycleStateStopping InstanceLifecycleStateEnum = "STOPPING" - InstanceLifecycleStateStopped InstanceLifecycleStateEnum = "STOPPED" - InstanceLifecycleStateCreatingImage InstanceLifecycleStateEnum = "CREATING_IMAGE" - InstanceLifecycleStateTerminating InstanceLifecycleStateEnum = "TERMINATING" - InstanceLifecycleStateTerminated InstanceLifecycleStateEnum = "TERMINATED" - InstanceLifecycleStateUnknown InstanceLifecycleStateEnum = "UNKNOWN" + InstanceLifecycleStateProvisioning InstanceLifecycleStateEnum = "PROVISIONING" + InstanceLifecycleStateRunning InstanceLifecycleStateEnum = "RUNNING" + InstanceLifecycleStateStarting InstanceLifecycleStateEnum = "STARTING" + InstanceLifecycleStateStopping InstanceLifecycleStateEnum = "STOPPING" + InstanceLifecycleStateStopped InstanceLifecycleStateEnum = "STOPPED" + InstanceLifecycleStateCreatingImage InstanceLifecycleStateEnum = "CREATING_IMAGE" + InstanceLifecycleStateTerminating InstanceLifecycleStateEnum = "TERMINATING" + InstanceLifecycleStateTerminated InstanceLifecycleStateEnum = "TERMINATED" ) -var mappingInstanceLifecycleState = map[string]InstanceLifecycleStateEnum { - "PROVISIONING": InstanceLifecycleStateProvisioning, - "RUNNING": InstanceLifecycleStateRunning, - "STARTING": InstanceLifecycleStateStarting, - "STOPPING": InstanceLifecycleStateStopping, - "STOPPED": InstanceLifecycleStateStopped, - "CREATING_IMAGE": InstanceLifecycleStateCreatingImage, - "TERMINATING": InstanceLifecycleStateTerminating, - "TERMINATED": InstanceLifecycleStateTerminated, - "UNKNOWN": InstanceLifecycleStateUnknown, +var mappingInstanceLifecycleState = map[string]InstanceLifecycleStateEnum{ + "PROVISIONING": InstanceLifecycleStateProvisioning, + "RUNNING": InstanceLifecycleStateRunning, + "STARTING": InstanceLifecycleStateStarting, + "STOPPING": InstanceLifecycleStateStopping, + "STOPPED": InstanceLifecycleStateStopped, + "CREATING_IMAGE": InstanceLifecycleStateCreatingImage, + "TERMINATING": InstanceLifecycleStateTerminating, + "TERMINATED": InstanceLifecycleStateTerminated, } // GetInstanceLifecycleStateEnumValues Enumerates the set of values for InstanceLifecycleState func GetInstanceLifecycleStateEnumValues() []InstanceLifecycleStateEnum { - values := make([]InstanceLifecycleStateEnum, 0) - for _, v := range mappingInstanceLifecycleState { - if v != InstanceLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]InstanceLifecycleStateEnum, 0) + for _, v := range mappingInstanceLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/instance_action_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/instance_action_request_response.go index 685d3caaa..37faf1966 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/instance_action_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/instance_action_request_response.go @@ -1,61 +1,58 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // InstanceActionRequest wrapper for the InstanceAction operation type InstanceActionRequest struct { - - // The OCID of the instance. - InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` - - // The action to perform on the instance. - Action InstanceActionActionEnum `mandatory:"true" contributesTo:"query" name:"action" omitEmpty:"true"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // The action to perform on the instance. + Action InstanceActionActionEnum `mandatory:"true" contributesTo:"query" name:"action" omitEmpty:"true"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request InstanceActionRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // InstanceActionResponse wrapper for the InstanceAction operation type InstanceActionResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Instance instance - Instance `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Instance instance + Instance `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response InstanceActionResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // InstanceActionActionEnum Enum with underlying type: string @@ -63,29 +60,24 @@ type InstanceActionActionEnum string // Set of constants representing the allowable values for InstanceActionAction const ( - InstanceActionActionStop InstanceActionActionEnum = "STOP" - InstanceActionActionStart InstanceActionActionEnum = "START" - InstanceActionActionSoftreset InstanceActionActionEnum = "SOFTRESET" - InstanceActionActionReset InstanceActionActionEnum = "RESET" - InstanceActionActionUnknown InstanceActionActionEnum = "UNKNOWN" + InstanceActionActionStop InstanceActionActionEnum = "STOP" + InstanceActionActionStart InstanceActionActionEnum = "START" + InstanceActionActionSoftreset InstanceActionActionEnum = "SOFTRESET" + InstanceActionActionReset InstanceActionActionEnum = "RESET" ) -var mappingInstanceActionAction = map[string]InstanceActionActionEnum { - "STOP": InstanceActionActionStop, - "START": InstanceActionActionStart, - "SOFTRESET": InstanceActionActionSoftreset, - "RESET": InstanceActionActionReset, - "UNKNOWN": InstanceActionActionUnknown, +var mappingInstanceActionAction = map[string]InstanceActionActionEnum{ + "STOP": InstanceActionActionStop, + "START": InstanceActionActionStart, + "SOFTRESET": InstanceActionActionSoftreset, + "RESET": InstanceActionActionReset, } // GetInstanceActionActionEnumValues Enumerates the set of values for InstanceActionAction func GetInstanceActionActionEnumValues() []InstanceActionActionEnum { - values := make([]InstanceActionActionEnum, 0) - for _, v := range mappingInstanceActionAction { - if v != InstanceActionActionUnknown { - values = append(values, v) - } - } - return values + values := make([]InstanceActionActionEnum, 0) + for _, v := range mappingInstanceActionAction { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/instance_console_connection.go b/vendor/github.com/oracle/oci-go-sdk/core/instance_console_connection.go index 4a15c54ff..3dd2f61a4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/instance_console_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/instance_console_connection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,77 +9,63 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // InstanceConsoleConnection The `InstanceConsoleConnection` API provides you with console access to virtual machine (VM) instances, - // enabling you to troubleshoot malfunctioning instances remotely. - // For more information about console access, see - // [Accessing the Console]({{DOC_SERVER_URL}}/Content/Compute/References/serialconsole.htm). +// InstanceConsoleConnection The `InstanceConsoleConnection` API provides you with console access to virtual machine (VM) instances, +// enabling you to troubleshoot malfunctioning instances remotely. +// For more information about console access, see +// Accessing the Console (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/serialconsole.htm). type InstanceConsoleConnection struct { - - // The OCID of the compartment to contain the console connection. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The SSH connection string for the console connection. - ConnectionString *string `mandatory:"false" json:"connectionString"` - - // The SSH public key fingerprint for the console connection. - Fingerprint *string `mandatory:"false" json:"fingerprint"` - - // The OCID of the console connection. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the instance the console connection connects to. - InstanceId *string `mandatory:"false" json:"instanceId"` - - // The current state of the console connection. - LifecycleState InstanceConsoleConnectionLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The SSH connection string for the SSH tunnel used to - // connect to the console connection over VNC. - VncConnectionString *string `mandatory:"false" json:"vncConnectionString"` + + // The OCID of the compartment to contain the console connection. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The SSH connection string for the console connection. + ConnectionString *string `mandatory:"false" json:"connectionString"` + + // The SSH public key fingerprint for the console connection. + Fingerprint *string `mandatory:"false" json:"fingerprint"` + + // The OCID of the console connection. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the instance the console connection connects to. + InstanceId *string `mandatory:"false" json:"instanceId"` + + // The current state of the console connection. + LifecycleState InstanceConsoleConnectionLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` } func (m InstanceConsoleConnection) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // InstanceConsoleConnectionLifecycleStateEnum Enum with underlying type: string type InstanceConsoleConnectionLifecycleStateEnum string // Set of constants representing the allowable values for InstanceConsoleConnectionLifecycleState const ( - InstanceConsoleConnectionLifecycleStateActive InstanceConsoleConnectionLifecycleStateEnum = "ACTIVE" - InstanceConsoleConnectionLifecycleStateCreating InstanceConsoleConnectionLifecycleStateEnum = "CREATING" - InstanceConsoleConnectionLifecycleStateDeleted InstanceConsoleConnectionLifecycleStateEnum = "DELETED" - InstanceConsoleConnectionLifecycleStateDeleting InstanceConsoleConnectionLifecycleStateEnum = "DELETING" - InstanceConsoleConnectionLifecycleStateFailed InstanceConsoleConnectionLifecycleStateEnum = "FAILED" - InstanceConsoleConnectionLifecycleStateUnknown InstanceConsoleConnectionLifecycleStateEnum = "UNKNOWN" + InstanceConsoleConnectionLifecycleStateActive InstanceConsoleConnectionLifecycleStateEnum = "ACTIVE" + InstanceConsoleConnectionLifecycleStateCreating InstanceConsoleConnectionLifecycleStateEnum = "CREATING" + InstanceConsoleConnectionLifecycleStateDeleted InstanceConsoleConnectionLifecycleStateEnum = "DELETED" + InstanceConsoleConnectionLifecycleStateDeleting InstanceConsoleConnectionLifecycleStateEnum = "DELETING" + InstanceConsoleConnectionLifecycleStateFailed InstanceConsoleConnectionLifecycleStateEnum = "FAILED" ) -var mappingInstanceConsoleConnectionLifecycleState = map[string]InstanceConsoleConnectionLifecycleStateEnum { - "ACTIVE": InstanceConsoleConnectionLifecycleStateActive, - "CREATING": InstanceConsoleConnectionLifecycleStateCreating, - "DELETED": InstanceConsoleConnectionLifecycleStateDeleted, - "DELETING": InstanceConsoleConnectionLifecycleStateDeleting, - "FAILED": InstanceConsoleConnectionLifecycleStateFailed, - "UNKNOWN": InstanceConsoleConnectionLifecycleStateUnknown, +var mappingInstanceConsoleConnectionLifecycleState = map[string]InstanceConsoleConnectionLifecycleStateEnum{ + "ACTIVE": InstanceConsoleConnectionLifecycleStateActive, + "CREATING": InstanceConsoleConnectionLifecycleStateCreating, + "DELETED": InstanceConsoleConnectionLifecycleStateDeleted, + "DELETING": InstanceConsoleConnectionLifecycleStateDeleting, + "FAILED": InstanceConsoleConnectionLifecycleStateFailed, } // GetInstanceConsoleConnectionLifecycleStateEnumValues Enumerates the set of values for InstanceConsoleConnectionLifecycleState func GetInstanceConsoleConnectionLifecycleStateEnumValues() []InstanceConsoleConnectionLifecycleStateEnum { - values := make([]InstanceConsoleConnectionLifecycleStateEnum, 0) - for _, v := range mappingInstanceConsoleConnectionLifecycleState { - if v != InstanceConsoleConnectionLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]InstanceConsoleConnectionLifecycleStateEnum, 0) + for _, v := range mappingInstanceConsoleConnectionLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/instance_credentials.go b/vendor/github.com/oracle/oci-go-sdk/core/instance_credentials.go index f429ff51a..62f78e935 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/instance_credentials.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/instance_credentials.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,26 +9,19 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // InstanceCredentials The credentials for a particular instance. +// InstanceCredentials The credentials for a particular instance. type InstanceCredentials struct { - - // The password for the username. - Password *string `mandatory:"true" json:"password"` - - // The username. - Username *string `mandatory:"true" json:"username"` + + // The password for the username. + Password *string `mandatory:"true" json:"password"` + + // The username. + Username *string `mandatory:"true" json:"username"` } func (m InstanceCredentials) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/instance_source_details.go b/vendor/github.com/oracle/oci-go-sdk/core/instance_source_details.go index c59e3931f..c9dffbd34 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/instance_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/instance_source_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,60 +9,52 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // InstanceSourceDetails The representation of InstanceSourceDetails +// InstanceSourceDetails The representation of InstanceSourceDetails type InstanceSourceDetails interface { } type instancesourcedetails struct { - JsonData []byte - SourceType string `json:"sourceType"` + JsonData []byte + SourceType string `json:"sourceType"` } - // UnmarshalJSON unmarshals json func (m *instancesourcedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerinstancesourcedetails instancesourcedetails - s := struct { - Model Unmarshalerinstancesourcedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.SourceType = s.Model.SourceType - - return err + m.JsonData = data + type Unmarshalerinstancesourcedetails instancesourcedetails + s := struct { + Model Unmarshalerinstancesourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.SourceType = s.Model.SourceType + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *instancesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.SourceType) { - case "image": - mm := InstanceSourceViaImageDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "bootVolume": - mm := InstanceSourceViaBootVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.SourceType { + case "image": + mm := InstanceSourceViaImageDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "bootVolume": + mm := InstanceSourceViaBootVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } } - func (m instancesourcedetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_boot_volume_details.go index 2c49d442d..9dc4b2326 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_boot_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_boot_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,36 +9,31 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // InstanceSourceViaBootVolumeDetails The representation of InstanceSourceViaBootVolumeDetails +// InstanceSourceViaBootVolumeDetails The representation of InstanceSourceViaBootVolumeDetails type InstanceSourceViaBootVolumeDetails struct { - - // The OCID of the boot volume used to boot the instance. - BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` + + // The OCID of the boot volume used to boot the instance. + BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` } func (m InstanceSourceViaBootVolumeDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m InstanceSourceViaBootVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceSourceViaBootVolumeDetails InstanceSourceViaBootVolumeDetails - s := struct { - DiscriminatorParam string `json:"sourceType"` - MarshalTypeInstanceSourceViaBootVolumeDetails - }{ - "bootVolume", - (MarshalTypeInstanceSourceViaBootVolumeDetails)(m), - } - - return json.Marshal(&s) + type MarshalTypeInstanceSourceViaBootVolumeDetails InstanceSourceViaBootVolumeDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeInstanceSourceViaBootVolumeDetails + }{ + "bootVolume", + (MarshalTypeInstanceSourceViaBootVolumeDetails)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_image_details.go b/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_image_details.go index 3cd0e150e..3327d9ecf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_image_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_image_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,36 +9,31 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // InstanceSourceViaImageDetails The representation of InstanceSourceViaImageDetails +// InstanceSourceViaImageDetails The representation of InstanceSourceViaImageDetails type InstanceSourceViaImageDetails struct { - - // The OCID of the image used to boot the instance. - ImageId *string `mandatory:"true" json:"imageId"` + + // The OCID of the image used to boot the instance. + ImageId *string `mandatory:"true" json:"imageId"` } func (m InstanceSourceViaImageDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m InstanceSourceViaImageDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceSourceViaImageDetails InstanceSourceViaImageDetails - s := struct { - DiscriminatorParam string `json:"sourceType"` - MarshalTypeInstanceSourceViaImageDetails - }{ - "image", - (MarshalTypeInstanceSourceViaImageDetails)(m), - } - - return json.Marshal(&s) + type MarshalTypeInstanceSourceViaImageDetails InstanceSourceViaImageDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeInstanceSourceViaImageDetails + }{ + "image", + (MarshalTypeInstanceSourceViaImageDetails)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/internet_gateway.go b/vendor/github.com/oracle/oci-go-sdk/core/internet_gateway.go index f47b77911..a9b8f1c0b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/internet_gateway.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/internet_gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,79 +9,69 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // InternetGateway Represents a router that connects the edge of a VCN with the Internet. For an example scenario - // that uses an Internet Gateway, see - // [Typical Networking Service Scenarios]({{DOC_SERVER_URL}}/Content/Network/Concepts/overview.htm#scenarios). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// InternetGateway Represents a router that connects the edge of a VCN with the Internet. For an example scenario +// that uses an Internet Gateway, see +// Typical Networking Service Scenarios (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm#scenarios). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type InternetGateway struct { - - // The OCID of the compartment containing the Internet Gateway. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The Internet Gateway's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The Internet Gateway's current state. - LifecycleState InternetGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID of the VCN the Internet Gateway belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Whether the gateway is enabled. When the gateway is disabled, traffic is not - // routed to/from the Internet, regardless of route rules. - IsEnabled *bool `mandatory:"false" json:"isEnabled"` - - // The date and time the Internet Gateway was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the compartment containing the Internet Gateway. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The Internet Gateway's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The Internet Gateway's current state. + LifecycleState InternetGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID of the VCN the Internet Gateway belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Whether the gateway is enabled. When the gateway is disabled, traffic is not + // routed to/from the Internet, regardless of route rules. + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // The date and time the Internet Gateway was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m InternetGateway) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // InternetGatewayLifecycleStateEnum Enum with underlying type: string type InternetGatewayLifecycleStateEnum string // Set of constants representing the allowable values for InternetGatewayLifecycleState const ( - InternetGatewayLifecycleStateProvisioning InternetGatewayLifecycleStateEnum = "PROVISIONING" - InternetGatewayLifecycleStateAvailable InternetGatewayLifecycleStateEnum = "AVAILABLE" - InternetGatewayLifecycleStateTerminating InternetGatewayLifecycleStateEnum = "TERMINATING" - InternetGatewayLifecycleStateTerminated InternetGatewayLifecycleStateEnum = "TERMINATED" - InternetGatewayLifecycleStateUnknown InternetGatewayLifecycleStateEnum = "UNKNOWN" + InternetGatewayLifecycleStateProvisioning InternetGatewayLifecycleStateEnum = "PROVISIONING" + InternetGatewayLifecycleStateAvailable InternetGatewayLifecycleStateEnum = "AVAILABLE" + InternetGatewayLifecycleStateTerminating InternetGatewayLifecycleStateEnum = "TERMINATING" + InternetGatewayLifecycleStateTerminated InternetGatewayLifecycleStateEnum = "TERMINATED" ) -var mappingInternetGatewayLifecycleState = map[string]InternetGatewayLifecycleStateEnum { - "PROVISIONING": InternetGatewayLifecycleStateProvisioning, - "AVAILABLE": InternetGatewayLifecycleStateAvailable, - "TERMINATING": InternetGatewayLifecycleStateTerminating, - "TERMINATED": InternetGatewayLifecycleStateTerminated, - "UNKNOWN": InternetGatewayLifecycleStateUnknown, +var mappingInternetGatewayLifecycleState = map[string]InternetGatewayLifecycleStateEnum{ + "PROVISIONING": InternetGatewayLifecycleStateProvisioning, + "AVAILABLE": InternetGatewayLifecycleStateAvailable, + "TERMINATING": InternetGatewayLifecycleStateTerminating, + "TERMINATED": InternetGatewayLifecycleStateTerminated, } // GetInternetGatewayLifecycleStateEnumValues Enumerates the set of values for InternetGatewayLifecycleState func GetInternetGatewayLifecycleStateEnumValues() []InternetGatewayLifecycleStateEnum { - values := make([]InternetGatewayLifecycleStateEnum, 0) - for _, v := range mappingInternetGatewayLifecycleState { - if v != InternetGatewayLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]InternetGatewayLifecycleStateEnum, 0) + for _, v := range mappingInternetGatewayLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection.go b/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection.go index 2290a6ca3..c57e74559 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,84 +9,74 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // IpSecConnection A connection between a DRG and CPE. This connection consists of multiple IPSec - // tunnels. Creating this connection is one of the steps required when setting up - // an IPSec VPN. For more information, see - // [Overview of the Networking Service]({{DOC_SERVER_URL}}/Content/Network/Concepts/overview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// IpSecConnection A connection between a DRG and CPE. This connection consists of multiple IPSec +// tunnels. Creating this connection is one of the steps required when setting up +// an IPSec VPN. For more information, see +// Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type IpSecConnection struct { - - // The OCID of the compartment containing the IPSec connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the CPE. - CpeId *string `mandatory:"true" json:"cpeId"` - - // The OCID of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // The IPSec connection's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The IPSec connection's current state. - LifecycleState IpSecConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Static routes to the CPE. At least one route must be included. The CIDR must not be a - // multicast address or class E address. - // Example: `10.0.1.0/24` - StaticRoutes []string `mandatory:"true" json:"staticRoutes"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The date and time the IPSec connection was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the compartment containing the IPSec connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the CPE. + CpeId *string `mandatory:"true" json:"cpeId"` + + // The OCID of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // The IPSec connection's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The IPSec connection's current state. + LifecycleState IpSecConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Static routes to the CPE. At least one route must be included. The CIDR must not be a + // multicast address or class E address. + // Example: `10.0.1.0/24` + StaticRoutes []string `mandatory:"true" json:"staticRoutes"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The date and time the IPSec connection was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m IpSecConnection) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // IpSecConnectionLifecycleStateEnum Enum with underlying type: string type IpSecConnectionLifecycleStateEnum string // Set of constants representing the allowable values for IpSecConnectionLifecycleState const ( - IpSecConnectionLifecycleStateProvisioning IpSecConnectionLifecycleStateEnum = "PROVISIONING" - IpSecConnectionLifecycleStateAvailable IpSecConnectionLifecycleStateEnum = "AVAILABLE" - IpSecConnectionLifecycleStateTerminating IpSecConnectionLifecycleStateEnum = "TERMINATING" - IpSecConnectionLifecycleStateTerminated IpSecConnectionLifecycleStateEnum = "TERMINATED" - IpSecConnectionLifecycleStateUnknown IpSecConnectionLifecycleStateEnum = "UNKNOWN" + IpSecConnectionLifecycleStateProvisioning IpSecConnectionLifecycleStateEnum = "PROVISIONING" + IpSecConnectionLifecycleStateAvailable IpSecConnectionLifecycleStateEnum = "AVAILABLE" + IpSecConnectionLifecycleStateTerminating IpSecConnectionLifecycleStateEnum = "TERMINATING" + IpSecConnectionLifecycleStateTerminated IpSecConnectionLifecycleStateEnum = "TERMINATED" ) -var mappingIpSecConnectionLifecycleState = map[string]IpSecConnectionLifecycleStateEnum { - "PROVISIONING": IpSecConnectionLifecycleStateProvisioning, - "AVAILABLE": IpSecConnectionLifecycleStateAvailable, - "TERMINATING": IpSecConnectionLifecycleStateTerminating, - "TERMINATED": IpSecConnectionLifecycleStateTerminated, - "UNKNOWN": IpSecConnectionLifecycleStateUnknown, +var mappingIpSecConnectionLifecycleState = map[string]IpSecConnectionLifecycleStateEnum{ + "PROVISIONING": IpSecConnectionLifecycleStateProvisioning, + "AVAILABLE": IpSecConnectionLifecycleStateAvailable, + "TERMINATING": IpSecConnectionLifecycleStateTerminating, + "TERMINATED": IpSecConnectionLifecycleStateTerminated, } // GetIpSecConnectionLifecycleStateEnumValues Enumerates the set of values for IpSecConnectionLifecycleState func GetIpSecConnectionLifecycleStateEnumValues() []IpSecConnectionLifecycleStateEnum { - values := make([]IpSecConnectionLifecycleStateEnum, 0) - for _, v := range mappingIpSecConnectionLifecycleState { - if v != IpSecConnectionLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]IpSecConnectionLifecycleStateEnum, 0) + for _, v := range mappingIpSecConnectionLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection_device_config.go b/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection_device_config.go index 451cb359e..5572af637 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection_device_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection_device_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,32 +9,25 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // IpSecConnectionDeviceConfig Information about the IPSecConnection device configuration. +// IpSecConnectionDeviceConfig Information about the IPSecConnection device configuration. type IpSecConnectionDeviceConfig struct { - - // The OCID of the compartment containing the IPSec connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The IPSec connection's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The date and time the IPSec connection was created. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Two TunnelConfig objects. - Tunnels []TunnelConfig `mandatory:"false" json:"tunnels"` -} - -func (m IpSecConnectionDeviceConfig) String() string { - return common.PointerString(m) -} + // The OCID of the compartment containing the IPSec connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The IPSec connection's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + // The date and time the IPSec connection was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + // Two TunnelConfig objects. + Tunnels []TunnelConfig `mandatory:"false" json:"tunnels"` +} +func (m IpSecConnectionDeviceConfig) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection_device_status.go b/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection_device_status.go index e4382b6b8..5f5a4d3c9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection_device_status.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection_device_status.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,33 +9,26 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // IpSecConnectionDeviceStatus Status of the IPSec connection. +// IpSecConnectionDeviceStatus Status of the IPSec connection. type IpSecConnectionDeviceStatus struct { - - // The OCID of the compartment containing the IPSec connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The IPSec connection's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The date and time the IPSec connection was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Two TunnelStatus objects. - Tunnels []TunnelStatus `mandatory:"false" json:"tunnels"` -} - -func (m IpSecConnectionDeviceStatus) String() string { - return common.PointerString(m) -} + // The OCID of the compartment containing the IPSec connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The IPSec connection's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + // The date and time the IPSec connection was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + // Two TunnelStatus objects. + Tunnels []TunnelStatus `mandatory:"false" json:"tunnels"` +} +func (m IpSecConnectionDeviceStatus) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_details.go index a7b194eab..c40c778ca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,170 +9,164 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - - // LaunchInstanceDetails Instance launch details. - // Use the sourceDetails parameter to specify whether a boot volume should be used for a new instance launch. +// LaunchInstanceDetails Instance launch details. +// Use the sourceDetails parameter to specify whether a boot volume should be used for a new instance launch. type LaunchInstanceDetails struct { - - // The Availability Domain of the instance. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The shape of an instance. The shape determines the number of CPUs, amount of memory, - // and other resources allocated to the instance. - // You can enumerate all available shapes by calling ListShapes. - Shape *string `mandatory:"true" json:"shape"` - - // Details for the primary VNIC, which is automatically created and attached when - // the instance is launched. - CreateVnicDetails *CreateVnicDetails `mandatory:"false" json:"createVnicDetails"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My bare metal instance` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Additional metadata key/value pairs that you provide. They serve a similar purpose and functionality from fields in the 'metadata' object. - // They are distinguished from 'metadata' fields in that these can be nested JSON objects (whereas 'metadata' fields are string/string maps only). - // If you don't need nested metadata values, it is strongly advised to avoid using this object and use the Metadata object instead. - ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` - - // Deprecated. Instead Use `hostnameLabel` in - // CreateVnicDetails. - // If you provide both, the values must match. - HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - - // Deprecated. Use `sourceDetails` with InstanceSourceViaImageDetails - // source type instead. If you specify values for both, the values must match. - ImageId *string `mandatory:"false" json:"imageId"` - - // This is an advanced option. - // When a bare metal or virtual machine - // instance boots, the iPXE firmware that runs on the instance is - // configured to run an iPXE script to continue the boot process. - // If you want more control over the boot process, you can provide - // your own custom iPXE script that will run when the instance boots; - // however, you should be aware that the same iPXE script will run - // every time an instance boots; not only after the initial - // LaunchInstance call. - // The default iPXE script connects to the instance's local boot - // volume over iSCSI and performs a network boot. If you use a custom iPXE - // script and want to network-boot from the instance's local boot volume - // over iSCSI the same way as the default iPXE script, you should use the - // following iSCSI IP address: 169.254.0.2, and boot volume IQN: - // iqn.2015-02.oracle.boot. - // For more information about the Bring Your Own Image feature of - // Oracle Cloud Infrastructure, see - // [Bring Your Own Image]({{DOC_SERVER_URL}}/Content/Compute/References/bringyourownimage.htm). - // For more information about iPXE, see http://ipxe.org. - IpxeScript *string `mandatory:"false" json:"ipxeScript"` - - // Custom metadata key/value pairs that you provide, such as the SSH public key - // required to connect to the instance. - // A metadata service runs on every launched instance. The service is an HTTP - // endpoint listening on 169.254.169.254. You can use the service to: - // * Provide information to [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) - // to be used for various system initialization tasks. - // * Get information about the instance, including the custom metadata that you - // provide when you launch the instance. - // **Providing Cloud-Init Metadata** - // You can use the following metadata key names to provide information to - // Cloud-Init: - // **"ssh_authorized_keys"** - Provide one or more public SSH keys to be - // included in the `~/.ssh/authorized_keys` file for the default user on the - // instance. Use a newline character to separate multiple keys. The SSH - // keys must be in the format necessary for the `authorized_keys` file, as shown - // in the example below. - // **"user_data"** - Provide your own base64-encoded data to be used by - // Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For - // information about how to take advantage of user data, see the - // [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). - // **Note:** Cloud-Init does not pull this data from the `http://169.254.169.254/opc/v1/instance/metadata/` - // path. When the instance launches and either of these keys are provided, the key values are formatted as - // OpenStack metadata and copied to the following locations, which are recognized by Cloud-Init: - // `http://169.254.169.254/openstack/latest/meta_data.json` - This JSON blob - // contains, among other things, the SSH keys that you provided for - // **"ssh_authorized_keys"**. - // `http://169.254.169.254/openstack/latest/user_data` - Contains the - // base64-decoded data that you provided for **"user_data"**. - // **Metadata Example** - // "metadata" : { - // "quake_bot_level" : "Severe", - // "ssh_authorized_keys" : "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCZ06fccNTQfq+xubFlJ5ZR3kt+uzspdH9tXL+lAejSM1NXM+CFZev7MIxfEjas06y80ZBZ7DUTQO0GxJPeD8NCOb1VorF8M4xuLwrmzRtkoZzU16umt4y1W0Q4ifdp3IiiU0U8/WxczSXcUVZOLqkz5dc6oMHdMVpkimietWzGZ4LBBsH/LjEVY7E0V+a0sNchlVDIZcm7ErReBLcdTGDq0uLBiuChyl6RUkX1PNhusquTGwK7zc8OBXkRuubn5UKXhI3Ul9Nyk4XESkVWIGNKmw8mSpoJSjR8P9ZjRmcZVo8S+x4KVPMZKQEor== ryan.smith@company.com - // ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAzJSAtwEPoB3Jmr58IXrDGzLuDYkWAYg8AsLYlo6JZvKpjY1xednIcfEVQJm4T2DhVmdWhRrwQ8DmayVZvBkLt+zs2LdoAJEVimKwXcJFD/7wtH8Lnk17HiglbbbNXsemjDY0hea4JUE5CfvkIdZBITuMrfqSmA4n3VNoorXYdvtTMoGG8fxMub46RPtuxtqi9bG9Zqenordkg5FJt2mVNfQRqf83CWojcOkklUWq4CjyxaeLf5i9gv1fRoBo4QhiA8I6NCSppO8GnoV/6Ox6TNoh9BiifqGKC9VGYuC89RvUajRBTZSK2TK4DPfaT+2R+slPsFrwiT/oPEhhEK1S5Q== rsa-key-20160227", - // "user_data" : "SWYgeW91IGNhbiBzZWUgdGhpcywgdGhlbiBpdCB3b3JrZWQgbWF5YmUuCg==" - // } - // **Getting Metadata on the Instance** - // To get information about your instance, connect to the instance using SSH and issue any of the - // following GET requests: - // curl http://169.254.169.254/opc/v1/instance/ - // curl http://169.254.169.254/opc/v1/instance/metadata/ - // curl http://169.254.169.254/opc/v1/instance/metadata/ - // You'll get back a response that includes all the instance information; only the metadata information; or - // the metadata information for the specified key name, respectively. - Metadata map[string]string `mandatory:"false" json:"metadata"` - - // Details for creating an instance. - SourceDetails InstanceSourceDetails `mandatory:"false" json:"sourceDetails"` - - // Deprecated. Instead use `subnetId` in - // CreateVnicDetails. - // At least one of them is required; if you provide both, the values must match. - SubnetId *string `mandatory:"false" json:"subnetId"` -} -func (m LaunchInstanceDetails) String() string { - return common.PointerString(m) -} + // The Availability Domain of the instance. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The shape of an instance. The shape determines the number of CPUs, amount of memory, + // and other resources allocated to the instance. + // You can enumerate all available shapes by calling ListShapes. + Shape *string `mandatory:"true" json:"shape"` + + // Details for the primary VNIC, which is automatically created and attached when + // the instance is launched. + CreateVnicDetails *CreateVnicDetails `mandatory:"false" json:"createVnicDetails"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + // Example: `My bare metal instance` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Additional metadata key/value pairs that you provide. They serve a similar purpose and functionality from fields in the 'metadata' object. + // They are distinguished from 'metadata' fields in that these can be nested JSON objects (whereas 'metadata' fields are string/string maps only). + // If you don't need nested metadata values, it is strongly advised to avoid using this object and use the Metadata object instead. + ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` - // UnmarshalJSON unmarshals from json - func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error){ - model := struct{ - CreateVnicDetails *CreateVnicDetails `json:"createVnicDetails"` - DisplayName *string `json:"displayName"` - ExtendedMetadata map[string]interface{} `json:"extendedMetadata"` - HostnameLabel *string `json:"hostnameLabel"` - ImageId *string `json:"imageId"` - IpxeScript *string `json:"ipxeScript"` - Metadata map[string]string `json:"metadata"` - SourceDetails instancesourcedetails `json:"sourceDetails"` - SubnetId *string `json:"subnetId"` - AvailabilityDomain *string `json:"availabilityDomain"` - CompartmentId *string `json:"compartmentId"` - Shape *string `json:"shape"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - m.CreateVnicDetails = model.CreateVnicDetails - m.DisplayName = model.DisplayName - m.ExtendedMetadata = model.ExtendedMetadata - m.HostnameLabel = model.HostnameLabel - m.ImageId = model.ImageId - m.IpxeScript = model.IpxeScript - m.Metadata = model.Metadata - nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) - if e != nil { - return - } - m.SourceDetails = nn - m.SubnetId = model.SubnetId - m.AvailabilityDomain = model.AvailabilityDomain - m.CompartmentId = model.CompartmentId - m.Shape = model.Shape - return - } + // Deprecated. Instead Use `hostnameLabel` in + // CreateVnicDetails. + // If you provide both, the values must match. + HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` + // Deprecated. Use `sourceDetails` with InstanceSourceViaImageDetails + // source type instead. If you specify values for both, the values must match. + ImageId *string `mandatory:"false" json:"imageId"` + // This is an advanced option. + // When a bare metal or virtual machine + // instance boots, the iPXE firmware that runs on the instance is + // configured to run an iPXE script to continue the boot process. + // If you want more control over the boot process, you can provide + // your own custom iPXE script that will run when the instance boots; + // however, you should be aware that the same iPXE script will run + // every time an instance boots; not only after the initial + // LaunchInstance call. + // The default iPXE script connects to the instance's local boot + // volume over iSCSI and performs a network boot. If you use a custom iPXE + // script and want to network-boot from the instance's local boot volume + // over iSCSI the same way as the default iPXE script, you should use the + // following iSCSI IP address: 169.254.0.2, and boot volume IQN: + // iqn.2015-02.oracle.boot. + // For more information about the Bring Your Own Image feature of + // Oracle Cloud Infrastructure, see + // Bring Your Own Image (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/bringyourownimage.htm). + // For more information about iPXE, see http://ipxe.org. + IpxeScript *string `mandatory:"false" json:"ipxeScript"` + // Custom metadata key/value pairs that you provide, such as the SSH public key + // required to connect to the instance. + // A metadata service runs on every launched instance. The service is an HTTP + // endpoint listening on 169.254.169.254. You can use the service to: + // * Provide information to Cloud-Init (https://cloudinit.readthedocs.org/en/latest/) + // to be used for various system initialization tasks. + // * Get information about the instance, including the custom metadata that you + // provide when you launch the instance. + // **Providing Cloud-Init Metadata** + // You can use the following metadata key names to provide information to + // Cloud-Init: + // **"ssh_authorized_keys"** - Provide one or more public SSH keys to be + // included in the `~/.ssh/authorized_keys` file for the default user on the + // instance. Use a newline character to separate multiple keys. The SSH + // keys must be in the format necessary for the `authorized_keys` file, as shown + // in the example below. + // **"user_data"** - Provide your own base64-encoded data to be used by + // Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For + // information about how to take advantage of user data, see the + // Cloud-Init Documentation (http://cloudinit.readthedocs.org/en/latest/topics/format.html). + // **Note:** Cloud-Init does not pull this data from the `http://169.254.169.254/opc/v1/instance/metadata/` + // path. When the instance launches and either of these keys are provided, the key values are formatted as + // OpenStack metadata and copied to the following locations, which are recognized by Cloud-Init: + // `http://169.254.169.254/openstack/latest/meta_data.json` - This JSON blob + // contains, among other things, the SSH keys that you provided for + // **"ssh_authorized_keys"**. + // `http://169.254.169.254/openstack/latest/user_data` - Contains the + // base64-decoded data that you provided for **"user_data"**. + // **Metadata Example** + // "metadata" : { + // "quake_bot_level" : "Severe", + // "ssh_authorized_keys" : "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCZ06fccNTQfq+xubFlJ5ZR3kt+uzspdH9tXL+lAejSM1NXM+CFZev7MIxfEjas06y80ZBZ7DUTQO0GxJPeD8NCOb1VorF8M4xuLwrmzRtkoZzU16umt4y1W0Q4ifdp3IiiU0U8/WxczSXcUVZOLqkz5dc6oMHdMVpkimietWzGZ4LBBsH/LjEVY7E0V+a0sNchlVDIZcm7ErReBLcdTGDq0uLBiuChyl6RUkX1PNhusquTGwK7zc8OBXkRuubn5UKXhI3Ul9Nyk4XESkVWIGNKmw8mSpoJSjR8P9ZjRmcZVo8S+x4KVPMZKQEor== ryan.smith@company.com + // ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAzJSAtwEPoB3Jmr58IXrDGzLuDYkWAYg8AsLYlo6JZvKpjY1xednIcfEVQJm4T2DhVmdWhRrwQ8DmayVZvBkLt+zs2LdoAJEVimKwXcJFD/7wtH8Lnk17HiglbbbNXsemjDY0hea4JUE5CfvkIdZBITuMrfqSmA4n3VNoorXYdvtTMoGG8fxMub46RPtuxtqi9bG9Zqenordkg5FJt2mVNfQRqf83CWojcOkklUWq4CjyxaeLf5i9gv1fRoBo4QhiA8I6NCSppO8GnoV/6Ox6TNoh9BiifqGKC9VGYuC89RvUajRBTZSK2TK4DPfaT+2R+slPsFrwiT/oPEhhEK1S5Q== rsa-key-20160227", + // "user_data" : "SWYgeW91IGNhbiBzZWUgdGhpcywgdGhlbiBpdCB3b3JrZWQgbWF5YmUuCg==" + // } + // **Getting Metadata on the Instance** + // To get information about your instance, connect to the instance using SSH and issue any of the + // following GET requests: + // curl http://169.254.169.254/opc/v1/instance/ + // curl http://169.254.169.254/opc/v1/instance/metadata/ + // curl http://169.254.169.254/opc/v1/instance/metadata/ + // You'll get back a response that includes all the instance information; only the metadata information; or + // the metadata information for the specified key name, respectively. + Metadata map[string]string `mandatory:"false" json:"metadata"` + // Details for creating an instance. + SourceDetails InstanceSourceDetails `mandatory:"false" json:"sourceDetails"` + + // Deprecated. Instead use `subnetId` in + // CreateVnicDetails. + // At least one of them is required; if you provide both, the values must match. + SubnetId *string `mandatory:"false" json:"subnetId"` +} + +func (m LaunchInstanceDetails) String() string { + return common.PointerString(m) +} + +// UnmarshalJSON unmarshals from json +func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + CreateVnicDetails *CreateVnicDetails `json:"createVnicDetails"` + DisplayName *string `json:"displayName"` + ExtendedMetadata map[string]interface{} `json:"extendedMetadata"` + HostnameLabel *string `json:"hostnameLabel"` + ImageId *string `json:"imageId"` + IpxeScript *string `json:"ipxeScript"` + Metadata map[string]string `json:"metadata"` + SourceDetails instancesourcedetails `json:"sourceDetails"` + SubnetId *string `json:"subnetId"` + AvailabilityDomain *string `json:"availabilityDomain"` + CompartmentId *string `json:"compartmentId"` + Shape *string `json:"shape"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + m.CreateVnicDetails = model.CreateVnicDetails + m.DisplayName = model.DisplayName + m.ExtendedMetadata = model.ExtendedMetadata + m.HostnameLabel = model.HostnameLabel + m.ImageId = model.ImageId + m.IpxeScript = model.IpxeScript + m.Metadata = model.Metadata + nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + m.SourceDetails = nn + m.SubnetId = model.SubnetId + m.AvailabilityDomain = model.AvailabilityDomain + m.CompartmentId = model.CompartmentId + m.Shape = model.Shape + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_request_response.go index 10490cbb2..dfccbc48b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_request_response.go @@ -1,55 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // LaunchInstanceRequest wrapper for the LaunchInstance operation type LaunchInstanceRequest struct { - - // Instance details - LaunchInstanceDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // Name of the pool in which to launch an instance. This feature is currently in preview and may change before public release. Do not use it for production workloads. - OpcPoolName *string `mandatory:"false" contributesTo:"query" name:"opc-pool-name"` + + // Instance details + LaunchInstanceDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request LaunchInstanceRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // LaunchInstanceResponse wrapper for the LaunchInstance operation type LaunchInstanceResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Instance instance - Instance `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Instance instance + Instance `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response LaunchInstanceResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/letter_of_authority.go b/vendor/github.com/oracle/oci-go-sdk/core/letter_of_authority.go index 6312343a0..3b24abade 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/letter_of_authority.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/letter_of_authority.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,69 +9,59 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // LetterOfAuthority The Letter of Authority for the cross-connect. You must submit this letter when - // requesting cabling for the cross-connect at the FastConnect location. +// LetterOfAuthority The Letter of Authority for the cross-connect. You must submit this letter when +// requesting cabling for the cross-connect at the FastConnect location. type LetterOfAuthority struct { - - // The name of the entity authorized by this Letter of Authority. - AuthorizedEntityName *string `mandatory:"false" json:"authorizedEntityName"` - - // The type of cross-connect fiber, termination, and optical specification. - CircuitType LetterOfAuthorityCircuitTypeEnum `mandatory:"false" json:"circuitType,omitempty"` - - // The OCID of the cross-connect. - CrossConnectId *string `mandatory:"false" json:"crossConnectId"` - - // The address of the FastConnect location. - FacilityLocation *string `mandatory:"false" json:"facilityLocation"` - - // The meet-me room port for this cross-connect. - PortName *string `mandatory:"false" json:"portName"` - - // The date and time when the Letter of Authority expires, in the format defined by RFC3339. - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The date and time the Letter of Authority was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeIssued *common.SDKTime `mandatory:"false" json:"timeIssued"` + + // The name of the entity authorized by this Letter of Authority. + AuthorizedEntityName *string `mandatory:"false" json:"authorizedEntityName"` + + // The type of cross-connect fiber, termination, and optical specification. + CircuitType LetterOfAuthorityCircuitTypeEnum `mandatory:"false" json:"circuitType,omitempty"` + + // The OCID of the cross-connect. + CrossConnectId *string `mandatory:"false" json:"crossConnectId"` + + // The address of the FastConnect location. + FacilityLocation *string `mandatory:"false" json:"facilityLocation"` + + // The meet-me room port for this cross-connect. + PortName *string `mandatory:"false" json:"portName"` + + // The date and time when the Letter of Authority expires, in the format defined by RFC3339. + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The date and time the Letter of Authority was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeIssued *common.SDKTime `mandatory:"false" json:"timeIssued"` } func (m LetterOfAuthority) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // LetterOfAuthorityCircuitTypeEnum Enum with underlying type: string type LetterOfAuthorityCircuitTypeEnum string // Set of constants representing the allowable values for LetterOfAuthorityCircuitType const ( - LetterOfAuthorityCircuitTypeLc LetterOfAuthorityCircuitTypeEnum = "Single_mode_LC" - LetterOfAuthorityCircuitTypeSc LetterOfAuthorityCircuitTypeEnum = "Single_mode_SC" - LetterOfAuthorityCircuitTypeUnknown LetterOfAuthorityCircuitTypeEnum = "UNKNOWN" + LetterOfAuthorityCircuitTypeLc LetterOfAuthorityCircuitTypeEnum = "Single_mode_LC" + LetterOfAuthorityCircuitTypeSc LetterOfAuthorityCircuitTypeEnum = "Single_mode_SC" ) -var mappingLetterOfAuthorityCircuitType = map[string]LetterOfAuthorityCircuitTypeEnum { - "Single_mode_LC": LetterOfAuthorityCircuitTypeLc, - "Single_mode_SC": LetterOfAuthorityCircuitTypeSc, - "UNKNOWN": LetterOfAuthorityCircuitTypeUnknown, +var mappingLetterOfAuthorityCircuitType = map[string]LetterOfAuthorityCircuitTypeEnum{ + "Single_mode_LC": LetterOfAuthorityCircuitTypeLc, + "Single_mode_SC": LetterOfAuthorityCircuitTypeSc, } // GetLetterOfAuthorityCircuitTypeEnumValues Enumerates the set of values for LetterOfAuthorityCircuitType func GetLetterOfAuthorityCircuitTypeEnumValues() []LetterOfAuthorityCircuitTypeEnum { - values := make([]LetterOfAuthorityCircuitTypeEnum, 0) - for _, v := range mappingLetterOfAuthorityCircuitType { - if v != LetterOfAuthorityCircuitTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]LetterOfAuthorityCircuitTypeEnum, 0) + for _, v := range mappingLetterOfAuthorityCircuitType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_attachments_request_response.go index a374d8167..51669f7e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_attachments_request_response.go @@ -1,64 +1,60 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListBootVolumeAttachmentsRequest wrapper for the ListBootVolumeAttachments operation type ListBootVolumeAttachmentsRequest struct { - - // The name of the Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID of the instance. - InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` - - // The OCID of the boot volume. - BootVolumeId *string `mandatory:"false" contributesTo:"query" name:"bootVolumeId"` + + // The name of the Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the instance. + InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"false" contributesTo:"query" name:"bootVolumeId"` } func (request ListBootVolumeAttachmentsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListBootVolumeAttachmentsResponse wrapper for the ListBootVolumeAttachments operation type ListBootVolumeAttachmentsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []BootVolumeAttachment instance - Items []BootVolumeAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []BootVolumeAttachment instance + Items []BootVolumeAttachment `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListBootVolumeAttachmentsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volumes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volumes_request_response.go index 3ee02ac71..20370d315 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volumes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volumes_request_response.go @@ -1,58 +1,54 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListBootVolumesRequest wrapper for the ListBootVolumes operation type ListBootVolumesRequest struct { - - // The name of the Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The name of the Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListBootVolumesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListBootVolumesResponse wrapper for the ListBootVolumes operation type ListBootVolumesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []BootVolume instance - Items []BootVolume `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []BootVolume instance + Items []BootVolume `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListBootVolumesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_console_histories_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_console_histories_request_response.go index c66f14d27..e47d04333 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_console_histories_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_console_histories_request_response.go @@ -1,78 +1,75 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListConsoleHistoriesRequest wrapper for the ListConsoleHistories operation type ListConsoleHistoriesRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID of the instance. - InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListConsoleHistoriesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListConsoleHistoriesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState ConsoleHistoryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the instance. + InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListConsoleHistoriesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListConsoleHistoriesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState ConsoleHistoryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListConsoleHistoriesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListConsoleHistoriesResponse wrapper for the ListConsoleHistories operation type ListConsoleHistoriesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []ConsoleHistory instance - Items []ConsoleHistory `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []ConsoleHistory instance + Items []ConsoleHistory `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListConsoleHistoriesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListConsoleHistoriesSortByEnum Enum with underlying type: string @@ -80,26 +77,22 @@ type ListConsoleHistoriesSortByEnum string // Set of constants representing the allowable values for ListConsoleHistoriesSortBy const ( - ListConsoleHistoriesSortByTimecreated ListConsoleHistoriesSortByEnum = "TIMECREATED" - ListConsoleHistoriesSortByDisplayname ListConsoleHistoriesSortByEnum = "DISPLAYNAME" - ListConsoleHistoriesSortByUnknown ListConsoleHistoriesSortByEnum = "UNKNOWN" + ListConsoleHistoriesSortByTimecreated ListConsoleHistoriesSortByEnum = "TIMECREATED" + ListConsoleHistoriesSortByDisplayname ListConsoleHistoriesSortByEnum = "DISPLAYNAME" ) -var mappingListConsoleHistoriesSortBy = map[string]ListConsoleHistoriesSortByEnum { - "TIMECREATED": ListConsoleHistoriesSortByTimecreated, - "DISPLAYNAME": ListConsoleHistoriesSortByDisplayname, - "UNKNOWN": ListConsoleHistoriesSortByUnknown, +var mappingListConsoleHistoriesSortBy = map[string]ListConsoleHistoriesSortByEnum{ + "TIMECREATED": ListConsoleHistoriesSortByTimecreated, + "DISPLAYNAME": ListConsoleHistoriesSortByDisplayname, } // GetListConsoleHistoriesSortByEnumValues Enumerates the set of values for ListConsoleHistoriesSortBy func GetListConsoleHistoriesSortByEnumValues() []ListConsoleHistoriesSortByEnum { - values := make([]ListConsoleHistoriesSortByEnum, 0) - for _, v := range mappingListConsoleHistoriesSortBy { - if v != ListConsoleHistoriesSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListConsoleHistoriesSortByEnum, 0) + for _, v := range mappingListConsoleHistoriesSortBy { + values = append(values, v) + } + return values } // ListConsoleHistoriesSortOrderEnum Enum with underlying type: string @@ -107,25 +100,20 @@ type ListConsoleHistoriesSortOrderEnum string // Set of constants representing the allowable values for ListConsoleHistoriesSortOrder const ( - ListConsoleHistoriesSortOrderAsc ListConsoleHistoriesSortOrderEnum = "ASC" - ListConsoleHistoriesSortOrderDesc ListConsoleHistoriesSortOrderEnum = "DESC" - ListConsoleHistoriesSortOrderUnknown ListConsoleHistoriesSortOrderEnum = "UNKNOWN" + ListConsoleHistoriesSortOrderAsc ListConsoleHistoriesSortOrderEnum = "ASC" + ListConsoleHistoriesSortOrderDesc ListConsoleHistoriesSortOrderEnum = "DESC" ) -var mappingListConsoleHistoriesSortOrder = map[string]ListConsoleHistoriesSortOrderEnum { - "ASC": ListConsoleHistoriesSortOrderAsc, - "DESC": ListConsoleHistoriesSortOrderDesc, - "UNKNOWN": ListConsoleHistoriesSortOrderUnknown, +var mappingListConsoleHistoriesSortOrder = map[string]ListConsoleHistoriesSortOrderEnum{ + "ASC": ListConsoleHistoriesSortOrderAsc, + "DESC": ListConsoleHistoriesSortOrderDesc, } // GetListConsoleHistoriesSortOrderEnumValues Enumerates the set of values for ListConsoleHistoriesSortOrder func GetListConsoleHistoriesSortOrderEnumValues() []ListConsoleHistoriesSortOrderEnum { - values := make([]ListConsoleHistoriesSortOrderEnum, 0) - for _, v := range mappingListConsoleHistoriesSortOrder { - if v != ListConsoleHistoriesSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListConsoleHistoriesSortOrderEnum, 0) + for _, v := range mappingListConsoleHistoriesSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_cpes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_cpes_request_response.go index 73ebfacd1..5a0ce9fb3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_cpes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_cpes_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListCpesRequest wrapper for the ListCpes operation type ListCpesRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListCpesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListCpesResponse wrapper for the ListCpes operation type ListCpesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Cpe instance - Items []Cpe `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []Cpe instance + Items []Cpe `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListCpesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_groups_request_response.go index 8e94c015f..221747c68 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_groups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_groups_request_response.go @@ -1,74 +1,71 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListCrossConnectGroupsRequest wrapper for the ListCrossConnectGroups operation type ListCrossConnectGroupsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListCrossConnectGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListCrossConnectGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the specified lifecycle state. The value is case insensitive. - LifecycleState CrossConnectGroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListCrossConnectGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListCrossConnectGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + LifecycleState CrossConnectGroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListCrossConnectGroupsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListCrossConnectGroupsResponse wrapper for the ListCrossConnectGroups operation type ListCrossConnectGroupsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []CrossConnectGroup instance - Items []CrossConnectGroup `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []CrossConnectGroup instance + Items []CrossConnectGroup `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListCrossConnectGroupsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListCrossConnectGroupsSortByEnum Enum with underlying type: string @@ -76,26 +73,22 @@ type ListCrossConnectGroupsSortByEnum string // Set of constants representing the allowable values for ListCrossConnectGroupsSortBy const ( - ListCrossConnectGroupsSortByTimecreated ListCrossConnectGroupsSortByEnum = "TIMECREATED" - ListCrossConnectGroupsSortByDisplayname ListCrossConnectGroupsSortByEnum = "DISPLAYNAME" - ListCrossConnectGroupsSortByUnknown ListCrossConnectGroupsSortByEnum = "UNKNOWN" + ListCrossConnectGroupsSortByTimecreated ListCrossConnectGroupsSortByEnum = "TIMECREATED" + ListCrossConnectGroupsSortByDisplayname ListCrossConnectGroupsSortByEnum = "DISPLAYNAME" ) -var mappingListCrossConnectGroupsSortBy = map[string]ListCrossConnectGroupsSortByEnum { - "TIMECREATED": ListCrossConnectGroupsSortByTimecreated, - "DISPLAYNAME": ListCrossConnectGroupsSortByDisplayname, - "UNKNOWN": ListCrossConnectGroupsSortByUnknown, +var mappingListCrossConnectGroupsSortBy = map[string]ListCrossConnectGroupsSortByEnum{ + "TIMECREATED": ListCrossConnectGroupsSortByTimecreated, + "DISPLAYNAME": ListCrossConnectGroupsSortByDisplayname, } // GetListCrossConnectGroupsSortByEnumValues Enumerates the set of values for ListCrossConnectGroupsSortBy func GetListCrossConnectGroupsSortByEnumValues() []ListCrossConnectGroupsSortByEnum { - values := make([]ListCrossConnectGroupsSortByEnum, 0) - for _, v := range mappingListCrossConnectGroupsSortBy { - if v != ListCrossConnectGroupsSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListCrossConnectGroupsSortByEnum, 0) + for _, v := range mappingListCrossConnectGroupsSortBy { + values = append(values, v) + } + return values } // ListCrossConnectGroupsSortOrderEnum Enum with underlying type: string @@ -103,25 +96,20 @@ type ListCrossConnectGroupsSortOrderEnum string // Set of constants representing the allowable values for ListCrossConnectGroupsSortOrder const ( - ListCrossConnectGroupsSortOrderAsc ListCrossConnectGroupsSortOrderEnum = "ASC" - ListCrossConnectGroupsSortOrderDesc ListCrossConnectGroupsSortOrderEnum = "DESC" - ListCrossConnectGroupsSortOrderUnknown ListCrossConnectGroupsSortOrderEnum = "UNKNOWN" + ListCrossConnectGroupsSortOrderAsc ListCrossConnectGroupsSortOrderEnum = "ASC" + ListCrossConnectGroupsSortOrderDesc ListCrossConnectGroupsSortOrderEnum = "DESC" ) -var mappingListCrossConnectGroupsSortOrder = map[string]ListCrossConnectGroupsSortOrderEnum { - "ASC": ListCrossConnectGroupsSortOrderAsc, - "DESC": ListCrossConnectGroupsSortOrderDesc, - "UNKNOWN": ListCrossConnectGroupsSortOrderUnknown, +var mappingListCrossConnectGroupsSortOrder = map[string]ListCrossConnectGroupsSortOrderEnum{ + "ASC": ListCrossConnectGroupsSortOrderAsc, + "DESC": ListCrossConnectGroupsSortOrderDesc, } // GetListCrossConnectGroupsSortOrderEnumValues Enumerates the set of values for ListCrossConnectGroupsSortOrder func GetListCrossConnectGroupsSortOrderEnumValues() []ListCrossConnectGroupsSortOrderEnum { - values := make([]ListCrossConnectGroupsSortOrderEnum, 0) - for _, v := range mappingListCrossConnectGroupsSortOrder { - if v != ListCrossConnectGroupsSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListCrossConnectGroupsSortOrderEnum, 0) + for _, v := range mappingListCrossConnectGroupsSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_locations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_locations_request_response.go index 110c209f1..4200b32ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_locations_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_locations_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListCrossConnectLocationsRequest wrapper for the ListCrossConnectLocations operation type ListCrossConnectLocationsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListCrossConnectLocationsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListCrossConnectLocationsResponse wrapper for the ListCrossConnectLocations operation type ListCrossConnectLocationsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []CrossConnectLocation instance - Items []CrossConnectLocation `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []CrossConnectLocation instance + Items []CrossConnectLocation `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListCrossConnectLocationsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connects_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connects_request_response.go index 97845d90e..e10f72d55 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connects_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connects_request_response.go @@ -1,77 +1,74 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListCrossConnectsRequest wrapper for the ListCrossConnects operation type ListCrossConnectsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the cross-connect group. - CrossConnectGroupId *string `mandatory:"false" contributesTo:"query" name:"crossConnectGroupId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListCrossConnectsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListCrossConnectsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the specified lifecycle state. The value is case insensitive. - LifecycleState CrossConnectLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the cross-connect group. + CrossConnectGroupId *string `mandatory:"false" contributesTo:"query" name:"crossConnectGroupId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListCrossConnectsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListCrossConnectsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + LifecycleState CrossConnectLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListCrossConnectsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListCrossConnectsResponse wrapper for the ListCrossConnects operation type ListCrossConnectsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []CrossConnect instance - Items []CrossConnect `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []CrossConnect instance + Items []CrossConnect `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListCrossConnectsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListCrossConnectsSortByEnum Enum with underlying type: string @@ -79,26 +76,22 @@ type ListCrossConnectsSortByEnum string // Set of constants representing the allowable values for ListCrossConnectsSortBy const ( - ListCrossConnectsSortByTimecreated ListCrossConnectsSortByEnum = "TIMECREATED" - ListCrossConnectsSortByDisplayname ListCrossConnectsSortByEnum = "DISPLAYNAME" - ListCrossConnectsSortByUnknown ListCrossConnectsSortByEnum = "UNKNOWN" + ListCrossConnectsSortByTimecreated ListCrossConnectsSortByEnum = "TIMECREATED" + ListCrossConnectsSortByDisplayname ListCrossConnectsSortByEnum = "DISPLAYNAME" ) -var mappingListCrossConnectsSortBy = map[string]ListCrossConnectsSortByEnum { - "TIMECREATED": ListCrossConnectsSortByTimecreated, - "DISPLAYNAME": ListCrossConnectsSortByDisplayname, - "UNKNOWN": ListCrossConnectsSortByUnknown, +var mappingListCrossConnectsSortBy = map[string]ListCrossConnectsSortByEnum{ + "TIMECREATED": ListCrossConnectsSortByTimecreated, + "DISPLAYNAME": ListCrossConnectsSortByDisplayname, } // GetListCrossConnectsSortByEnumValues Enumerates the set of values for ListCrossConnectsSortBy func GetListCrossConnectsSortByEnumValues() []ListCrossConnectsSortByEnum { - values := make([]ListCrossConnectsSortByEnum, 0) - for _, v := range mappingListCrossConnectsSortBy { - if v != ListCrossConnectsSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListCrossConnectsSortByEnum, 0) + for _, v := range mappingListCrossConnectsSortBy { + values = append(values, v) + } + return values } // ListCrossConnectsSortOrderEnum Enum with underlying type: string @@ -106,25 +99,20 @@ type ListCrossConnectsSortOrderEnum string // Set of constants representing the allowable values for ListCrossConnectsSortOrder const ( - ListCrossConnectsSortOrderAsc ListCrossConnectsSortOrderEnum = "ASC" - ListCrossConnectsSortOrderDesc ListCrossConnectsSortOrderEnum = "DESC" - ListCrossConnectsSortOrderUnknown ListCrossConnectsSortOrderEnum = "UNKNOWN" + ListCrossConnectsSortOrderAsc ListCrossConnectsSortOrderEnum = "ASC" + ListCrossConnectsSortOrderDesc ListCrossConnectsSortOrderEnum = "DESC" ) -var mappingListCrossConnectsSortOrder = map[string]ListCrossConnectsSortOrderEnum { - "ASC": ListCrossConnectsSortOrderAsc, - "DESC": ListCrossConnectsSortOrderDesc, - "UNKNOWN": ListCrossConnectsSortOrderUnknown, +var mappingListCrossConnectsSortOrder = map[string]ListCrossConnectsSortOrderEnum{ + "ASC": ListCrossConnectsSortOrderAsc, + "DESC": ListCrossConnectsSortOrderDesc, } // GetListCrossConnectsSortOrderEnumValues Enumerates the set of values for ListCrossConnectsSortOrder func GetListCrossConnectsSortOrderEnumValues() []ListCrossConnectsSortOrderEnum { - values := make([]ListCrossConnectsSortOrderEnum, 0) - for _, v := range mappingListCrossConnectsSortOrder { - if v != ListCrossConnectsSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListCrossConnectsSortOrderEnum, 0) + for _, v := range mappingListCrossConnectsSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_crossconnect_port_speed_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_crossconnect_port_speed_shapes_request_response.go index 76c5ffb31..b60655348 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_crossconnect_port_speed_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_crossconnect_port_speed_shapes_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListCrossconnectPortSpeedShapesRequest wrapper for the ListCrossconnectPortSpeedShapes operation type ListCrossconnectPortSpeedShapesRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListCrossconnectPortSpeedShapesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListCrossconnectPortSpeedShapesResponse wrapper for the ListCrossconnectPortSpeedShapes operation type ListCrossconnectPortSpeedShapesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []CrossConnectPortSpeedShape instance - Items []CrossConnectPortSpeedShape `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []CrossConnectPortSpeedShape instance + Items []CrossConnectPortSpeedShape `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListCrossconnectPortSpeedShapesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_dhcp_options_request_response.go index ce17e853f..f06466fc6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_dhcp_options_request_response.go @@ -1,77 +1,74 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDhcpOptionsRequest wrapper for the ListDhcpOptions operation type ListDhcpOptionsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the VCN. - VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListDhcpOptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListDhcpOptionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState DhcpOptionsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the VCN. + VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListDhcpOptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListDhcpOptionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState DhcpOptionsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListDhcpOptionsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDhcpOptionsResponse wrapper for the ListDhcpOptions operation type ListDhcpOptionsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []DhcpOptions instance - Items []DhcpOptions `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []DhcpOptions instance + Items []DhcpOptions `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDhcpOptionsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListDhcpOptionsSortByEnum Enum with underlying type: string @@ -79,26 +76,22 @@ type ListDhcpOptionsSortByEnum string // Set of constants representing the allowable values for ListDhcpOptionsSortBy const ( - ListDhcpOptionsSortByTimecreated ListDhcpOptionsSortByEnum = "TIMECREATED" - ListDhcpOptionsSortByDisplayname ListDhcpOptionsSortByEnum = "DISPLAYNAME" - ListDhcpOptionsSortByUnknown ListDhcpOptionsSortByEnum = "UNKNOWN" + ListDhcpOptionsSortByTimecreated ListDhcpOptionsSortByEnum = "TIMECREATED" + ListDhcpOptionsSortByDisplayname ListDhcpOptionsSortByEnum = "DISPLAYNAME" ) -var mappingListDhcpOptionsSortBy = map[string]ListDhcpOptionsSortByEnum { - "TIMECREATED": ListDhcpOptionsSortByTimecreated, - "DISPLAYNAME": ListDhcpOptionsSortByDisplayname, - "UNKNOWN": ListDhcpOptionsSortByUnknown, +var mappingListDhcpOptionsSortBy = map[string]ListDhcpOptionsSortByEnum{ + "TIMECREATED": ListDhcpOptionsSortByTimecreated, + "DISPLAYNAME": ListDhcpOptionsSortByDisplayname, } // GetListDhcpOptionsSortByEnumValues Enumerates the set of values for ListDhcpOptionsSortBy func GetListDhcpOptionsSortByEnumValues() []ListDhcpOptionsSortByEnum { - values := make([]ListDhcpOptionsSortByEnum, 0) - for _, v := range mappingListDhcpOptionsSortBy { - if v != ListDhcpOptionsSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListDhcpOptionsSortByEnum, 0) + for _, v := range mappingListDhcpOptionsSortBy { + values = append(values, v) + } + return values } // ListDhcpOptionsSortOrderEnum Enum with underlying type: string @@ -106,25 +99,20 @@ type ListDhcpOptionsSortOrderEnum string // Set of constants representing the allowable values for ListDhcpOptionsSortOrder const ( - ListDhcpOptionsSortOrderAsc ListDhcpOptionsSortOrderEnum = "ASC" - ListDhcpOptionsSortOrderDesc ListDhcpOptionsSortOrderEnum = "DESC" - ListDhcpOptionsSortOrderUnknown ListDhcpOptionsSortOrderEnum = "UNKNOWN" + ListDhcpOptionsSortOrderAsc ListDhcpOptionsSortOrderEnum = "ASC" + ListDhcpOptionsSortOrderDesc ListDhcpOptionsSortOrderEnum = "DESC" ) -var mappingListDhcpOptionsSortOrder = map[string]ListDhcpOptionsSortOrderEnum { - "ASC": ListDhcpOptionsSortOrderAsc, - "DESC": ListDhcpOptionsSortOrderDesc, - "UNKNOWN": ListDhcpOptionsSortOrderUnknown, +var mappingListDhcpOptionsSortOrder = map[string]ListDhcpOptionsSortOrderEnum{ + "ASC": ListDhcpOptionsSortOrderAsc, + "DESC": ListDhcpOptionsSortOrderDesc, } // GetListDhcpOptionsSortOrderEnumValues Enumerates the set of values for ListDhcpOptionsSortOrder func GetListDhcpOptionsSortOrderEnumValues() []ListDhcpOptionsSortOrderEnum { - values := make([]ListDhcpOptionsSortOrderEnum, 0) - for _, v := range mappingListDhcpOptionsSortOrder { - if v != ListDhcpOptionsSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListDhcpOptionsSortOrderEnum, 0) + for _, v := range mappingListDhcpOptionsSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_drg_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_drg_attachments_request_response.go index 5c37e33ce..d526209d5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_drg_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_drg_attachments_request_response.go @@ -1,60 +1,56 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDrgAttachmentsRequest wrapper for the ListDrgAttachments operation type ListDrgAttachmentsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // The OCID of the DRG. - DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // The OCID of the DRG. + DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDrgAttachmentsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDrgAttachmentsResponse wrapper for the ListDrgAttachments operation type ListDrgAttachmentsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []DrgAttachment instance - Items []DrgAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []DrgAttachment instance + Items []DrgAttachment `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDrgAttachmentsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_drgs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_drgs_request_response.go index fc7592c41..6577f9c2f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_drgs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_drgs_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDrgsRequest wrapper for the ListDrgs operation type ListDrgsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDrgsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDrgsResponse wrapper for the ListDrgs operation type ListDrgsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Drg instance - Items []Drg `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []Drg instance + Items []Drg `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDrgsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_services_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_services_request_response.go index 2019bcb3c..27614fd85 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_services_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_services_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListFastConnectProviderServicesRequest wrapper for the ListFastConnectProviderServices operation type ListFastConnectProviderServicesRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListFastConnectProviderServicesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListFastConnectProviderServicesResponse wrapper for the ListFastConnectProviderServices operation type ListFastConnectProviderServicesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []FastConnectProviderService instance - Items []FastConnectProviderService `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []FastConnectProviderService instance + Items []FastConnectProviderService `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListFastConnectProviderServicesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go index 4887f9b0a..6197b9b54 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListFastConnectProviderVirtualCircuitBandwidthShapesRequest wrapper for the ListFastConnectProviderVirtualCircuitBandwidthShapes operation type ListFastConnectProviderVirtualCircuitBandwidthShapesRequest struct { - - // The OCID of the provider service. - ProviderServiceId *string `mandatory:"true" contributesTo:"path" name:"providerServiceId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the provider service. + ProviderServiceId *string `mandatory:"true" contributesTo:"path" name:"providerServiceId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListFastConnectProviderVirtualCircuitBandwidthShapesResponse wrapper for the ListFastConnectProviderVirtualCircuitBandwidthShapes operation type ListFastConnectProviderVirtualCircuitBandwidthShapesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []VirtualCircuitBandwidthShape instance - Items []VirtualCircuitBandwidthShape `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []VirtualCircuitBandwidthShape instance + Items []VirtualCircuitBandwidthShape `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListFastConnectProviderVirtualCircuitBandwidthShapesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_i_p_sec_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_i_p_sec_connections_request_response.go index 2445fbca2..c1b346754 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_i_p_sec_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_i_p_sec_connections_request_response.go @@ -1,60 +1,56 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListIPSecConnectionsRequest wrapper for the ListIPSecConnections operation type ListIPSecConnectionsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the DRG. - DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` - - // The OCID of the CPE. - CpeId *string `mandatory:"false" contributesTo:"query" name:"cpeId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the DRG. + DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` + + // The OCID of the CPE. + CpeId *string `mandatory:"false" contributesTo:"query" name:"cpeId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListIPSecConnectionsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListIPSecConnectionsResponse wrapper for the ListIPSecConnections operation type ListIPSecConnectionsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []IpSecConnection instance - Items []IpSecConnection `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []IpSecConnection instance + Items []IpSecConnection `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListIPSecConnectionsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_images_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_images_request_response.go index 2e7f77a42..5ac886860 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_images_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_images_request_response.go @@ -1,82 +1,79 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListImagesRequest wrapper for the ListImages operation type ListImagesRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The image's operating system. - // Example: `Oracle Linux` - OperatingSystem *string `mandatory:"false" contributesTo:"query" name:"operatingSystem"` - - // The image's operating system version. - // Example: `7.2` - OperatingSystemVersion *string `mandatory:"false" contributesTo:"query" name:"operatingSystemVersion"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListImagesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListImagesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState ImageLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The image's operating system. + // Example: `Oracle Linux` + OperatingSystem *string `mandatory:"false" contributesTo:"query" name:"operatingSystem"` + + // The image's operating system version. + // Example: `7.2` + OperatingSystemVersion *string `mandatory:"false" contributesTo:"query" name:"operatingSystemVersion"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListImagesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListImagesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState ImageLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListImagesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListImagesResponse wrapper for the ListImages operation type ListImagesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Image instance - Items []Image `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []Image instance + Items []Image `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListImagesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListImagesSortByEnum Enum with underlying type: string @@ -84,26 +81,22 @@ type ListImagesSortByEnum string // Set of constants representing the allowable values for ListImagesSortBy const ( - ListImagesSortByTimecreated ListImagesSortByEnum = "TIMECREATED" - ListImagesSortByDisplayname ListImagesSortByEnum = "DISPLAYNAME" - ListImagesSortByUnknown ListImagesSortByEnum = "UNKNOWN" + ListImagesSortByTimecreated ListImagesSortByEnum = "TIMECREATED" + ListImagesSortByDisplayname ListImagesSortByEnum = "DISPLAYNAME" ) -var mappingListImagesSortBy = map[string]ListImagesSortByEnum { - "TIMECREATED": ListImagesSortByTimecreated, - "DISPLAYNAME": ListImagesSortByDisplayname, - "UNKNOWN": ListImagesSortByUnknown, +var mappingListImagesSortBy = map[string]ListImagesSortByEnum{ + "TIMECREATED": ListImagesSortByTimecreated, + "DISPLAYNAME": ListImagesSortByDisplayname, } // GetListImagesSortByEnumValues Enumerates the set of values for ListImagesSortBy func GetListImagesSortByEnumValues() []ListImagesSortByEnum { - values := make([]ListImagesSortByEnum, 0) - for _, v := range mappingListImagesSortBy { - if v != ListImagesSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListImagesSortByEnum, 0) + for _, v := range mappingListImagesSortBy { + values = append(values, v) + } + return values } // ListImagesSortOrderEnum Enum with underlying type: string @@ -111,25 +104,20 @@ type ListImagesSortOrderEnum string // Set of constants representing the allowable values for ListImagesSortOrder const ( - ListImagesSortOrderAsc ListImagesSortOrderEnum = "ASC" - ListImagesSortOrderDesc ListImagesSortOrderEnum = "DESC" - ListImagesSortOrderUnknown ListImagesSortOrderEnum = "UNKNOWN" + ListImagesSortOrderAsc ListImagesSortOrderEnum = "ASC" + ListImagesSortOrderDesc ListImagesSortOrderEnum = "DESC" ) -var mappingListImagesSortOrder = map[string]ListImagesSortOrderEnum { - "ASC": ListImagesSortOrderAsc, - "DESC": ListImagesSortOrderDesc, - "UNKNOWN": ListImagesSortOrderUnknown, +var mappingListImagesSortOrder = map[string]ListImagesSortOrderEnum{ + "ASC": ListImagesSortOrderAsc, + "DESC": ListImagesSortOrderDesc, } // GetListImagesSortOrderEnumValues Enumerates the set of values for ListImagesSortOrder func GetListImagesSortOrderEnumValues() []ListImagesSortOrderEnum { - values := make([]ListImagesSortOrderEnum, 0) - for _, v := range mappingListImagesSortOrder { - if v != ListImagesSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListImagesSortOrderEnum, 0) + for _, v := range mappingListImagesSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_instance_console_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_instance_console_connections_request_response.go index 4e524b5f1..012b2a77b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_instance_console_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_instance_console_connections_request_response.go @@ -1,57 +1,53 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListInstanceConsoleConnectionsRequest wrapper for the ListInstanceConsoleConnections operation type ListInstanceConsoleConnectionsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the instance. - InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the instance. + InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListInstanceConsoleConnectionsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListInstanceConsoleConnectionsResponse wrapper for the ListInstanceConsoleConnections operation type ListInstanceConsoleConnectionsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []InstanceConsoleConnection instance - Items []InstanceConsoleConnection `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []InstanceConsoleConnection instance + Items []InstanceConsoleConnection `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListInstanceConsoleConnectionsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_instances_request_response.go index 66da0a44f..f687890c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_instances_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_instances_request_response.go @@ -1,78 +1,75 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListInstancesRequest wrapper for the ListInstances operation type ListInstancesRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState InstanceLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState InstanceLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListInstancesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListInstancesResponse wrapper for the ListInstances operation type ListInstancesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Instance instance - Items []Instance `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []Instance instance + Items []Instance `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListInstancesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListInstancesSortByEnum Enum with underlying type: string @@ -80,26 +77,22 @@ type ListInstancesSortByEnum string // Set of constants representing the allowable values for ListInstancesSortBy const ( - ListInstancesSortByTimecreated ListInstancesSortByEnum = "TIMECREATED" - ListInstancesSortByDisplayname ListInstancesSortByEnum = "DISPLAYNAME" - ListInstancesSortByUnknown ListInstancesSortByEnum = "UNKNOWN" + ListInstancesSortByTimecreated ListInstancesSortByEnum = "TIMECREATED" + ListInstancesSortByDisplayname ListInstancesSortByEnum = "DISPLAYNAME" ) -var mappingListInstancesSortBy = map[string]ListInstancesSortByEnum { - "TIMECREATED": ListInstancesSortByTimecreated, - "DISPLAYNAME": ListInstancesSortByDisplayname, - "UNKNOWN": ListInstancesSortByUnknown, +var mappingListInstancesSortBy = map[string]ListInstancesSortByEnum{ + "TIMECREATED": ListInstancesSortByTimecreated, + "DISPLAYNAME": ListInstancesSortByDisplayname, } // GetListInstancesSortByEnumValues Enumerates the set of values for ListInstancesSortBy func GetListInstancesSortByEnumValues() []ListInstancesSortByEnum { - values := make([]ListInstancesSortByEnum, 0) - for _, v := range mappingListInstancesSortBy { - if v != ListInstancesSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListInstancesSortByEnum, 0) + for _, v := range mappingListInstancesSortBy { + values = append(values, v) + } + return values } // ListInstancesSortOrderEnum Enum with underlying type: string @@ -107,25 +100,20 @@ type ListInstancesSortOrderEnum string // Set of constants representing the allowable values for ListInstancesSortOrder const ( - ListInstancesSortOrderAsc ListInstancesSortOrderEnum = "ASC" - ListInstancesSortOrderDesc ListInstancesSortOrderEnum = "DESC" - ListInstancesSortOrderUnknown ListInstancesSortOrderEnum = "UNKNOWN" + ListInstancesSortOrderAsc ListInstancesSortOrderEnum = "ASC" + ListInstancesSortOrderDesc ListInstancesSortOrderEnum = "DESC" ) -var mappingListInstancesSortOrder = map[string]ListInstancesSortOrderEnum { - "ASC": ListInstancesSortOrderAsc, - "DESC": ListInstancesSortOrderDesc, - "UNKNOWN": ListInstancesSortOrderUnknown, +var mappingListInstancesSortOrder = map[string]ListInstancesSortOrderEnum{ + "ASC": ListInstancesSortOrderAsc, + "DESC": ListInstancesSortOrderDesc, } // GetListInstancesSortOrderEnumValues Enumerates the set of values for ListInstancesSortOrder func GetListInstancesSortOrderEnumValues() []ListInstancesSortOrderEnum { - values := make([]ListInstancesSortOrderEnum, 0) - for _, v := range mappingListInstancesSortOrder { - if v != ListInstancesSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListInstancesSortOrderEnum, 0) + for _, v := range mappingListInstancesSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_internet_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_internet_gateways_request_response.go index 23d8df152..b37985a4d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_internet_gateways_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_internet_gateways_request_response.go @@ -1,77 +1,74 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListInternetGatewaysRequest wrapper for the ListInternetGateways operation type ListInternetGatewaysRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the VCN. - VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListInternetGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListInternetGatewaysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState InternetGatewayLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the VCN. + VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListInternetGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListInternetGatewaysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState InternetGatewayLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListInternetGatewaysRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListInternetGatewaysResponse wrapper for the ListInternetGateways operation type ListInternetGatewaysResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []InternetGateway instance - Items []InternetGateway `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []InternetGateway instance + Items []InternetGateway `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListInternetGatewaysResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListInternetGatewaysSortByEnum Enum with underlying type: string @@ -79,26 +76,22 @@ type ListInternetGatewaysSortByEnum string // Set of constants representing the allowable values for ListInternetGatewaysSortBy const ( - ListInternetGatewaysSortByTimecreated ListInternetGatewaysSortByEnum = "TIMECREATED" - ListInternetGatewaysSortByDisplayname ListInternetGatewaysSortByEnum = "DISPLAYNAME" - ListInternetGatewaysSortByUnknown ListInternetGatewaysSortByEnum = "UNKNOWN" + ListInternetGatewaysSortByTimecreated ListInternetGatewaysSortByEnum = "TIMECREATED" + ListInternetGatewaysSortByDisplayname ListInternetGatewaysSortByEnum = "DISPLAYNAME" ) -var mappingListInternetGatewaysSortBy = map[string]ListInternetGatewaysSortByEnum { - "TIMECREATED": ListInternetGatewaysSortByTimecreated, - "DISPLAYNAME": ListInternetGatewaysSortByDisplayname, - "UNKNOWN": ListInternetGatewaysSortByUnknown, +var mappingListInternetGatewaysSortBy = map[string]ListInternetGatewaysSortByEnum{ + "TIMECREATED": ListInternetGatewaysSortByTimecreated, + "DISPLAYNAME": ListInternetGatewaysSortByDisplayname, } // GetListInternetGatewaysSortByEnumValues Enumerates the set of values for ListInternetGatewaysSortBy func GetListInternetGatewaysSortByEnumValues() []ListInternetGatewaysSortByEnum { - values := make([]ListInternetGatewaysSortByEnum, 0) - for _, v := range mappingListInternetGatewaysSortBy { - if v != ListInternetGatewaysSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListInternetGatewaysSortByEnum, 0) + for _, v := range mappingListInternetGatewaysSortBy { + values = append(values, v) + } + return values } // ListInternetGatewaysSortOrderEnum Enum with underlying type: string @@ -106,25 +99,20 @@ type ListInternetGatewaysSortOrderEnum string // Set of constants representing the allowable values for ListInternetGatewaysSortOrder const ( - ListInternetGatewaysSortOrderAsc ListInternetGatewaysSortOrderEnum = "ASC" - ListInternetGatewaysSortOrderDesc ListInternetGatewaysSortOrderEnum = "DESC" - ListInternetGatewaysSortOrderUnknown ListInternetGatewaysSortOrderEnum = "UNKNOWN" + ListInternetGatewaysSortOrderAsc ListInternetGatewaysSortOrderEnum = "ASC" + ListInternetGatewaysSortOrderDesc ListInternetGatewaysSortOrderEnum = "DESC" ) -var mappingListInternetGatewaysSortOrder = map[string]ListInternetGatewaysSortOrderEnum { - "ASC": ListInternetGatewaysSortOrderAsc, - "DESC": ListInternetGatewaysSortOrderDesc, - "UNKNOWN": ListInternetGatewaysSortOrderUnknown, +var mappingListInternetGatewaysSortOrder = map[string]ListInternetGatewaysSortOrderEnum{ + "ASC": ListInternetGatewaysSortOrderAsc, + "DESC": ListInternetGatewaysSortOrderDesc, } // GetListInternetGatewaysSortOrderEnumValues Enumerates the set of values for ListInternetGatewaysSortOrder func GetListInternetGatewaysSortOrderEnumValues() []ListInternetGatewaysSortOrderEnum { - values := make([]ListInternetGatewaysSortOrderEnum, 0) - for _, v := range mappingListInternetGatewaysSortOrder { - if v != ListInternetGatewaysSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListInternetGatewaysSortOrderEnum, 0) + for _, v := range mappingListInternetGatewaysSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_local_peering_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_local_peering_gateways_request_response.go index 503fb5414..071ec59af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_local_peering_gateways_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_local_peering_gateways_request_response.go @@ -1,57 +1,53 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListLocalPeeringGatewaysRequest wrapper for the ListLocalPeeringGateways operation type ListLocalPeeringGatewaysRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the VCN. - VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the VCN. + VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListLocalPeeringGatewaysRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListLocalPeeringGatewaysResponse wrapper for the ListLocalPeeringGateways operation type ListLocalPeeringGatewaysResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []LocalPeeringGateway instance - Items []LocalPeeringGateway `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []LocalPeeringGateway instance + Items []LocalPeeringGateway `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListLocalPeeringGatewaysResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_private_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_private_ips_request_response.go index c49200852..7054edfc3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_private_ips_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_private_ips_request_response.go @@ -1,61 +1,57 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListPrivateIpsRequest wrapper for the ListPrivateIps operation type ListPrivateIpsRequest struct { - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The private IP address of the `privateIp` object. - // Example: `10.0.3.3` - IpAddress *string `mandatory:"false" contributesTo:"query" name:"ipAddress"` - - // The OCID of the subnet. - SubnetId *string `mandatory:"false" contributesTo:"query" name:"subnetId"` - - // The OCID of the VNIC. - VnicId *string `mandatory:"false" contributesTo:"query" name:"vnicId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The private IP address of the `privateIp` object. + // Example: `10.0.3.3` + IpAddress *string `mandatory:"false" contributesTo:"query" name:"ipAddress"` + + // The OCID of the subnet. + SubnetId *string `mandatory:"false" contributesTo:"query" name:"subnetId"` + + // The OCID of the VNIC. + VnicId *string `mandatory:"false" contributesTo:"query" name:"vnicId"` } func (request ListPrivateIpsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListPrivateIpsResponse wrapper for the ListPrivateIps operation type ListPrivateIpsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []PrivateIp instance - Items []PrivateIp `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []PrivateIp instance + Items []PrivateIp `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListPrivateIpsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_route_tables_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_route_tables_request_response.go index 4a40fd14f..88cc414c2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_route_tables_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_route_tables_request_response.go @@ -1,77 +1,74 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListRouteTablesRequest wrapper for the ListRouteTables operation type ListRouteTablesRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the VCN. - VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListRouteTablesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListRouteTablesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState RouteTableLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the VCN. + VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListRouteTablesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListRouteTablesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState RouteTableLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListRouteTablesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListRouteTablesResponse wrapper for the ListRouteTables operation type ListRouteTablesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []RouteTable instance - Items []RouteTable `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []RouteTable instance + Items []RouteTable `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListRouteTablesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListRouteTablesSortByEnum Enum with underlying type: string @@ -79,26 +76,22 @@ type ListRouteTablesSortByEnum string // Set of constants representing the allowable values for ListRouteTablesSortBy const ( - ListRouteTablesSortByTimecreated ListRouteTablesSortByEnum = "TIMECREATED" - ListRouteTablesSortByDisplayname ListRouteTablesSortByEnum = "DISPLAYNAME" - ListRouteTablesSortByUnknown ListRouteTablesSortByEnum = "UNKNOWN" + ListRouteTablesSortByTimecreated ListRouteTablesSortByEnum = "TIMECREATED" + ListRouteTablesSortByDisplayname ListRouteTablesSortByEnum = "DISPLAYNAME" ) -var mappingListRouteTablesSortBy = map[string]ListRouteTablesSortByEnum { - "TIMECREATED": ListRouteTablesSortByTimecreated, - "DISPLAYNAME": ListRouteTablesSortByDisplayname, - "UNKNOWN": ListRouteTablesSortByUnknown, +var mappingListRouteTablesSortBy = map[string]ListRouteTablesSortByEnum{ + "TIMECREATED": ListRouteTablesSortByTimecreated, + "DISPLAYNAME": ListRouteTablesSortByDisplayname, } // GetListRouteTablesSortByEnumValues Enumerates the set of values for ListRouteTablesSortBy func GetListRouteTablesSortByEnumValues() []ListRouteTablesSortByEnum { - values := make([]ListRouteTablesSortByEnum, 0) - for _, v := range mappingListRouteTablesSortBy { - if v != ListRouteTablesSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListRouteTablesSortByEnum, 0) + for _, v := range mappingListRouteTablesSortBy { + values = append(values, v) + } + return values } // ListRouteTablesSortOrderEnum Enum with underlying type: string @@ -106,25 +99,20 @@ type ListRouteTablesSortOrderEnum string // Set of constants representing the allowable values for ListRouteTablesSortOrder const ( - ListRouteTablesSortOrderAsc ListRouteTablesSortOrderEnum = "ASC" - ListRouteTablesSortOrderDesc ListRouteTablesSortOrderEnum = "DESC" - ListRouteTablesSortOrderUnknown ListRouteTablesSortOrderEnum = "UNKNOWN" + ListRouteTablesSortOrderAsc ListRouteTablesSortOrderEnum = "ASC" + ListRouteTablesSortOrderDesc ListRouteTablesSortOrderEnum = "DESC" ) -var mappingListRouteTablesSortOrder = map[string]ListRouteTablesSortOrderEnum { - "ASC": ListRouteTablesSortOrderAsc, - "DESC": ListRouteTablesSortOrderDesc, - "UNKNOWN": ListRouteTablesSortOrderUnknown, +var mappingListRouteTablesSortOrder = map[string]ListRouteTablesSortOrderEnum{ + "ASC": ListRouteTablesSortOrderAsc, + "DESC": ListRouteTablesSortOrderDesc, } // GetListRouteTablesSortOrderEnumValues Enumerates the set of values for ListRouteTablesSortOrder func GetListRouteTablesSortOrderEnumValues() []ListRouteTablesSortOrderEnum { - values := make([]ListRouteTablesSortOrderEnum, 0) - for _, v := range mappingListRouteTablesSortOrder { - if v != ListRouteTablesSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListRouteTablesSortOrderEnum, 0) + for _, v := range mappingListRouteTablesSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_security_lists_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_security_lists_request_response.go index e13086133..883452ce7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_security_lists_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_security_lists_request_response.go @@ -1,77 +1,74 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListSecurityListsRequest wrapper for the ListSecurityLists operation type ListSecurityListsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the VCN. - VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListSecurityListsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListSecurityListsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState SecurityListLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the VCN. + VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListSecurityListsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListSecurityListsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState SecurityListLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListSecurityListsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListSecurityListsResponse wrapper for the ListSecurityLists operation type ListSecurityListsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []SecurityList instance - Items []SecurityList `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []SecurityList instance + Items []SecurityList `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListSecurityListsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListSecurityListsSortByEnum Enum with underlying type: string @@ -79,26 +76,22 @@ type ListSecurityListsSortByEnum string // Set of constants representing the allowable values for ListSecurityListsSortBy const ( - ListSecurityListsSortByTimecreated ListSecurityListsSortByEnum = "TIMECREATED" - ListSecurityListsSortByDisplayname ListSecurityListsSortByEnum = "DISPLAYNAME" - ListSecurityListsSortByUnknown ListSecurityListsSortByEnum = "UNKNOWN" + ListSecurityListsSortByTimecreated ListSecurityListsSortByEnum = "TIMECREATED" + ListSecurityListsSortByDisplayname ListSecurityListsSortByEnum = "DISPLAYNAME" ) -var mappingListSecurityListsSortBy = map[string]ListSecurityListsSortByEnum { - "TIMECREATED": ListSecurityListsSortByTimecreated, - "DISPLAYNAME": ListSecurityListsSortByDisplayname, - "UNKNOWN": ListSecurityListsSortByUnknown, +var mappingListSecurityListsSortBy = map[string]ListSecurityListsSortByEnum{ + "TIMECREATED": ListSecurityListsSortByTimecreated, + "DISPLAYNAME": ListSecurityListsSortByDisplayname, } // GetListSecurityListsSortByEnumValues Enumerates the set of values for ListSecurityListsSortBy func GetListSecurityListsSortByEnumValues() []ListSecurityListsSortByEnum { - values := make([]ListSecurityListsSortByEnum, 0) - for _, v := range mappingListSecurityListsSortBy { - if v != ListSecurityListsSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListSecurityListsSortByEnum, 0) + for _, v := range mappingListSecurityListsSortBy { + values = append(values, v) + } + return values } // ListSecurityListsSortOrderEnum Enum with underlying type: string @@ -106,25 +99,20 @@ type ListSecurityListsSortOrderEnum string // Set of constants representing the allowable values for ListSecurityListsSortOrder const ( - ListSecurityListsSortOrderAsc ListSecurityListsSortOrderEnum = "ASC" - ListSecurityListsSortOrderDesc ListSecurityListsSortOrderEnum = "DESC" - ListSecurityListsSortOrderUnknown ListSecurityListsSortOrderEnum = "UNKNOWN" + ListSecurityListsSortOrderAsc ListSecurityListsSortOrderEnum = "ASC" + ListSecurityListsSortOrderDesc ListSecurityListsSortOrderEnum = "DESC" ) -var mappingListSecurityListsSortOrder = map[string]ListSecurityListsSortOrderEnum { - "ASC": ListSecurityListsSortOrderAsc, - "DESC": ListSecurityListsSortOrderDesc, - "UNKNOWN": ListSecurityListsSortOrderUnknown, +var mappingListSecurityListsSortOrder = map[string]ListSecurityListsSortOrderEnum{ + "ASC": ListSecurityListsSortOrderAsc, + "DESC": ListSecurityListsSortOrderDesc, } // GetListSecurityListsSortOrderEnumValues Enumerates the set of values for ListSecurityListsSortOrder func GetListSecurityListsSortOrderEnumValues() []ListSecurityListsSortOrderEnum { - values := make([]ListSecurityListsSortOrderEnum, 0) - for _, v := range mappingListSecurityListsSortOrder { - if v != ListSecurityListsSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListSecurityListsSortOrderEnum, 0) + for _, v := range mappingListSecurityListsSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_shapes_request_response.go index 85c2648e6..71c7a2dec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_shapes_request_response.go @@ -1,61 +1,57 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListShapesRequest wrapper for the ListShapes operation type ListShapesRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID of an image. - ImageId *string `mandatory:"false" contributesTo:"query" name:"imageId"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of an image. + ImageId *string `mandatory:"false" contributesTo:"query" name:"imageId"` } func (request ListShapesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListShapesResponse wrapper for the ListShapes operation type ListShapesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Shape instance - Items []Shape `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []Shape instance + Items []Shape `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListShapesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_subnets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_subnets_request_response.go index 56df0c088..a74e9e134 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_subnets_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_subnets_request_response.go @@ -1,77 +1,74 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListSubnetsRequest wrapper for the ListSubnets operation type ListSubnetsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the VCN. - VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListSubnetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListSubnetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState SubnetLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the VCN. + VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListSubnetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListSubnetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState SubnetLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListSubnetsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListSubnetsResponse wrapper for the ListSubnets operation type ListSubnetsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Subnet instance - Items []Subnet `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []Subnet instance + Items []Subnet `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListSubnetsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListSubnetsSortByEnum Enum with underlying type: string @@ -79,26 +76,22 @@ type ListSubnetsSortByEnum string // Set of constants representing the allowable values for ListSubnetsSortBy const ( - ListSubnetsSortByTimecreated ListSubnetsSortByEnum = "TIMECREATED" - ListSubnetsSortByDisplayname ListSubnetsSortByEnum = "DISPLAYNAME" - ListSubnetsSortByUnknown ListSubnetsSortByEnum = "UNKNOWN" + ListSubnetsSortByTimecreated ListSubnetsSortByEnum = "TIMECREATED" + ListSubnetsSortByDisplayname ListSubnetsSortByEnum = "DISPLAYNAME" ) -var mappingListSubnetsSortBy = map[string]ListSubnetsSortByEnum { - "TIMECREATED": ListSubnetsSortByTimecreated, - "DISPLAYNAME": ListSubnetsSortByDisplayname, - "UNKNOWN": ListSubnetsSortByUnknown, +var mappingListSubnetsSortBy = map[string]ListSubnetsSortByEnum{ + "TIMECREATED": ListSubnetsSortByTimecreated, + "DISPLAYNAME": ListSubnetsSortByDisplayname, } // GetListSubnetsSortByEnumValues Enumerates the set of values for ListSubnetsSortBy func GetListSubnetsSortByEnumValues() []ListSubnetsSortByEnum { - values := make([]ListSubnetsSortByEnum, 0) - for _, v := range mappingListSubnetsSortBy { - if v != ListSubnetsSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListSubnetsSortByEnum, 0) + for _, v := range mappingListSubnetsSortBy { + values = append(values, v) + } + return values } // ListSubnetsSortOrderEnum Enum with underlying type: string @@ -106,25 +99,20 @@ type ListSubnetsSortOrderEnum string // Set of constants representing the allowable values for ListSubnetsSortOrder const ( - ListSubnetsSortOrderAsc ListSubnetsSortOrderEnum = "ASC" - ListSubnetsSortOrderDesc ListSubnetsSortOrderEnum = "DESC" - ListSubnetsSortOrderUnknown ListSubnetsSortOrderEnum = "UNKNOWN" + ListSubnetsSortOrderAsc ListSubnetsSortOrderEnum = "ASC" + ListSubnetsSortOrderDesc ListSubnetsSortOrderEnum = "DESC" ) -var mappingListSubnetsSortOrder = map[string]ListSubnetsSortOrderEnum { - "ASC": ListSubnetsSortOrderAsc, - "DESC": ListSubnetsSortOrderDesc, - "UNKNOWN": ListSubnetsSortOrderUnknown, +var mappingListSubnetsSortOrder = map[string]ListSubnetsSortOrderEnum{ + "ASC": ListSubnetsSortOrderAsc, + "DESC": ListSubnetsSortOrderDesc, } // GetListSubnetsSortOrderEnumValues Enumerates the set of values for ListSubnetsSortOrder func GetListSubnetsSortOrderEnumValues() []ListSubnetsSortOrderEnum { - values := make([]ListSubnetsSortOrderEnum, 0) - for _, v := range mappingListSubnetsSortOrder { - if v != ListSubnetsSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListSubnetsSortOrderEnum, 0) + for _, v := range mappingListSubnetsSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_vcns_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_vcns_request_response.go index 215e5475e..b1e5b0edd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_vcns_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_vcns_request_response.go @@ -1,74 +1,71 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListVcnsRequest wrapper for the ListVcns operation type ListVcnsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListVcnsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVcnsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState VcnLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListVcnsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVcnsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState VcnLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListVcnsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListVcnsResponse wrapper for the ListVcns operation type ListVcnsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Vcn instance - Items []Vcn `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []Vcn instance + Items []Vcn `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListVcnsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListVcnsSortByEnum Enum with underlying type: string @@ -76,26 +73,22 @@ type ListVcnsSortByEnum string // Set of constants representing the allowable values for ListVcnsSortBy const ( - ListVcnsSortByTimecreated ListVcnsSortByEnum = "TIMECREATED" - ListVcnsSortByDisplayname ListVcnsSortByEnum = "DISPLAYNAME" - ListVcnsSortByUnknown ListVcnsSortByEnum = "UNKNOWN" + ListVcnsSortByTimecreated ListVcnsSortByEnum = "TIMECREATED" + ListVcnsSortByDisplayname ListVcnsSortByEnum = "DISPLAYNAME" ) -var mappingListVcnsSortBy = map[string]ListVcnsSortByEnum { - "TIMECREATED": ListVcnsSortByTimecreated, - "DISPLAYNAME": ListVcnsSortByDisplayname, - "UNKNOWN": ListVcnsSortByUnknown, +var mappingListVcnsSortBy = map[string]ListVcnsSortByEnum{ + "TIMECREATED": ListVcnsSortByTimecreated, + "DISPLAYNAME": ListVcnsSortByDisplayname, } // GetListVcnsSortByEnumValues Enumerates the set of values for ListVcnsSortBy func GetListVcnsSortByEnumValues() []ListVcnsSortByEnum { - values := make([]ListVcnsSortByEnum, 0) - for _, v := range mappingListVcnsSortBy { - if v != ListVcnsSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListVcnsSortByEnum, 0) + for _, v := range mappingListVcnsSortBy { + values = append(values, v) + } + return values } // ListVcnsSortOrderEnum Enum with underlying type: string @@ -103,25 +96,20 @@ type ListVcnsSortOrderEnum string // Set of constants representing the allowable values for ListVcnsSortOrder const ( - ListVcnsSortOrderAsc ListVcnsSortOrderEnum = "ASC" - ListVcnsSortOrderDesc ListVcnsSortOrderEnum = "DESC" - ListVcnsSortOrderUnknown ListVcnsSortOrderEnum = "UNKNOWN" + ListVcnsSortOrderAsc ListVcnsSortOrderEnum = "ASC" + ListVcnsSortOrderDesc ListVcnsSortOrderEnum = "DESC" ) -var mappingListVcnsSortOrder = map[string]ListVcnsSortOrderEnum { - "ASC": ListVcnsSortOrderAsc, - "DESC": ListVcnsSortOrderDesc, - "UNKNOWN": ListVcnsSortOrderUnknown, +var mappingListVcnsSortOrder = map[string]ListVcnsSortOrderEnum{ + "ASC": ListVcnsSortOrderAsc, + "DESC": ListVcnsSortOrderDesc, } // GetListVcnsSortOrderEnumValues Enumerates the set of values for ListVcnsSortOrder func GetListVcnsSortOrderEnumValues() []ListVcnsSortOrderEnum { - values := make([]ListVcnsSortOrderEnum, 0) - for _, v := range mappingListVcnsSortOrder { - if v != ListVcnsSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListVcnsSortOrderEnum, 0) + for _, v := range mappingListVcnsSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_bandwidth_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_bandwidth_shapes_request_response.go index 96a8dce23..3d0ac6253 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_bandwidth_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_bandwidth_shapes_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListVirtualCircuitBandwidthShapesRequest wrapper for the ListVirtualCircuitBandwidthShapes operation type ListVirtualCircuitBandwidthShapesRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListVirtualCircuitBandwidthShapesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListVirtualCircuitBandwidthShapesResponse wrapper for the ListVirtualCircuitBandwidthShapes operation type ListVirtualCircuitBandwidthShapesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []VirtualCircuitBandwidthShape instance - Items []VirtualCircuitBandwidthShape `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []VirtualCircuitBandwidthShape instance + Items []VirtualCircuitBandwidthShape `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListVirtualCircuitBandwidthShapesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_public_prefixes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_public_prefixes_request_response.go index 5b2d15b37..0e885eb36 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_public_prefixes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_public_prefixes_request_response.go @@ -1,46 +1,42 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListVirtualCircuitPublicPrefixesRequest wrapper for the ListVirtualCircuitPublicPrefixes operation type ListVirtualCircuitPublicPrefixesRequest struct { - - // The OCID of the virtual circuit. - VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` - - // A filter to only return resources that match the given verification state. - // The state value is case-insensitive. - VerificationState VirtualCircuitPublicPrefixVerificationStateEnum `mandatory:"false" contributesTo:"query" name:"verificationState" omitEmpty:"true"` + + // The OCID of the virtual circuit. + VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` + + // A filter to only return resources that match the given verification state. + // The state value is case-insensitive. + VerificationState VirtualCircuitPublicPrefixVerificationStateEnum `mandatory:"false" contributesTo:"query" name:"verificationState" omitEmpty:"true"` } func (request ListVirtualCircuitPublicPrefixesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListVirtualCircuitPublicPrefixesResponse wrapper for the ListVirtualCircuitPublicPrefixes operation type ListVirtualCircuitPublicPrefixesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []VirtualCircuitPublicPrefix instance - Items []VirtualCircuitPublicPrefix `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The []VirtualCircuitPublicPrefix instance + Items []VirtualCircuitPublicPrefix `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListVirtualCircuitPublicPrefixesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuits_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuits_request_response.go index ff62337f2..65dc99414 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuits_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuits_request_response.go @@ -1,74 +1,71 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListVirtualCircuitsRequest wrapper for the ListVirtualCircuits operation type ListVirtualCircuitsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListVirtualCircuitsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVirtualCircuitsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the specified lifecycle state. The value is case insensitive. - LifecycleState VirtualCircuitLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListVirtualCircuitsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVirtualCircuitsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + LifecycleState VirtualCircuitLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListVirtualCircuitsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListVirtualCircuitsResponse wrapper for the ListVirtualCircuits operation type ListVirtualCircuitsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []VirtualCircuit instance - Items []VirtualCircuit `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []VirtualCircuit instance + Items []VirtualCircuit `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListVirtualCircuitsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListVirtualCircuitsSortByEnum Enum with underlying type: string @@ -76,26 +73,22 @@ type ListVirtualCircuitsSortByEnum string // Set of constants representing the allowable values for ListVirtualCircuitsSortBy const ( - ListVirtualCircuitsSortByTimecreated ListVirtualCircuitsSortByEnum = "TIMECREATED" - ListVirtualCircuitsSortByDisplayname ListVirtualCircuitsSortByEnum = "DISPLAYNAME" - ListVirtualCircuitsSortByUnknown ListVirtualCircuitsSortByEnum = "UNKNOWN" + ListVirtualCircuitsSortByTimecreated ListVirtualCircuitsSortByEnum = "TIMECREATED" + ListVirtualCircuitsSortByDisplayname ListVirtualCircuitsSortByEnum = "DISPLAYNAME" ) -var mappingListVirtualCircuitsSortBy = map[string]ListVirtualCircuitsSortByEnum { - "TIMECREATED": ListVirtualCircuitsSortByTimecreated, - "DISPLAYNAME": ListVirtualCircuitsSortByDisplayname, - "UNKNOWN": ListVirtualCircuitsSortByUnknown, +var mappingListVirtualCircuitsSortBy = map[string]ListVirtualCircuitsSortByEnum{ + "TIMECREATED": ListVirtualCircuitsSortByTimecreated, + "DISPLAYNAME": ListVirtualCircuitsSortByDisplayname, } // GetListVirtualCircuitsSortByEnumValues Enumerates the set of values for ListVirtualCircuitsSortBy func GetListVirtualCircuitsSortByEnumValues() []ListVirtualCircuitsSortByEnum { - values := make([]ListVirtualCircuitsSortByEnum, 0) - for _, v := range mappingListVirtualCircuitsSortBy { - if v != ListVirtualCircuitsSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListVirtualCircuitsSortByEnum, 0) + for _, v := range mappingListVirtualCircuitsSortBy { + values = append(values, v) + } + return values } // ListVirtualCircuitsSortOrderEnum Enum with underlying type: string @@ -103,25 +96,20 @@ type ListVirtualCircuitsSortOrderEnum string // Set of constants representing the allowable values for ListVirtualCircuitsSortOrder const ( - ListVirtualCircuitsSortOrderAsc ListVirtualCircuitsSortOrderEnum = "ASC" - ListVirtualCircuitsSortOrderDesc ListVirtualCircuitsSortOrderEnum = "DESC" - ListVirtualCircuitsSortOrderUnknown ListVirtualCircuitsSortOrderEnum = "UNKNOWN" + ListVirtualCircuitsSortOrderAsc ListVirtualCircuitsSortOrderEnum = "ASC" + ListVirtualCircuitsSortOrderDesc ListVirtualCircuitsSortOrderEnum = "DESC" ) -var mappingListVirtualCircuitsSortOrder = map[string]ListVirtualCircuitsSortOrderEnum { - "ASC": ListVirtualCircuitsSortOrderAsc, - "DESC": ListVirtualCircuitsSortOrderDesc, - "UNKNOWN": ListVirtualCircuitsSortOrderUnknown, +var mappingListVirtualCircuitsSortOrder = map[string]ListVirtualCircuitsSortOrderEnum{ + "ASC": ListVirtualCircuitsSortOrderAsc, + "DESC": ListVirtualCircuitsSortOrderDesc, } // GetListVirtualCircuitsSortOrderEnumValues Enumerates the set of values for ListVirtualCircuitsSortOrder func GetListVirtualCircuitsSortOrderEnumValues() []ListVirtualCircuitsSortOrderEnum { - values := make([]ListVirtualCircuitsSortOrderEnum, 0) - for _, v := range mappingListVirtualCircuitsSortOrder { - if v != ListVirtualCircuitsSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListVirtualCircuitsSortOrderEnum, 0) + for _, v := range mappingListVirtualCircuitsSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_vnic_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_vnic_attachments_request_response.go index 2b13524e8..6746850b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_vnic_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_vnic_attachments_request_response.go @@ -1,64 +1,60 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListVnicAttachmentsRequest wrapper for the ListVnicAttachments operation type ListVnicAttachmentsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // The OCID of the instance. - InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID of the VNIC. - VnicId *string `mandatory:"false" contributesTo:"query" name:"vnicId"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The OCID of the instance. + InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the VNIC. + VnicId *string `mandatory:"false" contributesTo:"query" name:"vnicId"` } func (request ListVnicAttachmentsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListVnicAttachmentsResponse wrapper for the ListVnicAttachments operation type ListVnicAttachmentsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []VnicAttachment instance - Items []VnicAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []VnicAttachment instance + Items []VnicAttachment `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListVnicAttachmentsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_attachments_request_response.go index 55a5a1fec..5bc7ffdf4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_attachments_request_response.go @@ -1,64 +1,60 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListVolumeAttachmentsRequest wrapper for the ListVolumeAttachments operation type ListVolumeAttachmentsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID of the instance. - InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` - - // The OCID of the volume. - VolumeId *string `mandatory:"false" contributesTo:"query" name:"volumeId"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the instance. + InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` + + // The OCID of the volume. + VolumeId *string `mandatory:"false" contributesTo:"query" name:"volumeId"` } func (request ListVolumeAttachmentsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListVolumeAttachmentsResponse wrapper for the ListVolumeAttachments operation type ListVolumeAttachmentsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []VolumeAttachment instance - Items []VolumeAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []VolumeAttachment instance + Items []VolumeAttachment `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListVolumeAttachmentsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backups_request_response.go index 50975d6f4..19bdff08c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backups_request_response.go @@ -1,77 +1,74 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListVolumeBackupsRequest wrapper for the ListVolumeBackups operation type ListVolumeBackupsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the volume. - VolumeId *string `mandatory:"false" contributesTo:"query" name:"volumeId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListVolumeBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVolumeBackupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState VolumeBackupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the volume. + VolumeId *string `mandatory:"false" contributesTo:"query" name:"volumeId"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListVolumeBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVolumeBackupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState VolumeBackupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListVolumeBackupsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListVolumeBackupsResponse wrapper for the ListVolumeBackups operation type ListVolumeBackupsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []VolumeBackup instance - Items []VolumeBackup `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []VolumeBackup instance + Items []VolumeBackup `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListVolumeBackupsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListVolumeBackupsSortByEnum Enum with underlying type: string @@ -79,26 +76,22 @@ type ListVolumeBackupsSortByEnum string // Set of constants representing the allowable values for ListVolumeBackupsSortBy const ( - ListVolumeBackupsSortByTimecreated ListVolumeBackupsSortByEnum = "TIMECREATED" - ListVolumeBackupsSortByDisplayname ListVolumeBackupsSortByEnum = "DISPLAYNAME" - ListVolumeBackupsSortByUnknown ListVolumeBackupsSortByEnum = "UNKNOWN" + ListVolumeBackupsSortByTimecreated ListVolumeBackupsSortByEnum = "TIMECREATED" + ListVolumeBackupsSortByDisplayname ListVolumeBackupsSortByEnum = "DISPLAYNAME" ) -var mappingListVolumeBackupsSortBy = map[string]ListVolumeBackupsSortByEnum { - "TIMECREATED": ListVolumeBackupsSortByTimecreated, - "DISPLAYNAME": ListVolumeBackupsSortByDisplayname, - "UNKNOWN": ListVolumeBackupsSortByUnknown, +var mappingListVolumeBackupsSortBy = map[string]ListVolumeBackupsSortByEnum{ + "TIMECREATED": ListVolumeBackupsSortByTimecreated, + "DISPLAYNAME": ListVolumeBackupsSortByDisplayname, } // GetListVolumeBackupsSortByEnumValues Enumerates the set of values for ListVolumeBackupsSortBy func GetListVolumeBackupsSortByEnumValues() []ListVolumeBackupsSortByEnum { - values := make([]ListVolumeBackupsSortByEnum, 0) - for _, v := range mappingListVolumeBackupsSortBy { - if v != ListVolumeBackupsSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListVolumeBackupsSortByEnum, 0) + for _, v := range mappingListVolumeBackupsSortBy { + values = append(values, v) + } + return values } // ListVolumeBackupsSortOrderEnum Enum with underlying type: string @@ -106,25 +99,20 @@ type ListVolumeBackupsSortOrderEnum string // Set of constants representing the allowable values for ListVolumeBackupsSortOrder const ( - ListVolumeBackupsSortOrderAsc ListVolumeBackupsSortOrderEnum = "ASC" - ListVolumeBackupsSortOrderDesc ListVolumeBackupsSortOrderEnum = "DESC" - ListVolumeBackupsSortOrderUnknown ListVolumeBackupsSortOrderEnum = "UNKNOWN" + ListVolumeBackupsSortOrderAsc ListVolumeBackupsSortOrderEnum = "ASC" + ListVolumeBackupsSortOrderDesc ListVolumeBackupsSortOrderEnum = "DESC" ) -var mappingListVolumeBackupsSortOrder = map[string]ListVolumeBackupsSortOrderEnum { - "ASC": ListVolumeBackupsSortOrderAsc, - "DESC": ListVolumeBackupsSortOrderDesc, - "UNKNOWN": ListVolumeBackupsSortOrderUnknown, +var mappingListVolumeBackupsSortOrder = map[string]ListVolumeBackupsSortOrderEnum{ + "ASC": ListVolumeBackupsSortOrderAsc, + "DESC": ListVolumeBackupsSortOrderDesc, } // GetListVolumeBackupsSortOrderEnumValues Enumerates the set of values for ListVolumeBackupsSortOrder func GetListVolumeBackupsSortOrderEnumValues() []ListVolumeBackupsSortOrderEnum { - values := make([]ListVolumeBackupsSortOrderEnum, 0) - for _, v := range mappingListVolumeBackupsSortOrder { - if v != ListVolumeBackupsSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListVolumeBackupsSortOrderEnum, 0) + for _, v := range mappingListVolumeBackupsSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_volumes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_volumes_request_response.go index e3839b6e0..20bb4c553 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_volumes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_volumes_request_response.go @@ -1,78 +1,75 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListVolumesRequest wrapper for the ListVolumes operation type ListVolumesRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListVolumesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVolumesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState VolumeLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListVolumesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVolumesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState VolumeLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListVolumesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListVolumesResponse wrapper for the ListVolumes operation type ListVolumesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Volume instance - Items []Volume `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []Volume instance + Items []Volume `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListVolumesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListVolumesSortByEnum Enum with underlying type: string @@ -80,26 +77,22 @@ type ListVolumesSortByEnum string // Set of constants representing the allowable values for ListVolumesSortBy const ( - ListVolumesSortByTimecreated ListVolumesSortByEnum = "TIMECREATED" - ListVolumesSortByDisplayname ListVolumesSortByEnum = "DISPLAYNAME" - ListVolumesSortByUnknown ListVolumesSortByEnum = "UNKNOWN" + ListVolumesSortByTimecreated ListVolumesSortByEnum = "TIMECREATED" + ListVolumesSortByDisplayname ListVolumesSortByEnum = "DISPLAYNAME" ) -var mappingListVolumesSortBy = map[string]ListVolumesSortByEnum { - "TIMECREATED": ListVolumesSortByTimecreated, - "DISPLAYNAME": ListVolumesSortByDisplayname, - "UNKNOWN": ListVolumesSortByUnknown, +var mappingListVolumesSortBy = map[string]ListVolumesSortByEnum{ + "TIMECREATED": ListVolumesSortByTimecreated, + "DISPLAYNAME": ListVolumesSortByDisplayname, } // GetListVolumesSortByEnumValues Enumerates the set of values for ListVolumesSortBy func GetListVolumesSortByEnumValues() []ListVolumesSortByEnum { - values := make([]ListVolumesSortByEnum, 0) - for _, v := range mappingListVolumesSortBy { - if v != ListVolumesSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListVolumesSortByEnum, 0) + for _, v := range mappingListVolumesSortBy { + values = append(values, v) + } + return values } // ListVolumesSortOrderEnum Enum with underlying type: string @@ -107,25 +100,20 @@ type ListVolumesSortOrderEnum string // Set of constants representing the allowable values for ListVolumesSortOrder const ( - ListVolumesSortOrderAsc ListVolumesSortOrderEnum = "ASC" - ListVolumesSortOrderDesc ListVolumesSortOrderEnum = "DESC" - ListVolumesSortOrderUnknown ListVolumesSortOrderEnum = "UNKNOWN" + ListVolumesSortOrderAsc ListVolumesSortOrderEnum = "ASC" + ListVolumesSortOrderDesc ListVolumesSortOrderEnum = "DESC" ) -var mappingListVolumesSortOrder = map[string]ListVolumesSortOrderEnum { - "ASC": ListVolumesSortOrderAsc, - "DESC": ListVolumesSortOrderDesc, - "UNKNOWN": ListVolumesSortOrderUnknown, +var mappingListVolumesSortOrder = map[string]ListVolumesSortOrderEnum{ + "ASC": ListVolumesSortOrderAsc, + "DESC": ListVolumesSortOrderDesc, } // GetListVolumesSortOrderEnumValues Enumerates the set of values for ListVolumesSortOrder func GetListVolumesSortOrderEnumValues() []ListVolumesSortOrderEnum { - values := make([]ListVolumesSortOrderEnum, 0) - for _, v := range mappingListVolumesSortOrder { - if v != ListVolumesSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListVolumesSortOrderEnum, 0) + for _, v := range mappingListVolumesSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/local_peering_gateway.go b/vendor/github.com/oracle/oci-go-sdk/core/local_peering_gateway.go index a7640c1f8..61242c667 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/local_peering_gateway.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/local_peering_gateway.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,128 +9,115 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // LocalPeeringGateway A local peering gateway (LPG) is an object on a VCN that lets that VCN peer - // with another VCN in the same region. *Peering* means that the two VCNs can - // communicate using private IP addresses, but without the traffic traversing the - // internet or routing through your on-premises network. For more information, - // see [VCN Peering]({{DOC_SERVER_URL}}/Content/Network/Tasks/VCNpeering.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// LocalPeeringGateway A local peering gateway (LPG) is an object on a VCN that lets that VCN peer +// with another VCN in the same region. *Peering* means that the two VCNs can +// communicate using private IP addresses, but without the traffic traversing the +// internet or routing through your on-premises network. For more information, +// see VCN Peering (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/VCNpeering.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type LocalPeeringGateway struct { - - // The OCID of the compartment containing the LPG. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid - // entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The LPG's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // Whether the VCN at the other end of the peering is in a different tenancy. - // Example: `false` - IsCrossTenancyPeering *bool `mandatory:"true" json:"isCrossTenancyPeering"` - - // The LPG's current lifecycle state. - LifecycleState LocalPeeringGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Whether the LPG is peered with another LPG. `NEW` means the LPG has not yet been - // peered. `PENDING` means the peering is being established. `REVOKED` means the - // LPG at the other end of the peering has been deleted. - PeeringStatus LocalPeeringGatewayPeeringStatusEnum `mandatory:"true" json:"peeringStatus"` - - // The date and time the LPG was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the VCN the LPG belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The range of IP addresses available on the VCN at the other - // end of the peering from this LPG. The value is `null` if the LPG is not peered. - // You can use this as the destination CIDR for a route rule to route a subnet's - // traffic to this LPG. - // Example: `192.168.0.0/16` - PeerAdvertisedCidr *string `mandatory:"false" json:"peerAdvertisedCidr"` - - // Additional information regarding the peering status, if applicable. - PeeringStatusDetails *string `mandatory:"false" json:"peeringStatusDetails"` + + // The OCID of the compartment containing the LPG. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid + // entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The LPG's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // Whether the VCN at the other end of the peering is in a different tenancy. + // Example: `false` + IsCrossTenancyPeering *bool `mandatory:"true" json:"isCrossTenancyPeering"` + + // The LPG's current lifecycle state. + LifecycleState LocalPeeringGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Whether the LPG is peered with another LPG. `NEW` means the LPG has not yet been + // peered. `PENDING` means the peering is being established. `REVOKED` means the + // LPG at the other end of the peering has been deleted. + PeeringStatus LocalPeeringGatewayPeeringStatusEnum `mandatory:"true" json:"peeringStatus"` + + // The date and time the LPG was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the VCN the LPG belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The range of IP addresses available on the VCN at the other + // end of the peering from this LPG. The value is `null` if the LPG is not peered. + // You can use this as the destination CIDR for a route rule to route a subnet's + // traffic to this LPG. + // Example: `192.168.0.0/16` + PeerAdvertisedCidr *string `mandatory:"false" json:"peerAdvertisedCidr"` + + // Additional information regarding the peering status, if applicable. + PeeringStatusDetails *string `mandatory:"false" json:"peeringStatusDetails"` } func (m LocalPeeringGateway) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // LocalPeeringGatewayLifecycleStateEnum Enum with underlying type: string type LocalPeeringGatewayLifecycleStateEnum string // Set of constants representing the allowable values for LocalPeeringGatewayLifecycleState const ( - LocalPeeringGatewayLifecycleStateProvisioning LocalPeeringGatewayLifecycleStateEnum = "PROVISIONING" - LocalPeeringGatewayLifecycleStateAvailable LocalPeeringGatewayLifecycleStateEnum = "AVAILABLE" - LocalPeeringGatewayLifecycleStateTerminating LocalPeeringGatewayLifecycleStateEnum = "TERMINATING" - LocalPeeringGatewayLifecycleStateTerminated LocalPeeringGatewayLifecycleStateEnum = "TERMINATED" - LocalPeeringGatewayLifecycleStateUnknown LocalPeeringGatewayLifecycleStateEnum = "UNKNOWN" + LocalPeeringGatewayLifecycleStateProvisioning LocalPeeringGatewayLifecycleStateEnum = "PROVISIONING" + LocalPeeringGatewayLifecycleStateAvailable LocalPeeringGatewayLifecycleStateEnum = "AVAILABLE" + LocalPeeringGatewayLifecycleStateTerminating LocalPeeringGatewayLifecycleStateEnum = "TERMINATING" + LocalPeeringGatewayLifecycleStateTerminated LocalPeeringGatewayLifecycleStateEnum = "TERMINATED" ) -var mappingLocalPeeringGatewayLifecycleState = map[string]LocalPeeringGatewayLifecycleStateEnum { - "PROVISIONING": LocalPeeringGatewayLifecycleStateProvisioning, - "AVAILABLE": LocalPeeringGatewayLifecycleStateAvailable, - "TERMINATING": LocalPeeringGatewayLifecycleStateTerminating, - "TERMINATED": LocalPeeringGatewayLifecycleStateTerminated, - "UNKNOWN": LocalPeeringGatewayLifecycleStateUnknown, +var mappingLocalPeeringGatewayLifecycleState = map[string]LocalPeeringGatewayLifecycleStateEnum{ + "PROVISIONING": LocalPeeringGatewayLifecycleStateProvisioning, + "AVAILABLE": LocalPeeringGatewayLifecycleStateAvailable, + "TERMINATING": LocalPeeringGatewayLifecycleStateTerminating, + "TERMINATED": LocalPeeringGatewayLifecycleStateTerminated, } // GetLocalPeeringGatewayLifecycleStateEnumValues Enumerates the set of values for LocalPeeringGatewayLifecycleState func GetLocalPeeringGatewayLifecycleStateEnumValues() []LocalPeeringGatewayLifecycleStateEnum { - values := make([]LocalPeeringGatewayLifecycleStateEnum, 0) - for _, v := range mappingLocalPeeringGatewayLifecycleState { - if v != LocalPeeringGatewayLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]LocalPeeringGatewayLifecycleStateEnum, 0) + for _, v := range mappingLocalPeeringGatewayLifecycleState { + values = append(values, v) + } + return values } + // LocalPeeringGatewayPeeringStatusEnum Enum with underlying type: string type LocalPeeringGatewayPeeringStatusEnum string // Set of constants representing the allowable values for LocalPeeringGatewayPeeringStatus const ( - LocalPeeringGatewayPeeringStatusInvalid LocalPeeringGatewayPeeringStatusEnum = "INVALID" - LocalPeeringGatewayPeeringStatusNew LocalPeeringGatewayPeeringStatusEnum = "NEW" - LocalPeeringGatewayPeeringStatusPeered LocalPeeringGatewayPeeringStatusEnum = "PEERED" - LocalPeeringGatewayPeeringStatusPending LocalPeeringGatewayPeeringStatusEnum = "PENDING" - LocalPeeringGatewayPeeringStatusRevoked LocalPeeringGatewayPeeringStatusEnum = "REVOKED" - LocalPeeringGatewayPeeringStatusUnknown LocalPeeringGatewayPeeringStatusEnum = "UNKNOWN" + LocalPeeringGatewayPeeringStatusInvalid LocalPeeringGatewayPeeringStatusEnum = "INVALID" + LocalPeeringGatewayPeeringStatusNew LocalPeeringGatewayPeeringStatusEnum = "NEW" + LocalPeeringGatewayPeeringStatusPeered LocalPeeringGatewayPeeringStatusEnum = "PEERED" + LocalPeeringGatewayPeeringStatusPending LocalPeeringGatewayPeeringStatusEnum = "PENDING" + LocalPeeringGatewayPeeringStatusRevoked LocalPeeringGatewayPeeringStatusEnum = "REVOKED" ) -var mappingLocalPeeringGatewayPeeringStatus = map[string]LocalPeeringGatewayPeeringStatusEnum { - "INVALID": LocalPeeringGatewayPeeringStatusInvalid, - "NEW": LocalPeeringGatewayPeeringStatusNew, - "PEERED": LocalPeeringGatewayPeeringStatusPeered, - "PENDING": LocalPeeringGatewayPeeringStatusPending, - "REVOKED": LocalPeeringGatewayPeeringStatusRevoked, - "UNKNOWN": LocalPeeringGatewayPeeringStatusUnknown, +var mappingLocalPeeringGatewayPeeringStatus = map[string]LocalPeeringGatewayPeeringStatusEnum{ + "INVALID": LocalPeeringGatewayPeeringStatusInvalid, + "NEW": LocalPeeringGatewayPeeringStatusNew, + "PEERED": LocalPeeringGatewayPeeringStatusPeered, + "PENDING": LocalPeeringGatewayPeeringStatusPending, + "REVOKED": LocalPeeringGatewayPeeringStatusRevoked, } // GetLocalPeeringGatewayPeeringStatusEnumValues Enumerates the set of values for LocalPeeringGatewayPeeringStatus func GetLocalPeeringGatewayPeeringStatusEnumValues() []LocalPeeringGatewayPeeringStatusEnum { - values := make([]LocalPeeringGatewayPeeringStatusEnum, 0) - for _, v := range mappingLocalPeeringGatewayPeeringStatus { - if v != LocalPeeringGatewayPeeringStatusUnknown { - values = append(values, v) - } - } - return values + values := make([]LocalPeeringGatewayPeeringStatusEnum, 0) + for _, v := range mappingLocalPeeringGatewayPeeringStatus { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/port_range.go b/vendor/github.com/oracle/oci-go-sdk/core/port_range.go index 8506154f7..f01332769 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/port_range.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/port_range.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,27 +9,20 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // PortRange The representation of PortRange +// PortRange The representation of PortRange type PortRange struct { - - // The maximum port number. Must not be lower than the minimum port number. To specify - // a single port number, set both the min and max to the same value. - Max *int `mandatory:"true" json:"max"` - - // The minimum port number. Must not be greater than the maximum port number. - Min *int `mandatory:"true" json:"min"` + + // The maximum port number. Must not be lower than the minimum port number. To specify + // a single port number, set both the min and max to the same value. + Max *int `mandatory:"true" json:"max"` + + // The minimum port number. Must not be greater than the maximum port number. + Min *int `mandatory:"true" json:"min"` } func (m PortRange) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/private_ip.go b/vendor/github.com/oracle/oci-go-sdk/core/private_ip.go index 49916b918..7ae7b37a0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/private_ip.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/private_ip.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,88 +9,81 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // PrivateIp A *private IP* is a conceptual term that refers to a private IP address and related properties. - // The `privateIp` object is the API representation of a private IP. - // Each instance has a *primary private IP* that is automatically created and - // assigned to the primary VNIC during instance launch. If you add a secondary - // VNIC to the instance, it also automatically gets a primary private IP. You - // can't remove a primary private IP from its VNIC. The primary private IP is - // automatically deleted when the VNIC is terminated. - // You can add *secondary private IPs* to a VNIC after it's created. For more - // information, see the `privateIp` operations and also - // [IP Addresses]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingIPaddresses.htm). - // **Note:** Only - // ListPrivateIps and - // GetPrivateIp work with - // *primary* private IPs. To create and update primary private IPs, you instead - // work with instance and VNIC operations. For example, a primary private IP's - // properties come from the values you specify in - // CreateVnicDetails when calling either - // LaunchInstance or - // AttachVnic. To update the hostname - // for a primary private IP, you use UpdateVnic. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// PrivateIp A *private IP* is a conceptual term that refers to a private IP address and related properties. +// The `privateIp` object is the API representation of a private IP. +// Each instance has a *primary private IP* that is automatically created and +// assigned to the primary VNIC during instance launch. If you add a secondary +// VNIC to the instance, it also automatically gets a primary private IP. You +// can't remove a primary private IP from its VNIC. The primary private IP is +// automatically deleted when the VNIC is terminated. +// You can add *secondary private IPs* to a VNIC after it's created. For more +// information, see the `privateIp` operations and also +// IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPaddresses.htm). +// **Note:** Only +// ListPrivateIps and +// GetPrivateIp work with +// *primary* private IPs. To create and update primary private IPs, you instead +// work with instance and VNIC operations. For example, a primary private IP's +// properties come from the values you specify in +// CreateVnicDetails when calling either +// LaunchInstance or +// AttachVnic. To update the hostname +// for a primary private IP, you use UpdateVnic. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type PrivateIp struct { - - // The private IP's Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID of the compartment containing the private IP. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid - // entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The hostname for the private IP. Used for DNS. The value is the hostname - // portion of the private IP's fully qualified domain name (FQDN) - // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be unique across all VNICs in the subnet and comply with - // [RFC 952](https://tools.ietf.org/html/rfc952) and - // [RFC 1123](https://tools.ietf.org/html/rfc1123). - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // Example: `bminstance-1` - HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - - // The private IP's Oracle ID (OCID). - Id *string `mandatory:"false" json:"id"` - - // The private IP address of the `privateIp` object. The address is within the CIDR - // of the VNIC's subnet. - // Example: `10.0.3.3` - IpAddress *string `mandatory:"false" json:"ipAddress"` - - // Whether this private IP is the primary one on the VNIC. Primary private IPs - // are unassigned and deleted automatically when the VNIC is terminated. - // Example: `true` - IsPrimary *bool `mandatory:"false" json:"isPrimary"` - - // The OCID of the subnet the VNIC is in. - SubnetId *string `mandatory:"false" json:"subnetId"` - - // The date and time the private IP was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The OCID of the VNIC the private IP is assigned to. The VNIC and private IP - // must be in the same subnet. - VnicId *string `mandatory:"false" json:"vnicId"` -} -func (m PrivateIp) String() string { - return common.PointerString(m) -} + // The private IP's Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID of the compartment containing the private IP. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid + // entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + // The hostname for the private IP. Used for DNS. The value is the hostname + // portion of the private IP's fully qualified domain name (FQDN) + // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be unique across all VNICs in the subnet and comply with + // RFC 952 (https://tools.ietf.org/html/rfc952) and + // RFC 1123 (https://tools.ietf.org/html/rfc1123). + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // Example: `bminstance-1` + HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` + // The private IP's Oracle ID (OCID). + Id *string `mandatory:"false" json:"id"` + // The private IP address of the `privateIp` object. The address is within the CIDR + // of the VNIC's subnet. + // Example: `10.0.3.3` + IpAddress *string `mandatory:"false" json:"ipAddress"` + // Whether this private IP is the primary one on the VNIC. Primary private IPs + // are unassigned and deleted automatically when the VNIC is terminated. + // Example: `true` + IsPrimary *bool `mandatory:"false" json:"isPrimary"` + // The OCID of the subnet the VNIC is in. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // The date and time the private IP was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the VNIC the private IP is assigned to. The VNIC and private IP + // must be in the same subnet. + VnicId *string `mandatory:"false" json:"vnicId"` +} + +func (m PrivateIp) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/remove_image_shape_compatibility_entry_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/remove_image_shape_compatibility_entry_request_response.go deleted file mode 100644 index a731e2992..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/core/remove_image_shape_compatibility_entry_request_response.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// RemoveImageShapeCompatibilityEntryRequest wrapper for the RemoveImageShapeCompatibilityEntry operation -type RemoveImageShapeCompatibilityEntryRequest struct { - - // The OCID of the image. - ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` - - // Shape name. - ShapeName *string `mandatory:"true" contributesTo:"path" name:"shapeName"` -} - -func (request RemoveImageShapeCompatibilityEntryRequest) String() string { - return common.PointerString(request) -} - -// RemoveImageShapeCompatibilityEntryResponse wrapper for the RemoveImageShapeCompatibilityEntry operation -type RemoveImageShapeCompatibilityEntryResponse struct { - - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response RemoveImageShapeCompatibilityEntryResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/route_rule.go b/vendor/github.com/oracle/oci-go-sdk/core/route_rule.go index 8fc37224f..11b0e1b2a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/route_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/route_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,31 +9,24 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // RouteRule A mapping between a destination IP address range and a virtual device to route matching - // packets to (a target). +// RouteRule A mapping between a destination IP address range and a virtual device to route matching +// packets to (a target). type RouteRule struct { - - // A destination IP address range in CIDR notation. Matching packets will - // be routed to the indicated network entity (the target). - // Example: `0.0.0.0/0` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // The OCID for the route rule's target. For information about the type of - // targets you can specify, see - // [Route Tables]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingroutetables.htm). - NetworkEntityId *string `mandatory:"true" json:"networkEntityId"` + + // A destination IP address range in CIDR notation. Matching packets will + // be routed to the indicated network entity (the target). + // Example: `0.0.0.0/0` + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // The OCID for the route rule's target. For information about the type of + // targets you can specify, see + // Route Tables (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm). + NetworkEntityId *string `mandatory:"true" json:"networkEntityId"` } func (m RouteRule) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/route_table.go b/vendor/github.com/oracle/oci-go-sdk/core/route_table.go index e542706dd..f255d131c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/route_table.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/route_table.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,78 +9,68 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // RouteTable A collection of `RouteRule` objects, which are used to route packets - // based on destination IP to a particular network entity. For more information, see - // [Overview of the Networking Service]({{DOC_SERVER_URL}}/Content/Network/Concepts/overview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// RouteTable A collection of `RouteRule` objects, which are used to route packets +// based on destination IP to a particular network entity. For more information, see +// Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type RouteTable struct { - - // The OCID of the compartment containing the route table. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The route table's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The route table's current state. - LifecycleState RouteTableLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The collection of rules for routing destination IPs to network devices. - RouteRules []RouteRule `mandatory:"true" json:"routeRules"` - - // The OCID of the VCN the route table list belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The date and time the route table was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the compartment containing the route table. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The route table's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The route table's current state. + LifecycleState RouteTableLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The collection of rules for routing destination IPs to network devices. + RouteRules []RouteRule `mandatory:"true" json:"routeRules"` + + // The OCID of the VCN the route table list belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The date and time the route table was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m RouteTable) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // RouteTableLifecycleStateEnum Enum with underlying type: string type RouteTableLifecycleStateEnum string // Set of constants representing the allowable values for RouteTableLifecycleState const ( - RouteTableLifecycleStateProvisioning RouteTableLifecycleStateEnum = "PROVISIONING" - RouteTableLifecycleStateAvailable RouteTableLifecycleStateEnum = "AVAILABLE" - RouteTableLifecycleStateTerminating RouteTableLifecycleStateEnum = "TERMINATING" - RouteTableLifecycleStateTerminated RouteTableLifecycleStateEnum = "TERMINATED" - RouteTableLifecycleStateUnknown RouteTableLifecycleStateEnum = "UNKNOWN" + RouteTableLifecycleStateProvisioning RouteTableLifecycleStateEnum = "PROVISIONING" + RouteTableLifecycleStateAvailable RouteTableLifecycleStateEnum = "AVAILABLE" + RouteTableLifecycleStateTerminating RouteTableLifecycleStateEnum = "TERMINATING" + RouteTableLifecycleStateTerminated RouteTableLifecycleStateEnum = "TERMINATED" ) -var mappingRouteTableLifecycleState = map[string]RouteTableLifecycleStateEnum { - "PROVISIONING": RouteTableLifecycleStateProvisioning, - "AVAILABLE": RouteTableLifecycleStateAvailable, - "TERMINATING": RouteTableLifecycleStateTerminating, - "TERMINATED": RouteTableLifecycleStateTerminated, - "UNKNOWN": RouteTableLifecycleStateUnknown, +var mappingRouteTableLifecycleState = map[string]RouteTableLifecycleStateEnum{ + "PROVISIONING": RouteTableLifecycleStateProvisioning, + "AVAILABLE": RouteTableLifecycleStateAvailable, + "TERMINATING": RouteTableLifecycleStateTerminating, + "TERMINATED": RouteTableLifecycleStateTerminated, } // GetRouteTableLifecycleStateEnumValues Enumerates the set of values for RouteTableLifecycleState func GetRouteTableLifecycleStateEnumValues() []RouteTableLifecycleStateEnum { - values := make([]RouteTableLifecycleStateEnum, 0) - for _, v := range mappingRouteTableLifecycleState { - if v != RouteTableLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]RouteTableLifecycleStateEnum, 0) + for _, v := range mappingRouteTableLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/security_list.go b/vendor/github.com/oracle/oci-go-sdk/core/security_list.go index 6c8fff920..d55bcd206 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/security_list.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/security_list.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,86 +9,76 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // SecurityList A set of virtual firewall rules for your VCN. Security lists are configured at the subnet - // level, but the rules are applied to the ingress and egress traffic for the individual instances - // in the subnet. The rules can be stateful or stateless. For more information, see - // [Security Lists]({{DOC_SERVER_URL}}/Content/Network/Concepts/securitylists.htm). - // **Important:** Oracle Cloud Infrastructure Compute service images automatically include firewall rules (for example, - // Linux iptables, Windows firewall). If there are issues with some type of access to an instance, - // make sure both the security lists associated with the instance's subnet and the instance's - // firewall rules are set correctly. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// SecurityList A set of virtual firewall rules for your VCN. Security lists are configured at the subnet +// level, but the rules are applied to the ingress and egress traffic for the individual instances +// in the subnet. The rules can be stateful or stateless. For more information, see +// Security Lists (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/securitylists.htm). +// **Important:** Oracle Cloud Infrastructure Compute service images automatically include firewall rules (for example, +// Linux iptables, Windows firewall). If there are issues with some type of access to an instance, +// make sure both the security lists associated with the instance's subnet and the instance's +// firewall rules are set correctly. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type SecurityList struct { - - // The OCID of the compartment containing the security list. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // Rules for allowing egress IP packets. - EgressSecurityRules []EgressSecurityRule `mandatory:"true" json:"egressSecurityRules"` - - // The security list's Oracle Cloud ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // Rules for allowing ingress IP packets. - IngressSecurityRules []IngressSecurityRule `mandatory:"true" json:"ingressSecurityRules"` - - // The security list's current state. - LifecycleState SecurityListLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the security list was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the VCN the security list belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` + + // The OCID of the compartment containing the security list. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // Rules for allowing egress IP packets. + EgressSecurityRules []EgressSecurityRule `mandatory:"true" json:"egressSecurityRules"` + + // The security list's Oracle Cloud ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // Rules for allowing ingress IP packets. + IngressSecurityRules []IngressSecurityRule `mandatory:"true" json:"ingressSecurityRules"` + + // The security list's current state. + LifecycleState SecurityListLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the security list was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the VCN the security list belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` } func (m SecurityList) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // SecurityListLifecycleStateEnum Enum with underlying type: string type SecurityListLifecycleStateEnum string // Set of constants representing the allowable values for SecurityListLifecycleState const ( - SecurityListLifecycleStateProvisioning SecurityListLifecycleStateEnum = "PROVISIONING" - SecurityListLifecycleStateAvailable SecurityListLifecycleStateEnum = "AVAILABLE" - SecurityListLifecycleStateTerminating SecurityListLifecycleStateEnum = "TERMINATING" - SecurityListLifecycleStateTerminated SecurityListLifecycleStateEnum = "TERMINATED" - SecurityListLifecycleStateUnknown SecurityListLifecycleStateEnum = "UNKNOWN" + SecurityListLifecycleStateProvisioning SecurityListLifecycleStateEnum = "PROVISIONING" + SecurityListLifecycleStateAvailable SecurityListLifecycleStateEnum = "AVAILABLE" + SecurityListLifecycleStateTerminating SecurityListLifecycleStateEnum = "TERMINATING" + SecurityListLifecycleStateTerminated SecurityListLifecycleStateEnum = "TERMINATED" ) -var mappingSecurityListLifecycleState = map[string]SecurityListLifecycleStateEnum { - "PROVISIONING": SecurityListLifecycleStateProvisioning, - "AVAILABLE": SecurityListLifecycleStateAvailable, - "TERMINATING": SecurityListLifecycleStateTerminating, - "TERMINATED": SecurityListLifecycleStateTerminated, - "UNKNOWN": SecurityListLifecycleStateUnknown, +var mappingSecurityListLifecycleState = map[string]SecurityListLifecycleStateEnum{ + "PROVISIONING": SecurityListLifecycleStateProvisioning, + "AVAILABLE": SecurityListLifecycleStateAvailable, + "TERMINATING": SecurityListLifecycleStateTerminating, + "TERMINATED": SecurityListLifecycleStateTerminated, } // GetSecurityListLifecycleStateEnumValues Enumerates the set of values for SecurityListLifecycleState func GetSecurityListLifecycleStateEnumValues() []SecurityListLifecycleStateEnum { - values := make([]SecurityListLifecycleStateEnum, 0) - for _, v := range mappingSecurityListLifecycleState { - if v != SecurityListLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]SecurityListLifecycleStateEnum, 0) + for _, v := range mappingSecurityListLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/shape.go b/vendor/github.com/oracle/oci-go-sdk/core/shape.go index 619e0e7a7..7cb572cff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/shape.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/shape.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,25 +9,18 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Shape A compute instance shape that can be used in LaunchInstance. - // For more information, see [Overview of the Compute Service]({{DOC_SERVER_URL}}/Content/Compute/Concepts/computeoverview.htm). +// Shape A compute instance shape that can be used in LaunchInstance. +// For more information, see Overview of the Compute Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Concepts/computeoverview.htm). type Shape struct { - - // The name of the shape. You can enumerate all available shapes by calling - // ListShapes. - Shape *string `mandatory:"true" json:"shape"` + + // The name of the shape. You can enumerate all available shapes by calling + // ListShapes. + Shape *string `mandatory:"true" json:"shape"` } func (m Shape) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/subnet.go b/vendor/github.com/oracle/oci-go-sdk/core/subnet.go index dba0b8ce7..d765cefce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/subnet.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/subnet.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,133 +9,123 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Subnet A logical subdivision of a VCN. Each subnet exists in a single Availability Domain and - // consists of a contiguous range of IP addresses that do not overlap with - // other subnets in the VCN. Example: 172.16.1.0/24. For more information, see - // [Overview of the Networking Service]({{DOC_SERVER_URL}}/Content/Network/Concepts/overview.htm) and - // [VCNs and Subnets]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingVCNs.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Subnet A logical subdivision of a VCN. Each subnet exists in a single Availability Domain and +// consists of a contiguous range of IP addresses that do not overlap with +// other subnets in the VCN. Example: 172.16.1.0/24. For more information, see +// Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm) and +// VCNs and Subnets (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVCNs.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Subnet struct { - - // The subnet's Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The subnet's CIDR block. - // Example: `172.16.1.0/24` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // The OCID of the compartment containing the subnet. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The subnet's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The subnet's current state. - LifecycleState SubnetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID of the route table the subnet is using. - RouteTableId *string `mandatory:"true" json:"routeTableId"` - - // The OCID of the VCN the subnet is in. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The IP address of the virtual router. - // Example: `10.0.14.1` - VirtualRouterIp *string `mandatory:"true" json:"virtualRouterIp"` - - // The MAC address of the virtual router. - // Example: `00:00:17:B6:4D:DD` - VirtualRouterMac *string `mandatory:"true" json:"virtualRouterMac"` - - // The OCID of the set of DHCP options associated with the subnet. - DhcpOptionsId *string `mandatory:"false" json:"dhcpOptionsId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A DNS label for the subnet, used in conjunction with the VNIC's hostname and - // VCN's DNS label to form a fully qualified domain name (FQDN) for each VNIC - // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be an alphanumeric string that begins with a letter and is unique within the VCN. - // The value cannot be changed. - // The absence of this parameter means the Internet and VCN Resolver - // will not resolve hostnames of instances in this subnet. - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // Example: `subnet123` - DnsLabel *string `mandatory:"false" json:"dnsLabel"` - - // Whether VNICs within this subnet can have public IP addresses. - // Defaults to false, which means VNICs created in this subnet will - // automatically be assigned public IP addresses unless specified - // otherwise during instance launch or VNIC creation (with the - // `assignPublicIp` flag in - // CreateVnicDetails). - // If `prohibitPublicIpOnVnic` is set to true, VNICs created in this - // subnet cannot have public IP addresses (that is, it's a private - // subnet). - // Example: `true` - ProhibitPublicIpOnVnic *bool `mandatory:"false" json:"prohibitPublicIpOnVnic"` - - // OCIDs for the security lists to use for VNICs in this subnet. - SecurityListIds []string `mandatory:"false" json:"securityListIds"` - - // The subnet's domain name, which consists of the subnet's DNS label, - // the VCN's DNS label, and the `oraclevcn.com` domain. - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // Example: `subnet123.vcn1.oraclevcn.com` - SubnetDomainName *string `mandatory:"false" json:"subnetDomainName"` - - // The date and time the subnet was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The subnet's Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The subnet's CIDR block. + // Example: `172.16.1.0/24` + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // The OCID of the compartment containing the subnet. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The subnet's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The subnet's current state. + LifecycleState SubnetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID of the route table the subnet is using. + RouteTableId *string `mandatory:"true" json:"routeTableId"` + + // The OCID of the VCN the subnet is in. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The IP address of the virtual router. + // Example: `10.0.14.1` + VirtualRouterIp *string `mandatory:"true" json:"virtualRouterIp"` + + // The MAC address of the virtual router. + // Example: `00:00:17:B6:4D:DD` + VirtualRouterMac *string `mandatory:"true" json:"virtualRouterMac"` + + // The OCID of the set of DHCP options associated with the subnet. + DhcpOptionsId *string `mandatory:"false" json:"dhcpOptionsId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A DNS label for the subnet, used in conjunction with the VNIC's hostname and + // VCN's DNS label to form a fully qualified domain name (FQDN) for each VNIC + // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be an alphanumeric string that begins with a letter and is unique within the VCN. + // The value cannot be changed. + // The absence of this parameter means the Internet and VCN Resolver + // will not resolve hostnames of instances in this subnet. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // Example: `subnet123` + DnsLabel *string `mandatory:"false" json:"dnsLabel"` + + // Whether VNICs within this subnet can have public IP addresses. + // Defaults to false, which means VNICs created in this subnet will + // automatically be assigned public IP addresses unless specified + // otherwise during instance launch or VNIC creation (with the + // `assignPublicIp` flag in + // CreateVnicDetails). + // If `prohibitPublicIpOnVnic` is set to true, VNICs created in this + // subnet cannot have public IP addresses (that is, it's a private + // subnet). + // Example: `true` + ProhibitPublicIpOnVnic *bool `mandatory:"false" json:"prohibitPublicIpOnVnic"` + + // OCIDs for the security lists to use for VNICs in this subnet. + SecurityListIds []string `mandatory:"false" json:"securityListIds"` + + // The subnet's domain name, which consists of the subnet's DNS label, + // the VCN's DNS label, and the `oraclevcn.com` domain. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // Example: `subnet123.vcn1.oraclevcn.com` + SubnetDomainName *string `mandatory:"false" json:"subnetDomainName"` + + // The date and time the subnet was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m Subnet) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // SubnetLifecycleStateEnum Enum with underlying type: string type SubnetLifecycleStateEnum string // Set of constants representing the allowable values for SubnetLifecycleState const ( - SubnetLifecycleStateProvisioning SubnetLifecycleStateEnum = "PROVISIONING" - SubnetLifecycleStateAvailable SubnetLifecycleStateEnum = "AVAILABLE" - SubnetLifecycleStateTerminating SubnetLifecycleStateEnum = "TERMINATING" - SubnetLifecycleStateTerminated SubnetLifecycleStateEnum = "TERMINATED" - SubnetLifecycleStateUnknown SubnetLifecycleStateEnum = "UNKNOWN" + SubnetLifecycleStateProvisioning SubnetLifecycleStateEnum = "PROVISIONING" + SubnetLifecycleStateAvailable SubnetLifecycleStateEnum = "AVAILABLE" + SubnetLifecycleStateTerminating SubnetLifecycleStateEnum = "TERMINATING" + SubnetLifecycleStateTerminated SubnetLifecycleStateEnum = "TERMINATED" ) -var mappingSubnetLifecycleState = map[string]SubnetLifecycleStateEnum { - "PROVISIONING": SubnetLifecycleStateProvisioning, - "AVAILABLE": SubnetLifecycleStateAvailable, - "TERMINATING": SubnetLifecycleStateTerminating, - "TERMINATED": SubnetLifecycleStateTerminated, - "UNKNOWN": SubnetLifecycleStateUnknown, +var mappingSubnetLifecycleState = map[string]SubnetLifecycleStateEnum{ + "PROVISIONING": SubnetLifecycleStateProvisioning, + "AVAILABLE": SubnetLifecycleStateAvailable, + "TERMINATING": SubnetLifecycleStateTerminating, + "TERMINATED": SubnetLifecycleStateTerminated, } // GetSubnetLifecycleStateEnumValues Enumerates the set of values for SubnetLifecycleState func GetSubnetLifecycleStateEnumValues() []SubnetLifecycleStateEnum { - values := make([]SubnetLifecycleStateEnum, 0) - for _, v := range mappingSubnetLifecycleState { - if v != SubnetLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]SubnetLifecycleStateEnum, 0) + for _, v := range mappingSubnetLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/tcp_options.go b/vendor/github.com/oracle/oci-go-sdk/core/tcp_options.go index b37fc8488..4037afbe8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/tcp_options.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/tcp_options.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,29 +9,22 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // TcpOptions Optional object to specify ports for a TCP rule. If you specify TCP as the - // protocol but omit this object, then all ports are allowed. +// TcpOptions Optional object to specify ports for a TCP rule. If you specify TCP as the +// protocol but omit this object, then all ports are allowed. type TcpOptions struct { - - // An inclusive range of allowed destination ports. Use the same number for the min and max - // to indicate a single port. Defaults to all ports if not specified. - DestinationPortRange *PortRange `mandatory:"false" json:"destinationPortRange"` - - // An inclusive range of allowed source ports. Use the same number for the min and max to - // indicate a single port. Defaults to all ports if not specified. - SourcePortRange *PortRange `mandatory:"false" json:"sourcePortRange"` + + // An inclusive range of allowed destination ports. Use the same number for the min and max + // to indicate a single port. Defaults to all ports if not specified. + DestinationPortRange *PortRange `mandatory:"false" json:"destinationPortRange"` + + // An inclusive range of allowed source ports. Use the same number for the min and max to + // indicate a single port. Defaults to all ports if not specified. + SourcePortRange *PortRange `mandatory:"false" json:"sourcePortRange"` } func (m TcpOptions) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/terminate_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/terminate_instance_request_response.go index 7263ba773..085b4c5d8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/terminate_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/terminate_instance_request_response.go @@ -1,48 +1,44 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // TerminateInstanceRequest wrapper for the TerminateInstance operation type TerminateInstanceRequest struct { - - // The OCID of the instance. - InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Specifies whether to delete or preserve the boot volume when terminating an instance. - // The default value is false. - PreserveBootVolume *bool `mandatory:"false" contributesTo:"query" name:"preserveBootVolume"` + + // The OCID of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Specifies whether to delete or preserve the boot volume when terminating an instance. + // The default value is false. + PreserveBootVolume *bool `mandatory:"false" contributesTo:"query" name:"preserveBootVolume"` } func (request TerminateInstanceRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // TerminateInstanceResponse wrapper for the TerminateInstance operation type TerminateInstanceResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response TerminateInstanceResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/tunnel_config.go b/vendor/github.com/oracle/oci-go-sdk/core/tunnel_config.go index 8c4f762bd..fe12d0997 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/tunnel_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/tunnel_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,32 +9,25 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // TunnelConfig Specific connection details for an IPSec tunnel. +// TunnelConfig Specific connection details for an IPSec tunnel. type TunnelConfig struct { - - // The IP address of Oracle's VPN headend. - // Example: `129.146.17.50` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // The shared secret of the IPSec tunnel. - // Example: `vFG2IF6TWq4UToUiLSRDoJEUs6j1c.p8G.dVQxiMfMO0yXMLi.lZTbYIWhGu4V8o` - SharedSecret *string `mandatory:"true" json:"sharedSecret"` - - // The date and time the IPSec connection was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m TunnelConfig) String() string { - return common.PointerString(m) -} - + // The IP address of Oracle's VPN headend. + // Example: `129.146.17.50` + IpAddress *string `mandatory:"true" json:"ipAddress"` + // The shared secret of the IPSec tunnel. + // Example: `vFG2IF6TWq4UToUiLSRDoJEUs6j1c.p8G.dVQxiMfMO0yXMLi.lZTbYIWhGu4V8o` + SharedSecret *string `mandatory:"true" json:"sharedSecret"` + // The date and time the IPSec connection was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} +func (m TunnelConfig) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/tunnel_status.go b/vendor/github.com/oracle/oci-go-sdk/core/tunnel_status.go index b43d97f7f..c2655abc8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/tunnel_status.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/tunnel_status.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,63 +9,53 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // TunnelStatus Specific connection details for an IPSec tunnel. +// TunnelStatus Specific connection details for an IPSec tunnel. type TunnelStatus struct { - - // The IP address of Oracle's VPN headend. - // Example: `129.146.17.50` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // The tunnel's current state. - LifecycleState TunnelStatusLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The date and time the IPSec connection was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // When the state of the tunnel last changed, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeStateModified *common.SDKTime `mandatory:"false" json:"timeStateModified"` + + // The IP address of Oracle's VPN headend. + // Example: `129.146.17.50` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // The tunnel's current state. + LifecycleState TunnelStatusLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The date and time the IPSec connection was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // When the state of the tunnel last changed, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeStateModified *common.SDKTime `mandatory:"false" json:"timeStateModified"` } func (m TunnelStatus) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // TunnelStatusLifecycleStateEnum Enum with underlying type: string type TunnelStatusLifecycleStateEnum string // Set of constants representing the allowable values for TunnelStatusLifecycleState const ( - TunnelStatusLifecycleStateUp TunnelStatusLifecycleStateEnum = "UP" - TunnelStatusLifecycleStateDown TunnelStatusLifecycleStateEnum = "DOWN" - TunnelStatusLifecycleStateDownForMaintenance TunnelStatusLifecycleStateEnum = "DOWN_FOR_MAINTENANCE" - TunnelStatusLifecycleStateUnknown TunnelStatusLifecycleStateEnum = "UNKNOWN" + TunnelStatusLifecycleStateUp TunnelStatusLifecycleStateEnum = "UP" + TunnelStatusLifecycleStateDown TunnelStatusLifecycleStateEnum = "DOWN" + TunnelStatusLifecycleStateDownForMaintenance TunnelStatusLifecycleStateEnum = "DOWN_FOR_MAINTENANCE" ) -var mappingTunnelStatusLifecycleState = map[string]TunnelStatusLifecycleStateEnum { - "UP": TunnelStatusLifecycleStateUp, - "DOWN": TunnelStatusLifecycleStateDown, - "DOWN_FOR_MAINTENANCE": TunnelStatusLifecycleStateDownForMaintenance, - "UNKNOWN": TunnelStatusLifecycleStateUnknown, +var mappingTunnelStatusLifecycleState = map[string]TunnelStatusLifecycleStateEnum{ + "UP": TunnelStatusLifecycleStateUp, + "DOWN": TunnelStatusLifecycleStateDown, + "DOWN_FOR_MAINTENANCE": TunnelStatusLifecycleStateDownForMaintenance, } // GetTunnelStatusLifecycleStateEnumValues Enumerates the set of values for TunnelStatusLifecycleState func GetTunnelStatusLifecycleStateEnumValues() []TunnelStatusLifecycleStateEnum { - values := make([]TunnelStatusLifecycleStateEnum, 0) - for _, v := range mappingTunnelStatusLifecycleState { - if v != TunnelStatusLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]TunnelStatusLifecycleStateEnum, 0) + for _, v := range mappingTunnelStatusLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/udp_options.go b/vendor/github.com/oracle/oci-go-sdk/core/udp_options.go index 592290d97..c68886ee2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/udp_options.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/udp_options.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,29 +9,22 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UdpOptions Optional object to specify ports for a UDP rule. If you specify UDP as the - // protocol but omit this object, then all ports are allowed. +// UdpOptions Optional object to specify ports for a UDP rule. If you specify UDP as the +// protocol but omit this object, then all ports are allowed. type UdpOptions struct { - - // An inclusive range of allowed destination ports. Use the same number for the min and max - // to indicate a single port. Defaults to all ports if not specified. - DestinationPortRange *PortRange `mandatory:"false" json:"destinationPortRange"` - - // An inclusive range of allowed source ports. Use the same number for the min and max to - // indicate a single port. Defaults to all ports if not specified. - SourcePortRange *PortRange `mandatory:"false" json:"sourcePortRange"` + + // An inclusive range of allowed destination ports. Use the same number for the min and max + // to indicate a single port. Defaults to all ports if not specified. + DestinationPortRange *PortRange `mandatory:"false" json:"destinationPortRange"` + + // An inclusive range of allowed source ports. Use the same number for the min and max to + // indicate a single port. Defaults to all ports if not specified. + SourcePortRange *PortRange `mandatory:"false" json:"sourcePortRange"` } func (m UdpOptions) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_details.go index 21f92a33a..ead6727c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateBootVolumeDetails The representation of UpdateBootVolumeDetails +// UpdateBootVolumeDetails The representation of UpdateBootVolumeDetails type UpdateBootVolumeDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateBootVolumeDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_request_response.go index 492d32276..08ea32ad4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateBootVolumeRequest wrapper for the UpdateBootVolume operation type UpdateBootVolumeRequest struct { - - // The OCID of the boot volume. - BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"` - - // Update boot volume's display name. - UpdateBootVolumeDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"` + + // Update boot volume's display name. + UpdateBootVolumeDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateBootVolumeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateBootVolumeResponse wrapper for the UpdateBootVolume operation type UpdateBootVolumeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The BootVolume instance - BootVolume `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The BootVolume instance + BootVolume `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateBootVolumeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_console_history_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_console_history_details.go index b210ed62d..cfecb4ead 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_console_history_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_console_history_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,23 +9,16 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateConsoleHistoryDetails The representation of UpdateConsoleHistoryDetails +// UpdateConsoleHistoryDetails The representation of UpdateConsoleHistoryDetails type UpdateConsoleHistoryDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateConsoleHistoryDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_console_history_request_response.go index 8fa8f4f19..c9bc64732 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_console_history_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateConsoleHistoryRequest wrapper for the UpdateConsoleHistory operation type UpdateConsoleHistoryRequest struct { - - // The OCID of the console history. - InstanceConsoleHistoryId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleHistoryId"` - - // Update instance fields - UpdateConsoleHistoryDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the console history. + InstanceConsoleHistoryId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleHistoryId"` + + // Update instance fields + UpdateConsoleHistoryDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateConsoleHistoryRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateConsoleHistoryResponse wrapper for the UpdateConsoleHistory operation type UpdateConsoleHistoryResponse struct { - // The underlying http response - RawResponse *http.Response - - // The ConsoleHistory instance - ConsoleHistory `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The ConsoleHistory instance + ConsoleHistory `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateConsoleHistoryResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_cpe_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_cpe_details.go index 69292fa5d..bd0daa6ef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_cpe_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_cpe_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateCpeDetails The representation of UpdateCpeDetails +// UpdateCpeDetails The representation of UpdateCpeDetails type UpdateCpeDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateCpeDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_cpe_request_response.go index d7ce560f6..a87170834 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_cpe_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateCpeRequest wrapper for the UpdateCpe operation type UpdateCpeRequest struct { - - // The OCID of the CPE. - CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` - - // Details object for updating a CPE. - UpdateCpeDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the CPE. + CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` + + // Details object for updating a CPE. + UpdateCpeDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateCpeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateCpeResponse wrapper for the UpdateCpe operation type UpdateCpeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Cpe instance - Cpe `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Cpe instance + Cpe `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateCpeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_details.go index cc8196432..4cfa19004 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,30 +9,23 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateCrossConnectDetails Update a CrossConnect +// UpdateCrossConnectDetails Update a CrossConnect type UpdateCrossConnectDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Set to true to activate the cross-connect. You activate it after the physical cabling - // is complete, and you've confirmed the cross-connect's light levels are good and your side - // of the interface is up. Activation indicates to Oracle that the physical connection is ready. - // Example: `true` - IsActive *bool `mandatory:"false" json:"isActive"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Set to true to activate the cross-connect. You activate it after the physical cabling + // is complete, and you've confirmed the cross-connect's light levels are good and your side + // of the interface is up. Activation indicates to Oracle that the physical connection is ready. + // Example: `true` + IsActive *bool `mandatory:"false" json:"isActive"` } func (m UpdateCrossConnectDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_group_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_group_details.go index 89f29343d..97a424d29 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_group_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateCrossConnectGroupDetails The representation of UpdateCrossConnectGroupDetails +// UpdateCrossConnectGroupDetails The representation of UpdateCrossConnectGroupDetails type UpdateCrossConnectGroupDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateCrossConnectGroupDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_group_request_response.go index a21333222..23164788c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_group_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateCrossConnectGroupRequest wrapper for the UpdateCrossConnectGroup operation type UpdateCrossConnectGroupRequest struct { - - // The OCID of the cross-connect group. - CrossConnectGroupId *string `mandatory:"true" contributesTo:"path" name:"crossConnectGroupId"` - - // Update CrossConnectGroup fields - UpdateCrossConnectGroupDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the cross-connect group. + CrossConnectGroupId *string `mandatory:"true" contributesTo:"path" name:"crossConnectGroupId"` + + // Update CrossConnectGroup fields + UpdateCrossConnectGroupDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateCrossConnectGroupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateCrossConnectGroupResponse wrapper for the UpdateCrossConnectGroup operation type UpdateCrossConnectGroupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The CrossConnectGroup instance - CrossConnectGroup `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The CrossConnectGroup instance + CrossConnectGroup `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateCrossConnectGroupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_request_response.go index f7ddaa9d0..8af219a51 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_cross_connect_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateCrossConnectRequest wrapper for the UpdateCrossConnect operation type UpdateCrossConnectRequest struct { - - // The OCID of the cross-connect. - CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` - - // Update CrossConnect fields. - UpdateCrossConnectDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the cross-connect. + CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` + + // Update CrossConnect fields. + UpdateCrossConnectDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateCrossConnectRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateCrossConnectResponse wrapper for the UpdateCrossConnect operation type UpdateCrossConnectResponse struct { - // The underlying http response - RawResponse *http.Response - - // The CrossConnect instance - CrossConnect `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The CrossConnect instance + CrossConnect `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateCrossConnectResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_details.go index 9cbf7fdab..b2e221a13 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,49 +9,43 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateDhcpDetails The representation of UpdateDhcpDetails +// UpdateDhcpDetails The representation of UpdateDhcpDetails type UpdateDhcpDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - Options []DhcpOption `mandatory:"false" json:"options"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + Options []DhcpOption `mandatory:"false" json:"options"` } func (m UpdateDhcpDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // UnmarshalJSON unmarshals from json - func (m *UpdateDhcpDetails) UnmarshalJSON(data []byte) (e error){ - model := struct{ - DisplayName *string `json:"displayName"` - Options []dhcpoption `json:"options"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - m.DisplayName = model.DisplayName - m.Options = make([]DhcpOption, len(model.Options)) - for i, n := range model.Options { - nn, err := n.UnmarshalPolymorphicJSON(n.JsonData) - if err != nil { - return err - } - m.Options[i] = nn - } - return - } - - - - +// UnmarshalJSON unmarshals from json +func (m *UpdateDhcpDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + Options []dhcpoption `json:"options"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + m.DisplayName = model.DisplayName + m.Options = make([]DhcpOption, len(model.Options)) + for i, n := range model.Options { + nn, err := n.UnmarshalPolymorphicJSON(n.JsonData) + if err != nil { + return err + } + m.Options[i] = nn + } + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_options_request_response.go index 0bcbb1b77..c8b6e542d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_options_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateDhcpOptionsRequest wrapper for the UpdateDhcpOptions operation type UpdateDhcpOptionsRequest struct { - - // The OCID for the set of DHCP options. - DhcpId *string `mandatory:"true" contributesTo:"path" name:"dhcpId"` - - // Request object for updating a set of DHCP options. - UpdateDhcpDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID for the set of DHCP options. + DhcpId *string `mandatory:"true" contributesTo:"path" name:"dhcpId"` + + // Request object for updating a set of DHCP options. + UpdateDhcpDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateDhcpOptionsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateDhcpOptionsResponse wrapper for the UpdateDhcpOptions operation type UpdateDhcpOptionsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DhcpOptions instance - DhcpOptions `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DhcpOptions instance + DhcpOptions `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateDhcpOptionsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_drg_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_drg_attachment_details.go index 97317af2c..876f22c9d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_drg_attachment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_drg_attachment_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateDrgAttachmentDetails The representation of UpdateDrgAttachmentDetails +// UpdateDrgAttachmentDetails The representation of UpdateDrgAttachmentDetails type UpdateDrgAttachmentDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateDrgAttachmentDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_drg_attachment_request_response.go index 22caef1cb..c0580c97c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_drg_attachment_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateDrgAttachmentRequest wrapper for the UpdateDrgAttachment operation type UpdateDrgAttachmentRequest struct { - - // The OCID of the DRG attachment. - DrgAttachmentId *string `mandatory:"true" contributesTo:"path" name:"drgAttachmentId"` - - // Details object for updating a `DrgAttachment`. - UpdateDrgAttachmentDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the DRG attachment. + DrgAttachmentId *string `mandatory:"true" contributesTo:"path" name:"drgAttachmentId"` + + // Details object for updating a `DrgAttachment`. + UpdateDrgAttachmentDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateDrgAttachmentRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateDrgAttachmentResponse wrapper for the UpdateDrgAttachment operation type UpdateDrgAttachmentResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DrgAttachment instance - DrgAttachment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DrgAttachment instance + DrgAttachment `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateDrgAttachmentResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_drg_details.go index 667f6fa12..2e64240b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_drg_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_drg_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateDrgDetails The representation of UpdateDrgDetails +// UpdateDrgDetails The representation of UpdateDrgDetails type UpdateDrgDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateDrgDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_drg_request_response.go index e0695da61..0aba53e12 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_drg_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateDrgRequest wrapper for the UpdateDrg operation type UpdateDrgRequest struct { - - // The OCID of the DRG. - DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` - - // Details object for updating a DRG. - UpdateDrgDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the DRG. + DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` + + // Details object for updating a DRG. + UpdateDrgDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateDrgRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateDrgResponse wrapper for the UpdateDrg operation type UpdateDrgResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Drg instance - Drg `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Drg instance + Drg `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateDrgResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_i_p_sec_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_i_p_sec_connection_request_response.go index 9061e1e75..ad809bea8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_i_p_sec_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_i_p_sec_connection_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateIPSecConnectionRequest wrapper for the UpdateIPSecConnection operation type UpdateIPSecConnectionRequest struct { - - // The OCID of the IPSec connection. - IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` - - // Details object for updating a IPSec connection. - UpdateIpSecConnectionDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the IPSec connection. + IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` + + // Details object for updating a IPSec connection. + UpdateIpSecConnectionDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateIPSecConnectionRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateIPSecConnectionResponse wrapper for the UpdateIPSecConnection operation type UpdateIPSecConnectionResponse struct { - // The underlying http response - RawResponse *http.Response - - // The IpSecConnection instance - IpSecConnection `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The IpSecConnection instance + IpSecConnection `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateIPSecConnectionResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_image_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_image_details.go index d3cd357d8..f3c35d5fa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_image_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_image_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,25 +9,18 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateImageDetails The representation of UpdateImageDetails +// UpdateImageDetails The representation of UpdateImageDetails type UpdateImageDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My custom Oracle Linux image` - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + // Example: `My custom Oracle Linux image` + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateImageDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_image_request_response.go index efc572a9e..6757b1d1a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_image_request_response.go @@ -1,60 +1,56 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateImageRequest wrapper for the UpdateImage operation type UpdateImageRequest struct { - - // The OCID of the image. - ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` - - // Updates the image display name field. Avoid entering confidential information. - UpdateImageDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the image. + ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` + + // Updates the image display name field. Avoid entering confidential information. + UpdateImageDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateImageRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateImageResponse wrapper for the UpdateImage operation type UpdateImageResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Image instance - Image `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Image instance + Image `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateImageResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_instance_details.go index 22e7ded92..e18c8c402 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_instance_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_instance_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,25 +9,18 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateInstanceDetails The representation of UpdateInstanceDetails +// UpdateInstanceDetails The representation of UpdateInstanceDetails type UpdateInstanceDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My bare metal instance` - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + // Example: `My bare metal instance` + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateInstanceDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_instance_request_response.go index a8010c7f0..3705804cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_instance_request_response.go @@ -1,60 +1,56 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateInstanceRequest wrapper for the UpdateInstance operation type UpdateInstanceRequest struct { - - // The OCID of the instance. - InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` - - // Update instance fields - UpdateInstanceDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // Update instance fields + UpdateInstanceDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateInstanceRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateInstanceResponse wrapper for the UpdateInstance operation type UpdateInstanceResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Instance instance - Instance `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Instance instance + Instance `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateInstanceResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_details.go index 6f23f7f29..9410eeef1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,27 +9,20 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateInternetGatewayDetails The representation of UpdateInternetGatewayDetails +// UpdateInternetGatewayDetails The representation of UpdateInternetGatewayDetails type UpdateInternetGatewayDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Whether the gateway is enabled. - IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Whether the gateway is enabled. + IsEnabled *bool `mandatory:"false" json:"isEnabled"` } func (m UpdateInternetGatewayDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_request_response.go index 8231218a0..a81ca3093 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateInternetGatewayRequest wrapper for the UpdateInternetGateway operation type UpdateInternetGatewayRequest struct { - - // The OCID of the Internet Gateway. - IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` - - // Details for updating the Internet Gateway. - UpdateInternetGatewayDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the Internet Gateway. + IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` + + // Details for updating the Internet Gateway. + UpdateInternetGatewayDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateInternetGatewayRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateInternetGatewayResponse wrapper for the UpdateInternetGateway operation type UpdateInternetGatewayResponse struct { - // The underlying http response - RawResponse *http.Response - - // The InternetGateway instance - InternetGateway `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The InternetGateway instance + InternetGateway `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateInternetGatewayResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_ip_sec_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_ip_sec_connection_details.go index 0573009cb..b6834690b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_ip_sec_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_ip_sec_connection_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateIpSecConnectionDetails The representation of UpdateIpSecConnectionDetails +// UpdateIpSecConnectionDetails The representation of UpdateIpSecConnectionDetails type UpdateIpSecConnectionDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateIpSecConnectionDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_local_peering_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_local_peering_gateway_details.go index 27803dc68..7b9d10083 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_local_peering_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_local_peering_gateway_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateLocalPeeringGatewayDetails The representation of UpdateLocalPeeringGatewayDetails +// UpdateLocalPeeringGatewayDetails The representation of UpdateLocalPeeringGatewayDetails type UpdateLocalPeeringGatewayDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid - // entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid + // entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateLocalPeeringGatewayDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_local_peering_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_local_peering_gateway_request_response.go index 2e41990bf..093c48638 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_local_peering_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_local_peering_gateway_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateLocalPeeringGatewayRequest wrapper for the UpdateLocalPeeringGateway operation type UpdateLocalPeeringGatewayRequest struct { - - // The OCID of the local peering gateway. - LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` - - // Details object for updating a local peering gateway. - UpdateLocalPeeringGatewayDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the local peering gateway. + LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` + + // Details object for updating a local peering gateway. + UpdateLocalPeeringGatewayDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateLocalPeeringGatewayRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateLocalPeeringGatewayResponse wrapper for the UpdateLocalPeeringGateway operation type UpdateLocalPeeringGatewayResponse struct { - // The underlying http response - RawResponse *http.Response - - // The LocalPeeringGateway instance - LocalPeeringGateway `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The LocalPeeringGateway instance + LocalPeeringGateway `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateLocalPeeringGatewayResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_private_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_private_ip_details.go index 2ad3cfafd..96c7a2a74 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_private_ip_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_private_ip_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,39 +9,32 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdatePrivateIpDetails The representation of UpdatePrivateIpDetails +// UpdatePrivateIpDetails The representation of UpdatePrivateIpDetails type UpdatePrivateIpDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. Avoid - // entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The hostname for the private IP. Used for DNS. The value - // is the hostname portion of the private IP's fully qualified domain name (FQDN) - // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be unique across all VNICs in the subnet and comply with - // [RFC 952](https://tools.ietf.org/html/rfc952) and - // [RFC 1123](https://tools.ietf.org/html/rfc1123). - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // Example: `bminstance-1` - HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - - // The OCID of the VNIC to reassign the private IP to. The VNIC must - // be in the same subnet as the current VNIC. - VnicId *string `mandatory:"false" json:"vnicId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid + // entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The hostname for the private IP. Used for DNS. The value + // is the hostname portion of the private IP's fully qualified domain name (FQDN) + // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be unique across all VNICs in the subnet and comply with + // RFC 952 (https://tools.ietf.org/html/rfc952) and + // RFC 1123 (https://tools.ietf.org/html/rfc1123). + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // Example: `bminstance-1` + HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` + + // The OCID of the VNIC to reassign the private IP to. The VNIC must + // be in the same subnet as the current VNIC. + VnicId *string `mandatory:"false" json:"vnicId"` } func (m UpdatePrivateIpDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_private_ip_request_response.go index 1f379f5b5..ae74cf5c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_private_ip_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdatePrivateIpRequest wrapper for the UpdatePrivateIp operation type UpdatePrivateIpRequest struct { - - // The private IP's OCID. - PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` - - // Private IP details. - UpdatePrivateIpDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The private IP's OCID. + PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` + + // Private IP details. + UpdatePrivateIpDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdatePrivateIpRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdatePrivateIpResponse wrapper for the UpdatePrivateIp operation type UpdatePrivateIpResponse struct { - // The underlying http response - RawResponse *http.Response - - // The PrivateIp instance - PrivateIp `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The PrivateIp instance + PrivateIp `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdatePrivateIpResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_route_table_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_route_table_details.go index 270579c2f..547a1b2b9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_route_table_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_route_table_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,27 +9,20 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateRouteTableDetails The representation of UpdateRouteTableDetails +// UpdateRouteTableDetails The representation of UpdateRouteTableDetails type UpdateRouteTableDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The collection of rules used for routing destination IPs to network devices. - RouteRules []RouteRule `mandatory:"false" json:"routeRules"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The collection of rules used for routing destination IPs to network devices. + RouteRules []RouteRule `mandatory:"false" json:"routeRules"` } func (m UpdateRouteTableDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_route_table_request_response.go index d758fe8d0..5323576a9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_route_table_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateRouteTableRequest wrapper for the UpdateRouteTable operation type UpdateRouteTableRequest struct { - - // The OCID of the route table. - RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` - - // Details object for updating a route table. - UpdateRouteTableDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the route table. + RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` + + // Details object for updating a route table. + UpdateRouteTableDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateRouteTableRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateRouteTableResponse wrapper for the UpdateRouteTable operation type UpdateRouteTableResponse struct { - // The underlying http response - RawResponse *http.Response - - // The RouteTable instance - RouteTable `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The RouteTable instance + RouteTable `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateRouteTableResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_security_list_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_security_list_details.go index 13707c4e6..d23a3f75c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_security_list_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_security_list_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,30 +9,23 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateSecurityListDetails The representation of UpdateSecurityListDetails +// UpdateSecurityListDetails The representation of UpdateSecurityListDetails type UpdateSecurityListDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Rules for allowing egress IP packets. - EgressSecurityRules []EgressSecurityRule `mandatory:"false" json:"egressSecurityRules"` - - // Rules for allowing ingress IP packets. - IngressSecurityRules []IngressSecurityRule `mandatory:"false" json:"ingressSecurityRules"` -} - -func (m UpdateSecurityListDetails) String() string { - return common.PointerString(m) -} - + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + // Rules for allowing egress IP packets. + EgressSecurityRules []EgressSecurityRule `mandatory:"false" json:"egressSecurityRules"` + // Rules for allowing ingress IP packets. + IngressSecurityRules []IngressSecurityRule `mandatory:"false" json:"ingressSecurityRules"` +} +func (m UpdateSecurityListDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_security_list_request_response.go index 4fa3b5058..d9e7b468d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_security_list_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateSecurityListRequest wrapper for the UpdateSecurityList operation type UpdateSecurityListRequest struct { - - // The OCID of the security list. - SecurityListId *string `mandatory:"true" contributesTo:"path" name:"securityListId"` - - // Updated details for the security list. - UpdateSecurityListDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the security list. + SecurityListId *string `mandatory:"true" contributesTo:"path" name:"securityListId"` + + // Updated details for the security list. + UpdateSecurityListDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateSecurityListRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateSecurityListResponse wrapper for the UpdateSecurityList operation type UpdateSecurityListResponse struct { - // The underlying http response - RawResponse *http.Response - - // The SecurityList instance - SecurityList `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The SecurityList instance + SecurityList `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateSecurityListResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_subnet_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_subnet_details.go index 06dbdc358..e15eaa013 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_subnet_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_subnet_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateSubnetDetails The representation of UpdateSubnetDetails +// UpdateSubnetDetails The representation of UpdateSubnetDetails type UpdateSubnetDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateSubnetDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_subnet_request_response.go index 0c290a78a..1dec9a727 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_subnet_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateSubnetRequest wrapper for the UpdateSubnet operation type UpdateSubnetRequest struct { - - // The OCID of the subnet. - SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` - - // Details object for updating a subnet. - UpdateSubnetDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the subnet. + SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` + + // Details object for updating a subnet. + UpdateSubnetDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateSubnetRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateSubnetResponse wrapper for the UpdateSubnet operation type UpdateSubnetResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Subnet instance - Subnet `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Subnet instance + Subnet `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateSubnetResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_vcn_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_vcn_details.go index 6dc593235..e4dca15cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_vcn_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_vcn_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateVcnDetails The representation of UpdateVcnDetails +// UpdateVcnDetails The representation of UpdateVcnDetails type UpdateVcnDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateVcnDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_vcn_request_response.go index afd547c46..37e483eb0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_vcn_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateVcnRequest wrapper for the UpdateVcn operation type UpdateVcnRequest struct { - - // The OCID of the VCN. - VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` - - // Details object for updating a VCN. - UpdateVcnDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the VCN. + VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` + + // Details object for updating a VCN. + UpdateVcnDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateVcnRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateVcnResponse wrapper for the UpdateVcn operation type UpdateVcnResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Vcn instance - Vcn `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Vcn instance + Vcn `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateVcnResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_virtual_circuit_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_virtual_circuit_details.go index 9f439d0d2..cbfaf178f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_virtual_circuit_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_virtual_circuit_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,92 +9,82 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateVirtualCircuitDetails The representation of UpdateVirtualCircuitDetails +// UpdateVirtualCircuitDetails The representation of UpdateVirtualCircuitDetails type UpdateVirtualCircuitDetails struct { - - // The provisioned data rate of the connection. To get a list of the - // available bandwidth levels (that is, shapes), see - // ListFastConnectProviderVirtualCircuitBandwidthShapes. - // To be updated only by the customer who owns the virtual circuit. - BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` - - // An array of mappings, each containing properties for a cross-connect or - // cross-connect group associated with this virtual circuit. - // The customer and provider can update different properties in the mapping - // depending on the situation. See the description of the - // CrossConnectMapping. - CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` - - // The BGP ASN of the network at the other end of the BGP - // session from Oracle. - // If the BGP session is from the customer's edge router to Oracle, the - // required value is the customer's ASN, and it can be updated only - // by the customer. - // If the BGP session is from the provider's edge router to Oracle, the - // required value is the provider's ASN, and it can be updated only - // by the provider. - CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` - - // A user-friendly name. Does not have to be unique. - // Avoid entering confidential information. - // To be updated only by the customer who owns the virtual circuit. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the Drg - // that this private virtual circuit uses. - // To be updated only by the customer who owns the virtual circuit. - GatewayId *string `mandatory:"false" json:"gatewayId"` - - // The provider's state in relation to this virtual circuit. Relevant only - // if the customer is using FastConnect via a provider. ACTIVE - // means the provider has provisioned the virtual circuit from their - // end. INACTIVE means the provider has not yet provisioned the virtual - // circuit, or has de-provisioned it. - // To be updated only by the provider. - ProviderState UpdateVirtualCircuitDetailsProviderStateEnum `mandatory:"false" json:"providerState,omitempty"` - - // Provider-supplied reference information about this virtual circuit. - // Relevant only if the customer is using FastConnect via a provider. - // To be updated only by the provider. - ReferenceComment *string `mandatory:"false" json:"referenceComment"` + + // The provisioned data rate of the connection. To get a list of the + // available bandwidth levels (that is, shapes), see + // ListFastConnectProviderVirtualCircuitBandwidthShapes. + // To be updated only by the customer who owns the virtual circuit. + BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` + + // An array of mappings, each containing properties for a cross-connect or + // cross-connect group associated with this virtual circuit. + // The customer and provider can update different properties in the mapping + // depending on the situation. See the description of the + // CrossConnectMapping. + CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` + + // The BGP ASN of the network at the other end of the BGP + // session from Oracle. + // If the BGP session is from the customer's edge router to Oracle, the + // required value is the customer's ASN, and it can be updated only + // by the customer. + // If the BGP session is from the provider's edge router to Oracle, the + // required value is the provider's ASN, and it can be updated only + // by the provider. + CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` + + // A user-friendly name. Does not have to be unique. + // Avoid entering confidential information. + // To be updated only by the customer who owns the virtual circuit. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the Drg + // that this private virtual circuit uses. + // To be updated only by the customer who owns the virtual circuit. + GatewayId *string `mandatory:"false" json:"gatewayId"` + + // The provider's state in relation to this virtual circuit. Relevant only + // if the customer is using FastConnect via a provider. ACTIVE + // means the provider has provisioned the virtual circuit from their + // end. INACTIVE means the provider has not yet provisioned the virtual + // circuit, or has de-provisioned it. + // To be updated only by the provider. + ProviderState UpdateVirtualCircuitDetailsProviderStateEnum `mandatory:"false" json:"providerState,omitempty"` + + // Provider-supplied reference information about this virtual circuit. + // Relevant only if the customer is using FastConnect via a provider. + // To be updated only by the provider. + ReferenceComment *string `mandatory:"false" json:"referenceComment"` } func (m UpdateVirtualCircuitDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // UpdateVirtualCircuitDetailsProviderStateEnum Enum with underlying type: string type UpdateVirtualCircuitDetailsProviderStateEnum string // Set of constants representing the allowable values for UpdateVirtualCircuitDetailsProviderState const ( - UpdateVirtualCircuitDetailsProviderStateActive UpdateVirtualCircuitDetailsProviderStateEnum = "ACTIVE" - UpdateVirtualCircuitDetailsProviderStateInactive UpdateVirtualCircuitDetailsProviderStateEnum = "INACTIVE" - UpdateVirtualCircuitDetailsProviderStateUnknown UpdateVirtualCircuitDetailsProviderStateEnum = "UNKNOWN" + UpdateVirtualCircuitDetailsProviderStateActive UpdateVirtualCircuitDetailsProviderStateEnum = "ACTIVE" + UpdateVirtualCircuitDetailsProviderStateInactive UpdateVirtualCircuitDetailsProviderStateEnum = "INACTIVE" ) -var mappingUpdateVirtualCircuitDetailsProviderState = map[string]UpdateVirtualCircuitDetailsProviderStateEnum { - "ACTIVE": UpdateVirtualCircuitDetailsProviderStateActive, - "INACTIVE": UpdateVirtualCircuitDetailsProviderStateInactive, - "UNKNOWN": UpdateVirtualCircuitDetailsProviderStateUnknown, +var mappingUpdateVirtualCircuitDetailsProviderState = map[string]UpdateVirtualCircuitDetailsProviderStateEnum{ + "ACTIVE": UpdateVirtualCircuitDetailsProviderStateActive, + "INACTIVE": UpdateVirtualCircuitDetailsProviderStateInactive, } // GetUpdateVirtualCircuitDetailsProviderStateEnumValues Enumerates the set of values for UpdateVirtualCircuitDetailsProviderState func GetUpdateVirtualCircuitDetailsProviderStateEnumValues() []UpdateVirtualCircuitDetailsProviderStateEnum { - values := make([]UpdateVirtualCircuitDetailsProviderStateEnum, 0) - for _, v := range mappingUpdateVirtualCircuitDetailsProviderState { - if v != UpdateVirtualCircuitDetailsProviderStateUnknown { - values = append(values, v) - } - } - return values + values := make([]UpdateVirtualCircuitDetailsProviderStateEnum, 0) + for _, v := range mappingUpdateVirtualCircuitDetailsProviderState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_virtual_circuit_request_response.go index bd6c9e159..7f2a8df15 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_virtual_circuit_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateVirtualCircuitRequest wrapper for the UpdateVirtualCircuit operation type UpdateVirtualCircuitRequest struct { - - // The OCID of the virtual circuit. - VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` - - // Update VirtualCircuit fields. - UpdateVirtualCircuitDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the virtual circuit. + VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` + + // Update VirtualCircuit fields. + UpdateVirtualCircuitDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateVirtualCircuitRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateVirtualCircuitResponse wrapper for the UpdateVirtualCircuit operation type UpdateVirtualCircuitResponse struct { - // The underlying http response - RawResponse *http.Response - - // The VirtualCircuit instance - VirtualCircuit `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The VirtualCircuit instance + VirtualCircuit `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateVirtualCircuitResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_vnic_details.go index 856c18449..6eb74fde7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_vnic_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_vnic_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,44 +9,37 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateVnicDetails The representation of UpdateVnicDetails +// UpdateVnicDetails The representation of UpdateVnicDetails type UpdateVnicDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname - // portion of the primary private IP's fully qualified domain name (FQDN) - // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be unique across all VNICs in the subnet and comply with - // [RFC 952](https://tools.ietf.org/html/rfc952) and - // [RFC 1123](https://tools.ietf.org/html/rfc1123). - // The value appears in the Vnic object and also the - // PrivateIp object returned by - // ListPrivateIps and - // GetPrivateIp. - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - - // Whether the source/destination check is disabled on the VNIC. - // Defaults to `false`, which means the check is performed. For information - // about why you would skip the source/destination check, see - // [Using a Private IP as a Route Target]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingroutetables.htm#privateip). - // Example: `true` - SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname + // portion of the primary private IP's fully qualified domain name (FQDN) + // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be unique across all VNICs in the subnet and comply with + // RFC 952 (https://tools.ietf.org/html/rfc952) and + // RFC 1123 (https://tools.ietf.org/html/rfc1123). + // The value appears in the Vnic object and also the + // PrivateIp object returned by + // ListPrivateIps and + // GetPrivateIp. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` + + // Whether the source/destination check is disabled on the VNIC. + // Defaults to `false`, which means the check is performed. For information + // about why you would skip the source/destination check, see + // Using a Private IP as a Route Target (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm#privateip). + // Example: `true` + SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"` } func (m UpdateVnicDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_vnic_request_response.go index e7954ca4f..9bacd4eb5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_vnic_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateVnicRequest wrapper for the UpdateVnic operation type UpdateVnicRequest struct { - - // The OCID of the VNIC. - VnicId *string `mandatory:"true" contributesTo:"path" name:"vnicId"` - - // Details object for updating a VNIC. - UpdateVnicDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the VNIC. + VnicId *string `mandatory:"true" contributesTo:"path" name:"vnicId"` + + // Details object for updating a VNIC. + UpdateVnicDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateVnicRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateVnicResponse wrapper for the UpdateVnic operation type UpdateVnicResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Vnic instance - Vnic `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Vnic instance + Vnic `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateVnicResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_backup_details.go index 334a592ed..05be76e2b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_backup_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateVolumeBackupDetails The representation of UpdateVolumeBackupDetails +// UpdateVolumeBackupDetails The representation of UpdateVolumeBackupDetails type UpdateVolumeBackupDetails struct { - - // A friendly user-specified name for the volume backup. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A friendly user-specified name for the volume backup. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateVolumeBackupDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_backup_request_response.go index 6ea73ded6..e98d05109 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_backup_request_response.go @@ -1,49 +1,45 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateVolumeBackupRequest wrapper for the UpdateVolumeBackup operation type UpdateVolumeBackupRequest struct { - - // The OCID of the volume backup. - VolumeBackupId *string `mandatory:"true" contributesTo:"path" name:"volumeBackupId"` - - // Update volume backup fields - UpdateVolumeBackupDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the volume backup. + VolumeBackupId *string `mandatory:"true" contributesTo:"path" name:"volumeBackupId"` + + // Update volume backup fields + UpdateVolumeBackupDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateVolumeBackupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateVolumeBackupResponse wrapper for the UpdateVolumeBackup operation type UpdateVolumeBackupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The VolumeBackup instance - VolumeBackup `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The underlying http response + RawResponse *http.Response + // The VolumeBackup instance + VolumeBackup `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response UpdateVolumeBackupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_details.go index 1bd931a24..e0b642bd7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,24 +9,17 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateVolumeDetails The representation of UpdateVolumeDetails +// UpdateVolumeDetails The representation of UpdateVolumeDetails type UpdateVolumeDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateVolumeDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_request_response.go index 3b5031f28..b8b044f97 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateVolumeRequest wrapper for the UpdateVolume operation type UpdateVolumeRequest struct { - - // The OCID of the volume. - VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` - - // Update volume's display name. Avoid entering confidential information. - UpdateVolumeDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the volume. + VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` + + // Update volume's display name. Avoid entering confidential information. + UpdateVolumeDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateVolumeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateVolumeResponse wrapper for the UpdateVolume operation type UpdateVolumeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Volume instance - Volume `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Volume instance + Volume `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateVolumeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/vcn.go b/vendor/github.com/oracle/oci-go-sdk/core/vcn.go index 361a8c603..8077a531d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/vcn.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/vcn.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,103 +9,93 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Vcn A Virtual Cloud Network (VCN). For more information, see - // [Overview of the Networking Service]({{DOC_SERVER_URL}}/Content/Network/Concepts/overview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Vcn A Virtual Cloud Network (VCN). For more information, see +// Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Vcn struct { - - // The CIDR IP address block of the VCN. - // Example: `172.16.0.0/16` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // The OCID of the compartment containing the VCN. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The VCN's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The VCN's current state. - LifecycleState VcnLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID for the VCN's default set of DHCP options. - DefaultDhcpOptionsId *string `mandatory:"false" json:"defaultDhcpOptionsId"` - - // The OCID for the VCN's default route table. - DefaultRouteTableId *string `mandatory:"false" json:"defaultRouteTableId"` - - // The OCID for the VCN's default security list. - DefaultSecurityListId *string `mandatory:"false" json:"defaultSecurityListId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A DNS label for the VCN, used in conjunction with the VNIC's hostname and - // subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC - // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be an alphanumeric string that begins with a letter. - // The value cannot be changed. - // The absence of this parameter means the Internet and VCN Resolver will - // not work for this VCN. - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // Example: `vcn1` - DnsLabel *string `mandatory:"false" json:"dnsLabel"` - - // The date and time the VCN was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The VCN's domain name, which consists of the VCN's DNS label, and the - // `oraclevcn.com` domain. - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // Example: `vcn1.oraclevcn.com` - VcnDomainName *string `mandatory:"false" json:"vcnDomainName"` + + // The CIDR IP address block of the VCN. + // Example: `172.16.0.0/16` + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // The OCID of the compartment containing the VCN. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The VCN's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The VCN's current state. + LifecycleState VcnLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID for the VCN's default set of DHCP options. + DefaultDhcpOptionsId *string `mandatory:"false" json:"defaultDhcpOptionsId"` + + // The OCID for the VCN's default route table. + DefaultRouteTableId *string `mandatory:"false" json:"defaultRouteTableId"` + + // The OCID for the VCN's default security list. + DefaultSecurityListId *string `mandatory:"false" json:"defaultSecurityListId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A DNS label for the VCN, used in conjunction with the VNIC's hostname and + // subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC + // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be an alphanumeric string that begins with a letter. + // The value cannot be changed. + // The absence of this parameter means the Internet and VCN Resolver will + // not work for this VCN. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // Example: `vcn1` + DnsLabel *string `mandatory:"false" json:"dnsLabel"` + + // The date and time the VCN was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The VCN's domain name, which consists of the VCN's DNS label, and the + // `oraclevcn.com` domain. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // Example: `vcn1.oraclevcn.com` + VcnDomainName *string `mandatory:"false" json:"vcnDomainName"` } func (m Vcn) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // VcnLifecycleStateEnum Enum with underlying type: string type VcnLifecycleStateEnum string // Set of constants representing the allowable values for VcnLifecycleState const ( - VcnLifecycleStateProvisioning VcnLifecycleStateEnum = "PROVISIONING" - VcnLifecycleStateAvailable VcnLifecycleStateEnum = "AVAILABLE" - VcnLifecycleStateTerminating VcnLifecycleStateEnum = "TERMINATING" - VcnLifecycleStateTerminated VcnLifecycleStateEnum = "TERMINATED" - VcnLifecycleStateUnknown VcnLifecycleStateEnum = "UNKNOWN" + VcnLifecycleStateProvisioning VcnLifecycleStateEnum = "PROVISIONING" + VcnLifecycleStateAvailable VcnLifecycleStateEnum = "AVAILABLE" + VcnLifecycleStateTerminating VcnLifecycleStateEnum = "TERMINATING" + VcnLifecycleStateTerminated VcnLifecycleStateEnum = "TERMINATED" ) -var mappingVcnLifecycleState = map[string]VcnLifecycleStateEnum { - "PROVISIONING": VcnLifecycleStateProvisioning, - "AVAILABLE": VcnLifecycleStateAvailable, - "TERMINATING": VcnLifecycleStateTerminating, - "TERMINATED": VcnLifecycleStateTerminated, - "UNKNOWN": VcnLifecycleStateUnknown, +var mappingVcnLifecycleState = map[string]VcnLifecycleStateEnum{ + "PROVISIONING": VcnLifecycleStateProvisioning, + "AVAILABLE": VcnLifecycleStateAvailable, + "TERMINATING": VcnLifecycleStateTerminating, + "TERMINATED": VcnLifecycleStateTerminated, } // GetVcnLifecycleStateEnumValues Enumerates the set of values for VcnLifecycleState func GetVcnLifecycleStateEnumValues() []VcnLifecycleStateEnum { - values := make([]VcnLifecycleStateEnum, 0) - for _, v := range mappingVcnLifecycleState { - if v != VcnLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]VcnLifecycleStateEnum, 0) + for _, v := range mappingVcnLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit.go b/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit.go index 69dc30d28..492c84bf4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,290 +9,265 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // VirtualCircuit For use with Oracle Cloud Infrastructure FastConnect. - // A virtual circuit is an isolated network path that runs over one or more physical - // network connections to provide a single, logical connection between the edge router - // on the customer's existing network and Oracle Cloud Infrastructure. *Private* - // virtual circuits support private peering, and *public* virtual circuits support - // public peering. For more information, see [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). - // Each virtual circuit is made up of information shared between a customer, Oracle, - // and a provider (if the customer is using FastConnect via a provider). Who fills in - // a given property of a virtual circuit depends on whether the BGP session related to - // that virtual circuit goes from the customer's edge router to Oracle, or from the provider's - // edge router to Oracle. Also, in the case where the customer is using a provider, values - // for some of the properties may not be present immediately, but may get filled in as the - // provider and Oracle each do their part to provision the virtual circuit. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// VirtualCircuit For use with Oracle Cloud Infrastructure FastConnect. +// A virtual circuit is an isolated network path that runs over one or more physical +// network connections to provide a single, logical connection between the edge router +// on the customer's existing network and Oracle Cloud Infrastructure. *Private* +// virtual circuits support private peering, and *public* virtual circuits support +// public peering. For more information, see FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). +// Each virtual circuit is made up of information shared between a customer, Oracle, +// and a provider (if the customer is using FastConnect via a provider). Who fills in +// a given property of a virtual circuit depends on whether the BGP session related to +// that virtual circuit goes from the customer's edge router to Oracle, or from the provider's +// edge router to Oracle. Also, in the case where the customer is using a provider, values +// for some of the properties may not be present immediately, but may get filled in as the +// provider and Oracle each do their part to provision the virtual circuit. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type VirtualCircuit struct { - - // The provisioned data rate of the connection. - BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` - - // BGP management option. - BgpManagement VirtualCircuitBgpManagementEnum `mandatory:"false" json:"bgpManagement,omitempty"` - - // The state of the BGP session associated with the virtual circuit. - BgpSessionState VirtualCircuitBgpSessionStateEnum `mandatory:"false" json:"bgpSessionState,omitempty"` - - // The OCID of the compartment containing the virtual circuit. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // An array of mappings, each containing properties for a - // cross-connect or cross-connect group that is associated with this - // virtual circuit. - CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` - - // The BGP ASN of the network at the other end of the BGP - // session from Oracle. If the session is between the customer's - // edge router and Oracle, the value is the customer's ASN. If the BGP - // session is between the provider's edge router and Oracle, the value - // is the provider's ASN. - CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the customer's Drg - // that this virtual circuit uses. Applicable only to private virtual circuits. - GatewayId *string `mandatory:"false" json:"gatewayId"` - - // The virtual circuit's Oracle ID (OCID). - Id *string `mandatory:"false" json:"id"` - - // The virtual circuit's current state. For information about - // the different states, see - // [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). - LifecycleState VirtualCircuitLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The Oracle BGP ASN. - OracleBgpAsn *int `mandatory:"false" json:"oracleBgpAsn"` - - // Deprecated. Instead use `providerServiceId`. - ProviderName *string `mandatory:"false" json:"providerName"` - - // The OCID of the service offered by the provider (if the customer is connecting via a provider). - ProviderServiceId *string `mandatory:"false" json:"providerServiceId"` - - // Deprecated. Instead use `providerServiceId`. - ProviderServiceName *string `mandatory:"false" json:"providerServiceName"` - - // The provider's state in relation to this virtual circuit (if the - // customer is connecting via a provider). ACTIVE means - // the provider has provisioned the virtual circuit from their end. - // INACTIVE means the provider has not yet provisioned the virtual - // circuit, or has de-provisioned it. - ProviderState VirtualCircuitProviderStateEnum `mandatory:"false" json:"providerState,omitempty"` - - // For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to - // advertise across the connection. Each prefix must be /24 or less specific. - PublicPrefixes []string `mandatory:"false" json:"publicPrefixes"` - - // Provider-supplied reference information about this virtual circuit - // (if the customer is connecting via a provider). - ReferenceComment *string `mandatory:"false" json:"referenceComment"` - - // The Oracle Cloud Infrastructure region where this virtual - // circuit is located. - Region *string `mandatory:"false" json:"region"` - - // Provider service type. - ServiceType VirtualCircuitServiceTypeEnum `mandatory:"false" json:"serviceType,omitempty"` - - // The date and time the virtual circuit was created, - // in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Whether the virtual circuit supports private or public peering. For more information, - // see [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). - Type VirtualCircuitTypeEnum `mandatory:"false" json:"type,omitempty"` + + // The provisioned data rate of the connection. + BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` + + // BGP management option. + BgpManagement VirtualCircuitBgpManagementEnum `mandatory:"false" json:"bgpManagement,omitempty"` + + // The state of the BGP session associated with the virtual circuit. + BgpSessionState VirtualCircuitBgpSessionStateEnum `mandatory:"false" json:"bgpSessionState,omitempty"` + + // The OCID of the compartment containing the virtual circuit. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // An array of mappings, each containing properties for a + // cross-connect or cross-connect group that is associated with this + // virtual circuit. + CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` + + // The BGP ASN of the network at the other end of the BGP + // session from Oracle. If the session is between the customer's + // edge router and Oracle, the value is the customer's ASN. If the BGP + // session is between the provider's edge router and Oracle, the value + // is the provider's ASN. + CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the customer's Drg + // that this virtual circuit uses. Applicable only to private virtual circuits. + GatewayId *string `mandatory:"false" json:"gatewayId"` + + // The virtual circuit's Oracle ID (OCID). + Id *string `mandatory:"false" json:"id"` + + // The virtual circuit's current state. For information about + // the different states, see + // FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). + LifecycleState VirtualCircuitLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The Oracle BGP ASN. + OracleBgpAsn *int `mandatory:"false" json:"oracleBgpAsn"` + + // Deprecated. Instead use `providerServiceId`. + ProviderName *string `mandatory:"false" json:"providerName"` + + // The OCID of the service offered by the provider (if the customer is connecting via a provider). + ProviderServiceId *string `mandatory:"false" json:"providerServiceId"` + + // Deprecated. Instead use `providerServiceId`. + ProviderServiceName *string `mandatory:"false" json:"providerServiceName"` + + // The provider's state in relation to this virtual circuit (if the + // customer is connecting via a provider). ACTIVE means + // the provider has provisioned the virtual circuit from their end. + // INACTIVE means the provider has not yet provisioned the virtual + // circuit, or has de-provisioned it. + ProviderState VirtualCircuitProviderStateEnum `mandatory:"false" json:"providerState,omitempty"` + + // For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to + // advertise across the connection. Each prefix must be /24 or less specific. + PublicPrefixes []string `mandatory:"false" json:"publicPrefixes"` + + // Provider-supplied reference information about this virtual circuit + // (if the customer is connecting via a provider). + ReferenceComment *string `mandatory:"false" json:"referenceComment"` + + // The Oracle Cloud Infrastructure region where this virtual + // circuit is located. + Region *string `mandatory:"false" json:"region"` + + // Provider service type. + ServiceType VirtualCircuitServiceTypeEnum `mandatory:"false" json:"serviceType,omitempty"` + + // The date and time the virtual circuit was created, + // in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Whether the virtual circuit supports private or public peering. For more information, + // see FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). + Type VirtualCircuitTypeEnum `mandatory:"false" json:"type,omitempty"` } func (m VirtualCircuit) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // VirtualCircuitBgpManagementEnum Enum with underlying type: string type VirtualCircuitBgpManagementEnum string // Set of constants representing the allowable values for VirtualCircuitBgpManagement const ( - VirtualCircuitBgpManagementCustomerManaged VirtualCircuitBgpManagementEnum = "CUSTOMER_MANAGED" - VirtualCircuitBgpManagementProviderManaged VirtualCircuitBgpManagementEnum = "PROVIDER_MANAGED" - VirtualCircuitBgpManagementOracleManaged VirtualCircuitBgpManagementEnum = "ORACLE_MANAGED" - VirtualCircuitBgpManagementUnknown VirtualCircuitBgpManagementEnum = "UNKNOWN" + VirtualCircuitBgpManagementCustomerManaged VirtualCircuitBgpManagementEnum = "CUSTOMER_MANAGED" + VirtualCircuitBgpManagementProviderManaged VirtualCircuitBgpManagementEnum = "PROVIDER_MANAGED" + VirtualCircuitBgpManagementOracleManaged VirtualCircuitBgpManagementEnum = "ORACLE_MANAGED" ) -var mappingVirtualCircuitBgpManagement = map[string]VirtualCircuitBgpManagementEnum { - "CUSTOMER_MANAGED": VirtualCircuitBgpManagementCustomerManaged, - "PROVIDER_MANAGED": VirtualCircuitBgpManagementProviderManaged, - "ORACLE_MANAGED": VirtualCircuitBgpManagementOracleManaged, - "UNKNOWN": VirtualCircuitBgpManagementUnknown, +var mappingVirtualCircuitBgpManagement = map[string]VirtualCircuitBgpManagementEnum{ + "CUSTOMER_MANAGED": VirtualCircuitBgpManagementCustomerManaged, + "PROVIDER_MANAGED": VirtualCircuitBgpManagementProviderManaged, + "ORACLE_MANAGED": VirtualCircuitBgpManagementOracleManaged, } // GetVirtualCircuitBgpManagementEnumValues Enumerates the set of values for VirtualCircuitBgpManagement func GetVirtualCircuitBgpManagementEnumValues() []VirtualCircuitBgpManagementEnum { - values := make([]VirtualCircuitBgpManagementEnum, 0) - for _, v := range mappingVirtualCircuitBgpManagement { - if v != VirtualCircuitBgpManagementUnknown { - values = append(values, v) - } - } - return values + values := make([]VirtualCircuitBgpManagementEnum, 0) + for _, v := range mappingVirtualCircuitBgpManagement { + values = append(values, v) + } + return values } + // VirtualCircuitBgpSessionStateEnum Enum with underlying type: string type VirtualCircuitBgpSessionStateEnum string // Set of constants representing the allowable values for VirtualCircuitBgpSessionState const ( - VirtualCircuitBgpSessionStateUp VirtualCircuitBgpSessionStateEnum = "UP" - VirtualCircuitBgpSessionStateDown VirtualCircuitBgpSessionStateEnum = "DOWN" - VirtualCircuitBgpSessionStateUnknown VirtualCircuitBgpSessionStateEnum = "UNKNOWN" + VirtualCircuitBgpSessionStateUp VirtualCircuitBgpSessionStateEnum = "UP" + VirtualCircuitBgpSessionStateDown VirtualCircuitBgpSessionStateEnum = "DOWN" ) -var mappingVirtualCircuitBgpSessionState = map[string]VirtualCircuitBgpSessionStateEnum { - "UP": VirtualCircuitBgpSessionStateUp, - "DOWN": VirtualCircuitBgpSessionStateDown, - "UNKNOWN": VirtualCircuitBgpSessionStateUnknown, +var mappingVirtualCircuitBgpSessionState = map[string]VirtualCircuitBgpSessionStateEnum{ + "UP": VirtualCircuitBgpSessionStateUp, + "DOWN": VirtualCircuitBgpSessionStateDown, } // GetVirtualCircuitBgpSessionStateEnumValues Enumerates the set of values for VirtualCircuitBgpSessionState func GetVirtualCircuitBgpSessionStateEnumValues() []VirtualCircuitBgpSessionStateEnum { - values := make([]VirtualCircuitBgpSessionStateEnum, 0) - for _, v := range mappingVirtualCircuitBgpSessionState { - if v != VirtualCircuitBgpSessionStateUnknown { - values = append(values, v) - } - } - return values + values := make([]VirtualCircuitBgpSessionStateEnum, 0) + for _, v := range mappingVirtualCircuitBgpSessionState { + values = append(values, v) + } + return values } + // VirtualCircuitLifecycleStateEnum Enum with underlying type: string type VirtualCircuitLifecycleStateEnum string // Set of constants representing the allowable values for VirtualCircuitLifecycleState const ( - VirtualCircuitLifecycleStatePendingProvider VirtualCircuitLifecycleStateEnum = "PENDING_PROVIDER" - VirtualCircuitLifecycleStateVerifying VirtualCircuitLifecycleStateEnum = "VERIFYING" - VirtualCircuitLifecycleStateProvisioning VirtualCircuitLifecycleStateEnum = "PROVISIONING" - VirtualCircuitLifecycleStateProvisioned VirtualCircuitLifecycleStateEnum = "PROVISIONED" - VirtualCircuitLifecycleStateFailed VirtualCircuitLifecycleStateEnum = "FAILED" - VirtualCircuitLifecycleStateInactive VirtualCircuitLifecycleStateEnum = "INACTIVE" - VirtualCircuitLifecycleStateTerminating VirtualCircuitLifecycleStateEnum = "TERMINATING" - VirtualCircuitLifecycleStateTerminated VirtualCircuitLifecycleStateEnum = "TERMINATED" - VirtualCircuitLifecycleStateUnknown VirtualCircuitLifecycleStateEnum = "UNKNOWN" + VirtualCircuitLifecycleStatePendingProvider VirtualCircuitLifecycleStateEnum = "PENDING_PROVIDER" + VirtualCircuitLifecycleStateVerifying VirtualCircuitLifecycleStateEnum = "VERIFYING" + VirtualCircuitLifecycleStateProvisioning VirtualCircuitLifecycleStateEnum = "PROVISIONING" + VirtualCircuitLifecycleStateProvisioned VirtualCircuitLifecycleStateEnum = "PROVISIONED" + VirtualCircuitLifecycleStateFailed VirtualCircuitLifecycleStateEnum = "FAILED" + VirtualCircuitLifecycleStateInactive VirtualCircuitLifecycleStateEnum = "INACTIVE" + VirtualCircuitLifecycleStateTerminating VirtualCircuitLifecycleStateEnum = "TERMINATING" + VirtualCircuitLifecycleStateTerminated VirtualCircuitLifecycleStateEnum = "TERMINATED" ) -var mappingVirtualCircuitLifecycleState = map[string]VirtualCircuitLifecycleStateEnum { - "PENDING_PROVIDER": VirtualCircuitLifecycleStatePendingProvider, - "VERIFYING": VirtualCircuitLifecycleStateVerifying, - "PROVISIONING": VirtualCircuitLifecycleStateProvisioning, - "PROVISIONED": VirtualCircuitLifecycleStateProvisioned, - "FAILED": VirtualCircuitLifecycleStateFailed, - "INACTIVE": VirtualCircuitLifecycleStateInactive, - "TERMINATING": VirtualCircuitLifecycleStateTerminating, - "TERMINATED": VirtualCircuitLifecycleStateTerminated, - "UNKNOWN": VirtualCircuitLifecycleStateUnknown, +var mappingVirtualCircuitLifecycleState = map[string]VirtualCircuitLifecycleStateEnum{ + "PENDING_PROVIDER": VirtualCircuitLifecycleStatePendingProvider, + "VERIFYING": VirtualCircuitLifecycleStateVerifying, + "PROVISIONING": VirtualCircuitLifecycleStateProvisioning, + "PROVISIONED": VirtualCircuitLifecycleStateProvisioned, + "FAILED": VirtualCircuitLifecycleStateFailed, + "INACTIVE": VirtualCircuitLifecycleStateInactive, + "TERMINATING": VirtualCircuitLifecycleStateTerminating, + "TERMINATED": VirtualCircuitLifecycleStateTerminated, } // GetVirtualCircuitLifecycleStateEnumValues Enumerates the set of values for VirtualCircuitLifecycleState func GetVirtualCircuitLifecycleStateEnumValues() []VirtualCircuitLifecycleStateEnum { - values := make([]VirtualCircuitLifecycleStateEnum, 0) - for _, v := range mappingVirtualCircuitLifecycleState { - if v != VirtualCircuitLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]VirtualCircuitLifecycleStateEnum, 0) + for _, v := range mappingVirtualCircuitLifecycleState { + values = append(values, v) + } + return values } + // VirtualCircuitProviderStateEnum Enum with underlying type: string type VirtualCircuitProviderStateEnum string // Set of constants representing the allowable values for VirtualCircuitProviderState const ( - VirtualCircuitProviderStateActive VirtualCircuitProviderStateEnum = "ACTIVE" - VirtualCircuitProviderStateInactive VirtualCircuitProviderStateEnum = "INACTIVE" - VirtualCircuitProviderStateUnknown VirtualCircuitProviderStateEnum = "UNKNOWN" + VirtualCircuitProviderStateActive VirtualCircuitProviderStateEnum = "ACTIVE" + VirtualCircuitProviderStateInactive VirtualCircuitProviderStateEnum = "INACTIVE" ) -var mappingVirtualCircuitProviderState = map[string]VirtualCircuitProviderStateEnum { - "ACTIVE": VirtualCircuitProviderStateActive, - "INACTIVE": VirtualCircuitProviderStateInactive, - "UNKNOWN": VirtualCircuitProviderStateUnknown, +var mappingVirtualCircuitProviderState = map[string]VirtualCircuitProviderStateEnum{ + "ACTIVE": VirtualCircuitProviderStateActive, + "INACTIVE": VirtualCircuitProviderStateInactive, } // GetVirtualCircuitProviderStateEnumValues Enumerates the set of values for VirtualCircuitProviderState func GetVirtualCircuitProviderStateEnumValues() []VirtualCircuitProviderStateEnum { - values := make([]VirtualCircuitProviderStateEnum, 0) - for _, v := range mappingVirtualCircuitProviderState { - if v != VirtualCircuitProviderStateUnknown { - values = append(values, v) - } - } - return values + values := make([]VirtualCircuitProviderStateEnum, 0) + for _, v := range mappingVirtualCircuitProviderState { + values = append(values, v) + } + return values } + // VirtualCircuitServiceTypeEnum Enum with underlying type: string type VirtualCircuitServiceTypeEnum string // Set of constants representing the allowable values for VirtualCircuitServiceType const ( - VirtualCircuitServiceTypeColocated VirtualCircuitServiceTypeEnum = "COLOCATED" - VirtualCircuitServiceTypeLayer2 VirtualCircuitServiceTypeEnum = "LAYER2" - VirtualCircuitServiceTypeLayer3 VirtualCircuitServiceTypeEnum = "LAYER3" - VirtualCircuitServiceTypeUnknown VirtualCircuitServiceTypeEnum = "UNKNOWN" + VirtualCircuitServiceTypeColocated VirtualCircuitServiceTypeEnum = "COLOCATED" + VirtualCircuitServiceTypeLayer2 VirtualCircuitServiceTypeEnum = "LAYER2" + VirtualCircuitServiceTypeLayer3 VirtualCircuitServiceTypeEnum = "LAYER3" ) -var mappingVirtualCircuitServiceType = map[string]VirtualCircuitServiceTypeEnum { - "COLOCATED": VirtualCircuitServiceTypeColocated, - "LAYER2": VirtualCircuitServiceTypeLayer2, - "LAYER3": VirtualCircuitServiceTypeLayer3, - "UNKNOWN": VirtualCircuitServiceTypeUnknown, +var mappingVirtualCircuitServiceType = map[string]VirtualCircuitServiceTypeEnum{ + "COLOCATED": VirtualCircuitServiceTypeColocated, + "LAYER2": VirtualCircuitServiceTypeLayer2, + "LAYER3": VirtualCircuitServiceTypeLayer3, } // GetVirtualCircuitServiceTypeEnumValues Enumerates the set of values for VirtualCircuitServiceType func GetVirtualCircuitServiceTypeEnumValues() []VirtualCircuitServiceTypeEnum { - values := make([]VirtualCircuitServiceTypeEnum, 0) - for _, v := range mappingVirtualCircuitServiceType { - if v != VirtualCircuitServiceTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]VirtualCircuitServiceTypeEnum, 0) + for _, v := range mappingVirtualCircuitServiceType { + values = append(values, v) + } + return values } + // VirtualCircuitTypeEnum Enum with underlying type: string type VirtualCircuitTypeEnum string // Set of constants representing the allowable values for VirtualCircuitType const ( - VirtualCircuitTypePublic VirtualCircuitTypeEnum = "PUBLIC" - VirtualCircuitTypePrivate VirtualCircuitTypeEnum = "PRIVATE" - VirtualCircuitTypeUnknown VirtualCircuitTypeEnum = "UNKNOWN" + VirtualCircuitTypePublic VirtualCircuitTypeEnum = "PUBLIC" + VirtualCircuitTypePrivate VirtualCircuitTypeEnum = "PRIVATE" ) -var mappingVirtualCircuitType = map[string]VirtualCircuitTypeEnum { - "PUBLIC": VirtualCircuitTypePublic, - "PRIVATE": VirtualCircuitTypePrivate, - "UNKNOWN": VirtualCircuitTypeUnknown, +var mappingVirtualCircuitType = map[string]VirtualCircuitTypeEnum{ + "PUBLIC": VirtualCircuitTypePublic, + "PRIVATE": VirtualCircuitTypePrivate, } // GetVirtualCircuitTypeEnumValues Enumerates the set of values for VirtualCircuitType func GetVirtualCircuitTypeEnumValues() []VirtualCircuitTypeEnum { - values := make([]VirtualCircuitTypeEnum, 0) - for _, v := range mappingVirtualCircuitType { - if v != VirtualCircuitTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]VirtualCircuitTypeEnum, 0) + for _, v := range mappingVirtualCircuitType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit_bandwidth_shape.go b/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit_bandwidth_shape.go index c2c6cd184..e237448d5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit_bandwidth_shape.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit_bandwidth_shape.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,28 +9,21 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // VirtualCircuitBandwidthShape An individual bandwidth level for virtual circuits. +// VirtualCircuitBandwidthShape An individual bandwidth level for virtual circuits. type VirtualCircuitBandwidthShape struct { - - // The name of the bandwidth shape. - // Example: `10 Gbps` - Name *string `mandatory:"true" json:"name"` - - // The bandwidth in Mbps. - // Example: `10000` - BandwidthInMbps *int `mandatory:"false" json:"bandwidthInMbps"` + + // The name of the bandwidth shape. + // Example: `10 Gbps` + Name *string `mandatory:"true" json:"name"` + + // The bandwidth in Mbps. + // Example: `10000` + BandwidthInMbps *int `mandatory:"false" json:"bandwidthInMbps"` } func (m VirtualCircuitBandwidthShape) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit_public_prefix.go b/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit_public_prefix.go index 8f576b9fc..62c1f41f3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit_public_prefix.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit_public_prefix.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,60 +9,50 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // VirtualCircuitPublicPrefix A public IP prefix and its details. With a public virtual circuit, the customer - // specifies the customer-owned public IP prefixes to advertise across the connection. - // For more information, see [FastConnect Overview]({{DOC_SERVER_URL}}/Content/Network/Concepts/fastconnect.htm). +// VirtualCircuitPublicPrefix A public IP prefix and its details. With a public virtual circuit, the customer +// specifies the customer-owned public IP prefixes to advertise across the connection. +// For more information, see FastConnect Overview (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm). type VirtualCircuitPublicPrefix struct { - - // Publix IP prefix (CIDR) that the customer specified. - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // Oracle must verify that the customer owns the public IP prefix before traffic - // for that prefix can flow across the virtual circuit. Verification can take a - // few business days. `IN_PROGRESS` means Oracle is verifying the prefix. `COMPLETED` - // means verification succeeded. `FAILED` means verification failed and traffic for - // this prefix will not flow across the connection. - VerificationState VirtualCircuitPublicPrefixVerificationStateEnum `mandatory:"true" json:"verificationState"` + + // Publix IP prefix (CIDR) that the customer specified. + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // Oracle must verify that the customer owns the public IP prefix before traffic + // for that prefix can flow across the virtual circuit. Verification can take a + // few business days. `IN_PROGRESS` means Oracle is verifying the prefix. `COMPLETED` + // means verification succeeded. `FAILED` means verification failed and traffic for + // this prefix will not flow across the connection. + VerificationState VirtualCircuitPublicPrefixVerificationStateEnum `mandatory:"true" json:"verificationState"` } func (m VirtualCircuitPublicPrefix) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // VirtualCircuitPublicPrefixVerificationStateEnum Enum with underlying type: string type VirtualCircuitPublicPrefixVerificationStateEnum string // Set of constants representing the allowable values for VirtualCircuitPublicPrefixVerificationState const ( - VirtualCircuitPublicPrefixVerificationStateInProgress VirtualCircuitPublicPrefixVerificationStateEnum = "IN_PROGRESS" - VirtualCircuitPublicPrefixVerificationStateCompleted VirtualCircuitPublicPrefixVerificationStateEnum = "COMPLETED" - VirtualCircuitPublicPrefixVerificationStateFailed VirtualCircuitPublicPrefixVerificationStateEnum = "FAILED" - VirtualCircuitPublicPrefixVerificationStateUnknown VirtualCircuitPublicPrefixVerificationStateEnum = "UNKNOWN" + VirtualCircuitPublicPrefixVerificationStateInProgress VirtualCircuitPublicPrefixVerificationStateEnum = "IN_PROGRESS" + VirtualCircuitPublicPrefixVerificationStateCompleted VirtualCircuitPublicPrefixVerificationStateEnum = "COMPLETED" + VirtualCircuitPublicPrefixVerificationStateFailed VirtualCircuitPublicPrefixVerificationStateEnum = "FAILED" ) -var mappingVirtualCircuitPublicPrefixVerificationState = map[string]VirtualCircuitPublicPrefixVerificationStateEnum { - "IN_PROGRESS": VirtualCircuitPublicPrefixVerificationStateInProgress, - "COMPLETED": VirtualCircuitPublicPrefixVerificationStateCompleted, - "FAILED": VirtualCircuitPublicPrefixVerificationStateFailed, - "UNKNOWN": VirtualCircuitPublicPrefixVerificationStateUnknown, +var mappingVirtualCircuitPublicPrefixVerificationState = map[string]VirtualCircuitPublicPrefixVerificationStateEnum{ + "IN_PROGRESS": VirtualCircuitPublicPrefixVerificationStateInProgress, + "COMPLETED": VirtualCircuitPublicPrefixVerificationStateCompleted, + "FAILED": VirtualCircuitPublicPrefixVerificationStateFailed, } // GetVirtualCircuitPublicPrefixVerificationStateEnumValues Enumerates the set of values for VirtualCircuitPublicPrefixVerificationState func GetVirtualCircuitPublicPrefixVerificationStateEnumValues() []VirtualCircuitPublicPrefixVerificationStateEnum { - values := make([]VirtualCircuitPublicPrefixVerificationStateEnum, 0) - for _, v := range mappingVirtualCircuitPublicPrefixVerificationState { - if v != VirtualCircuitPublicPrefixVerificationStateUnknown { - values = append(values, v) - } - } - return values + values := make([]VirtualCircuitPublicPrefixVerificationStateEnum, 0) + for _, v := range mappingVirtualCircuitPublicPrefixVerificationState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/vnic.go b/vendor/github.com/oracle/oci-go-sdk/core/vnic.go index 4447ac47a..d7eb9d053 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/vnic.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/vnic.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,120 +9,110 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Vnic A virtual network interface card. Each VNIC resides in a subnet in a VCN. - // An instance attaches to a VNIC to obtain a network connection into the VCN - // through that subnet. Each instance has a *primary VNIC* that is automatically - // created and attached during launch. You can add *secondary VNICs* to an - // instance after it's launched. For more information, see - // [Virtual Network Interface Cards (VNICs)]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingVNICs.htm). - // Each VNIC has a *primary private IP* that is automatically assigned during launch. - // You can add *secondary private IPs* to a VNIC after it's created. For more - // information, see CreatePrivateIp and - // [IP Addresses]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingIPaddresses.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Vnic A virtual network interface card. Each VNIC resides in a subnet in a VCN. +// An instance attaches to a VNIC to obtain a network connection into the VCN +// through that subnet. Each instance has a *primary VNIC* that is automatically +// created and attached during launch. You can add *secondary VNICs* to an +// instance after it's launched. For more information, see +// Virtual Network Interface Cards (VNICs) (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm). +// Each VNIC has a *primary private IP* that is automatically assigned during launch. +// You can add *secondary private IPs* to a VNIC after it's created. For more +// information, see CreatePrivateIp and +// IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPaddresses.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Vnic struct { - - // The VNIC's Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment containing the VNIC. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the VNIC. - Id *string `mandatory:"true" json:"id"` - - // The current state of the VNIC. - LifecycleState VnicLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The private IP address of the primary `privateIp` object on the VNIC. - // The address is within the CIDR of the VNIC's subnet. - // Example: `10.0.3.3` - PrivateIp *string `mandatory:"true" json:"privateIp"` - - // The OCID of the subnet the VNIC is in. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The date and time the VNIC was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname - // portion of the primary private IP's fully qualified domain name (FQDN) - // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be unique across all VNICs in the subnet and comply with - // [RFC 952](https://tools.ietf.org/html/rfc952) and - // [RFC 1123](https://tools.ietf.org/html/rfc1123). - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // Example: `bminstance-1` - HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - - // Whether the VNIC is the primary VNIC (the VNIC that is automatically created - // and attached during instance launch). - IsPrimary *bool `mandatory:"false" json:"isPrimary"` - - // The MAC address of the VNIC. - // Example: `00:00:17:B6:4D:DD` - MacAddress *string `mandatory:"false" json:"macAddress"` - - // The public IP address of the VNIC, if one is assigned. - PublicIp *string `mandatory:"false" json:"publicIp"` - - // Whether the source/destination check is disabled on the VNIC. - // Defaults to `false`, which means the check is performed. For information - // about why you would skip the source/destination check, see - // [Using a Private IP as a Route Target]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingroutetables.htm#privateip). - // Example: `true` - SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"` + + // The VNIC's Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment containing the VNIC. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the VNIC. + Id *string `mandatory:"true" json:"id"` + + // The current state of the VNIC. + LifecycleState VnicLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The private IP address of the primary `privateIp` object on the VNIC. + // The address is within the CIDR of the VNIC's subnet. + // Example: `10.0.3.3` + PrivateIp *string `mandatory:"true" json:"privateIp"` + + // The OCID of the subnet the VNIC is in. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The date and time the VNIC was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname + // portion of the primary private IP's fully qualified domain name (FQDN) + // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be unique across all VNICs in the subnet and comply with + // RFC 952 (https://tools.ietf.org/html/rfc952) and + // RFC 1123 (https://tools.ietf.org/html/rfc1123). + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). + // Example: `bminstance-1` + HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` + + // Whether the VNIC is the primary VNIC (the VNIC that is automatically created + // and attached during instance launch). + IsPrimary *bool `mandatory:"false" json:"isPrimary"` + + // The MAC address of the VNIC. + // Example: `00:00:17:B6:4D:DD` + MacAddress *string `mandatory:"false" json:"macAddress"` + + // The public IP address of the VNIC, if one is assigned. + PublicIp *string `mandatory:"false" json:"publicIp"` + + // Whether the source/destination check is disabled on the VNIC. + // Defaults to `false`, which means the check is performed. For information + // about why you would skip the source/destination check, see + // Using a Private IP as a Route Target (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm#privateip). + // Example: `true` + SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"` } func (m Vnic) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // VnicLifecycleStateEnum Enum with underlying type: string type VnicLifecycleStateEnum string // Set of constants representing the allowable values for VnicLifecycleState const ( - VnicLifecycleStateProvisioning VnicLifecycleStateEnum = "PROVISIONING" - VnicLifecycleStateAvailable VnicLifecycleStateEnum = "AVAILABLE" - VnicLifecycleStateTerminating VnicLifecycleStateEnum = "TERMINATING" - VnicLifecycleStateTerminated VnicLifecycleStateEnum = "TERMINATED" - VnicLifecycleStateUnknown VnicLifecycleStateEnum = "UNKNOWN" + VnicLifecycleStateProvisioning VnicLifecycleStateEnum = "PROVISIONING" + VnicLifecycleStateAvailable VnicLifecycleStateEnum = "AVAILABLE" + VnicLifecycleStateTerminating VnicLifecycleStateEnum = "TERMINATING" + VnicLifecycleStateTerminated VnicLifecycleStateEnum = "TERMINATED" ) -var mappingVnicLifecycleState = map[string]VnicLifecycleStateEnum { - "PROVISIONING": VnicLifecycleStateProvisioning, - "AVAILABLE": VnicLifecycleStateAvailable, - "TERMINATING": VnicLifecycleStateTerminating, - "TERMINATED": VnicLifecycleStateTerminated, - "UNKNOWN": VnicLifecycleStateUnknown, +var mappingVnicLifecycleState = map[string]VnicLifecycleStateEnum{ + "PROVISIONING": VnicLifecycleStateProvisioning, + "AVAILABLE": VnicLifecycleStateAvailable, + "TERMINATING": VnicLifecycleStateTerminating, + "TERMINATED": VnicLifecycleStateTerminated, } // GetVnicLifecycleStateEnumValues Enumerates the set of values for VnicLifecycleState func GetVnicLifecycleStateEnumValues() []VnicLifecycleStateEnum { - values := make([]VnicLifecycleStateEnum, 0) - for _, v := range mappingVnicLifecycleState { - if v != VnicLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]VnicLifecycleStateEnum, 0) + for _, v := range mappingVnicLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/vnic_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/vnic_attachment.go index e7ea636e4..f08db683f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/vnic_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/vnic_attachment.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,94 +9,84 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // VnicAttachment Represents an attachment between a VNIC and an instance. For more information, see - // [Virtual Network Interface Cards (VNICs)]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingVNICs.htm). +// VnicAttachment Represents an attachment between a VNIC and an instance. For more information, see +// Virtual Network Interface Cards (VNICs) (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm). type VnicAttachment struct { - - // The Availability Domain of the instance. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment the VNIC attachment is in, which is the same - // compartment the instance is in. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the VNIC attachment. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the instance. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The current state of the VNIC attachment. - LifecycleState VnicAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID of the VNIC's subnet. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The date and time the VNIC attachment was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Which physical network interface card (NIC) the VNIC uses. - // Certain bare metal instance shapes have two active physical NICs (0 and 1). If - // you add a secondary VNIC to one of these instances, you can specify which NIC - // the VNIC will use. For more information, see - // [Virtual Network Interface Cards (VNICs)]({{DOC_SERVER_URL}}/Content/Network/Tasks/managingVNICs.htm). - NicIndex *int `mandatory:"false" json:"nicIndex"` - - // The Oracle-assigned VLAN tag of the attached VNIC. Available after the - // attachment process is complete. - // Example: `0` - VlanTag *int `mandatory:"false" json:"vlanTag"` - - // The OCID of the VNIC. Available after the attachment process is complete. - VnicId *string `mandatory:"false" json:"vnicId"` + + // The Availability Domain of the instance. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment the VNIC attachment is in, which is the same + // compartment the instance is in. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the VNIC attachment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the instance. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The current state of the VNIC attachment. + LifecycleState VnicAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID of the VNIC's subnet. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The date and time the VNIC attachment was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Which physical network interface card (NIC) the VNIC uses. + // Certain bare metal instance shapes have two active physical NICs (0 and 1). If + // you add a secondary VNIC to one of these instances, you can specify which NIC + // the VNIC will use. For more information, see + // Virtual Network Interface Cards (VNICs) (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm). + NicIndex *int `mandatory:"false" json:"nicIndex"` + + // The Oracle-assigned VLAN tag of the attached VNIC. Available after the + // attachment process is complete. + // Example: `0` + VlanTag *int `mandatory:"false" json:"vlanTag"` + + // The OCID of the VNIC. Available after the attachment process is complete. + VnicId *string `mandatory:"false" json:"vnicId"` } func (m VnicAttachment) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // VnicAttachmentLifecycleStateEnum Enum with underlying type: string type VnicAttachmentLifecycleStateEnum string // Set of constants representing the allowable values for VnicAttachmentLifecycleState const ( - VnicAttachmentLifecycleStateAttaching VnicAttachmentLifecycleStateEnum = "ATTACHING" - VnicAttachmentLifecycleStateAttached VnicAttachmentLifecycleStateEnum = "ATTACHED" - VnicAttachmentLifecycleStateDetaching VnicAttachmentLifecycleStateEnum = "DETACHING" - VnicAttachmentLifecycleStateDetached VnicAttachmentLifecycleStateEnum = "DETACHED" - VnicAttachmentLifecycleStateUnknown VnicAttachmentLifecycleStateEnum = "UNKNOWN" + VnicAttachmentLifecycleStateAttaching VnicAttachmentLifecycleStateEnum = "ATTACHING" + VnicAttachmentLifecycleStateAttached VnicAttachmentLifecycleStateEnum = "ATTACHED" + VnicAttachmentLifecycleStateDetaching VnicAttachmentLifecycleStateEnum = "DETACHING" + VnicAttachmentLifecycleStateDetached VnicAttachmentLifecycleStateEnum = "DETACHED" ) -var mappingVnicAttachmentLifecycleState = map[string]VnicAttachmentLifecycleStateEnum { - "ATTACHING": VnicAttachmentLifecycleStateAttaching, - "ATTACHED": VnicAttachmentLifecycleStateAttached, - "DETACHING": VnicAttachmentLifecycleStateDetaching, - "DETACHED": VnicAttachmentLifecycleStateDetached, - "UNKNOWN": VnicAttachmentLifecycleStateUnknown, +var mappingVnicAttachmentLifecycleState = map[string]VnicAttachmentLifecycleStateEnum{ + "ATTACHING": VnicAttachmentLifecycleStateAttaching, + "ATTACHED": VnicAttachmentLifecycleStateAttached, + "DETACHING": VnicAttachmentLifecycleStateDetaching, + "DETACHED": VnicAttachmentLifecycleStateDetached, } // GetVnicAttachmentLifecycleStateEnumValues Enumerates the set of values for VnicAttachmentLifecycleState func GetVnicAttachmentLifecycleStateEnumValues() []VnicAttachmentLifecycleStateEnum { - values := make([]VnicAttachmentLifecycleStateEnum, 0) - for _, v := range mappingVnicAttachmentLifecycleState { - if v != VnicAttachmentLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]VnicAttachmentLifecycleStateEnum, 0) + for _, v := range mappingVnicAttachmentLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume.go b/vendor/github.com/oracle/oci-go-sdk/core/volume.go index 141b257f3..85c7394c5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,128 +9,119 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - - // Volume A detachable block volume device that allows you to dynamically expand - // the storage capacity of an instance. For more information, see - // [Overview of Cloud Volume Storage]({{DOC_SERVER_URL}}/Content/Block/Concepts/overview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Volume A detachable block volume device that allows you to dynamically expand +// the storage capacity of an instance. For more information, see +// Overview of Cloud Volume Storage (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Volume struct { - - // The Availability Domain of the volume. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the volume. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the volume. - Id *string `mandatory:"true" json:"id"` - - // The current state of a volume. - LifecycleState VolumeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead. - SizeInMBs *int `mandatory:"true" json:"sizeInMBs"` - - // The date and time the volume was created. Format defined by RFC3339. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Specifies whether the cloned volume's data has finished copying from the source volume or backup. - IsHydrated *bool `mandatory:"false" json:"isHydrated"` - - // The size of the volume in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` - - // The volume source, either an existing volume in the same Availability Domain or a volume backup. - // If null, an empty volume is created. - SourceDetails VolumeSourceDetails `mandatory:"false" json:"sourceDetails"` + + // The Availability Domain of the volume. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the volume. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the volume. + Id *string `mandatory:"true" json:"id"` + + // The current state of a volume. + LifecycleState VolumeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead. + SizeInMBs *int `mandatory:"true" json:"sizeInMBs"` + + // The date and time the volume was created. Format defined by RFC3339. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Specifies whether the cloned volume's data has finished copying from the source volume or backup. + IsHydrated *bool `mandatory:"false" json:"isHydrated"` + + // The size of the volume in GBs. + SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + + // The volume source, either an existing volume in the same Availability Domain or a volume backup. + // If null, an empty volume is created. + SourceDetails VolumeSourceDetails `mandatory:"false" json:"sourceDetails"` } func (m Volume) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // UnmarshalJSON unmarshals from json - func (m *Volume) UnmarshalJSON(data []byte) (e error){ - model := struct{ - IsHydrated *bool `json:"isHydrated"` - SizeInGBs *int `json:"sizeInGBs"` - SourceDetails volumesourcedetails `json:"sourceDetails"` - AvailabilityDomain *string `json:"availabilityDomain"` - CompartmentId *string `json:"compartmentId"` - DisplayName *string `json:"displayName"` - Id *string `json:"id"` - LifecycleState VolumeLifecycleStateEnum `json:"lifecycleState"` - SizeInMBs *int `json:"sizeInMBs"` - TimeCreated *common.SDKTime `json:"timeCreated"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - m.IsHydrated = model.IsHydrated - m.SizeInGBs = model.SizeInGBs - nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) - if e != nil { - return - } - m.SourceDetails = nn - m.AvailabilityDomain = model.AvailabilityDomain - m.CompartmentId = model.CompartmentId - m.DisplayName = model.DisplayName - m.Id = model.Id - m.LifecycleState = model.LifecycleState - m.SizeInMBs = model.SizeInMBs - m.TimeCreated = model.TimeCreated - return - } +// UnmarshalJSON unmarshals from json +func (m *Volume) UnmarshalJSON(data []byte) (e error) { + model := struct { + IsHydrated *bool `json:"isHydrated"` + SizeInGBs *int `json:"sizeInGBs"` + SourceDetails volumesourcedetails `json:"sourceDetails"` + AvailabilityDomain *string `json:"availabilityDomain"` + CompartmentId *string `json:"compartmentId"` + DisplayName *string `json:"displayName"` + Id *string `json:"id"` + LifecycleState VolumeLifecycleStateEnum `json:"lifecycleState"` + SizeInMBs *int `json:"sizeInMBs"` + TimeCreated *common.SDKTime `json:"timeCreated"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + m.IsHydrated = model.IsHydrated + m.SizeInGBs = model.SizeInGBs + nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + m.SourceDetails = nn + m.AvailabilityDomain = model.AvailabilityDomain + m.CompartmentId = model.CompartmentId + m.DisplayName = model.DisplayName + m.Id = model.Id + m.LifecycleState = model.LifecycleState + m.SizeInMBs = model.SizeInMBs + m.TimeCreated = model.TimeCreated + return +} // VolumeLifecycleStateEnum Enum with underlying type: string type VolumeLifecycleStateEnum string // Set of constants representing the allowable values for VolumeLifecycleState const ( - VolumeLifecycleStateProvisioning VolumeLifecycleStateEnum = "PROVISIONING" - VolumeLifecycleStateRestoring VolumeLifecycleStateEnum = "RESTORING" - VolumeLifecycleStateAvailable VolumeLifecycleStateEnum = "AVAILABLE" - VolumeLifecycleStateTerminating VolumeLifecycleStateEnum = "TERMINATING" - VolumeLifecycleStateTerminated VolumeLifecycleStateEnum = "TERMINATED" - VolumeLifecycleStateFaulty VolumeLifecycleStateEnum = "FAULTY" - VolumeLifecycleStateUnknown VolumeLifecycleStateEnum = "UNKNOWN" + VolumeLifecycleStateProvisioning VolumeLifecycleStateEnum = "PROVISIONING" + VolumeLifecycleStateRestoring VolumeLifecycleStateEnum = "RESTORING" + VolumeLifecycleStateAvailable VolumeLifecycleStateEnum = "AVAILABLE" + VolumeLifecycleStateTerminating VolumeLifecycleStateEnum = "TERMINATING" + VolumeLifecycleStateTerminated VolumeLifecycleStateEnum = "TERMINATED" + VolumeLifecycleStateFaulty VolumeLifecycleStateEnum = "FAULTY" ) -var mappingVolumeLifecycleState = map[string]VolumeLifecycleStateEnum { - "PROVISIONING": VolumeLifecycleStateProvisioning, - "RESTORING": VolumeLifecycleStateRestoring, - "AVAILABLE": VolumeLifecycleStateAvailable, - "TERMINATING": VolumeLifecycleStateTerminating, - "TERMINATED": VolumeLifecycleStateTerminated, - "FAULTY": VolumeLifecycleStateFaulty, - "UNKNOWN": VolumeLifecycleStateUnknown, +var mappingVolumeLifecycleState = map[string]VolumeLifecycleStateEnum{ + "PROVISIONING": VolumeLifecycleStateProvisioning, + "RESTORING": VolumeLifecycleStateRestoring, + "AVAILABLE": VolumeLifecycleStateAvailable, + "TERMINATING": VolumeLifecycleStateTerminating, + "TERMINATED": VolumeLifecycleStateTerminated, + "FAULTY": VolumeLifecycleStateFaulty, } // GetVolumeLifecycleStateEnumValues Enumerates the set of values for VolumeLifecycleState func GetVolumeLifecycleStateEnumValues() []VolumeLifecycleStateEnum { - values := make([]VolumeLifecycleStateEnum, 0) - for _, v := range mappingVolumeLifecycleState { - if v != VolumeLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]VolumeLifecycleStateEnum, 0) + for _, v := range mappingVolumeLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_attachment.go index d24d9d1c6..d8942c4e9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_attachment.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,133 +9,138 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // VolumeAttachment A base object for all types of attachments between a storage volume and an instance. - // For specific details about iSCSI attachments, see - // IScsiVolumeAttachment. - // For general information about volume attachments, see - // [Overview of Block Volume Storage]({{DOC_SERVER_URL}}/Content/Block/Concepts/overview.htm). +// VolumeAttachment A base object for all types of attachments between a storage volume and an instance. +// For specific details about iSCSI attachments, see +// IScsiVolumeAttachment. +// For general information about volume attachments, see +// Overview of Block Volume Storage (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/overview.htm). type VolumeAttachment interface { - - // The Availability Domain of an instance. - // Example: `Uocm:PHX-AD-1` - GetAvailabilityDomain() *string - - // The OCID of the compartment. - GetCompartmentId() *string - - // The OCID of the volume attachment. - GetId() *string - - // The OCID of the instance the volume is attached to. - GetInstanceId() *string - - // The current state of the volume attachment. - GetLifecycleState() VolumeAttachmentLifecycleStateEnum - - // The date and time the volume was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - GetTimeCreated() *common.SDKTime - - // The OCID of the volume. - GetVolumeId() *string - - // A user-friendly name. Does not have to be unique, and it cannot be changed. - // Avoid entering confidential information. - // Example: `My volume attachment` - GetDisplayName() *string + + // The Availability Domain of an instance. + // Example: `Uocm:PHX-AD-1` + GetAvailabilityDomain() *string + + // The OCID of the compartment. + GetCompartmentId() *string + + // The OCID of the volume attachment. + GetId() *string + + // The OCID of the instance the volume is attached to. + GetInstanceId() *string + + // The current state of the volume attachment. + GetLifecycleState() VolumeAttachmentLifecycleStateEnum + + // The date and time the volume was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + GetTimeCreated() *common.SDKTime + + // The OCID of the volume. + GetVolumeId() *string + + // A user-friendly name. Does not have to be unique, and it cannot be changed. + // Avoid entering confidential information. + // Example: `My volume attachment` + GetDisplayName() *string } type volumeattachment struct { - JsonData []byte - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - CompartmentId *string `mandatory:"true" json:"compartmentId"` - Id *string `mandatory:"true" json:"id"` - InstanceId *string `mandatory:"true" json:"instanceId"` - LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - VolumeId *string `mandatory:"true" json:"volumeId"` - DisplayName *string `mandatory:"false" json:"displayName"` - AttachmentType string `json:"attachmentType"` + JsonData []byte + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + CompartmentId *string `mandatory:"true" json:"compartmentId"` + Id *string `mandatory:"true" json:"id"` + InstanceId *string `mandatory:"true" json:"instanceId"` + LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + VolumeId *string `mandatory:"true" json:"volumeId"` + DisplayName *string `mandatory:"false" json:"displayName"` + AttachmentType string `json:"attachmentType"` } - // UnmarshalJSON unmarshals json func (m *volumeattachment) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalervolumeattachment volumeattachment - s := struct { - Model Unmarshalervolumeattachment - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.AvailabilityDomain = s.Model.AvailabilityDomain - m.CompartmentId = s.Model.CompartmentId - m.Id = s.Model.Id - m.InstanceId = s.Model.InstanceId - m.LifecycleState = s.Model.LifecycleState - m.TimeCreated = s.Model.TimeCreated - m.VolumeId = s.Model.VolumeId - m.DisplayName = s.Model.DisplayName - m.AttachmentType = s.Model.AttachmentType - - return err + m.JsonData = data + type Unmarshalervolumeattachment volumeattachment + s := struct { + Model Unmarshalervolumeattachment + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.AvailabilityDomain = s.Model.AvailabilityDomain + m.CompartmentId = s.Model.CompartmentId + m.Id = s.Model.Id + m.InstanceId = s.Model.InstanceId + m.LifecycleState = s.Model.LifecycleState + m.TimeCreated = s.Model.TimeCreated + m.VolumeId = s.Model.VolumeId + m.DisplayName = s.Model.DisplayName + m.AttachmentType = s.Model.AttachmentType + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *volumeattachment) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.AttachmentType) { - case "iscsi": - mm := IScsiVolumeAttachment{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.AttachmentType { + case "iscsi": + mm := IScsiVolumeAttachment{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } +} + +//GetAvailabilityDomain returns AvailabilityDomain +func (m volumeattachment) GetAvailabilityDomain() *string { + return m.AvailabilityDomain +} + +//GetCompartmentId returns CompartmentId +func (m volumeattachment) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetId returns Id +func (m volumeattachment) GetId() *string { + return m.Id +} + +//GetInstanceId returns InstanceId +func (m volumeattachment) GetInstanceId() *string { + return m.InstanceId +} + +//GetLifecycleState returns LifecycleState +func (m volumeattachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { + return m.LifecycleState +} + +//GetTimeCreated returns TimeCreated +func (m volumeattachment) GetTimeCreated() *common.SDKTime { + return m.TimeCreated } - //GetAvailabilityDomain returns AvailabilityDomain - func (m volumeattachment) GetAvailabilityDomain() *string { - return m.AvailabilityDomain - } - //GetCompartmentId returns CompartmentId - func (m volumeattachment) GetCompartmentId() *string { - return m.CompartmentId - } - //GetId returns Id - func (m volumeattachment) GetId() *string { - return m.Id - } - //GetInstanceId returns InstanceId - func (m volumeattachment) GetInstanceId() *string { - return m.InstanceId - } - //GetLifecycleState returns LifecycleState - func (m volumeattachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { - return m.LifecycleState - } - //GetTimeCreated returns TimeCreated - func (m volumeattachment) GetTimeCreated() *common.SDKTime { - return m.TimeCreated - } - //GetVolumeId returns VolumeId - func (m volumeattachment) GetVolumeId() *string { - return m.VolumeId - } - //GetDisplayName returns DisplayName - func (m volumeattachment) GetDisplayName() *string { - return m.DisplayName - } +//GetVolumeId returns VolumeId +func (m volumeattachment) GetVolumeId() *string { + return m.VolumeId +} + +//GetDisplayName returns DisplayName +func (m volumeattachment) GetDisplayName() *string { + return m.DisplayName +} func (m volumeattachment) String() string { - return common.PointerString(m) + return common.PointerString(m) } // VolumeAttachmentLifecycleStateEnum Enum with underlying type: string @@ -143,32 +148,24 @@ type VolumeAttachmentLifecycleStateEnum string // Set of constants representing the allowable values for VolumeAttachmentLifecycleState const ( - VolumeAttachmentLifecycleStateAttaching VolumeAttachmentLifecycleStateEnum = "ATTACHING" - VolumeAttachmentLifecycleStateAttached VolumeAttachmentLifecycleStateEnum = "ATTACHED" - VolumeAttachmentLifecycleStateDetaching VolumeAttachmentLifecycleStateEnum = "DETACHING" - VolumeAttachmentLifecycleStateDetached VolumeAttachmentLifecycleStateEnum = "DETACHED" - VolumeAttachmentLifecycleStateUnknown VolumeAttachmentLifecycleStateEnum = "UNKNOWN" + VolumeAttachmentLifecycleStateAttaching VolumeAttachmentLifecycleStateEnum = "ATTACHING" + VolumeAttachmentLifecycleStateAttached VolumeAttachmentLifecycleStateEnum = "ATTACHED" + VolumeAttachmentLifecycleStateDetaching VolumeAttachmentLifecycleStateEnum = "DETACHING" + VolumeAttachmentLifecycleStateDetached VolumeAttachmentLifecycleStateEnum = "DETACHED" ) -var mappingVolumeAttachmentLifecycleState = map[string]VolumeAttachmentLifecycleStateEnum { - "ATTACHING": VolumeAttachmentLifecycleStateAttaching, - "ATTACHED": VolumeAttachmentLifecycleStateAttached, - "DETACHING": VolumeAttachmentLifecycleStateDetaching, - "DETACHED": VolumeAttachmentLifecycleStateDetached, - "UNKNOWN": VolumeAttachmentLifecycleStateUnknown, +var mappingVolumeAttachmentLifecycleState = map[string]VolumeAttachmentLifecycleStateEnum{ + "ATTACHING": VolumeAttachmentLifecycleStateAttaching, + "ATTACHED": VolumeAttachmentLifecycleStateAttached, + "DETACHING": VolumeAttachmentLifecycleStateDetaching, + "DETACHED": VolumeAttachmentLifecycleStateDetached, } // GetVolumeAttachmentLifecycleStateEnumValues Enumerates the set of values for VolumeAttachmentLifecycleState func GetVolumeAttachmentLifecycleStateEnumValues() []VolumeAttachmentLifecycleStateEnum { - values := make([]VolumeAttachmentLifecycleStateEnum, 0) - for _, v := range mappingVolumeAttachmentLifecycleState { - if v != VolumeAttachmentLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]VolumeAttachmentLifecycleStateEnum, 0) + for _, v := range mappingVolumeAttachmentLifecycleState { + values = append(values, v) + } + return values } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_backup.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup.go index e3496fc3d..6fd52b878 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_backup.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,98 +9,88 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // VolumeBackup A point-in-time copy of a volume that can then be used to create a new block volume - // or recover a block volume. For more information, see - // [Overview of Cloud Volume Storage]({{DOC_SERVER_URL}}/Content/Block/Concepts/overview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// VolumeBackup A point-in-time copy of a volume that can then be used to create a new block volume +// or recover a block volume. For more information, see +// Overview of Cloud Volume Storage (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type VolumeBackup struct { - - // The OCID of the compartment that contains the volume backup. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name for the volume backup. Does not have to be unique and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the volume backup. - Id *string `mandatory:"true" json:"id"` - - // The current state of a volume backup. - LifecycleState VolumeBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the volume backup was created. This is the time the actual point-in-time image - // of the volume data was taken. Format defined by RFC3339. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The size of the volume, in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` - - // The size of the volume in MBs. The value must be a multiple of 1024. - // This field is deprecated. Please use sizeInGBs. - SizeInMBs *int `mandatory:"false" json:"sizeInMBs"` - - // The date and time the request to create the volume backup was received. Format defined by RFC3339. - TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"` - - // The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space - // consumed on the volume and whether the backup is full or incremental. - UniqueSizeInGBs *int `mandatory:"false" json:"uniqueSizeInGBs"` - - // The size used by the backup, in MBs. It is typically smaller than sizeInMBs, depending on the space - // consumed on the volume and whether the backup is full or incremental. - // This field is deprecated. Please use uniqueSizeInGBs. - UniqueSizeInMbs *int `mandatory:"false" json:"uniqueSizeInMbs"` - - // The OCID of the volume. - VolumeId *string `mandatory:"false" json:"volumeId"` + + // The OCID of the compartment that contains the volume backup. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name for the volume backup. Does not have to be unique and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the volume backup. + Id *string `mandatory:"true" json:"id"` + + // The current state of a volume backup. + LifecycleState VolumeBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the volume backup was created. This is the time the actual point-in-time image + // of the volume data was taken. Format defined by RFC3339. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The size of the volume, in GBs. + SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + + // The size of the volume in MBs. The value must be a multiple of 1024. + // This field is deprecated. Please use sizeInGBs. + SizeInMBs *int `mandatory:"false" json:"sizeInMBs"` + + // The date and time the request to create the volume backup was received. Format defined by RFC3339. + TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"` + + // The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space + // consumed on the volume and whether the backup is full or incremental. + UniqueSizeInGBs *int `mandatory:"false" json:"uniqueSizeInGBs"` + + // The size used by the backup, in MBs. It is typically smaller than sizeInMBs, depending on the space + // consumed on the volume and whether the backup is full or incremental. + // This field is deprecated. Please use uniqueSizeInGBs. + UniqueSizeInMbs *int `mandatory:"false" json:"uniqueSizeInMbs"` + + // The OCID of the volume. + VolumeId *string `mandatory:"false" json:"volumeId"` } func (m VolumeBackup) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // VolumeBackupLifecycleStateEnum Enum with underlying type: string type VolumeBackupLifecycleStateEnum string // Set of constants representing the allowable values for VolumeBackupLifecycleState const ( - VolumeBackupLifecycleStateCreating VolumeBackupLifecycleStateEnum = "CREATING" - VolumeBackupLifecycleStateAvailable VolumeBackupLifecycleStateEnum = "AVAILABLE" - VolumeBackupLifecycleStateTerminating VolumeBackupLifecycleStateEnum = "TERMINATING" - VolumeBackupLifecycleStateTerminated VolumeBackupLifecycleStateEnum = "TERMINATED" - VolumeBackupLifecycleStateFaulty VolumeBackupLifecycleStateEnum = "FAULTY" - VolumeBackupLifecycleStateRequestReceived VolumeBackupLifecycleStateEnum = "REQUEST_RECEIVED" - VolumeBackupLifecycleStateUnknown VolumeBackupLifecycleStateEnum = "UNKNOWN" + VolumeBackupLifecycleStateCreating VolumeBackupLifecycleStateEnum = "CREATING" + VolumeBackupLifecycleStateAvailable VolumeBackupLifecycleStateEnum = "AVAILABLE" + VolumeBackupLifecycleStateTerminating VolumeBackupLifecycleStateEnum = "TERMINATING" + VolumeBackupLifecycleStateTerminated VolumeBackupLifecycleStateEnum = "TERMINATED" + VolumeBackupLifecycleStateFaulty VolumeBackupLifecycleStateEnum = "FAULTY" + VolumeBackupLifecycleStateRequestReceived VolumeBackupLifecycleStateEnum = "REQUEST_RECEIVED" ) -var mappingVolumeBackupLifecycleState = map[string]VolumeBackupLifecycleStateEnum { - "CREATING": VolumeBackupLifecycleStateCreating, - "AVAILABLE": VolumeBackupLifecycleStateAvailable, - "TERMINATING": VolumeBackupLifecycleStateTerminating, - "TERMINATED": VolumeBackupLifecycleStateTerminated, - "FAULTY": VolumeBackupLifecycleStateFaulty, - "REQUEST_RECEIVED": VolumeBackupLifecycleStateRequestReceived, - "UNKNOWN": VolumeBackupLifecycleStateUnknown, +var mappingVolumeBackupLifecycleState = map[string]VolumeBackupLifecycleStateEnum{ + "CREATING": VolumeBackupLifecycleStateCreating, + "AVAILABLE": VolumeBackupLifecycleStateAvailable, + "TERMINATING": VolumeBackupLifecycleStateTerminating, + "TERMINATED": VolumeBackupLifecycleStateTerminated, + "FAULTY": VolumeBackupLifecycleStateFaulty, + "REQUEST_RECEIVED": VolumeBackupLifecycleStateRequestReceived, } // GetVolumeBackupLifecycleStateEnumValues Enumerates the set of values for VolumeBackupLifecycleState func GetVolumeBackupLifecycleStateEnumValues() []VolumeBackupLifecycleStateEnum { - values := make([]VolumeBackupLifecycleStateEnum, 0) - for _, v := range mappingVolumeBackupLifecycleState { - if v != VolumeBackupLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]VolumeBackupLifecycleStateEnum, 0) + for _, v := range mappingVolumeBackupLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_source_details.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_source_details.go index 733b597ae..336c21e8b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_source_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,60 +9,52 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // VolumeSourceDetails The representation of VolumeSourceDetails +// VolumeSourceDetails The representation of VolumeSourceDetails type VolumeSourceDetails interface { } type volumesourcedetails struct { - JsonData []byte - Type string `json:"type"` + JsonData []byte + Type string `json:"type"` } - // UnmarshalJSON unmarshals json func (m *volumesourcedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalervolumesourcedetails volumesourcedetails - s := struct { - Model Unmarshalervolumesourcedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Type = s.Model.Type - - return err + m.JsonData = data + type Unmarshalervolumesourcedetails volumesourcedetails + s := struct { + Model Unmarshalervolumesourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *volumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.Type) { - case "volume": - mm := VolumeSourceFromVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "volumeBackup": - mm := VolumeSourceFromVolumeBackupDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.Type { + case "volume": + mm := VolumeSourceFromVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "volumeBackup": + mm := VolumeSourceFromVolumeBackupDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } } - func (m volumesourcedetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_source_from_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_source_from_volume_backup_details.go index 95b5cd8c1..5c6d57af3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_source_from_volume_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_source_from_volume_backup_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,36 +9,31 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // VolumeSourceFromVolumeBackupDetails Specifies the volume backup. +// VolumeSourceFromVolumeBackupDetails Specifies the volume backup. type VolumeSourceFromVolumeBackupDetails struct { - - // The OCID of the volume backup. - Id *string `mandatory:"true" json:"id"` + + // The OCID of the volume backup. + Id *string `mandatory:"true" json:"id"` } func (m VolumeSourceFromVolumeBackupDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m VolumeSourceFromVolumeBackupDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVolumeSourceFromVolumeBackupDetails VolumeSourceFromVolumeBackupDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVolumeSourceFromVolumeBackupDetails - }{ - "volumeBackup", - (MarshalTypeVolumeSourceFromVolumeBackupDetails)(m), - } - - return json.Marshal(&s) + type MarshalTypeVolumeSourceFromVolumeBackupDetails VolumeSourceFromVolumeBackupDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVolumeSourceFromVolumeBackupDetails + }{ + "volumeBackup", + (MarshalTypeVolumeSourceFromVolumeBackupDetails)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_source_from_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_source_from_volume_details.go index 5ccdcb57e..bb1ed162a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_source_from_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_source_from_volume_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Core Services API @@ -9,36 +9,31 @@ package core import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // VolumeSourceFromVolumeDetails Specifies the source volume. +// VolumeSourceFromVolumeDetails Specifies the source volume. type VolumeSourceFromVolumeDetails struct { - - // The OCID of the volume. - Id *string `mandatory:"true" json:"id"` + + // The OCID of the volume. + Id *string `mandatory:"true" json:"id"` } func (m VolumeSourceFromVolumeDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m VolumeSourceFromVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVolumeSourceFromVolumeDetails VolumeSourceFromVolumeDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVolumeSourceFromVolumeDetails - }{ - "volume", - (MarshalTypeVolumeSourceFromVolumeDetails)(m), - } - - return json.Marshal(&s) + type MarshalTypeVolumeSourceFromVolumeDetails VolumeSourceFromVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVolumeSourceFromVolumeDetails + }{ + "volume", + (MarshalTypeVolumeSourceFromVolumeDetails)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/backup.go b/vendor/github.com/oracle/oci-go-sdk/database/backup.go index 5bc440091..f898387ef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/backup.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/backup.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,111 +9,98 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Backup A database backup - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Backup A database backup +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Backup struct { - - // The name of the Availability Domain that the backup is located in. - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The OCID of the database. - DatabaseId *string `mandatory:"false" json:"databaseId"` - - // The user-friendly name for the backup. It does not have to be unique. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the backup. - Id *string `mandatory:"false" json:"id"` - - // Additional information about the current lifecycleState. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The current state of the backup. - LifecycleState BackupLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The date and time the backup was completed. - TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` - - // The date and time the backup starts. - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // The type of backup. - Type BackupTypeEnum `mandatory:"false" json:"type,omitempty"` + + // The name of the Availability Domain that the backup is located in. + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID of the database. + DatabaseId *string `mandatory:"false" json:"databaseId"` + + // The user-friendly name for the backup. It does not have to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the backup. + Id *string `mandatory:"false" json:"id"` + + // Additional information about the current lifecycleState. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The current state of the backup. + LifecycleState BackupLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The date and time the backup was completed. + TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` + + // The date and time the backup starts. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // The type of backup. + Type BackupTypeEnum `mandatory:"false" json:"type,omitempty"` } func (m Backup) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // BackupLifecycleStateEnum Enum with underlying type: string type BackupLifecycleStateEnum string // Set of constants representing the allowable values for BackupLifecycleState const ( - BackupLifecycleStateCreating BackupLifecycleStateEnum = "CREATING" - BackupLifecycleStateActive BackupLifecycleStateEnum = "ACTIVE" - BackupLifecycleStateDeleting BackupLifecycleStateEnum = "DELETING" - BackupLifecycleStateDeleted BackupLifecycleStateEnum = "DELETED" - BackupLifecycleStateFailed BackupLifecycleStateEnum = "FAILED" - BackupLifecycleStateRestoring BackupLifecycleStateEnum = "RESTORING" - BackupLifecycleStateUnknown BackupLifecycleStateEnum = "UNKNOWN" + BackupLifecycleStateCreating BackupLifecycleStateEnum = "CREATING" + BackupLifecycleStateActive BackupLifecycleStateEnum = "ACTIVE" + BackupLifecycleStateDeleting BackupLifecycleStateEnum = "DELETING" + BackupLifecycleStateDeleted BackupLifecycleStateEnum = "DELETED" + BackupLifecycleStateFailed BackupLifecycleStateEnum = "FAILED" + BackupLifecycleStateRestoring BackupLifecycleStateEnum = "RESTORING" ) -var mappingBackupLifecycleState = map[string]BackupLifecycleStateEnum { - "CREATING": BackupLifecycleStateCreating, - "ACTIVE": BackupLifecycleStateActive, - "DELETING": BackupLifecycleStateDeleting, - "DELETED": BackupLifecycleStateDeleted, - "FAILED": BackupLifecycleStateFailed, - "RESTORING": BackupLifecycleStateRestoring, - "UNKNOWN": BackupLifecycleStateUnknown, +var mappingBackupLifecycleState = map[string]BackupLifecycleStateEnum{ + "CREATING": BackupLifecycleStateCreating, + "ACTIVE": BackupLifecycleStateActive, + "DELETING": BackupLifecycleStateDeleting, + "DELETED": BackupLifecycleStateDeleted, + "FAILED": BackupLifecycleStateFailed, + "RESTORING": BackupLifecycleStateRestoring, } // GetBackupLifecycleStateEnumValues Enumerates the set of values for BackupLifecycleState func GetBackupLifecycleStateEnumValues() []BackupLifecycleStateEnum { - values := make([]BackupLifecycleStateEnum, 0) - for _, v := range mappingBackupLifecycleState { - if v != BackupLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]BackupLifecycleStateEnum, 0) + for _, v := range mappingBackupLifecycleState { + values = append(values, v) + } + return values } + // BackupTypeEnum Enum with underlying type: string type BackupTypeEnum string // Set of constants representing the allowable values for BackupType const ( - BackupTypeIncremental BackupTypeEnum = "INCREMENTAL" - BackupTypeFull BackupTypeEnum = "FULL" - BackupTypeUnknown BackupTypeEnum = "UNKNOWN" + BackupTypeIncremental BackupTypeEnum = "INCREMENTAL" + BackupTypeFull BackupTypeEnum = "FULL" ) -var mappingBackupType = map[string]BackupTypeEnum { - "INCREMENTAL": BackupTypeIncremental, - "FULL": BackupTypeFull, - "UNKNOWN": BackupTypeUnknown, +var mappingBackupType = map[string]BackupTypeEnum{ + "INCREMENTAL": BackupTypeIncremental, + "FULL": BackupTypeFull, } // GetBackupTypeEnumValues Enumerates the set of values for BackupType func GetBackupTypeEnumValues() []BackupTypeEnum { - values := make([]BackupTypeEnum, 0) - for _, v := range mappingBackupType { - if v != BackupTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]BackupTypeEnum, 0) + for _, v := range mappingBackupType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/backup_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/backup_summary.go index 7e41f064b..5e12d1c60 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/backup_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/backup_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,111 +9,98 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // BackupSummary A database backup - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// BackupSummary A database backup +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type BackupSummary struct { - - // The name of the Availability Domain that the backup is located in. - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The OCID of the database. - DatabaseId *string `mandatory:"false" json:"databaseId"` - - // The user-friendly name for the backup. It does not have to be unique. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the backup. - Id *string `mandatory:"false" json:"id"` - - // Additional information about the current lifecycleState. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The current state of the backup. - LifecycleState BackupSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The date and time the backup was completed. - TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` - - // The date and time the backup starts. - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // The type of backup. - Type BackupSummaryTypeEnum `mandatory:"false" json:"type,omitempty"` + + // The name of the Availability Domain that the backup is located in. + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID of the database. + DatabaseId *string `mandatory:"false" json:"databaseId"` + + // The user-friendly name for the backup. It does not have to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the backup. + Id *string `mandatory:"false" json:"id"` + + // Additional information about the current lifecycleState. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The current state of the backup. + LifecycleState BackupSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The date and time the backup was completed. + TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` + + // The date and time the backup starts. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // The type of backup. + Type BackupSummaryTypeEnum `mandatory:"false" json:"type,omitempty"` } func (m BackupSummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // BackupSummaryLifecycleStateEnum Enum with underlying type: string type BackupSummaryLifecycleStateEnum string // Set of constants representing the allowable values for BackupSummaryLifecycleState const ( - BackupSummaryLifecycleStateCreating BackupSummaryLifecycleStateEnum = "CREATING" - BackupSummaryLifecycleStateActive BackupSummaryLifecycleStateEnum = "ACTIVE" - BackupSummaryLifecycleStateDeleting BackupSummaryLifecycleStateEnum = "DELETING" - BackupSummaryLifecycleStateDeleted BackupSummaryLifecycleStateEnum = "DELETED" - BackupSummaryLifecycleStateFailed BackupSummaryLifecycleStateEnum = "FAILED" - BackupSummaryLifecycleStateRestoring BackupSummaryLifecycleStateEnum = "RESTORING" - BackupSummaryLifecycleStateUnknown BackupSummaryLifecycleStateEnum = "UNKNOWN" + BackupSummaryLifecycleStateCreating BackupSummaryLifecycleStateEnum = "CREATING" + BackupSummaryLifecycleStateActive BackupSummaryLifecycleStateEnum = "ACTIVE" + BackupSummaryLifecycleStateDeleting BackupSummaryLifecycleStateEnum = "DELETING" + BackupSummaryLifecycleStateDeleted BackupSummaryLifecycleStateEnum = "DELETED" + BackupSummaryLifecycleStateFailed BackupSummaryLifecycleStateEnum = "FAILED" + BackupSummaryLifecycleStateRestoring BackupSummaryLifecycleStateEnum = "RESTORING" ) -var mappingBackupSummaryLifecycleState = map[string]BackupSummaryLifecycleStateEnum { - "CREATING": BackupSummaryLifecycleStateCreating, - "ACTIVE": BackupSummaryLifecycleStateActive, - "DELETING": BackupSummaryLifecycleStateDeleting, - "DELETED": BackupSummaryLifecycleStateDeleted, - "FAILED": BackupSummaryLifecycleStateFailed, - "RESTORING": BackupSummaryLifecycleStateRestoring, - "UNKNOWN": BackupSummaryLifecycleStateUnknown, +var mappingBackupSummaryLifecycleState = map[string]BackupSummaryLifecycleStateEnum{ + "CREATING": BackupSummaryLifecycleStateCreating, + "ACTIVE": BackupSummaryLifecycleStateActive, + "DELETING": BackupSummaryLifecycleStateDeleting, + "DELETED": BackupSummaryLifecycleStateDeleted, + "FAILED": BackupSummaryLifecycleStateFailed, + "RESTORING": BackupSummaryLifecycleStateRestoring, } // GetBackupSummaryLifecycleStateEnumValues Enumerates the set of values for BackupSummaryLifecycleState func GetBackupSummaryLifecycleStateEnumValues() []BackupSummaryLifecycleStateEnum { - values := make([]BackupSummaryLifecycleStateEnum, 0) - for _, v := range mappingBackupSummaryLifecycleState { - if v != BackupSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]BackupSummaryLifecycleStateEnum, 0) + for _, v := range mappingBackupSummaryLifecycleState { + values = append(values, v) + } + return values } + // BackupSummaryTypeEnum Enum with underlying type: string type BackupSummaryTypeEnum string // Set of constants representing the allowable values for BackupSummaryType const ( - BackupSummaryTypeIncremental BackupSummaryTypeEnum = "INCREMENTAL" - BackupSummaryTypeFull BackupSummaryTypeEnum = "FULL" - BackupSummaryTypeUnknown BackupSummaryTypeEnum = "UNKNOWN" + BackupSummaryTypeIncremental BackupSummaryTypeEnum = "INCREMENTAL" + BackupSummaryTypeFull BackupSummaryTypeEnum = "FULL" ) -var mappingBackupSummaryType = map[string]BackupSummaryTypeEnum { - "INCREMENTAL": BackupSummaryTypeIncremental, - "FULL": BackupSummaryTypeFull, - "UNKNOWN": BackupSummaryTypeUnknown, +var mappingBackupSummaryType = map[string]BackupSummaryTypeEnum{ + "INCREMENTAL": BackupSummaryTypeIncremental, + "FULL": BackupSummaryTypeFull, } // GetBackupSummaryTypeEnumValues Enumerates the set of values for BackupSummaryType func GetBackupSummaryTypeEnumValues() []BackupSummaryTypeEnum { - values := make([]BackupSummaryTypeEnum, 0) - for _, v := range mappingBackupSummaryType { - if v != BackupSummaryTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]BackupSummaryTypeEnum, 0) + for _, v := range mappingBackupSummaryType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_backup_details.go index e2fcb28d6..6faa74c49 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_backup_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,26 +9,19 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateBackupDetails The representation of CreateBackupDetails +// CreateBackupDetails The representation of CreateBackupDetails type CreateBackupDetails struct { - - // The OCID of the database. - DatabaseId *string `mandatory:"true" json:"databaseId"` - - // The user-friendly name for the backup. It does not have to be unique. - DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the database. + DatabaseId *string `mandatory:"true" json:"databaseId"` + + // The user-friendly name for the backup. It does not have to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` } func (m CreateBackupDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/create_backup_request_response.go index aeed9ab12..9cd01036e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_backup_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateBackupRequest wrapper for the CreateBackup operation type CreateBackupRequest struct { - - // Request to create a new database backup. - CreateBackupDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request to create a new database backup. + CreateBackupDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateBackupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateBackupResponse wrapper for the CreateBackup operation type CreateBackupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Backup instance - Backup `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Backup instance + Backup `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateBackupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_details.go index 636e1380d..dc92eb654 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,102 +9,102 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // CreateDataGuardAssociationDetails The configuration details for creating a Data Guard association between databases. - // **NOTE:** - // "ExistingDbSystem" is the only supported `creationType` value. Therefore, all - // CreateDataGuardAssociation - // requests must include the `peerDbSystemId` parameter found in the - // CreateDataGuardAssociationToExistingDbSystemDetails - // object. +// CreateDataGuardAssociationDetails The configuration details for creating a Data Guard association between databases. +// **NOTE:** +// "ExistingDbSystem" is the only supported `creationType` value. Therefore, all +// CreateDataGuardAssociation +// requests must include the `peerDbSystemId` parameter found in the +// CreateDataGuardAssociationToExistingDbSystemDetails +// object. type CreateDataGuardAssociationDetails interface { - - // A strong password for the `SYS`, `SYSTEM`, and `PDB Admin` users to apply during standby creation. - // The password must contain no fewer than nine characters and include: - // * At least two uppercase characters. - // * At least two lowercase characters. - // * At least two numeric characters. - // * At least two special characters. Valid special characters include "_", "#", and "-" only. - // **The password MUST be the same as the primary admin password.** - GetDatabaseAdminPassword() *string - - // The protection mode to set up between the primary and standby databases. For more information, see - // [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) - // in the Oracle Data Guard documentation. - // **IMPORTANT** - The only protection mode currently supported by the Database Service is MAXIMUM_PERFORMANCE. - GetProtectionMode() CreateDataGuardAssociationDetailsProtectionModeEnum - - // The redo transport type to use for this Data Guard association. Valid values depend on the specified `protectionMode`: - // * MAXIMUM_AVAILABILITY - SYNC or FASTSYNC - // * MAXIMUM_PERFORMANCE - ASYNC - // * MAXIMUM_PROTECTION - SYNC - // For more information, see - // [Redo Transport Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) - // in the Oracle Data Guard documentation. - // **IMPORTANT** - The only transport type currently supported by the Database Service is ASYNC. - GetTransportType() CreateDataGuardAssociationDetailsTransportTypeEnum + + // A strong password for the `SYS`, `SYSTEM`, and `PDB Admin` users to apply during standby creation. + // The password must contain no fewer than nine characters and include: + // * At least two uppercase characters. + // * At least two lowercase characters. + // * At least two numeric characters. + // * At least two special characters. Valid special characters include "_", "#", and "-" only. + // **The password MUST be the same as the primary admin password.** + GetDatabaseAdminPassword() *string + + // The protection mode to set up between the primary and standby databases. For more information, see + // Oracle Data Guard Protection Modes (http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) + // in the Oracle Data Guard documentation. + // **IMPORTANT** - The only protection mode currently supported by the Database Service is MAXIMUM_PERFORMANCE. + GetProtectionMode() CreateDataGuardAssociationDetailsProtectionModeEnum + + // The redo transport type to use for this Data Guard association. Valid values depend on the specified `protectionMode`: + // * MAXIMUM_AVAILABILITY - SYNC or FASTSYNC + // * MAXIMUM_PERFORMANCE - ASYNC + // * MAXIMUM_PROTECTION - SYNC + // For more information, see + // Redo Transport Services (http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) + // in the Oracle Data Guard documentation. + // **IMPORTANT** - The only transport type currently supported by the Database Service is ASYNC. + GetTransportType() CreateDataGuardAssociationDetailsTransportTypeEnum } type createdataguardassociationdetails struct { - JsonData []byte - DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` - ProtectionMode CreateDataGuardAssociationDetailsProtectionModeEnum `mandatory:"true" json:"protectionMode"` - TransportType CreateDataGuardAssociationDetailsTransportTypeEnum `mandatory:"true" json:"transportType"` - CreationType string `json:"creationType"` + JsonData []byte + DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` + ProtectionMode CreateDataGuardAssociationDetailsProtectionModeEnum `mandatory:"true" json:"protectionMode"` + TransportType CreateDataGuardAssociationDetailsTransportTypeEnum `mandatory:"true" json:"transportType"` + CreationType string `json:"creationType"` } - // UnmarshalJSON unmarshals json func (m *createdataguardassociationdetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalercreatedataguardassociationdetails createdataguardassociationdetails - s := struct { - Model Unmarshalercreatedataguardassociationdetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.DatabaseAdminPassword = s.Model.DatabaseAdminPassword - m.ProtectionMode = s.Model.ProtectionMode - m.TransportType = s.Model.TransportType - m.CreationType = s.Model.CreationType - - return err + m.JsonData = data + type Unmarshalercreatedataguardassociationdetails createdataguardassociationdetails + s := struct { + Model Unmarshalercreatedataguardassociationdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.DatabaseAdminPassword = s.Model.DatabaseAdminPassword + m.ProtectionMode = s.Model.ProtectionMode + m.TransportType = s.Model.TransportType + m.CreationType = s.Model.CreationType + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *createdataguardassociationdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.CreationType) { - case "ExistingDbSystem": - mm := CreateDataGuardAssociationToExistingDbSystemDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.CreationType { + case "ExistingDbSystem": + mm := CreateDataGuardAssociationToExistingDbSystemDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } +} + +//GetDatabaseAdminPassword returns DatabaseAdminPassword +func (m createdataguardassociationdetails) GetDatabaseAdminPassword() *string { + return m.DatabaseAdminPassword +} + +//GetProtectionMode returns ProtectionMode +func (m createdataguardassociationdetails) GetProtectionMode() CreateDataGuardAssociationDetailsProtectionModeEnum { + return m.ProtectionMode } - //GetDatabaseAdminPassword returns DatabaseAdminPassword - func (m createdataguardassociationdetails) GetDatabaseAdminPassword() *string { - return m.DatabaseAdminPassword - } - //GetProtectionMode returns ProtectionMode - func (m createdataguardassociationdetails) GetProtectionMode() CreateDataGuardAssociationDetailsProtectionModeEnum { - return m.ProtectionMode - } - //GetTransportType returns TransportType - func (m createdataguardassociationdetails) GetTransportType() CreateDataGuardAssociationDetailsTransportTypeEnum { - return m.TransportType - } +//GetTransportType returns TransportType +func (m createdataguardassociationdetails) GetTransportType() CreateDataGuardAssociationDetailsTransportTypeEnum { + return m.TransportType +} func (m createdataguardassociationdetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // CreateDataGuardAssociationDetailsProtectionModeEnum Enum with underlying type: string @@ -112,58 +112,47 @@ type CreateDataGuardAssociationDetailsProtectionModeEnum string // Set of constants representing the allowable values for CreateDataGuardAssociationDetailsProtectionMode const ( - CreateDataGuardAssociationDetailsProtectionModeAvailability CreateDataGuardAssociationDetailsProtectionModeEnum = "MAXIMUM_AVAILABILITY" - CreateDataGuardAssociationDetailsProtectionModePerformance CreateDataGuardAssociationDetailsProtectionModeEnum = "MAXIMUM_PERFORMANCE" - CreateDataGuardAssociationDetailsProtectionModeProtection CreateDataGuardAssociationDetailsProtectionModeEnum = "MAXIMUM_PROTECTION" - CreateDataGuardAssociationDetailsProtectionModeUnknown CreateDataGuardAssociationDetailsProtectionModeEnum = "UNKNOWN" + CreateDataGuardAssociationDetailsProtectionModeAvailability CreateDataGuardAssociationDetailsProtectionModeEnum = "MAXIMUM_AVAILABILITY" + CreateDataGuardAssociationDetailsProtectionModePerformance CreateDataGuardAssociationDetailsProtectionModeEnum = "MAXIMUM_PERFORMANCE" + CreateDataGuardAssociationDetailsProtectionModeProtection CreateDataGuardAssociationDetailsProtectionModeEnum = "MAXIMUM_PROTECTION" ) -var mappingCreateDataGuardAssociationDetailsProtectionMode = map[string]CreateDataGuardAssociationDetailsProtectionModeEnum { - "MAXIMUM_AVAILABILITY": CreateDataGuardAssociationDetailsProtectionModeAvailability, - "MAXIMUM_PERFORMANCE": CreateDataGuardAssociationDetailsProtectionModePerformance, - "MAXIMUM_PROTECTION": CreateDataGuardAssociationDetailsProtectionModeProtection, - "UNKNOWN": CreateDataGuardAssociationDetailsProtectionModeUnknown, +var mappingCreateDataGuardAssociationDetailsProtectionMode = map[string]CreateDataGuardAssociationDetailsProtectionModeEnum{ + "MAXIMUM_AVAILABILITY": CreateDataGuardAssociationDetailsProtectionModeAvailability, + "MAXIMUM_PERFORMANCE": CreateDataGuardAssociationDetailsProtectionModePerformance, + "MAXIMUM_PROTECTION": CreateDataGuardAssociationDetailsProtectionModeProtection, } // GetCreateDataGuardAssociationDetailsProtectionModeEnumValues Enumerates the set of values for CreateDataGuardAssociationDetailsProtectionMode func GetCreateDataGuardAssociationDetailsProtectionModeEnumValues() []CreateDataGuardAssociationDetailsProtectionModeEnum { - values := make([]CreateDataGuardAssociationDetailsProtectionModeEnum, 0) - for _, v := range mappingCreateDataGuardAssociationDetailsProtectionMode { - if v != CreateDataGuardAssociationDetailsProtectionModeUnknown { - values = append(values, v) - } - } - return values + values := make([]CreateDataGuardAssociationDetailsProtectionModeEnum, 0) + for _, v := range mappingCreateDataGuardAssociationDetailsProtectionMode { + values = append(values, v) + } + return values } + // CreateDataGuardAssociationDetailsTransportTypeEnum Enum with underlying type: string type CreateDataGuardAssociationDetailsTransportTypeEnum string // Set of constants representing the allowable values for CreateDataGuardAssociationDetailsTransportType const ( - CreateDataGuardAssociationDetailsTransportTypeSync CreateDataGuardAssociationDetailsTransportTypeEnum = "SYNC" - CreateDataGuardAssociationDetailsTransportTypeAsync CreateDataGuardAssociationDetailsTransportTypeEnum = "ASYNC" - CreateDataGuardAssociationDetailsTransportTypeFastsync CreateDataGuardAssociationDetailsTransportTypeEnum = "FASTSYNC" - CreateDataGuardAssociationDetailsTransportTypeUnknown CreateDataGuardAssociationDetailsTransportTypeEnum = "UNKNOWN" + CreateDataGuardAssociationDetailsTransportTypeSync CreateDataGuardAssociationDetailsTransportTypeEnum = "SYNC" + CreateDataGuardAssociationDetailsTransportTypeAsync CreateDataGuardAssociationDetailsTransportTypeEnum = "ASYNC" + CreateDataGuardAssociationDetailsTransportTypeFastsync CreateDataGuardAssociationDetailsTransportTypeEnum = "FASTSYNC" ) -var mappingCreateDataGuardAssociationDetailsTransportType = map[string]CreateDataGuardAssociationDetailsTransportTypeEnum { - "SYNC": CreateDataGuardAssociationDetailsTransportTypeSync, - "ASYNC": CreateDataGuardAssociationDetailsTransportTypeAsync, - "FASTSYNC": CreateDataGuardAssociationDetailsTransportTypeFastsync, - "UNKNOWN": CreateDataGuardAssociationDetailsTransportTypeUnknown, +var mappingCreateDataGuardAssociationDetailsTransportType = map[string]CreateDataGuardAssociationDetailsTransportTypeEnum{ + "SYNC": CreateDataGuardAssociationDetailsTransportTypeSync, + "ASYNC": CreateDataGuardAssociationDetailsTransportTypeAsync, + "FASTSYNC": CreateDataGuardAssociationDetailsTransportTypeFastsync, } // GetCreateDataGuardAssociationDetailsTransportTypeEnumValues Enumerates the set of values for CreateDataGuardAssociationDetailsTransportType func GetCreateDataGuardAssociationDetailsTransportTypeEnumValues() []CreateDataGuardAssociationDetailsTransportTypeEnum { - values := make([]CreateDataGuardAssociationDetailsTransportTypeEnum, 0) - for _, v := range mappingCreateDataGuardAssociationDetailsTransportType { - if v != CreateDataGuardAssociationDetailsTransportTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]CreateDataGuardAssociationDetailsTransportTypeEnum, 0) + for _, v := range mappingCreateDataGuardAssociationDetailsTransportType { + values = append(values, v) + } + return values } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_request_response.go index 53af6ca3e..b65888e01 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_request_response.go @@ -1,55 +1,51 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateDataGuardAssociationRequest wrapper for the CreateDataGuardAssociation operation type CreateDataGuardAssociationRequest struct { - - // The database [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` - - // A request to create a Data Guard association. - CreateDataGuardAssociationDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` + + // A request to create a Data Guard association. + CreateDataGuardAssociationDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateDataGuardAssociationRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateDataGuardAssociationResponse wrapper for the CreateDataGuardAssociation operation type CreateDataGuardAssociationResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DataGuardAssociation instance - DataGuardAssociation `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DataGuardAssociation instance + DataGuardAssociation `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateDataGuardAssociationResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_to_existing_db_system_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_to_existing_db_system_details.go index 12c0be394..0badd6d50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_to_existing_db_system_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_to_existing_db_system_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,73 +9,71 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // CreateDataGuardAssociationToExistingDbSystemDetails The configuration details for creating a Data Guard association to an existing database. +// CreateDataGuardAssociationToExistingDbSystemDetails The configuration details for creating a Data Guard association to an existing database. type CreateDataGuardAssociationToExistingDbSystemDetails struct { - - // A strong password for the `SYS`, `SYSTEM`, and `PDB Admin` users to apply during standby creation. - // The password must contain no fewer than nine characters and include: - // * At least two uppercase characters. - // * At least two lowercase characters. - // * At least two numeric characters. - // * At least two special characters. Valid special characters include "_", "#", and "-" only. - // **The password MUST be the same as the primary admin password.** - DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the DB System to create the standby database on. - PeerDbSystemId *string `mandatory:"false" json:"peerDbSystemId"` - - // The protection mode to set up between the primary and standby databases. For more information, see - // [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) - // in the Oracle Data Guard documentation. - // **IMPORTANT** - The only protection mode currently supported by the Database Service is MAXIMUM_PERFORMANCE. - ProtectionMode CreateDataGuardAssociationDetailsProtectionModeEnum `mandatory:"true" json:"protectionMode"` - - // The redo transport type to use for this Data Guard association. Valid values depend on the specified `protectionMode`: - // * MAXIMUM_AVAILABILITY - SYNC or FASTSYNC - // * MAXIMUM_PERFORMANCE - ASYNC - // * MAXIMUM_PROTECTION - SYNC - // For more information, see - // [Redo Transport Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) - // in the Oracle Data Guard documentation. - // **IMPORTANT** - The only transport type currently supported by the Database Service is ASYNC. - TransportType CreateDataGuardAssociationDetailsTransportTypeEnum `mandatory:"true" json:"transportType"` -} - //GetDatabaseAdminPassword returns DatabaseAdminPassword - func (m CreateDataGuardAssociationToExistingDbSystemDetails) GetDatabaseAdminPassword() *string { - return m.DatabaseAdminPassword - } - //GetProtectionMode returns ProtectionMode - func (m CreateDataGuardAssociationToExistingDbSystemDetails) GetProtectionMode() CreateDataGuardAssociationDetailsProtectionModeEnum { - return m.ProtectionMode - } - //GetTransportType returns TransportType - func (m CreateDataGuardAssociationToExistingDbSystemDetails) GetTransportType() CreateDataGuardAssociationDetailsTransportTypeEnum { - return m.TransportType - } -func (m CreateDataGuardAssociationToExistingDbSystemDetails) String() string { - return common.PointerString(m) + // A strong password for the `SYS`, `SYSTEM`, and `PDB Admin` users to apply during standby creation. + // The password must contain no fewer than nine characters and include: + // * At least two uppercase characters. + // * At least two lowercase characters. + // * At least two numeric characters. + // * At least two special characters. Valid special characters include "_", "#", and "-" only. + // **The password MUST be the same as the primary admin password.** + DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System to create the standby database on. + PeerDbSystemId *string `mandatory:"false" json:"peerDbSystemId"` + + // The protection mode to set up between the primary and standby databases. For more information, see + // Oracle Data Guard Protection Modes (http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) + // in the Oracle Data Guard documentation. + // **IMPORTANT** - The only protection mode currently supported by the Database Service is MAXIMUM_PERFORMANCE. + ProtectionMode CreateDataGuardAssociationDetailsProtectionModeEnum `mandatory:"true" json:"protectionMode"` + + // The redo transport type to use for this Data Guard association. Valid values depend on the specified `protectionMode`: + // * MAXIMUM_AVAILABILITY - SYNC or FASTSYNC + // * MAXIMUM_PERFORMANCE - ASYNC + // * MAXIMUM_PROTECTION - SYNC + // For more information, see + // Redo Transport Services (http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) + // in the Oracle Data Guard documentation. + // **IMPORTANT** - The only transport type currently supported by the Database Service is ASYNC. + TransportType CreateDataGuardAssociationDetailsTransportTypeEnum `mandatory:"true" json:"transportType"` } -// MarshalJSON marshals to json representation -func (m CreateDataGuardAssociationToExistingDbSystemDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeCreateDataGuardAssociationToExistingDbSystemDetails CreateDataGuardAssociationToExistingDbSystemDetails - s := struct { - DiscriminatorParam string `json:"creationType"` - MarshalTypeCreateDataGuardAssociationToExistingDbSystemDetails - }{ - "ExistingDbSystem", - (MarshalTypeCreateDataGuardAssociationToExistingDbSystemDetails)(m), - } +//GetDatabaseAdminPassword returns DatabaseAdminPassword +func (m CreateDataGuardAssociationToExistingDbSystemDetails) GetDatabaseAdminPassword() *string { + return m.DatabaseAdminPassword +} - return json.Marshal(&s) +//GetProtectionMode returns ProtectionMode +func (m CreateDataGuardAssociationToExistingDbSystemDetails) GetProtectionMode() CreateDataGuardAssociationDetailsProtectionModeEnum { + return m.ProtectionMode } +//GetTransportType returns TransportType +func (m CreateDataGuardAssociationToExistingDbSystemDetails) GetTransportType() CreateDataGuardAssociationDetailsTransportTypeEnum { + return m.TransportType +} +func (m CreateDataGuardAssociationToExistingDbSystemDetails) String() string { + return common.PointerString(m) +} +// MarshalJSON marshals to json representation +func (m CreateDataGuardAssociationToExistingDbSystemDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeCreateDataGuardAssociationToExistingDbSystemDetails CreateDataGuardAssociationToExistingDbSystemDetails + s := struct { + DiscriminatorParam string `json:"creationType"` + MarshalTypeCreateDataGuardAssociationToExistingDbSystemDetails + }{ + "ExistingDbSystem", + (MarshalTypeCreateDataGuardAssociationToExistingDbSystemDetails)(m), + } + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_database_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_database_details.go index 256f8b264..0565459d5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_database_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_database_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,68 +9,58 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateDatabaseDetails The representation of CreateDatabaseDetails +// CreateDatabaseDetails The representation of CreateDatabaseDetails type CreateDatabaseDetails struct { - - // A strong password for SYS, SYSTEM, and PDB Admin. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, \#, or -. - AdminPassword *string `mandatory:"true" json:"adminPassword"` - - // The database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. - DbName *string `mandatory:"true" json:"dbName"` - - // The character set for the database. The default is AL32UTF8. Allowed values are: - // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS - CharacterSet *string `mandatory:"false" json:"characterSet"` - - DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` - - // Database workload type. - DbWorkload CreateDatabaseDetailsDbWorkloadEnum `mandatory:"false" json:"dbWorkload,omitempty"` - - // National character set for the database. The default is AL16UTF16. Allowed values are: - // AL16UTF16 or UTF8. - NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` - - // Pluggable database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. - PdbName *string `mandatory:"false" json:"pdbName"` + + // A strong password for SYS, SYSTEM, and PDB Admin. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, \#, or -. + AdminPassword *string `mandatory:"true" json:"adminPassword"` + + // The database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. + DbName *string `mandatory:"true" json:"dbName"` + + // The character set for the database. The default is AL32UTF8. Allowed values are: + // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS + CharacterSet *string `mandatory:"false" json:"characterSet"` + + DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` + + // Database workload type. + DbWorkload CreateDatabaseDetailsDbWorkloadEnum `mandatory:"false" json:"dbWorkload,omitempty"` + + // National character set for the database. The default is AL16UTF16. Allowed values are: + // AL16UTF16 or UTF8. + NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` + + // Pluggable database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. + PdbName *string `mandatory:"false" json:"pdbName"` } func (m CreateDatabaseDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // CreateDatabaseDetailsDbWorkloadEnum Enum with underlying type: string type CreateDatabaseDetailsDbWorkloadEnum string // Set of constants representing the allowable values for CreateDatabaseDetailsDbWorkload const ( - CreateDatabaseDetailsDbWorkloadOltp CreateDatabaseDetailsDbWorkloadEnum = "OLTP" - CreateDatabaseDetailsDbWorkloadDss CreateDatabaseDetailsDbWorkloadEnum = "DSS" - CreateDatabaseDetailsDbWorkloadUnknown CreateDatabaseDetailsDbWorkloadEnum = "UNKNOWN" + CreateDatabaseDetailsDbWorkloadOltp CreateDatabaseDetailsDbWorkloadEnum = "OLTP" + CreateDatabaseDetailsDbWorkloadDss CreateDatabaseDetailsDbWorkloadEnum = "DSS" ) -var mappingCreateDatabaseDetailsDbWorkload = map[string]CreateDatabaseDetailsDbWorkloadEnum { - "OLTP": CreateDatabaseDetailsDbWorkloadOltp, - "DSS": CreateDatabaseDetailsDbWorkloadDss, - "UNKNOWN": CreateDatabaseDetailsDbWorkloadUnknown, +var mappingCreateDatabaseDetailsDbWorkload = map[string]CreateDatabaseDetailsDbWorkloadEnum{ + "OLTP": CreateDatabaseDetailsDbWorkloadOltp, + "DSS": CreateDatabaseDetailsDbWorkloadDss, } // GetCreateDatabaseDetailsDbWorkloadEnumValues Enumerates the set of values for CreateDatabaseDetailsDbWorkload func GetCreateDatabaseDetailsDbWorkloadEnumValues() []CreateDatabaseDetailsDbWorkloadEnum { - values := make([]CreateDatabaseDetailsDbWorkloadEnum, 0) - for _, v := range mappingCreateDatabaseDetailsDbWorkload { - if v != CreateDatabaseDetailsDbWorkloadUnknown { - values = append(values, v) - } - } - return values + values := make([]CreateDatabaseDetailsDbWorkloadEnum, 0) + for _, v := range mappingCreateDatabaseDetailsDbWorkload { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_database_from_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_database_from_backup_details.go index a8d473f76..9c25aadc4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_database_from_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_database_from_backup_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,29 +9,22 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateDatabaseFromBackupDetails The representation of CreateDatabaseFromBackupDetails +// CreateDatabaseFromBackupDetails The representation of CreateDatabaseFromBackupDetails type CreateDatabaseFromBackupDetails struct { - - // A strong password for SYS, SYSTEM, PDB Admin and TDE Wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, \#, or -. - AdminPassword *string `mandatory:"true" json:"adminPassword"` - - // The backup OCID. - BackupId *string `mandatory:"true" json:"backupId"` - - // The password to open the TDE wallet. - BackupTDEPassword *string `mandatory:"true" json:"backupTDEPassword"` -} - -func (m CreateDatabaseFromBackupDetails) String() string { - return common.PointerString(m) -} - + // A strong password for SYS, SYSTEM, PDB Admin and TDE Wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, \#, or -. + AdminPassword *string `mandatory:"true" json:"adminPassword"` + // The backup OCID. + BackupId *string `mandatory:"true" json:"backupId"` + // The password to open the TDE wallet. + BackupTDEPassword *string `mandatory:"true" json:"backupTDEPassword"` +} +func (m CreateDatabaseFromBackupDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_details.go index 2d18f9105..93eb4c928 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,28 +9,20 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateDbHomeDetails The representation of CreateDbHomeDetails +// CreateDbHomeDetails The representation of CreateDbHomeDetails type CreateDbHomeDetails struct { - - Database *CreateDatabaseDetails `mandatory:"true" json:"database"` - - // A valid Oracle database version. To get a list of supported versions, use the ListDbVersions operation. - DbVersion *string `mandatory:"true" json:"dbVersion"` - - // The user-provided name of the database home. - DisplayName *string `mandatory:"false" json:"displayName"` + Database *CreateDatabaseDetails `mandatory:"true" json:"database"` + + // A valid Oracle database version. To get a list of supported versions, use the ListDbVersions operation. + DbVersion *string `mandatory:"true" json:"dbVersion"` + + // The user-provided name of the database home. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m CreateDbHomeDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_request_response.go index e1635ac51..6df0ab66c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateDbHomeRequest wrapper for the CreateDbHome operation type CreateDbHomeRequest struct { - - // Request to create a new DB Home. - CreateDbHomeWithDbSystemIdBase `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request to create a new DB Home. + CreateDbHomeWithDbSystemIdBase `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateDbHomeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateDbHomeResponse wrapper for the CreateDbHome operation type CreateDbHomeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DbHome instance - DbHome `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DbHome instance + DbHome `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateDbHomeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_base.go b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_base.go index 39f5dede1..670c00026 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_base.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_base.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,78 +9,72 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // CreateDbHomeWithDbSystemIdBase The representation of CreateDbHomeWithDbSystemIdBase +// CreateDbHomeWithDbSystemIdBase The representation of CreateDbHomeWithDbSystemIdBase type CreateDbHomeWithDbSystemIdBase interface { - - // The OCID of the DB System. - GetDbSystemId() *string - - // The user-provided name of the database home. - GetDisplayName() *string + + // The OCID of the DB System. + GetDbSystemId() *string + + // The user-provided name of the database home. + GetDisplayName() *string } type createdbhomewithdbsystemidbase struct { - JsonData []byte - DbSystemId *string `mandatory:"true" json:"dbSystemId"` - DisplayName *string `mandatory:"false" json:"displayName"` - Source string `json:"source"` + JsonData []byte + DbSystemId *string `mandatory:"true" json:"dbSystemId"` + DisplayName *string `mandatory:"false" json:"displayName"` + Source string `json:"source"` } - // UnmarshalJSON unmarshals json func (m *createdbhomewithdbsystemidbase) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalercreatedbhomewithdbsystemidbase createdbhomewithdbsystemidbase - s := struct { - Model Unmarshalercreatedbhomewithdbsystemidbase - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.DbSystemId = s.Model.DbSystemId - m.DisplayName = s.Model.DisplayName - m.Source = s.Model.Source - - return err + m.JsonData = data + type Unmarshalercreatedbhomewithdbsystemidbase createdbhomewithdbsystemidbase + s := struct { + Model Unmarshalercreatedbhomewithdbsystemidbase + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.DbSystemId = s.Model.DbSystemId + m.DisplayName = s.Model.DisplayName + m.Source = s.Model.Source + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *createdbhomewithdbsystemidbase) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.Source) { - case "DB_BACKUP": - mm := CreateDbHomeWithDbSystemIdFromBackupDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "NONE": - mm := CreateDbHomeWithDbSystemIdDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.Source { + case "DB_BACKUP": + mm := CreateDbHomeWithDbSystemIdFromBackupDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "NONE": + mm := CreateDbHomeWithDbSystemIdDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } } - //GetDbSystemId returns DbSystemId - func (m createdbhomewithdbsystemidbase) GetDbSystemId() *string { - return m.DbSystemId - } - //GetDisplayName returns DisplayName - func (m createdbhomewithdbsystemidbase) GetDisplayName() *string { - return m.DisplayName - } - -func (m createdbhomewithdbsystemidbase) String() string { - return common.PointerString(m) +//GetDbSystemId returns DbSystemId +func (m createdbhomewithdbsystemidbase) GetDbSystemId() *string { + return m.DbSystemId } +//GetDisplayName returns DisplayName +func (m createdbhomewithdbsystemidbase) GetDisplayName() *string { + return m.DisplayName +} - - - +func (m createdbhomewithdbsystemidbase) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_details.go index f0ddabdd2..92795f765 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,52 +9,49 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // CreateDbHomeWithDbSystemIdDetails The representation of CreateDbHomeWithDbSystemIdDetails +// CreateDbHomeWithDbSystemIdDetails The representation of CreateDbHomeWithDbSystemIdDetails type CreateDbHomeWithDbSystemIdDetails struct { - - // The OCID of the DB System. - DbSystemId *string `mandatory:"true" json:"dbSystemId"` - - Database *CreateDatabaseDetails `mandatory:"true" json:"database"` - - // A valid Oracle database version. To get a list of supported versions, use the ListDbVersions operation. - DbVersion *string `mandatory:"true" json:"dbVersion"` - - // The user-provided name of the database home. - DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the DB System. + DbSystemId *string `mandatory:"true" json:"dbSystemId"` + + Database *CreateDatabaseDetails `mandatory:"true" json:"database"` + + // A valid Oracle database version. To get a list of supported versions, use the ListDbVersions operation. + DbVersion *string `mandatory:"true" json:"dbVersion"` + + // The user-provided name of the database home. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +//GetDbSystemId returns DbSystemId +func (m CreateDbHomeWithDbSystemIdDetails) GetDbSystemId() *string { + return m.DbSystemId +} + +//GetDisplayName returns DisplayName +func (m CreateDbHomeWithDbSystemIdDetails) GetDisplayName() *string { + return m.DisplayName } - //GetDbSystemId returns DbSystemId - func (m CreateDbHomeWithDbSystemIdDetails) GetDbSystemId() *string { - return m.DbSystemId - } - //GetDisplayName returns DisplayName - func (m CreateDbHomeWithDbSystemIdDetails) GetDisplayName() *string { - return m.DisplayName - } func (m CreateDbHomeWithDbSystemIdDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m CreateDbHomeWithDbSystemIdDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeCreateDbHomeWithDbSystemIdDetails CreateDbHomeWithDbSystemIdDetails - s := struct { - DiscriminatorParam string `json:"source"` - MarshalTypeCreateDbHomeWithDbSystemIdDetails - }{ - "NONE", - (MarshalTypeCreateDbHomeWithDbSystemIdDetails)(m), - } - - return json.Marshal(&s) + type MarshalTypeCreateDbHomeWithDbSystemIdDetails CreateDbHomeWithDbSystemIdDetails + s := struct { + DiscriminatorParam string `json:"source"` + MarshalTypeCreateDbHomeWithDbSystemIdDetails + }{ + "NONE", + (MarshalTypeCreateDbHomeWithDbSystemIdDetails)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_from_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_from_backup_details.go index 30644cf6e..98f9fc305 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_from_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_from_backup_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,49 +9,46 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // CreateDbHomeWithDbSystemIdFromBackupDetails The representation of CreateDbHomeWithDbSystemIdFromBackupDetails +// CreateDbHomeWithDbSystemIdFromBackupDetails The representation of CreateDbHomeWithDbSystemIdFromBackupDetails type CreateDbHomeWithDbSystemIdFromBackupDetails struct { - - // The OCID of the DB System. - DbSystemId *string `mandatory:"true" json:"dbSystemId"` - - Database *CreateDatabaseFromBackupDetails `mandatory:"true" json:"database"` - - // The user-provided name of the database home. - DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the DB System. + DbSystemId *string `mandatory:"true" json:"dbSystemId"` + + Database *CreateDatabaseFromBackupDetails `mandatory:"true" json:"database"` + + // The user-provided name of the database home. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +//GetDbSystemId returns DbSystemId +func (m CreateDbHomeWithDbSystemIdFromBackupDetails) GetDbSystemId() *string { + return m.DbSystemId +} + +//GetDisplayName returns DisplayName +func (m CreateDbHomeWithDbSystemIdFromBackupDetails) GetDisplayName() *string { + return m.DisplayName } - //GetDbSystemId returns DbSystemId - func (m CreateDbHomeWithDbSystemIdFromBackupDetails) GetDbSystemId() *string { - return m.DbSystemId - } - //GetDisplayName returns DisplayName - func (m CreateDbHomeWithDbSystemIdFromBackupDetails) GetDisplayName() *string { - return m.DisplayName - } func (m CreateDbHomeWithDbSystemIdFromBackupDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m CreateDbHomeWithDbSystemIdFromBackupDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeCreateDbHomeWithDbSystemIdFromBackupDetails CreateDbHomeWithDbSystemIdFromBackupDetails - s := struct { - DiscriminatorParam string `json:"source"` - MarshalTypeCreateDbHomeWithDbSystemIdFromBackupDetails - }{ - "DB_BACKUP", - (MarshalTypeCreateDbHomeWithDbSystemIdFromBackupDetails)(m), - } - - return json.Marshal(&s) + type MarshalTypeCreateDbHomeWithDbSystemIdFromBackupDetails CreateDbHomeWithDbSystemIdFromBackupDetails + s := struct { + DiscriminatorParam string `json:"source"` + MarshalTypeCreateDbHomeWithDbSystemIdFromBackupDetails + }{ + "DB_BACKUP", + (MarshalTypeCreateDbHomeWithDbSystemIdFromBackupDetails)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association.go b/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association.go index adcf7aba1..d572feb42 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,225 +9,203 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DataGuardAssociation The properties that define a Data Guard association. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an - // administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). - // For information about endpoints and signing API requests, see - // [About the API]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see - // [SDKS and Other Tools]({{DOC_SERVER_URL}}/Content/API/Concepts/sdks.htm). +// DataGuardAssociation The properties that define a Data Guard association. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an +// administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// For information about endpoints and signing API requests, see +// About the API (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see +// SDKS and Other Tools (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/sdks.htm). type DataGuardAssociation struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the reporting database. - DatabaseId *string `mandatory:"true" json:"databaseId"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the Data Guard association. - Id *string `mandatory:"true" json:"id"` - - // The current state of the Data Guard association. - LifecycleState DataGuardAssociationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the DB System containing the associated - // peer database. - PeerDbSystemId *string `mandatory:"true" json:"peerDbSystemId"` - - // The role of the peer database in this Data Guard association. - PeerRole DataGuardAssociationPeerRoleEnum `mandatory:"true" json:"peerRole"` - - // The protection mode of this Data Guard association. For more information, see - // [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) - // in the Oracle Data Guard documentation. - ProtectionMode DataGuardAssociationProtectionModeEnum `mandatory:"true" json:"protectionMode"` - - // The role of the reporting database in this Data Guard association. - Role DataGuardAssociationRoleEnum `mandatory:"true" json:"role"` - - // The lag time between updates to the primary database and application of the redo data on the standby database, - // as computed by the reporting database. - // Example: `9 seconds` - ApplyLag *string `mandatory:"false" json:"applyLag"` - - // The rate at which redo logs are synced between the associated databases. - // Example: `180 Mb per second` - ApplyRate *string `mandatory:"false" json:"applyRate"` - - // Additional information about the current lifecycleState, if available. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the peer database's Data Guard association. - PeerDataGuardAssociationId *string `mandatory:"false" json:"peerDataGuardAssociationId"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the associated peer database. - PeerDatabaseId *string `mandatory:"false" json:"peerDatabaseId"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database. - PeerDbHomeId *string `mandatory:"false" json:"peerDbHomeId"` - - // The date and time the Data Guard Association was created. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The redo transport type used by this Data Guard association. For more information, see - // [Redo Transport Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) - // in the Oracle Data Guard documentation. - TransportType DataGuardAssociationTransportTypeEnum `mandatory:"false" json:"transportType,omitempty"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the reporting database. + DatabaseId *string `mandatory:"true" json:"databaseId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Data Guard association. + Id *string `mandatory:"true" json:"id"` + + // The current state of the Data Guard association. + LifecycleState DataGuardAssociationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System containing the associated + // peer database. + PeerDbSystemId *string `mandatory:"true" json:"peerDbSystemId"` + + // The role of the peer database in this Data Guard association. + PeerRole DataGuardAssociationPeerRoleEnum `mandatory:"true" json:"peerRole"` + + // The protection mode of this Data Guard association. For more information, see + // Oracle Data Guard Protection Modes (http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) + // in the Oracle Data Guard documentation. + ProtectionMode DataGuardAssociationProtectionModeEnum `mandatory:"true" json:"protectionMode"` + + // The role of the reporting database in this Data Guard association. + Role DataGuardAssociationRoleEnum `mandatory:"true" json:"role"` + + // The lag time between updates to the primary database and application of the redo data on the standby database, + // as computed by the reporting database. + // Example: `9 seconds` + ApplyLag *string `mandatory:"false" json:"applyLag"` + + // The rate at which redo logs are synced between the associated databases. + // Example: `180 Mb per second` + ApplyRate *string `mandatory:"false" json:"applyRate"` + + // Additional information about the current lifecycleState, if available. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the peer database's Data Guard association. + PeerDataGuardAssociationId *string `mandatory:"false" json:"peerDataGuardAssociationId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the associated peer database. + PeerDatabaseId *string `mandatory:"false" json:"peerDatabaseId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database. + PeerDbHomeId *string `mandatory:"false" json:"peerDbHomeId"` + + // The date and time the Data Guard Association was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The redo transport type used by this Data Guard association. For more information, see + // Redo Transport Services (http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) + // in the Oracle Data Guard documentation. + TransportType DataGuardAssociationTransportTypeEnum `mandatory:"false" json:"transportType,omitempty"` } func (m DataGuardAssociation) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DataGuardAssociationLifecycleStateEnum Enum with underlying type: string type DataGuardAssociationLifecycleStateEnum string // Set of constants representing the allowable values for DataGuardAssociationLifecycleState const ( - DataGuardAssociationLifecycleStateProvisioning DataGuardAssociationLifecycleStateEnum = "PROVISIONING" - DataGuardAssociationLifecycleStateAvailable DataGuardAssociationLifecycleStateEnum = "AVAILABLE" - DataGuardAssociationLifecycleStateUpdating DataGuardAssociationLifecycleStateEnum = "UPDATING" - DataGuardAssociationLifecycleStateTerminating DataGuardAssociationLifecycleStateEnum = "TERMINATING" - DataGuardAssociationLifecycleStateTerminated DataGuardAssociationLifecycleStateEnum = "TERMINATED" - DataGuardAssociationLifecycleStateFailed DataGuardAssociationLifecycleStateEnum = "FAILED" - DataGuardAssociationLifecycleStateUnknown DataGuardAssociationLifecycleStateEnum = "UNKNOWN" + DataGuardAssociationLifecycleStateProvisioning DataGuardAssociationLifecycleStateEnum = "PROVISIONING" + DataGuardAssociationLifecycleStateAvailable DataGuardAssociationLifecycleStateEnum = "AVAILABLE" + DataGuardAssociationLifecycleStateUpdating DataGuardAssociationLifecycleStateEnum = "UPDATING" + DataGuardAssociationLifecycleStateTerminating DataGuardAssociationLifecycleStateEnum = "TERMINATING" + DataGuardAssociationLifecycleStateTerminated DataGuardAssociationLifecycleStateEnum = "TERMINATED" + DataGuardAssociationLifecycleStateFailed DataGuardAssociationLifecycleStateEnum = "FAILED" ) -var mappingDataGuardAssociationLifecycleState = map[string]DataGuardAssociationLifecycleStateEnum { - "PROVISIONING": DataGuardAssociationLifecycleStateProvisioning, - "AVAILABLE": DataGuardAssociationLifecycleStateAvailable, - "UPDATING": DataGuardAssociationLifecycleStateUpdating, - "TERMINATING": DataGuardAssociationLifecycleStateTerminating, - "TERMINATED": DataGuardAssociationLifecycleStateTerminated, - "FAILED": DataGuardAssociationLifecycleStateFailed, - "UNKNOWN": DataGuardAssociationLifecycleStateUnknown, +var mappingDataGuardAssociationLifecycleState = map[string]DataGuardAssociationLifecycleStateEnum{ + "PROVISIONING": DataGuardAssociationLifecycleStateProvisioning, + "AVAILABLE": DataGuardAssociationLifecycleStateAvailable, + "UPDATING": DataGuardAssociationLifecycleStateUpdating, + "TERMINATING": DataGuardAssociationLifecycleStateTerminating, + "TERMINATED": DataGuardAssociationLifecycleStateTerminated, + "FAILED": DataGuardAssociationLifecycleStateFailed, } // GetDataGuardAssociationLifecycleStateEnumValues Enumerates the set of values for DataGuardAssociationLifecycleState func GetDataGuardAssociationLifecycleStateEnumValues() []DataGuardAssociationLifecycleStateEnum { - values := make([]DataGuardAssociationLifecycleStateEnum, 0) - for _, v := range mappingDataGuardAssociationLifecycleState { - if v != DataGuardAssociationLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DataGuardAssociationLifecycleStateEnum, 0) + for _, v := range mappingDataGuardAssociationLifecycleState { + values = append(values, v) + } + return values } + // DataGuardAssociationPeerRoleEnum Enum with underlying type: string type DataGuardAssociationPeerRoleEnum string // Set of constants representing the allowable values for DataGuardAssociationPeerRole const ( - DataGuardAssociationPeerRolePrimary DataGuardAssociationPeerRoleEnum = "PRIMARY" - DataGuardAssociationPeerRoleStandby DataGuardAssociationPeerRoleEnum = "STANDBY" - DataGuardAssociationPeerRoleDisabledStandby DataGuardAssociationPeerRoleEnum = "DISABLED_STANDBY" - DataGuardAssociationPeerRoleUnknown DataGuardAssociationPeerRoleEnum = "UNKNOWN" + DataGuardAssociationPeerRolePrimary DataGuardAssociationPeerRoleEnum = "PRIMARY" + DataGuardAssociationPeerRoleStandby DataGuardAssociationPeerRoleEnum = "STANDBY" + DataGuardAssociationPeerRoleDisabledStandby DataGuardAssociationPeerRoleEnum = "DISABLED_STANDBY" ) -var mappingDataGuardAssociationPeerRole = map[string]DataGuardAssociationPeerRoleEnum { - "PRIMARY": DataGuardAssociationPeerRolePrimary, - "STANDBY": DataGuardAssociationPeerRoleStandby, - "DISABLED_STANDBY": DataGuardAssociationPeerRoleDisabledStandby, - "UNKNOWN": DataGuardAssociationPeerRoleUnknown, +var mappingDataGuardAssociationPeerRole = map[string]DataGuardAssociationPeerRoleEnum{ + "PRIMARY": DataGuardAssociationPeerRolePrimary, + "STANDBY": DataGuardAssociationPeerRoleStandby, + "DISABLED_STANDBY": DataGuardAssociationPeerRoleDisabledStandby, } // GetDataGuardAssociationPeerRoleEnumValues Enumerates the set of values for DataGuardAssociationPeerRole func GetDataGuardAssociationPeerRoleEnumValues() []DataGuardAssociationPeerRoleEnum { - values := make([]DataGuardAssociationPeerRoleEnum, 0) - for _, v := range mappingDataGuardAssociationPeerRole { - if v != DataGuardAssociationPeerRoleUnknown { - values = append(values, v) - } - } - return values + values := make([]DataGuardAssociationPeerRoleEnum, 0) + for _, v := range mappingDataGuardAssociationPeerRole { + values = append(values, v) + } + return values } + // DataGuardAssociationProtectionModeEnum Enum with underlying type: string type DataGuardAssociationProtectionModeEnum string // Set of constants representing the allowable values for DataGuardAssociationProtectionMode const ( - DataGuardAssociationProtectionModeAvailability DataGuardAssociationProtectionModeEnum = "MAXIMUM_AVAILABILITY" - DataGuardAssociationProtectionModePerformance DataGuardAssociationProtectionModeEnum = "MAXIMUM_PERFORMANCE" - DataGuardAssociationProtectionModeProtection DataGuardAssociationProtectionModeEnum = "MAXIMUM_PROTECTION" - DataGuardAssociationProtectionModeUnknown DataGuardAssociationProtectionModeEnum = "UNKNOWN" + DataGuardAssociationProtectionModeAvailability DataGuardAssociationProtectionModeEnum = "MAXIMUM_AVAILABILITY" + DataGuardAssociationProtectionModePerformance DataGuardAssociationProtectionModeEnum = "MAXIMUM_PERFORMANCE" + DataGuardAssociationProtectionModeProtection DataGuardAssociationProtectionModeEnum = "MAXIMUM_PROTECTION" ) -var mappingDataGuardAssociationProtectionMode = map[string]DataGuardAssociationProtectionModeEnum { - "MAXIMUM_AVAILABILITY": DataGuardAssociationProtectionModeAvailability, - "MAXIMUM_PERFORMANCE": DataGuardAssociationProtectionModePerformance, - "MAXIMUM_PROTECTION": DataGuardAssociationProtectionModeProtection, - "UNKNOWN": DataGuardAssociationProtectionModeUnknown, +var mappingDataGuardAssociationProtectionMode = map[string]DataGuardAssociationProtectionModeEnum{ + "MAXIMUM_AVAILABILITY": DataGuardAssociationProtectionModeAvailability, + "MAXIMUM_PERFORMANCE": DataGuardAssociationProtectionModePerformance, + "MAXIMUM_PROTECTION": DataGuardAssociationProtectionModeProtection, } // GetDataGuardAssociationProtectionModeEnumValues Enumerates the set of values for DataGuardAssociationProtectionMode func GetDataGuardAssociationProtectionModeEnumValues() []DataGuardAssociationProtectionModeEnum { - values := make([]DataGuardAssociationProtectionModeEnum, 0) - for _, v := range mappingDataGuardAssociationProtectionMode { - if v != DataGuardAssociationProtectionModeUnknown { - values = append(values, v) - } - } - return values + values := make([]DataGuardAssociationProtectionModeEnum, 0) + for _, v := range mappingDataGuardAssociationProtectionMode { + values = append(values, v) + } + return values } + // DataGuardAssociationRoleEnum Enum with underlying type: string type DataGuardAssociationRoleEnum string // Set of constants representing the allowable values for DataGuardAssociationRole const ( - DataGuardAssociationRolePrimary DataGuardAssociationRoleEnum = "PRIMARY" - DataGuardAssociationRoleStandby DataGuardAssociationRoleEnum = "STANDBY" - DataGuardAssociationRoleDisabledStandby DataGuardAssociationRoleEnum = "DISABLED_STANDBY" - DataGuardAssociationRoleUnknown DataGuardAssociationRoleEnum = "UNKNOWN" + DataGuardAssociationRolePrimary DataGuardAssociationRoleEnum = "PRIMARY" + DataGuardAssociationRoleStandby DataGuardAssociationRoleEnum = "STANDBY" + DataGuardAssociationRoleDisabledStandby DataGuardAssociationRoleEnum = "DISABLED_STANDBY" ) -var mappingDataGuardAssociationRole = map[string]DataGuardAssociationRoleEnum { - "PRIMARY": DataGuardAssociationRolePrimary, - "STANDBY": DataGuardAssociationRoleStandby, - "DISABLED_STANDBY": DataGuardAssociationRoleDisabledStandby, - "UNKNOWN": DataGuardAssociationRoleUnknown, +var mappingDataGuardAssociationRole = map[string]DataGuardAssociationRoleEnum{ + "PRIMARY": DataGuardAssociationRolePrimary, + "STANDBY": DataGuardAssociationRoleStandby, + "DISABLED_STANDBY": DataGuardAssociationRoleDisabledStandby, } // GetDataGuardAssociationRoleEnumValues Enumerates the set of values for DataGuardAssociationRole func GetDataGuardAssociationRoleEnumValues() []DataGuardAssociationRoleEnum { - values := make([]DataGuardAssociationRoleEnum, 0) - for _, v := range mappingDataGuardAssociationRole { - if v != DataGuardAssociationRoleUnknown { - values = append(values, v) - } - } - return values + values := make([]DataGuardAssociationRoleEnum, 0) + for _, v := range mappingDataGuardAssociationRole { + values = append(values, v) + } + return values } + // DataGuardAssociationTransportTypeEnum Enum with underlying type: string type DataGuardAssociationTransportTypeEnum string // Set of constants representing the allowable values for DataGuardAssociationTransportType const ( - DataGuardAssociationTransportTypeSync DataGuardAssociationTransportTypeEnum = "SYNC" - DataGuardAssociationTransportTypeAsync DataGuardAssociationTransportTypeEnum = "ASYNC" - DataGuardAssociationTransportTypeFastsync DataGuardAssociationTransportTypeEnum = "FASTSYNC" - DataGuardAssociationTransportTypeUnknown DataGuardAssociationTransportTypeEnum = "UNKNOWN" + DataGuardAssociationTransportTypeSync DataGuardAssociationTransportTypeEnum = "SYNC" + DataGuardAssociationTransportTypeAsync DataGuardAssociationTransportTypeEnum = "ASYNC" + DataGuardAssociationTransportTypeFastsync DataGuardAssociationTransportTypeEnum = "FASTSYNC" ) -var mappingDataGuardAssociationTransportType = map[string]DataGuardAssociationTransportTypeEnum { - "SYNC": DataGuardAssociationTransportTypeSync, - "ASYNC": DataGuardAssociationTransportTypeAsync, - "FASTSYNC": DataGuardAssociationTransportTypeFastsync, - "UNKNOWN": DataGuardAssociationTransportTypeUnknown, +var mappingDataGuardAssociationTransportType = map[string]DataGuardAssociationTransportTypeEnum{ + "SYNC": DataGuardAssociationTransportTypeSync, + "ASYNC": DataGuardAssociationTransportTypeAsync, + "FASTSYNC": DataGuardAssociationTransportTypeFastsync, } // GetDataGuardAssociationTransportTypeEnumValues Enumerates the set of values for DataGuardAssociationTransportType func GetDataGuardAssociationTransportTypeEnumValues() []DataGuardAssociationTransportTypeEnum { - values := make([]DataGuardAssociationTransportTypeEnum, 0) - for _, v := range mappingDataGuardAssociationTransportType { - if v != DataGuardAssociationTransportTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]DataGuardAssociationTransportTypeEnum, 0) + for _, v := range mappingDataGuardAssociationTransportType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association_summary.go index e17c3bebc..ebfc69c62 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,225 +9,203 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DataGuardAssociationSummary The properties that define a Data Guard association. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an - // administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). - // For information about endpoints and signing API requests, see - // [About the API]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see - // [SDKS and Other Tools]({{DOC_SERVER_URL}}/Content/API/Concepts/sdks.htm). +// DataGuardAssociationSummary The properties that define a Data Guard association. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an +// administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// For information about endpoints and signing API requests, see +// About the API (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see +// SDKS and Other Tools (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/sdks.htm). type DataGuardAssociationSummary struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the reporting database. - DatabaseId *string `mandatory:"true" json:"databaseId"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the Data Guard association. - Id *string `mandatory:"true" json:"id"` - - // The current state of the Data Guard association. - LifecycleState DataGuardAssociationSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the DB System containing the associated - // peer database. - PeerDbSystemId *string `mandatory:"true" json:"peerDbSystemId"` - - // The role of the peer database in this Data Guard association. - PeerRole DataGuardAssociationSummaryPeerRoleEnum `mandatory:"true" json:"peerRole"` - - // The protection mode of this Data Guard association. For more information, see - // [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) - // in the Oracle Data Guard documentation. - ProtectionMode DataGuardAssociationSummaryProtectionModeEnum `mandatory:"true" json:"protectionMode"` - - // The role of the reporting database in this Data Guard association. - Role DataGuardAssociationSummaryRoleEnum `mandatory:"true" json:"role"` - - // The lag time between updates to the primary database and application of the redo data on the standby database, - // as computed by the reporting database. - // Example: `9 seconds` - ApplyLag *string `mandatory:"false" json:"applyLag"` - - // The rate at which redo logs are synced between the associated databases. - // Example: `180 Mb per second` - ApplyRate *string `mandatory:"false" json:"applyRate"` - - // Additional information about the current lifecycleState, if available. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the peer database's Data Guard association. - PeerDataGuardAssociationId *string `mandatory:"false" json:"peerDataGuardAssociationId"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the associated peer database. - PeerDatabaseId *string `mandatory:"false" json:"peerDatabaseId"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database. - PeerDbHomeId *string `mandatory:"false" json:"peerDbHomeId"` - - // The date and time the Data Guard Association was created. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The redo transport type used by this Data Guard association. For more information, see - // [Redo Transport Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) - // in the Oracle Data Guard documentation. - TransportType DataGuardAssociationSummaryTransportTypeEnum `mandatory:"false" json:"transportType,omitempty"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the reporting database. + DatabaseId *string `mandatory:"true" json:"databaseId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Data Guard association. + Id *string `mandatory:"true" json:"id"` + + // The current state of the Data Guard association. + LifecycleState DataGuardAssociationSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System containing the associated + // peer database. + PeerDbSystemId *string `mandatory:"true" json:"peerDbSystemId"` + + // The role of the peer database in this Data Guard association. + PeerRole DataGuardAssociationSummaryPeerRoleEnum `mandatory:"true" json:"peerRole"` + + // The protection mode of this Data Guard association. For more information, see + // Oracle Data Guard Protection Modes (http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) + // in the Oracle Data Guard documentation. + ProtectionMode DataGuardAssociationSummaryProtectionModeEnum `mandatory:"true" json:"protectionMode"` + + // The role of the reporting database in this Data Guard association. + Role DataGuardAssociationSummaryRoleEnum `mandatory:"true" json:"role"` + + // The lag time between updates to the primary database and application of the redo data on the standby database, + // as computed by the reporting database. + // Example: `9 seconds` + ApplyLag *string `mandatory:"false" json:"applyLag"` + + // The rate at which redo logs are synced between the associated databases. + // Example: `180 Mb per second` + ApplyRate *string `mandatory:"false" json:"applyRate"` + + // Additional information about the current lifecycleState, if available. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the peer database's Data Guard association. + PeerDataGuardAssociationId *string `mandatory:"false" json:"peerDataGuardAssociationId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the associated peer database. + PeerDatabaseId *string `mandatory:"false" json:"peerDatabaseId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database. + PeerDbHomeId *string `mandatory:"false" json:"peerDbHomeId"` + + // The date and time the Data Guard Association was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The redo transport type used by this Data Guard association. For more information, see + // Redo Transport Services (http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) + // in the Oracle Data Guard documentation. + TransportType DataGuardAssociationSummaryTransportTypeEnum `mandatory:"false" json:"transportType,omitempty"` } func (m DataGuardAssociationSummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DataGuardAssociationSummaryLifecycleStateEnum Enum with underlying type: string type DataGuardAssociationSummaryLifecycleStateEnum string // Set of constants representing the allowable values for DataGuardAssociationSummaryLifecycleState const ( - DataGuardAssociationSummaryLifecycleStateProvisioning DataGuardAssociationSummaryLifecycleStateEnum = "PROVISIONING" - DataGuardAssociationSummaryLifecycleStateAvailable DataGuardAssociationSummaryLifecycleStateEnum = "AVAILABLE" - DataGuardAssociationSummaryLifecycleStateUpdating DataGuardAssociationSummaryLifecycleStateEnum = "UPDATING" - DataGuardAssociationSummaryLifecycleStateTerminating DataGuardAssociationSummaryLifecycleStateEnum = "TERMINATING" - DataGuardAssociationSummaryLifecycleStateTerminated DataGuardAssociationSummaryLifecycleStateEnum = "TERMINATED" - DataGuardAssociationSummaryLifecycleStateFailed DataGuardAssociationSummaryLifecycleStateEnum = "FAILED" - DataGuardAssociationSummaryLifecycleStateUnknown DataGuardAssociationSummaryLifecycleStateEnum = "UNKNOWN" + DataGuardAssociationSummaryLifecycleStateProvisioning DataGuardAssociationSummaryLifecycleStateEnum = "PROVISIONING" + DataGuardAssociationSummaryLifecycleStateAvailable DataGuardAssociationSummaryLifecycleStateEnum = "AVAILABLE" + DataGuardAssociationSummaryLifecycleStateUpdating DataGuardAssociationSummaryLifecycleStateEnum = "UPDATING" + DataGuardAssociationSummaryLifecycleStateTerminating DataGuardAssociationSummaryLifecycleStateEnum = "TERMINATING" + DataGuardAssociationSummaryLifecycleStateTerminated DataGuardAssociationSummaryLifecycleStateEnum = "TERMINATED" + DataGuardAssociationSummaryLifecycleStateFailed DataGuardAssociationSummaryLifecycleStateEnum = "FAILED" ) -var mappingDataGuardAssociationSummaryLifecycleState = map[string]DataGuardAssociationSummaryLifecycleStateEnum { - "PROVISIONING": DataGuardAssociationSummaryLifecycleStateProvisioning, - "AVAILABLE": DataGuardAssociationSummaryLifecycleStateAvailable, - "UPDATING": DataGuardAssociationSummaryLifecycleStateUpdating, - "TERMINATING": DataGuardAssociationSummaryLifecycleStateTerminating, - "TERMINATED": DataGuardAssociationSummaryLifecycleStateTerminated, - "FAILED": DataGuardAssociationSummaryLifecycleStateFailed, - "UNKNOWN": DataGuardAssociationSummaryLifecycleStateUnknown, +var mappingDataGuardAssociationSummaryLifecycleState = map[string]DataGuardAssociationSummaryLifecycleStateEnum{ + "PROVISIONING": DataGuardAssociationSummaryLifecycleStateProvisioning, + "AVAILABLE": DataGuardAssociationSummaryLifecycleStateAvailable, + "UPDATING": DataGuardAssociationSummaryLifecycleStateUpdating, + "TERMINATING": DataGuardAssociationSummaryLifecycleStateTerminating, + "TERMINATED": DataGuardAssociationSummaryLifecycleStateTerminated, + "FAILED": DataGuardAssociationSummaryLifecycleStateFailed, } // GetDataGuardAssociationSummaryLifecycleStateEnumValues Enumerates the set of values for DataGuardAssociationSummaryLifecycleState func GetDataGuardAssociationSummaryLifecycleStateEnumValues() []DataGuardAssociationSummaryLifecycleStateEnum { - values := make([]DataGuardAssociationSummaryLifecycleStateEnum, 0) - for _, v := range mappingDataGuardAssociationSummaryLifecycleState { - if v != DataGuardAssociationSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DataGuardAssociationSummaryLifecycleStateEnum, 0) + for _, v := range mappingDataGuardAssociationSummaryLifecycleState { + values = append(values, v) + } + return values } + // DataGuardAssociationSummaryPeerRoleEnum Enum with underlying type: string type DataGuardAssociationSummaryPeerRoleEnum string // Set of constants representing the allowable values for DataGuardAssociationSummaryPeerRole const ( - DataGuardAssociationSummaryPeerRolePrimary DataGuardAssociationSummaryPeerRoleEnum = "PRIMARY" - DataGuardAssociationSummaryPeerRoleStandby DataGuardAssociationSummaryPeerRoleEnum = "STANDBY" - DataGuardAssociationSummaryPeerRoleDisabledStandby DataGuardAssociationSummaryPeerRoleEnum = "DISABLED_STANDBY" - DataGuardAssociationSummaryPeerRoleUnknown DataGuardAssociationSummaryPeerRoleEnum = "UNKNOWN" + DataGuardAssociationSummaryPeerRolePrimary DataGuardAssociationSummaryPeerRoleEnum = "PRIMARY" + DataGuardAssociationSummaryPeerRoleStandby DataGuardAssociationSummaryPeerRoleEnum = "STANDBY" + DataGuardAssociationSummaryPeerRoleDisabledStandby DataGuardAssociationSummaryPeerRoleEnum = "DISABLED_STANDBY" ) -var mappingDataGuardAssociationSummaryPeerRole = map[string]DataGuardAssociationSummaryPeerRoleEnum { - "PRIMARY": DataGuardAssociationSummaryPeerRolePrimary, - "STANDBY": DataGuardAssociationSummaryPeerRoleStandby, - "DISABLED_STANDBY": DataGuardAssociationSummaryPeerRoleDisabledStandby, - "UNKNOWN": DataGuardAssociationSummaryPeerRoleUnknown, +var mappingDataGuardAssociationSummaryPeerRole = map[string]DataGuardAssociationSummaryPeerRoleEnum{ + "PRIMARY": DataGuardAssociationSummaryPeerRolePrimary, + "STANDBY": DataGuardAssociationSummaryPeerRoleStandby, + "DISABLED_STANDBY": DataGuardAssociationSummaryPeerRoleDisabledStandby, } // GetDataGuardAssociationSummaryPeerRoleEnumValues Enumerates the set of values for DataGuardAssociationSummaryPeerRole func GetDataGuardAssociationSummaryPeerRoleEnumValues() []DataGuardAssociationSummaryPeerRoleEnum { - values := make([]DataGuardAssociationSummaryPeerRoleEnum, 0) - for _, v := range mappingDataGuardAssociationSummaryPeerRole { - if v != DataGuardAssociationSummaryPeerRoleUnknown { - values = append(values, v) - } - } - return values + values := make([]DataGuardAssociationSummaryPeerRoleEnum, 0) + for _, v := range mappingDataGuardAssociationSummaryPeerRole { + values = append(values, v) + } + return values } + // DataGuardAssociationSummaryProtectionModeEnum Enum with underlying type: string type DataGuardAssociationSummaryProtectionModeEnum string // Set of constants representing the allowable values for DataGuardAssociationSummaryProtectionMode const ( - DataGuardAssociationSummaryProtectionModeAvailability DataGuardAssociationSummaryProtectionModeEnum = "MAXIMUM_AVAILABILITY" - DataGuardAssociationSummaryProtectionModePerformance DataGuardAssociationSummaryProtectionModeEnum = "MAXIMUM_PERFORMANCE" - DataGuardAssociationSummaryProtectionModeProtection DataGuardAssociationSummaryProtectionModeEnum = "MAXIMUM_PROTECTION" - DataGuardAssociationSummaryProtectionModeUnknown DataGuardAssociationSummaryProtectionModeEnum = "UNKNOWN" + DataGuardAssociationSummaryProtectionModeAvailability DataGuardAssociationSummaryProtectionModeEnum = "MAXIMUM_AVAILABILITY" + DataGuardAssociationSummaryProtectionModePerformance DataGuardAssociationSummaryProtectionModeEnum = "MAXIMUM_PERFORMANCE" + DataGuardAssociationSummaryProtectionModeProtection DataGuardAssociationSummaryProtectionModeEnum = "MAXIMUM_PROTECTION" ) -var mappingDataGuardAssociationSummaryProtectionMode = map[string]DataGuardAssociationSummaryProtectionModeEnum { - "MAXIMUM_AVAILABILITY": DataGuardAssociationSummaryProtectionModeAvailability, - "MAXIMUM_PERFORMANCE": DataGuardAssociationSummaryProtectionModePerformance, - "MAXIMUM_PROTECTION": DataGuardAssociationSummaryProtectionModeProtection, - "UNKNOWN": DataGuardAssociationSummaryProtectionModeUnknown, +var mappingDataGuardAssociationSummaryProtectionMode = map[string]DataGuardAssociationSummaryProtectionModeEnum{ + "MAXIMUM_AVAILABILITY": DataGuardAssociationSummaryProtectionModeAvailability, + "MAXIMUM_PERFORMANCE": DataGuardAssociationSummaryProtectionModePerformance, + "MAXIMUM_PROTECTION": DataGuardAssociationSummaryProtectionModeProtection, } // GetDataGuardAssociationSummaryProtectionModeEnumValues Enumerates the set of values for DataGuardAssociationSummaryProtectionMode func GetDataGuardAssociationSummaryProtectionModeEnumValues() []DataGuardAssociationSummaryProtectionModeEnum { - values := make([]DataGuardAssociationSummaryProtectionModeEnum, 0) - for _, v := range mappingDataGuardAssociationSummaryProtectionMode { - if v != DataGuardAssociationSummaryProtectionModeUnknown { - values = append(values, v) - } - } - return values + values := make([]DataGuardAssociationSummaryProtectionModeEnum, 0) + for _, v := range mappingDataGuardAssociationSummaryProtectionMode { + values = append(values, v) + } + return values } + // DataGuardAssociationSummaryRoleEnum Enum with underlying type: string type DataGuardAssociationSummaryRoleEnum string // Set of constants representing the allowable values for DataGuardAssociationSummaryRole const ( - DataGuardAssociationSummaryRolePrimary DataGuardAssociationSummaryRoleEnum = "PRIMARY" - DataGuardAssociationSummaryRoleStandby DataGuardAssociationSummaryRoleEnum = "STANDBY" - DataGuardAssociationSummaryRoleDisabledStandby DataGuardAssociationSummaryRoleEnum = "DISABLED_STANDBY" - DataGuardAssociationSummaryRoleUnknown DataGuardAssociationSummaryRoleEnum = "UNKNOWN" + DataGuardAssociationSummaryRolePrimary DataGuardAssociationSummaryRoleEnum = "PRIMARY" + DataGuardAssociationSummaryRoleStandby DataGuardAssociationSummaryRoleEnum = "STANDBY" + DataGuardAssociationSummaryRoleDisabledStandby DataGuardAssociationSummaryRoleEnum = "DISABLED_STANDBY" ) -var mappingDataGuardAssociationSummaryRole = map[string]DataGuardAssociationSummaryRoleEnum { - "PRIMARY": DataGuardAssociationSummaryRolePrimary, - "STANDBY": DataGuardAssociationSummaryRoleStandby, - "DISABLED_STANDBY": DataGuardAssociationSummaryRoleDisabledStandby, - "UNKNOWN": DataGuardAssociationSummaryRoleUnknown, +var mappingDataGuardAssociationSummaryRole = map[string]DataGuardAssociationSummaryRoleEnum{ + "PRIMARY": DataGuardAssociationSummaryRolePrimary, + "STANDBY": DataGuardAssociationSummaryRoleStandby, + "DISABLED_STANDBY": DataGuardAssociationSummaryRoleDisabledStandby, } // GetDataGuardAssociationSummaryRoleEnumValues Enumerates the set of values for DataGuardAssociationSummaryRole func GetDataGuardAssociationSummaryRoleEnumValues() []DataGuardAssociationSummaryRoleEnum { - values := make([]DataGuardAssociationSummaryRoleEnum, 0) - for _, v := range mappingDataGuardAssociationSummaryRole { - if v != DataGuardAssociationSummaryRoleUnknown { - values = append(values, v) - } - } - return values + values := make([]DataGuardAssociationSummaryRoleEnum, 0) + for _, v := range mappingDataGuardAssociationSummaryRole { + values = append(values, v) + } + return values } + // DataGuardAssociationSummaryTransportTypeEnum Enum with underlying type: string type DataGuardAssociationSummaryTransportTypeEnum string // Set of constants representing the allowable values for DataGuardAssociationSummaryTransportType const ( - DataGuardAssociationSummaryTransportTypeSync DataGuardAssociationSummaryTransportTypeEnum = "SYNC" - DataGuardAssociationSummaryTransportTypeAsync DataGuardAssociationSummaryTransportTypeEnum = "ASYNC" - DataGuardAssociationSummaryTransportTypeFastsync DataGuardAssociationSummaryTransportTypeEnum = "FASTSYNC" - DataGuardAssociationSummaryTransportTypeUnknown DataGuardAssociationSummaryTransportTypeEnum = "UNKNOWN" + DataGuardAssociationSummaryTransportTypeSync DataGuardAssociationSummaryTransportTypeEnum = "SYNC" + DataGuardAssociationSummaryTransportTypeAsync DataGuardAssociationSummaryTransportTypeEnum = "ASYNC" + DataGuardAssociationSummaryTransportTypeFastsync DataGuardAssociationSummaryTransportTypeEnum = "FASTSYNC" ) -var mappingDataGuardAssociationSummaryTransportType = map[string]DataGuardAssociationSummaryTransportTypeEnum { - "SYNC": DataGuardAssociationSummaryTransportTypeSync, - "ASYNC": DataGuardAssociationSummaryTransportTypeAsync, - "FASTSYNC": DataGuardAssociationSummaryTransportTypeFastsync, - "UNKNOWN": DataGuardAssociationSummaryTransportTypeUnknown, +var mappingDataGuardAssociationSummaryTransportType = map[string]DataGuardAssociationSummaryTransportTypeEnum{ + "SYNC": DataGuardAssociationSummaryTransportTypeSync, + "ASYNC": DataGuardAssociationSummaryTransportTypeAsync, + "FASTSYNC": DataGuardAssociationSummaryTransportTypeFastsync, } // GetDataGuardAssociationSummaryTransportTypeEnumValues Enumerates the set of values for DataGuardAssociationSummaryTransportType func GetDataGuardAssociationSummaryTransportTypeEnumValues() []DataGuardAssociationSummaryTransportTypeEnum { - values := make([]DataGuardAssociationSummaryTransportTypeEnum, 0) - for _, v := range mappingDataGuardAssociationSummaryTransportType { - if v != DataGuardAssociationSummaryTransportTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]DataGuardAssociationSummaryTransportTypeEnum, 0) + for _, v := range mappingDataGuardAssociationSummaryTransportType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/database.go b/vendor/github.com/oracle/oci-go-sdk/database/database.go index 4ef795617..be33ef1a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/database.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/database.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,97 +9,87 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Database An Oracle database on a DB System. For more information, see [Managing Oracle Databases]({{DOC_SERVER_URL}}/Content/Database/Concepts/overview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Database An Oracle database on a DB System. For more information, see Managing Oracle Databases (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Database struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The database name. - DbName *string `mandatory:"true" json:"dbName"` - - // A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed. - DbUniqueName *string `mandatory:"true" json:"dbUniqueName"` - - // The OCID of the database. - Id *string `mandatory:"true" json:"id"` - - // The current state of the database. - LifecycleState DatabaseLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The character set for the database. - CharacterSet *string `mandatory:"false" json:"characterSet"` - - DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` - - // The OCID of the database home. - DbHomeId *string `mandatory:"false" json:"dbHomeId"` - - // Database workload type. - DbWorkload *string `mandatory:"false" json:"dbWorkload"` - - // Additional information about the current lifecycleState. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The national character set for the database. - NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` - - // Pluggable database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. - PdbName *string `mandatory:"false" json:"pdbName"` - - // The date and time the database was created. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The database name. + DbName *string `mandatory:"true" json:"dbName"` + + // A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed. + DbUniqueName *string `mandatory:"true" json:"dbUniqueName"` + + // The OCID of the database. + Id *string `mandatory:"true" json:"id"` + + // The current state of the database. + LifecycleState DatabaseLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The character set for the database. + CharacterSet *string `mandatory:"false" json:"characterSet"` + + DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` + + // The OCID of the database home. + DbHomeId *string `mandatory:"false" json:"dbHomeId"` + + // Database workload type. + DbWorkload *string `mandatory:"false" json:"dbWorkload"` + + // Additional information about the current lifecycleState. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The national character set for the database. + NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` + + // Pluggable database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. + PdbName *string `mandatory:"false" json:"pdbName"` + + // The date and time the database was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m Database) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DatabaseLifecycleStateEnum Enum with underlying type: string type DatabaseLifecycleStateEnum string // Set of constants representing the allowable values for DatabaseLifecycleState const ( - DatabaseLifecycleStateProvisioning DatabaseLifecycleStateEnum = "PROVISIONING" - DatabaseLifecycleStateAvailable DatabaseLifecycleStateEnum = "AVAILABLE" - DatabaseLifecycleStateUpdating DatabaseLifecycleStateEnum = "UPDATING" - DatabaseLifecycleStateBackupInProgress DatabaseLifecycleStateEnum = "BACKUP_IN_PROGRESS" - DatabaseLifecycleStateTerminating DatabaseLifecycleStateEnum = "TERMINATING" - DatabaseLifecycleStateTerminated DatabaseLifecycleStateEnum = "TERMINATED" - DatabaseLifecycleStateRestoreFailed DatabaseLifecycleStateEnum = "RESTORE_FAILED" - DatabaseLifecycleStateFailed DatabaseLifecycleStateEnum = "FAILED" - DatabaseLifecycleStateUnknown DatabaseLifecycleStateEnum = "UNKNOWN" + DatabaseLifecycleStateProvisioning DatabaseLifecycleStateEnum = "PROVISIONING" + DatabaseLifecycleStateAvailable DatabaseLifecycleStateEnum = "AVAILABLE" + DatabaseLifecycleStateUpdating DatabaseLifecycleStateEnum = "UPDATING" + DatabaseLifecycleStateBackupInProgress DatabaseLifecycleStateEnum = "BACKUP_IN_PROGRESS" + DatabaseLifecycleStateTerminating DatabaseLifecycleStateEnum = "TERMINATING" + DatabaseLifecycleStateTerminated DatabaseLifecycleStateEnum = "TERMINATED" + DatabaseLifecycleStateRestoreFailed DatabaseLifecycleStateEnum = "RESTORE_FAILED" + DatabaseLifecycleStateFailed DatabaseLifecycleStateEnum = "FAILED" ) -var mappingDatabaseLifecycleState = map[string]DatabaseLifecycleStateEnum { - "PROVISIONING": DatabaseLifecycleStateProvisioning, - "AVAILABLE": DatabaseLifecycleStateAvailable, - "UPDATING": DatabaseLifecycleStateUpdating, - "BACKUP_IN_PROGRESS": DatabaseLifecycleStateBackupInProgress, - "TERMINATING": DatabaseLifecycleStateTerminating, - "TERMINATED": DatabaseLifecycleStateTerminated, - "RESTORE_FAILED": DatabaseLifecycleStateRestoreFailed, - "FAILED": DatabaseLifecycleStateFailed, - "UNKNOWN": DatabaseLifecycleStateUnknown, +var mappingDatabaseLifecycleState = map[string]DatabaseLifecycleStateEnum{ + "PROVISIONING": DatabaseLifecycleStateProvisioning, + "AVAILABLE": DatabaseLifecycleStateAvailable, + "UPDATING": DatabaseLifecycleStateUpdating, + "BACKUP_IN_PROGRESS": DatabaseLifecycleStateBackupInProgress, + "TERMINATING": DatabaseLifecycleStateTerminating, + "TERMINATED": DatabaseLifecycleStateTerminated, + "RESTORE_FAILED": DatabaseLifecycleStateRestoreFailed, + "FAILED": DatabaseLifecycleStateFailed, } // GetDatabaseLifecycleStateEnumValues Enumerates the set of values for DatabaseLifecycleState func GetDatabaseLifecycleStateEnumValues() []DatabaseLifecycleStateEnum { - values := make([]DatabaseLifecycleStateEnum, 0) - for _, v := range mappingDatabaseLifecycleState { - if v != DatabaseLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DatabaseLifecycleStateEnum, 0) + for _, v := range mappingDatabaseLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/database_client.go b/vendor/github.com/oracle/oci-go-sdk/database/database_client.go index bee58fc11..d666cc5f0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/database_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/database_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -8,899 +8,746 @@ package database -import( - "github.com/oracle/oci-go-sdk/common" - "context" - "fmt" - "net/http" +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) //DatabaseClient a client for Database type DatabaseClient struct { - common.BaseClient - config *common.ConfigurationProvider + common.BaseClient + config *common.ConfigurationProvider } - // NewDatabaseClientWithConfigurationProvider Creates a new default Database client with the given configuration provider. // the configuration provider will be used for the default signer as well as reading the region -func NewDatabaseClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client DatabaseClient, err error){ - baseClient, err := common.NewClientWithConfig(configProvider) - if err != nil { - return - } +func NewDatabaseClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client DatabaseClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } - client = DatabaseClient{BaseClient: baseClient} - client.BasePath = "20160918" - err = client.setConfigurationProvider(configProvider) - return + client = DatabaseClient{BaseClient: baseClient} + client.BasePath = "20160918" + err = client.setConfigurationProvider(configProvider) + return } // SetRegion overrides the region of this client. -func (client *DatabaseClient) SetRegion(region string) { - client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "database", region) +func (client *DatabaseClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "database", region) } - // SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid func (client *DatabaseClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } - // Error has been checked already - region, _ := configProvider.Region() - client.config = &configProvider - client.SetRegion(region) - return nil + // Error has been checked already + region, _ := configProvider.Region() + client.config = &configProvider + client.SetRegion(region) + return nil } // ConfigurationProvider the ConfigurationProvider used in this client, or null if none set func (client *DatabaseClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - - - - - - - // CreateBackup Creates a new backup in the specified database based on the request parameters you provide. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work. -func(client DatabaseClient) CreateBackup(ctx context.Context, request CreateBackupRequest) (response CreateBackupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/backups", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateDataGuardAssociation Creates a new Data Guard association. A Data Guard association represents the replication relationship between the - // specified database and a peer database. For more information, see [Using Oracle Data Guard]({{DOC_SERVER_URL}}/Content/Database/Tasks/usingdataguard.htm). - // All Oracle Cloud Infrastructure resources, including Data Guard associations, get an Oracle-assigned, unique ID - // called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. - // You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the - // resource in the Console. Fore more information, see - // [Resource Identifiers](http://localhost:8000/Content/General/Concepts/identifiers.htm). -func(client DatabaseClient) CreateDataGuardAssociation(ctx context.Context, request CreateDataGuardAssociationRequest) (response CreateDataGuardAssociationResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/databases/{databaseId}/dataGuardAssociations", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateDbHome Creates a new DB Home in the specified DB System based on the request parameters you provide. -func(client DatabaseClient) CreateDbHome(ctx context.Context, request CreateDbHomeRequest) (response CreateDbHomeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/dbHomes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DbNodeAction Performs an action, such as one of the power actions (start, stop, softreset, or reset), on the specified DB Node. - // **start** - power on - // **stop** - power off - // **softreset** - ACPI shutdown and power on - // **reset** - power off and power on - // Note that the **stop** state has no effect on the resources you consume. - // Billing continues for DB Nodes that you stop, and related resources continue - // to apply against any relevant quotas. You must terminate the DB System - // (TerminateDbSystem) - // to remove its resources from billing and quotas. -func(client DatabaseClient) DbNodeAction(ctx context.Context, request DbNodeActionRequest) (response DbNodeActionResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/dbNodes/{dbNodeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteBackup Deletes a full backup. You cannot delete automatic backups using this API. -func(client DatabaseClient) DeleteBackup(ctx context.Context, request DeleteBackupRequest) (response DeleteBackupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/backups/{backupId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteDbHome Deletes a DB Home. The DB Home and its database data are local to the DB System and will be lost when it is deleted. Oracle recommends that you back up any data in the DB System prior to deleting it. -func(client DatabaseClient) DeleteDbHome(ctx context.Context, request DeleteDbHomeRequest) (response DeleteDbHomeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/dbHomes/{dbHomeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // FailoverDataGuardAssociation Performs a failover to transition the standby database identified by the `databaseId` parameter into the - // specified Data Guard association's primary role after the existing primary database fails or becomes unreachable. - // A failover might result in data loss depending on the protection mode in effect at the time of the primary - // database failure. -func(client DatabaseClient) FailoverDataGuardAssociation(ctx context.Context, request FailoverDataGuardAssociationRequest) (response FailoverDataGuardAssociationResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/failover", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetBackup Gets information about the specified backup. -func(client DatabaseClient) GetBackup(ctx context.Context, request GetBackupRequest) (response GetBackupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/backups/{backupId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDataGuardAssociation Gets the specified Data Guard association's configuration information. -func(client DatabaseClient) GetDataGuardAssociation(ctx context.Context, request GetDataGuardAssociationRequest) (response GetDataGuardAssociationResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDatabase Gets information about a specific database. -func(client DatabaseClient) GetDatabase(ctx context.Context, request GetDatabaseRequest) (response GetDatabaseResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/databases/{databaseId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDbHome Gets information about the specified database home. -func(client DatabaseClient) GetDbHome(ctx context.Context, request GetDbHomeRequest) (response GetDbHomeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes/{dbHomeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDbHomePatch Gets information about a specified patch package. -func(client DatabaseClient) GetDbHomePatch(ctx context.Context, request GetDbHomePatchRequest) (response GetDbHomePatchResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes/{dbHomeId}/patches/{patchId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDbHomePatchHistoryEntry Gets the patch history details for the specified patchHistoryEntryId -func(client DatabaseClient) GetDbHomePatchHistoryEntry(ctx context.Context, request GetDbHomePatchHistoryEntryRequest) (response GetDbHomePatchHistoryEntryResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes/{dbHomeId}/patchHistoryEntries/{patchHistoryEntryId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDbNode Gets information about the specified database node. -func(client DatabaseClient) GetDbNode(ctx context.Context, request GetDbNodeRequest) (response GetDbNodeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbNodes/{dbNodeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDbSystem Gets information about the specified DB System. -func(client DatabaseClient) GetDbSystem(ctx context.Context, request GetDbSystemRequest) (response GetDbSystemResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems/{dbSystemId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDbSystemPatch Gets information about a specified patch package. -func(client DatabaseClient) GetDbSystemPatch(ctx context.Context, request GetDbSystemPatchRequest) (response GetDbSystemPatchResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems/{dbSystemId}/patches/{patchId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetDbSystemPatchHistoryEntry Gets the patch history details for the specified patchHistoryEntryId. -func(client DatabaseClient) GetDbSystemPatchHistoryEntry(ctx context.Context, request GetDbSystemPatchHistoryEntryRequest) (response GetDbSystemPatchHistoryEntryResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems/{dbSystemId}/patchHistoryEntries/{patchHistoryEntryId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // LaunchDbSystem Launches a new DB System in the specified compartment and Availability Domain. You'll specify a single Oracle - // Database Edition that applies to all the databases on that DB System. The selected edition cannot be changed. - // An initial database is created on the DB System based on the request parameters you provide and some default - // options. For more information, - // see [Default Options for the Initial Database]({{DOC_SERVER_URL}}/Content/Database/Tasks/launchingDB.htm#Default_Options_for_the_Initial_Database). - // The DB System will include a command line interface (CLI) that you can use to create additional databases and - // manage existing databases. For more information, see the - // [Oracle Database CLI Reference]({{DOC_SERVER_URL}}/Content/Database/References/odacli.htm#Oracle_Database_CLI_Reference). -func(client DatabaseClient) LaunchDbSystem(ctx context.Context, request LaunchDbSystemRequest) (response LaunchDbSystemResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/dbSystems", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListBackups Gets a list of backups based on the databaseId or compartmentId specified. Either one of the query parameters must be provided. -func(client DatabaseClient) ListBackups(ctx context.Context, request ListBackupsRequest) (response ListBackupsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/backups", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDataGuardAssociations Lists all Data Guard associations for the specified database. -func(client DatabaseClient) ListDataGuardAssociations(ctx context.Context, request ListDataGuardAssociationsRequest) (response ListDataGuardAssociationsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/databases/{databaseId}/dataGuardAssociations", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDatabases Gets a list of the databases in the specified database home. -func(client DatabaseClient) ListDatabases(ctx context.Context, request ListDatabasesRequest) (response ListDatabasesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/databases", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDbHomePatchHistoryEntries Gets history of the actions taken for patches for the specified database home. -func(client DatabaseClient) ListDbHomePatchHistoryEntries(ctx context.Context, request ListDbHomePatchHistoryEntriesRequest) (response ListDbHomePatchHistoryEntriesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes/{dbHomeId}/patchHistoryEntries", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDbHomePatches Lists patches applicable to the requested database home. -func(client DatabaseClient) ListDbHomePatches(ctx context.Context, request ListDbHomePatchesRequest) (response ListDbHomePatchesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes/{dbHomeId}/patches", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDbHomes Gets a list of database homes in the specified DB System and compartment. A database home is a directory where Oracle database software is installed. -func(client DatabaseClient) ListDbHomes(ctx context.Context, request ListDbHomesRequest) (response ListDbHomesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDbNodes Gets a list of database nodes in the specified DB System and compartment. A database node is a server running database software. -func(client DatabaseClient) ListDbNodes(ctx context.Context, request ListDbNodesRequest) (response ListDbNodesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbNodes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDbSystemPatchHistoryEntries Gets the history of the patch actions performed on the specified DB System. -func(client DatabaseClient) ListDbSystemPatchHistoryEntries(ctx context.Context, request ListDbSystemPatchHistoryEntriesRequest) (response ListDbSystemPatchHistoryEntriesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems/{dbSystemId}/patchHistoryEntries", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDbSystemPatches Lists the patches applicable to the requested DB System. -func(client DatabaseClient) ListDbSystemPatches(ctx context.Context, request ListDbSystemPatchesRequest) (response ListDbSystemPatchesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems/{dbSystemId}/patches", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDbSystemShapes Gets a list of the shapes that can be used to launch a new DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. -func(client DatabaseClient) ListDbSystemShapes(ctx context.Context, request ListDbSystemShapesRequest) (response ListDbSystemShapesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystemShapes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDbSystems Gets a list of the DB Systems in the specified compartment. - // -func(client DatabaseClient) ListDbSystems(ctx context.Context, request ListDbSystemsRequest) (response ListDbSystemsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListDbVersions Gets a list of supported Oracle database versions. -func(client DatabaseClient) ListDbVersions(ctx context.Context, request ListDbVersionsRequest) (response ListDbVersionsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbVersions", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ReinstateDataGuardAssociation Reinstates the database identified by the `databaseId` parameter into the standby role in a Data Guard association. -func(client DatabaseClient) ReinstateDataGuardAssociation(ctx context.Context, request ReinstateDataGuardAssociationRequest) (response ReinstateDataGuardAssociationResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/reinstate", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // RestoreDatabase Restore a Database based on the request parameters you provide. -func(client DatabaseClient) RestoreDatabase(ctx context.Context, request RestoreDatabaseRequest) (response RestoreDatabaseResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/databases/{databaseId}/actions/restore", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // SwitchoverDataGuardAssociation Performs a switchover to transition the primary database of a Data Guard association into a standby role. The - // standby database associated with the `dataGuardAssociationId` assumes the primary database role. - // A switchover guarantees no data loss. -func(client DatabaseClient) SwitchoverDataGuardAssociation(ctx context.Context, request SwitchoverDataGuardAssociationRequest) (response SwitchoverDataGuardAssociationResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/switchover", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // TerminateDbSystem Terminates a DB System and permanently deletes it and any databases running on it, and any storage volumes attached to it. The database data is local to the DB System and will be lost when the system is terminated. Oracle recommends that you back up any data in the DB System prior to terminating it. -func(client DatabaseClient) TerminateDbSystem(ctx context.Context, request TerminateDbSystemRequest) (response TerminateDbSystemResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/dbSystems/{dbSystemId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateDatabase Update a Database based on the request parameters you provide. -func(client DatabaseClient) UpdateDatabase(ctx context.Context, request UpdateDatabaseRequest) (response UpdateDatabaseResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/databases/{databaseId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateDbHome Patches the specified dbHome. -func(client DatabaseClient) UpdateDbHome(ctx context.Context, request UpdateDbHomeRequest) (response UpdateDbHomeResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/dbHomes/{dbHomeId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateDbSystem Updates the properties of a DB System, such as the CPU core count. -func(client DatabaseClient) UpdateDbSystem(ctx context.Context, request UpdateDbSystemRequest) (response UpdateDbSystemResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/dbSystems/{dbSystemId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return + return client.config +} + +// CreateBackup Creates a new backup in the specified database based on the request parameters you provide. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work. +func (client DatabaseClient) CreateBackup(ctx context.Context, request CreateBackupRequest) (response CreateBackupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/backups", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateDataGuardAssociation Creates a new Data Guard association. A Data Guard association represents the replication relationship between the +// specified database and a peer database. For more information, see Using Oracle Data Guard (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Tasks/usingdataguard.htm). +// All Oracle Cloud Infrastructure resources, including Data Guard associations, get an Oracle-assigned, unique ID +// called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. +// You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the +// resource in the Console. Fore more information, see +// Resource Identifiers (http://localhost:8000/Content/General/Concepts/identifiers.htm). +func (client DatabaseClient) CreateDataGuardAssociation(ctx context.Context, request CreateDataGuardAssociationRequest) (response CreateDataGuardAssociationResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/databases/{databaseId}/dataGuardAssociations", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateDbHome Creates a new DB Home in the specified DB System based on the request parameters you provide. +func (client DatabaseClient) CreateDbHome(ctx context.Context, request CreateDbHomeRequest) (response CreateDbHomeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/dbHomes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DbNodeAction Performs an action, such as one of the power actions (start, stop, softreset, or reset), on the specified DB Node. +// **start** - power on +// **stop** - power off +// **softreset** - ACPI shutdown and power on +// **reset** - power off and power on +// Note that the **stop** state has no effect on the resources you consume. +// Billing continues for DB Nodes that you stop, and related resources continue +// to apply against any relevant quotas. You must terminate the DB System +// (TerminateDbSystem) +// to remove its resources from billing and quotas. +func (client DatabaseClient) DbNodeAction(ctx context.Context, request DbNodeActionRequest) (response DbNodeActionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/dbNodes/{dbNodeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteBackup Deletes a full backup. You cannot delete automatic backups using this API. +func (client DatabaseClient) DeleteBackup(ctx context.Context, request DeleteBackupRequest) (response DeleteBackupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/backups/{backupId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteDbHome Deletes a DB Home. The DB Home and its database data are local to the DB System and will be lost when it is deleted. Oracle recommends that you back up any data in the DB System prior to deleting it. +func (client DatabaseClient) DeleteDbHome(ctx context.Context, request DeleteDbHomeRequest) (response DeleteDbHomeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/dbHomes/{dbHomeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// FailoverDataGuardAssociation Performs a failover to transition the standby database identified by the `databaseId` parameter into the +// specified Data Guard association's primary role after the existing primary database fails or becomes unreachable. +// A failover might result in data loss depending on the protection mode in effect at the time of the primary +// database failure. +func (client DatabaseClient) FailoverDataGuardAssociation(ctx context.Context, request FailoverDataGuardAssociationRequest) (response FailoverDataGuardAssociationResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/failover", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetBackup Gets information about the specified backup. +func (client DatabaseClient) GetBackup(ctx context.Context, request GetBackupRequest) (response GetBackupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/backups/{backupId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDataGuardAssociation Gets the specified Data Guard association's configuration information. +func (client DatabaseClient) GetDataGuardAssociation(ctx context.Context, request GetDataGuardAssociationRequest) (response GetDataGuardAssociationResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDatabase Gets information about a specific database. +func (client DatabaseClient) GetDatabase(ctx context.Context, request GetDatabaseRequest) (response GetDatabaseResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/databases/{databaseId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDbHome Gets information about the specified database home. +func (client DatabaseClient) GetDbHome(ctx context.Context, request GetDbHomeRequest) (response GetDbHomeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes/{dbHomeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDbHomePatch Gets information about a specified patch package. +func (client DatabaseClient) GetDbHomePatch(ctx context.Context, request GetDbHomePatchRequest) (response GetDbHomePatchResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes/{dbHomeId}/patches/{patchId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDbHomePatchHistoryEntry Gets the patch history details for the specified patchHistoryEntryId +func (client DatabaseClient) GetDbHomePatchHistoryEntry(ctx context.Context, request GetDbHomePatchHistoryEntryRequest) (response GetDbHomePatchHistoryEntryResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes/{dbHomeId}/patchHistoryEntries/{patchHistoryEntryId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDbNode Gets information about the specified database node. +func (client DatabaseClient) GetDbNode(ctx context.Context, request GetDbNodeRequest) (response GetDbNodeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbNodes/{dbNodeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDbSystem Gets information about the specified DB System. +func (client DatabaseClient) GetDbSystem(ctx context.Context, request GetDbSystemRequest) (response GetDbSystemResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems/{dbSystemId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDbSystemPatch Gets information about a specified patch package. +func (client DatabaseClient) GetDbSystemPatch(ctx context.Context, request GetDbSystemPatchRequest) (response GetDbSystemPatchResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems/{dbSystemId}/patches/{patchId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDbSystemPatchHistoryEntry Gets the patch history details for the specified patchHistoryEntryId. +func (client DatabaseClient) GetDbSystemPatchHistoryEntry(ctx context.Context, request GetDbSystemPatchHistoryEntryRequest) (response GetDbSystemPatchHistoryEntryResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems/{dbSystemId}/patchHistoryEntries/{patchHistoryEntryId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// LaunchDbSystem Launches a new DB System in the specified compartment and Availability Domain. You'll specify a single Oracle +// Database Edition that applies to all the databases on that DB System. The selected edition cannot be changed. +// An initial database is created on the DB System based on the request parameters you provide and some default +// options. For more information, +// see Default Options for the Initial Database (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Tasks/launchingDB.htm#Default_Options_for_the_Initial_Database). +// The DB System will include a command line interface (CLI) that you can use to create additional databases and +// manage existing databases. For more information, see the +// Oracle Database CLI Reference (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/References/odacli.htm#Oracle_Database_CLI_Reference). +func (client DatabaseClient) LaunchDbSystem(ctx context.Context, request LaunchDbSystemRequest) (response LaunchDbSystemResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/dbSystems", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListBackups Gets a list of backups based on the databaseId or compartmentId specified. Either one of the query parameters must be provided. +func (client DatabaseClient) ListBackups(ctx context.Context, request ListBackupsRequest) (response ListBackupsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/backups", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDataGuardAssociations Lists all Data Guard associations for the specified database. +func (client DatabaseClient) ListDataGuardAssociations(ctx context.Context, request ListDataGuardAssociationsRequest) (response ListDataGuardAssociationsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/databases/{databaseId}/dataGuardAssociations", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDatabases Gets a list of the databases in the specified database home. +func (client DatabaseClient) ListDatabases(ctx context.Context, request ListDatabasesRequest) (response ListDatabasesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/databases", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDbHomePatchHistoryEntries Gets history of the actions taken for patches for the specified database home. +func (client DatabaseClient) ListDbHomePatchHistoryEntries(ctx context.Context, request ListDbHomePatchHistoryEntriesRequest) (response ListDbHomePatchHistoryEntriesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes/{dbHomeId}/patchHistoryEntries", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDbHomePatches Lists patches applicable to the requested database home. +func (client DatabaseClient) ListDbHomePatches(ctx context.Context, request ListDbHomePatchesRequest) (response ListDbHomePatchesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes/{dbHomeId}/patches", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDbHomes Gets a list of database homes in the specified DB System and compartment. A database home is a directory where Oracle database software is installed. +func (client DatabaseClient) ListDbHomes(ctx context.Context, request ListDbHomesRequest) (response ListDbHomesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbHomes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDbNodes Gets a list of database nodes in the specified DB System and compartment. A database node is a server running database software. +func (client DatabaseClient) ListDbNodes(ctx context.Context, request ListDbNodesRequest) (response ListDbNodesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbNodes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDbSystemPatchHistoryEntries Gets the history of the patch actions performed on the specified DB System. +func (client DatabaseClient) ListDbSystemPatchHistoryEntries(ctx context.Context, request ListDbSystemPatchHistoryEntriesRequest) (response ListDbSystemPatchHistoryEntriesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems/{dbSystemId}/patchHistoryEntries", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDbSystemPatches Lists the patches applicable to the requested DB System. +func (client DatabaseClient) ListDbSystemPatches(ctx context.Context, request ListDbSystemPatchesRequest) (response ListDbSystemPatchesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems/{dbSystemId}/patches", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDbSystemShapes Gets a list of the shapes that can be used to launch a new DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. +func (client DatabaseClient) ListDbSystemShapes(ctx context.Context, request ListDbSystemShapesRequest) (response ListDbSystemShapesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystemShapes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDbSystems Gets a list of the DB Systems in the specified compartment. +// +func (client DatabaseClient) ListDbSystems(ctx context.Context, request ListDbSystemsRequest) (response ListDbSystemsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListDbVersions Gets a list of supported Oracle database versions. +func (client DatabaseClient) ListDbVersions(ctx context.Context, request ListDbVersionsRequest) (response ListDbVersionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbVersions", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ReinstateDataGuardAssociation Reinstates the database identified by the `databaseId` parameter into the standby role in a Data Guard association. +func (client DatabaseClient) ReinstateDataGuardAssociation(ctx context.Context, request ReinstateDataGuardAssociationRequest) (response ReinstateDataGuardAssociationResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/reinstate", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// RestoreDatabase Restore a Database based on the request parameters you provide. +func (client DatabaseClient) RestoreDatabase(ctx context.Context, request RestoreDatabaseRequest) (response RestoreDatabaseResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/databases/{databaseId}/actions/restore", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// SwitchoverDataGuardAssociation Performs a switchover to transition the primary database of a Data Guard association into a standby role. The +// standby database associated with the `dataGuardAssociationId` assumes the primary database role. +// A switchover guarantees no data loss. +func (client DatabaseClient) SwitchoverDataGuardAssociation(ctx context.Context, request SwitchoverDataGuardAssociationRequest) (response SwitchoverDataGuardAssociationResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/switchover", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// TerminateDbSystem Terminates a DB System and permanently deletes it and any databases running on it, and any storage volumes attached to it. The database data is local to the DB System and will be lost when the system is terminated. Oracle recommends that you back up any data in the DB System prior to terminating it. +func (client DatabaseClient) TerminateDbSystem(ctx context.Context, request TerminateDbSystemRequest) (response TerminateDbSystemResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/dbSystems/{dbSystemId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateDatabase Update a Database based on the request parameters you provide. +func (client DatabaseClient) UpdateDatabase(ctx context.Context, request UpdateDatabaseRequest) (response UpdateDatabaseResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/databases/{databaseId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateDbHome Patches the specified dbHome. +func (client DatabaseClient) UpdateDbHome(ctx context.Context, request UpdateDbHomeRequest) (response UpdateDbHomeResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/dbHomes/{dbHomeId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateDbSystem Updates the properties of a DB System, such as the CPU core count. +func (client DatabaseClient) UpdateDbSystem(ctx context.Context, request UpdateDbSystemRequest) (response UpdateDbSystemResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/dbSystems/{dbSystemId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/database_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/database_summary.go index 02bac7c32..6191d850f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/database_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/database_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,97 +9,87 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DatabaseSummary An Oracle database on a DB System. For more information, see [Managing Oracle Databases]({{DOC_SERVER_URL}}/Content/Database/Concepts/overview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// DatabaseSummary An Oracle database on a DB System. For more information, see Managing Oracle Databases (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type DatabaseSummary struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The database name. - DbName *string `mandatory:"true" json:"dbName"` - - // A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed. - DbUniqueName *string `mandatory:"true" json:"dbUniqueName"` - - // The OCID of the database. - Id *string `mandatory:"true" json:"id"` - - // The current state of the database. - LifecycleState DatabaseSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The character set for the database. - CharacterSet *string `mandatory:"false" json:"characterSet"` - - DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` - - // The OCID of the database home. - DbHomeId *string `mandatory:"false" json:"dbHomeId"` - - // Database workload type. - DbWorkload *string `mandatory:"false" json:"dbWorkload"` - - // Additional information about the current lifecycleState. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The national character set for the database. - NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` - - // Pluggable database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. - PdbName *string `mandatory:"false" json:"pdbName"` - - // The date and time the database was created. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The database name. + DbName *string `mandatory:"true" json:"dbName"` + + // A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed. + DbUniqueName *string `mandatory:"true" json:"dbUniqueName"` + + // The OCID of the database. + Id *string `mandatory:"true" json:"id"` + + // The current state of the database. + LifecycleState DatabaseSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The character set for the database. + CharacterSet *string `mandatory:"false" json:"characterSet"` + + DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` + + // The OCID of the database home. + DbHomeId *string `mandatory:"false" json:"dbHomeId"` + + // Database workload type. + DbWorkload *string `mandatory:"false" json:"dbWorkload"` + + // Additional information about the current lifecycleState. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The national character set for the database. + NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` + + // Pluggable database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. + PdbName *string `mandatory:"false" json:"pdbName"` + + // The date and time the database was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m DatabaseSummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DatabaseSummaryLifecycleStateEnum Enum with underlying type: string type DatabaseSummaryLifecycleStateEnum string // Set of constants representing the allowable values for DatabaseSummaryLifecycleState const ( - DatabaseSummaryLifecycleStateProvisioning DatabaseSummaryLifecycleStateEnum = "PROVISIONING" - DatabaseSummaryLifecycleStateAvailable DatabaseSummaryLifecycleStateEnum = "AVAILABLE" - DatabaseSummaryLifecycleStateUpdating DatabaseSummaryLifecycleStateEnum = "UPDATING" - DatabaseSummaryLifecycleStateBackupInProgress DatabaseSummaryLifecycleStateEnum = "BACKUP_IN_PROGRESS" - DatabaseSummaryLifecycleStateTerminating DatabaseSummaryLifecycleStateEnum = "TERMINATING" - DatabaseSummaryLifecycleStateTerminated DatabaseSummaryLifecycleStateEnum = "TERMINATED" - DatabaseSummaryLifecycleStateRestoreFailed DatabaseSummaryLifecycleStateEnum = "RESTORE_FAILED" - DatabaseSummaryLifecycleStateFailed DatabaseSummaryLifecycleStateEnum = "FAILED" - DatabaseSummaryLifecycleStateUnknown DatabaseSummaryLifecycleStateEnum = "UNKNOWN" + DatabaseSummaryLifecycleStateProvisioning DatabaseSummaryLifecycleStateEnum = "PROVISIONING" + DatabaseSummaryLifecycleStateAvailable DatabaseSummaryLifecycleStateEnum = "AVAILABLE" + DatabaseSummaryLifecycleStateUpdating DatabaseSummaryLifecycleStateEnum = "UPDATING" + DatabaseSummaryLifecycleStateBackupInProgress DatabaseSummaryLifecycleStateEnum = "BACKUP_IN_PROGRESS" + DatabaseSummaryLifecycleStateTerminating DatabaseSummaryLifecycleStateEnum = "TERMINATING" + DatabaseSummaryLifecycleStateTerminated DatabaseSummaryLifecycleStateEnum = "TERMINATED" + DatabaseSummaryLifecycleStateRestoreFailed DatabaseSummaryLifecycleStateEnum = "RESTORE_FAILED" + DatabaseSummaryLifecycleStateFailed DatabaseSummaryLifecycleStateEnum = "FAILED" ) -var mappingDatabaseSummaryLifecycleState = map[string]DatabaseSummaryLifecycleStateEnum { - "PROVISIONING": DatabaseSummaryLifecycleStateProvisioning, - "AVAILABLE": DatabaseSummaryLifecycleStateAvailable, - "UPDATING": DatabaseSummaryLifecycleStateUpdating, - "BACKUP_IN_PROGRESS": DatabaseSummaryLifecycleStateBackupInProgress, - "TERMINATING": DatabaseSummaryLifecycleStateTerminating, - "TERMINATED": DatabaseSummaryLifecycleStateTerminated, - "RESTORE_FAILED": DatabaseSummaryLifecycleStateRestoreFailed, - "FAILED": DatabaseSummaryLifecycleStateFailed, - "UNKNOWN": DatabaseSummaryLifecycleStateUnknown, +var mappingDatabaseSummaryLifecycleState = map[string]DatabaseSummaryLifecycleStateEnum{ + "PROVISIONING": DatabaseSummaryLifecycleStateProvisioning, + "AVAILABLE": DatabaseSummaryLifecycleStateAvailable, + "UPDATING": DatabaseSummaryLifecycleStateUpdating, + "BACKUP_IN_PROGRESS": DatabaseSummaryLifecycleStateBackupInProgress, + "TERMINATING": DatabaseSummaryLifecycleStateTerminating, + "TERMINATED": DatabaseSummaryLifecycleStateTerminated, + "RESTORE_FAILED": DatabaseSummaryLifecycleStateRestoreFailed, + "FAILED": DatabaseSummaryLifecycleStateFailed, } // GetDatabaseSummaryLifecycleStateEnumValues Enumerates the set of values for DatabaseSummaryLifecycleState func GetDatabaseSummaryLifecycleStateEnumValues() []DatabaseSummaryLifecycleStateEnum { - values := make([]DatabaseSummaryLifecycleStateEnum, 0) - for _, v := range mappingDatabaseSummaryLifecycleState { - if v != DatabaseSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DatabaseSummaryLifecycleStateEnum, 0) + for _, v := range mappingDatabaseSummaryLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_backup_config.go b/vendor/github.com/oracle/oci-go-sdk/database/db_backup_config.go index 18b492744..193a4a81c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_backup_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_backup_config.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,24 +9,17 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DbBackupConfig Backup Options - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// DbBackupConfig Backup Options +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type DbBackupConfig struct { - - // If set to true, configures automatic backups. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work. - AutoBackupEnabled *bool `mandatory:"false" json:"autoBackupEnabled"` + + // If set to true, configures automatic backups. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work. + AutoBackupEnabled *bool `mandatory:"false" json:"autoBackupEnabled"` } func (m DbBackupConfig) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_home.go b/vendor/github.com/oracle/oci-go-sdk/database/db_home.go index f15c32895..dc768b7cc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_home.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_home.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,84 +9,74 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DbHome A directory where Oracle database software is installed. Each DB System can have multiple database homes, - // and each database home can have multiple databases within it. All the databases within a single database home - // must be the same database version, but different database homes can run different versions. For more information, - // see [Managing Oracle Databases]({{DOC_SERVER_URL}}/Content/Database/Concepts/overview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an - // administrator. If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// DbHome A directory where Oracle database software is installed. Each DB System can have multiple database homes, +// and each database home can have multiple databases within it. All the databases within a single database home +// must be the same database version, but different database homes can run different versions. For more information, +// see Managing Oracle Databases (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an +// administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type DbHome struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The Oracle database version. - DbVersion *string `mandatory:"true" json:"dbVersion"` - - // The user-provided name for the database home. It does not need to be unique. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the database home. - Id *string `mandatory:"true" json:"id"` - - // The current state of the database home. - LifecycleState DbHomeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID of the DB System. - DbSystemId *string `mandatory:"false" json:"dbSystemId"` - - // The OCID of the last patch history. This is updated as soon as a patch operation is started. - LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` - - // The date and time the database home was created. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The Oracle database version. + DbVersion *string `mandatory:"true" json:"dbVersion"` + + // The user-provided name for the database home. It does not need to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the database home. + Id *string `mandatory:"true" json:"id"` + + // The current state of the database home. + LifecycleState DbHomeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID of the DB System. + DbSystemId *string `mandatory:"false" json:"dbSystemId"` + + // The OCID of the last patch history. This is updated as soon as a patch operation is started. + LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` + + // The date and time the database home was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m DbHome) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DbHomeLifecycleStateEnum Enum with underlying type: string type DbHomeLifecycleStateEnum string // Set of constants representing the allowable values for DbHomeLifecycleState const ( - DbHomeLifecycleStateProvisioning DbHomeLifecycleStateEnum = "PROVISIONING" - DbHomeLifecycleStateAvailable DbHomeLifecycleStateEnum = "AVAILABLE" - DbHomeLifecycleStateUpdating DbHomeLifecycleStateEnum = "UPDATING" - DbHomeLifecycleStateTerminating DbHomeLifecycleStateEnum = "TERMINATING" - DbHomeLifecycleStateTerminated DbHomeLifecycleStateEnum = "TERMINATED" - DbHomeLifecycleStateFailed DbHomeLifecycleStateEnum = "FAILED" - DbHomeLifecycleStateUnknown DbHomeLifecycleStateEnum = "UNKNOWN" + DbHomeLifecycleStateProvisioning DbHomeLifecycleStateEnum = "PROVISIONING" + DbHomeLifecycleStateAvailable DbHomeLifecycleStateEnum = "AVAILABLE" + DbHomeLifecycleStateUpdating DbHomeLifecycleStateEnum = "UPDATING" + DbHomeLifecycleStateTerminating DbHomeLifecycleStateEnum = "TERMINATING" + DbHomeLifecycleStateTerminated DbHomeLifecycleStateEnum = "TERMINATED" + DbHomeLifecycleStateFailed DbHomeLifecycleStateEnum = "FAILED" ) -var mappingDbHomeLifecycleState = map[string]DbHomeLifecycleStateEnum { - "PROVISIONING": DbHomeLifecycleStateProvisioning, - "AVAILABLE": DbHomeLifecycleStateAvailable, - "UPDATING": DbHomeLifecycleStateUpdating, - "TERMINATING": DbHomeLifecycleStateTerminating, - "TERMINATED": DbHomeLifecycleStateTerminated, - "FAILED": DbHomeLifecycleStateFailed, - "UNKNOWN": DbHomeLifecycleStateUnknown, +var mappingDbHomeLifecycleState = map[string]DbHomeLifecycleStateEnum{ + "PROVISIONING": DbHomeLifecycleStateProvisioning, + "AVAILABLE": DbHomeLifecycleStateAvailable, + "UPDATING": DbHomeLifecycleStateUpdating, + "TERMINATING": DbHomeLifecycleStateTerminating, + "TERMINATED": DbHomeLifecycleStateTerminated, + "FAILED": DbHomeLifecycleStateFailed, } // GetDbHomeLifecycleStateEnumValues Enumerates the set of values for DbHomeLifecycleState func GetDbHomeLifecycleStateEnumValues() []DbHomeLifecycleStateEnum { - values := make([]DbHomeLifecycleStateEnum, 0) - for _, v := range mappingDbHomeLifecycleState { - if v != DbHomeLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DbHomeLifecycleStateEnum, 0) + for _, v := range mappingDbHomeLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_home_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/db_home_summary.go index b7d538bb3..b71dec836 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_home_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_home_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,84 +9,74 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DbHomeSummary A directory where Oracle database software is installed. Each DB System can have multiple database homes, - // and each database home can have multiple databases within it. All the databases within a single database home - // must be the same database version, but different database homes can run different versions. For more information, - // see [Managing Oracle Databases]({{DOC_SERVER_URL}}/Content/Database/Concepts/overview.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an - // administrator. If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// DbHomeSummary A directory where Oracle database software is installed. Each DB System can have multiple database homes, +// and each database home can have multiple databases within it. All the databases within a single database home +// must be the same database version, but different database homes can run different versions. For more information, +// see Managing Oracle Databases (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an +// administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type DbHomeSummary struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The Oracle database version. - DbVersion *string `mandatory:"true" json:"dbVersion"` - - // The user-provided name for the database home. It does not need to be unique. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the database home. - Id *string `mandatory:"true" json:"id"` - - // The current state of the database home. - LifecycleState DbHomeSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID of the DB System. - DbSystemId *string `mandatory:"false" json:"dbSystemId"` - - // The OCID of the last patch history. This is updated as soon as a patch operation is started. - LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` - - // The date and time the database home was created. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The Oracle database version. + DbVersion *string `mandatory:"true" json:"dbVersion"` + + // The user-provided name for the database home. It does not need to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the database home. + Id *string `mandatory:"true" json:"id"` + + // The current state of the database home. + LifecycleState DbHomeSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID of the DB System. + DbSystemId *string `mandatory:"false" json:"dbSystemId"` + + // The OCID of the last patch history. This is updated as soon as a patch operation is started. + LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` + + // The date and time the database home was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } func (m DbHomeSummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DbHomeSummaryLifecycleStateEnum Enum with underlying type: string type DbHomeSummaryLifecycleStateEnum string // Set of constants representing the allowable values for DbHomeSummaryLifecycleState const ( - DbHomeSummaryLifecycleStateProvisioning DbHomeSummaryLifecycleStateEnum = "PROVISIONING" - DbHomeSummaryLifecycleStateAvailable DbHomeSummaryLifecycleStateEnum = "AVAILABLE" - DbHomeSummaryLifecycleStateUpdating DbHomeSummaryLifecycleStateEnum = "UPDATING" - DbHomeSummaryLifecycleStateTerminating DbHomeSummaryLifecycleStateEnum = "TERMINATING" - DbHomeSummaryLifecycleStateTerminated DbHomeSummaryLifecycleStateEnum = "TERMINATED" - DbHomeSummaryLifecycleStateFailed DbHomeSummaryLifecycleStateEnum = "FAILED" - DbHomeSummaryLifecycleStateUnknown DbHomeSummaryLifecycleStateEnum = "UNKNOWN" + DbHomeSummaryLifecycleStateProvisioning DbHomeSummaryLifecycleStateEnum = "PROVISIONING" + DbHomeSummaryLifecycleStateAvailable DbHomeSummaryLifecycleStateEnum = "AVAILABLE" + DbHomeSummaryLifecycleStateUpdating DbHomeSummaryLifecycleStateEnum = "UPDATING" + DbHomeSummaryLifecycleStateTerminating DbHomeSummaryLifecycleStateEnum = "TERMINATING" + DbHomeSummaryLifecycleStateTerminated DbHomeSummaryLifecycleStateEnum = "TERMINATED" + DbHomeSummaryLifecycleStateFailed DbHomeSummaryLifecycleStateEnum = "FAILED" ) -var mappingDbHomeSummaryLifecycleState = map[string]DbHomeSummaryLifecycleStateEnum { - "PROVISIONING": DbHomeSummaryLifecycleStateProvisioning, - "AVAILABLE": DbHomeSummaryLifecycleStateAvailable, - "UPDATING": DbHomeSummaryLifecycleStateUpdating, - "TERMINATING": DbHomeSummaryLifecycleStateTerminating, - "TERMINATED": DbHomeSummaryLifecycleStateTerminated, - "FAILED": DbHomeSummaryLifecycleStateFailed, - "UNKNOWN": DbHomeSummaryLifecycleStateUnknown, +var mappingDbHomeSummaryLifecycleState = map[string]DbHomeSummaryLifecycleStateEnum{ + "PROVISIONING": DbHomeSummaryLifecycleStateProvisioning, + "AVAILABLE": DbHomeSummaryLifecycleStateAvailable, + "UPDATING": DbHomeSummaryLifecycleStateUpdating, + "TERMINATING": DbHomeSummaryLifecycleStateTerminating, + "TERMINATED": DbHomeSummaryLifecycleStateTerminated, + "FAILED": DbHomeSummaryLifecycleStateFailed, } // GetDbHomeSummaryLifecycleStateEnumValues Enumerates the set of values for DbHomeSummaryLifecycleState func GetDbHomeSummaryLifecycleStateEnumValues() []DbHomeSummaryLifecycleStateEnum { - values := make([]DbHomeSummaryLifecycleStateEnum, 0) - for _, v := range mappingDbHomeSummaryLifecycleState { - if v != DbHomeSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DbHomeSummaryLifecycleStateEnum, 0) + for _, v := range mappingDbHomeSummaryLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_node.go b/vendor/github.com/oracle/oci-go-sdk/database/db_node.go index 061c31e4c..3e052d092 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_node.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_node.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,85 +9,75 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DbNode A server where Oracle database software is running. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// DbNode A server where Oracle database software is running. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type DbNode struct { - - // The OCID of the DB System. - DbSystemId *string `mandatory:"true" json:"dbSystemId"` - - // The OCID of the DB Node. - Id *string `mandatory:"true" json:"id"` - - // The current state of the database node. - LifecycleState DbNodeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time that the DB Node was created. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the VNIC. - VnicId *string `mandatory:"true" json:"vnicId"` - - // The OCID of the backup VNIC. - BackupVnicId *string `mandatory:"false" json:"backupVnicId"` - - // The host name for the DB Node. - Hostname *string `mandatory:"false" json:"hostname"` - - // Storage size, in GBs, of the software volume that is allocated to the DB system. This is applicable only for VM-based DBs. - SoftwareStorageSizeInGB *int `mandatory:"false" json:"softwareStorageSizeInGB"` + + // The OCID of the DB System. + DbSystemId *string `mandatory:"true" json:"dbSystemId"` + + // The OCID of the DB Node. + Id *string `mandatory:"true" json:"id"` + + // The current state of the database node. + LifecycleState DbNodeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time that the DB Node was created. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the VNIC. + VnicId *string `mandatory:"true" json:"vnicId"` + + // The OCID of the backup VNIC. + BackupVnicId *string `mandatory:"false" json:"backupVnicId"` + + // The host name for the DB Node. + Hostname *string `mandatory:"false" json:"hostname"` + + // Storage size, in GBs, of the software volume that is allocated to the DB system. This is applicable only for VM-based DBs. + SoftwareStorageSizeInGB *int `mandatory:"false" json:"softwareStorageSizeInGB"` } func (m DbNode) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DbNodeLifecycleStateEnum Enum with underlying type: string type DbNodeLifecycleStateEnum string // Set of constants representing the allowable values for DbNodeLifecycleState const ( - DbNodeLifecycleStateProvisioning DbNodeLifecycleStateEnum = "PROVISIONING" - DbNodeLifecycleStateAvailable DbNodeLifecycleStateEnum = "AVAILABLE" - DbNodeLifecycleStateUpdating DbNodeLifecycleStateEnum = "UPDATING" - DbNodeLifecycleStateStopping DbNodeLifecycleStateEnum = "STOPPING" - DbNodeLifecycleStateStopped DbNodeLifecycleStateEnum = "STOPPED" - DbNodeLifecycleStateStarting DbNodeLifecycleStateEnum = "STARTING" - DbNodeLifecycleStateTerminating DbNodeLifecycleStateEnum = "TERMINATING" - DbNodeLifecycleStateTerminated DbNodeLifecycleStateEnum = "TERMINATED" - DbNodeLifecycleStateFailed DbNodeLifecycleStateEnum = "FAILED" - DbNodeLifecycleStateUnknown DbNodeLifecycleStateEnum = "UNKNOWN" + DbNodeLifecycleStateProvisioning DbNodeLifecycleStateEnum = "PROVISIONING" + DbNodeLifecycleStateAvailable DbNodeLifecycleStateEnum = "AVAILABLE" + DbNodeLifecycleStateUpdating DbNodeLifecycleStateEnum = "UPDATING" + DbNodeLifecycleStateStopping DbNodeLifecycleStateEnum = "STOPPING" + DbNodeLifecycleStateStopped DbNodeLifecycleStateEnum = "STOPPED" + DbNodeLifecycleStateStarting DbNodeLifecycleStateEnum = "STARTING" + DbNodeLifecycleStateTerminating DbNodeLifecycleStateEnum = "TERMINATING" + DbNodeLifecycleStateTerminated DbNodeLifecycleStateEnum = "TERMINATED" + DbNodeLifecycleStateFailed DbNodeLifecycleStateEnum = "FAILED" ) -var mappingDbNodeLifecycleState = map[string]DbNodeLifecycleStateEnum { - "PROVISIONING": DbNodeLifecycleStateProvisioning, - "AVAILABLE": DbNodeLifecycleStateAvailable, - "UPDATING": DbNodeLifecycleStateUpdating, - "STOPPING": DbNodeLifecycleStateStopping, - "STOPPED": DbNodeLifecycleStateStopped, - "STARTING": DbNodeLifecycleStateStarting, - "TERMINATING": DbNodeLifecycleStateTerminating, - "TERMINATED": DbNodeLifecycleStateTerminated, - "FAILED": DbNodeLifecycleStateFailed, - "UNKNOWN": DbNodeLifecycleStateUnknown, +var mappingDbNodeLifecycleState = map[string]DbNodeLifecycleStateEnum{ + "PROVISIONING": DbNodeLifecycleStateProvisioning, + "AVAILABLE": DbNodeLifecycleStateAvailable, + "UPDATING": DbNodeLifecycleStateUpdating, + "STOPPING": DbNodeLifecycleStateStopping, + "STOPPED": DbNodeLifecycleStateStopped, + "STARTING": DbNodeLifecycleStateStarting, + "TERMINATING": DbNodeLifecycleStateTerminating, + "TERMINATED": DbNodeLifecycleStateTerminated, + "FAILED": DbNodeLifecycleStateFailed, } // GetDbNodeLifecycleStateEnumValues Enumerates the set of values for DbNodeLifecycleState func GetDbNodeLifecycleStateEnumValues() []DbNodeLifecycleStateEnum { - values := make([]DbNodeLifecycleStateEnum, 0) - for _, v := range mappingDbNodeLifecycleState { - if v != DbNodeLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DbNodeLifecycleStateEnum, 0) + for _, v := range mappingDbNodeLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_node_action_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/db_node_action_request_response.go index 977872435..208e50489 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_node_action_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_node_action_request_response.go @@ -1,61 +1,58 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DbNodeActionRequest wrapper for the DbNodeAction operation type DbNodeActionRequest struct { - - // The database node [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbNodeId *string `mandatory:"true" contributesTo:"path" name:"dbNodeId"` - - // The action to perform on the DB Node. - Action DbNodeActionActionEnum `mandatory:"true" contributesTo:"query" name:"action" omitEmpty:"true"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The database node OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbNodeId *string `mandatory:"true" contributesTo:"path" name:"dbNodeId"` + + // The action to perform on the DB Node. + Action DbNodeActionActionEnum `mandatory:"true" contributesTo:"query" name:"action" omitEmpty:"true"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DbNodeActionRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DbNodeActionResponse wrapper for the DbNodeAction operation type DbNodeActionResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DbNode instance - DbNode `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DbNode instance + DbNode `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DbNodeActionResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // DbNodeActionActionEnum Enum with underlying type: string @@ -63,29 +60,24 @@ type DbNodeActionActionEnum string // Set of constants representing the allowable values for DbNodeActionAction const ( - DbNodeActionActionStop DbNodeActionActionEnum = "STOP" - DbNodeActionActionStart DbNodeActionActionEnum = "START" - DbNodeActionActionSoftreset DbNodeActionActionEnum = "SOFTRESET" - DbNodeActionActionReset DbNodeActionActionEnum = "RESET" - DbNodeActionActionUnknown DbNodeActionActionEnum = "UNKNOWN" + DbNodeActionActionStop DbNodeActionActionEnum = "STOP" + DbNodeActionActionStart DbNodeActionActionEnum = "START" + DbNodeActionActionSoftreset DbNodeActionActionEnum = "SOFTRESET" + DbNodeActionActionReset DbNodeActionActionEnum = "RESET" ) -var mappingDbNodeActionAction = map[string]DbNodeActionActionEnum { - "STOP": DbNodeActionActionStop, - "START": DbNodeActionActionStart, - "SOFTRESET": DbNodeActionActionSoftreset, - "RESET": DbNodeActionActionReset, - "UNKNOWN": DbNodeActionActionUnknown, +var mappingDbNodeActionAction = map[string]DbNodeActionActionEnum{ + "STOP": DbNodeActionActionStop, + "START": DbNodeActionActionStart, + "SOFTRESET": DbNodeActionActionSoftreset, + "RESET": DbNodeActionActionReset, } // GetDbNodeActionActionEnumValues Enumerates the set of values for DbNodeActionAction func GetDbNodeActionActionEnumValues() []DbNodeActionActionEnum { - values := make([]DbNodeActionActionEnum, 0) - for _, v := range mappingDbNodeActionAction { - if v != DbNodeActionActionUnknown { - values = append(values, v) - } - } - return values + values := make([]DbNodeActionActionEnum, 0) + for _, v := range mappingDbNodeActionAction { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_node_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/db_node_summary.go index 1a3f0b6fd..47e4ea0dc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_node_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_node_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,85 +9,75 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DbNodeSummary A server where Oracle database software is running. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// DbNodeSummary A server where Oracle database software is running. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type DbNodeSummary struct { - - // The OCID of the DB System. - DbSystemId *string `mandatory:"true" json:"dbSystemId"` - - // The OCID of the DB Node. - Id *string `mandatory:"true" json:"id"` - - // The current state of the database node. - LifecycleState DbNodeSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time that the DB Node was created. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the VNIC. - VnicId *string `mandatory:"true" json:"vnicId"` - - // The OCID of the backup VNIC. - BackupVnicId *string `mandatory:"false" json:"backupVnicId"` - - // The host name for the DB Node. - Hostname *string `mandatory:"false" json:"hostname"` - - // Storage size, in GBs, of the software volume that is allocated to the DB system. This is applicable only for VM-based DBs. - SoftwareStorageSizeInGB *int `mandatory:"false" json:"softwareStorageSizeInGB"` + + // The OCID of the DB System. + DbSystemId *string `mandatory:"true" json:"dbSystemId"` + + // The OCID of the DB Node. + Id *string `mandatory:"true" json:"id"` + + // The current state of the database node. + LifecycleState DbNodeSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time that the DB Node was created. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the VNIC. + VnicId *string `mandatory:"true" json:"vnicId"` + + // The OCID of the backup VNIC. + BackupVnicId *string `mandatory:"false" json:"backupVnicId"` + + // The host name for the DB Node. + Hostname *string `mandatory:"false" json:"hostname"` + + // Storage size, in GBs, of the software volume that is allocated to the DB system. This is applicable only for VM-based DBs. + SoftwareStorageSizeInGB *int `mandatory:"false" json:"softwareStorageSizeInGB"` } func (m DbNodeSummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DbNodeSummaryLifecycleStateEnum Enum with underlying type: string type DbNodeSummaryLifecycleStateEnum string // Set of constants representing the allowable values for DbNodeSummaryLifecycleState const ( - DbNodeSummaryLifecycleStateProvisioning DbNodeSummaryLifecycleStateEnum = "PROVISIONING" - DbNodeSummaryLifecycleStateAvailable DbNodeSummaryLifecycleStateEnum = "AVAILABLE" - DbNodeSummaryLifecycleStateUpdating DbNodeSummaryLifecycleStateEnum = "UPDATING" - DbNodeSummaryLifecycleStateStopping DbNodeSummaryLifecycleStateEnum = "STOPPING" - DbNodeSummaryLifecycleStateStopped DbNodeSummaryLifecycleStateEnum = "STOPPED" - DbNodeSummaryLifecycleStateStarting DbNodeSummaryLifecycleStateEnum = "STARTING" - DbNodeSummaryLifecycleStateTerminating DbNodeSummaryLifecycleStateEnum = "TERMINATING" - DbNodeSummaryLifecycleStateTerminated DbNodeSummaryLifecycleStateEnum = "TERMINATED" - DbNodeSummaryLifecycleStateFailed DbNodeSummaryLifecycleStateEnum = "FAILED" - DbNodeSummaryLifecycleStateUnknown DbNodeSummaryLifecycleStateEnum = "UNKNOWN" + DbNodeSummaryLifecycleStateProvisioning DbNodeSummaryLifecycleStateEnum = "PROVISIONING" + DbNodeSummaryLifecycleStateAvailable DbNodeSummaryLifecycleStateEnum = "AVAILABLE" + DbNodeSummaryLifecycleStateUpdating DbNodeSummaryLifecycleStateEnum = "UPDATING" + DbNodeSummaryLifecycleStateStopping DbNodeSummaryLifecycleStateEnum = "STOPPING" + DbNodeSummaryLifecycleStateStopped DbNodeSummaryLifecycleStateEnum = "STOPPED" + DbNodeSummaryLifecycleStateStarting DbNodeSummaryLifecycleStateEnum = "STARTING" + DbNodeSummaryLifecycleStateTerminating DbNodeSummaryLifecycleStateEnum = "TERMINATING" + DbNodeSummaryLifecycleStateTerminated DbNodeSummaryLifecycleStateEnum = "TERMINATED" + DbNodeSummaryLifecycleStateFailed DbNodeSummaryLifecycleStateEnum = "FAILED" ) -var mappingDbNodeSummaryLifecycleState = map[string]DbNodeSummaryLifecycleStateEnum { - "PROVISIONING": DbNodeSummaryLifecycleStateProvisioning, - "AVAILABLE": DbNodeSummaryLifecycleStateAvailable, - "UPDATING": DbNodeSummaryLifecycleStateUpdating, - "STOPPING": DbNodeSummaryLifecycleStateStopping, - "STOPPED": DbNodeSummaryLifecycleStateStopped, - "STARTING": DbNodeSummaryLifecycleStateStarting, - "TERMINATING": DbNodeSummaryLifecycleStateTerminating, - "TERMINATED": DbNodeSummaryLifecycleStateTerminated, - "FAILED": DbNodeSummaryLifecycleStateFailed, - "UNKNOWN": DbNodeSummaryLifecycleStateUnknown, +var mappingDbNodeSummaryLifecycleState = map[string]DbNodeSummaryLifecycleStateEnum{ + "PROVISIONING": DbNodeSummaryLifecycleStateProvisioning, + "AVAILABLE": DbNodeSummaryLifecycleStateAvailable, + "UPDATING": DbNodeSummaryLifecycleStateUpdating, + "STOPPING": DbNodeSummaryLifecycleStateStopping, + "STOPPED": DbNodeSummaryLifecycleStateStopped, + "STARTING": DbNodeSummaryLifecycleStateStarting, + "TERMINATING": DbNodeSummaryLifecycleStateTerminating, + "TERMINATED": DbNodeSummaryLifecycleStateTerminated, + "FAILED": DbNodeSummaryLifecycleStateFailed, } // GetDbNodeSummaryLifecycleStateEnumValues Enumerates the set of values for DbNodeSummaryLifecycleState func GetDbNodeSummaryLifecycleStateEnumValues() []DbNodeSummaryLifecycleStateEnum { - values := make([]DbNodeSummaryLifecycleStateEnum, 0) - for _, v := range mappingDbNodeSummaryLifecycleState { - if v != DbNodeSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DbNodeSummaryLifecycleStateEnum, 0) + for _, v := range mappingDbNodeSummaryLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_system.go b/vendor/github.com/oracle/oci-go-sdk/database/db_system.go index a692b4c63..04085ad17 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_system.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_system.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,247 +9,228 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DbSystem The Database Service supports several types of DB Systems, ranging in size, price, and performance. For details about each type of system, see: - // - [Exadata DB Systems]({{DOC_SERVER_URL}}/Content/Database/Concepts/exaoverview.htm) - // - [Bare Metal or VM DB Systems]({{DOC_SERVER_URL}}/Content/Database/Concepts/overview.htm) - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). - // - // For information about access control and compartments, see - // [Overview of the Identity Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // For information about Availability Domains, see - // [Regions and Availability Domains]({{DOC_SERVER_URL}}/Content/General/Concepts/regions.htm). - // To get a list of Availability Domains, use the `ListAvailabilityDomains` operation - // in the Identity Service API. +// DbSystem The Database Service supports several types of DB Systems, ranging in size, price, and performance. For details about each type of system, see: +// - Exadata DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/exaoverview.htm) +// - Bare Metal or VM DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm) +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// +// For information about access control and compartments, see +// Overview of the Identity Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// For information about Availability Domains, see +// Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). +// To get a list of Availability Domains, use the `ListAvailabilityDomains` operation +// in the Identity Service API. type DbSystem struct { - - // The name of the Availability Domain that the DB System is located in. - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The number of CPU cores enabled on the DB System. - CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` - - // The Oracle Database Edition that applies to all the databases on the DB System. - DatabaseEdition DbSystemDatabaseEditionEnum `mandatory:"true" json:"databaseEdition"` - - // The user-friendly name for the DB System. It does not have to be unique. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The domain name for the DB System. - Domain *string `mandatory:"true" json:"domain"` - - // The host name for the DB Node. - Hostname *string `mandatory:"true" json:"hostname"` - - // The OCID of the DB System. - Id *string `mandatory:"true" json:"id"` - - // The current state of the DB System. - LifecycleState DbSystemLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The shape of the DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. - Shape *string `mandatory:"true" json:"shape"` - - // The public key portion of one or more key pairs used for SSH access to the DB System. - SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` - - // The OCID of the subnet the DB System is associated with. - // **Subnet Restrictions:** - // - For single node and 2-node (RAC) DB Systems, do not use a subnet that overlaps with 192.168.16.16/28 - // - For Exadata and VM-based RAC DB Systems, do not use a subnet that overlaps with 192.168.128.0/20 - // These subnets are used by the Oracle Clusterware private interconnect on the database instance. - // Specifying an overlapping subnet will cause the private interconnect to malfunction. - // This restriction applies to both the client subnet and backup subnet. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The OCID of the backup network subnet the DB System is associated with. Applicable only to Exadata. - // **Subnet Restriction:** See above subnetId's 'Subnet Restriction'. - // to malfunction. - BackupSubnetId *string `mandatory:"false" json:"backupSubnetId"` - - // Cluster name for Exadata and 2-node RAC DB Systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. - ClusterName *string `mandatory:"false" json:"clusterName"` - - // The percentage assigned to DATA storage (user data and database files). - // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 40 and 80. - DataStoragePercentage *int `mandatory:"false" json:"dataStoragePercentage"` - - // Data storage size, in GBs, that is currently available to the DB system. This is applicable only for VM-based DBs. - DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"` - - // The type of redundancy configured for the DB System. - // Normal is 2-way redundancy. - // High is 3-way redundancy. - DiskRedundancy DbSystemDiskRedundancyEnum `mandatory:"false" json:"diskRedundancy,omitempty"` - - // The OCID of the last patch history. This is updated as soon as a patch operation is started. - LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` - - // The Oracle license model that applies to all the databases on the DB System. The default is LICENSE_INCLUDED. - LicenseModel DbSystemLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - - // Additional information about the current lifecycleState. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The port number configured for the listener on the DB System. - ListenerPort *int `mandatory:"false" json:"listenerPort"` - - // Number of nodes in this DB system. For RAC DBs, this will be greater than 1. - NodeCount *int `mandatory:"false" json:"nodeCount"` - - // RECO/REDO storage size, in GBs, that is currently allocated to the DB system. This is applicable only for VM-based DBs. - RecoStorageSizeInGB *int `mandatory:"false" json:"recoStorageSizeInGB"` - - // The OCID of the DNS record for the SCAN IP addresses that are associated with the DB System. - ScanDnsRecordId *string `mandatory:"false" json:"scanDnsRecordId"` - - // The OCID of the Single Client Access Name (SCAN) IP addresses associated with the DB System. - // SCAN IP addresses are typically used for load balancing and are not assigned to any interface. - // Clusterware directs the requests to the appropriate nodes in the cluster. - // - For a single-node DB System, this list is empty. - ScanIpIds []string `mandatory:"false" json:"scanIpIds"` - - // The date and time the DB System was created. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The version of the DB System. - Version *string `mandatory:"false" json:"version"` - - // The OCID of the virtual IP (VIP) addresses associated with the DB System. - // The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB System to - // enable failover. If one node fails, the VIP is reassigned to another active node in the cluster. - // - For a single-node DB System, this list is empty. - VipIds []string `mandatory:"false" json:"vipIds"` + + // The name of the Availability Domain that the DB System is located in. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The number of CPU cores enabled on the DB System. + CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` + + // The Oracle Database Edition that applies to all the databases on the DB System. + DatabaseEdition DbSystemDatabaseEditionEnum `mandatory:"true" json:"databaseEdition"` + + // The user-friendly name for the DB System. It does not have to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The domain name for the DB System. + Domain *string `mandatory:"true" json:"domain"` + + // The host name for the DB Node. + Hostname *string `mandatory:"true" json:"hostname"` + + // The OCID of the DB System. + Id *string `mandatory:"true" json:"id"` + + // The current state of the DB System. + LifecycleState DbSystemLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The shape of the DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. + Shape *string `mandatory:"true" json:"shape"` + + // The public key portion of one or more key pairs used for SSH access to the DB System. + SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` + + // The OCID of the subnet the DB System is associated with. + // **Subnet Restrictions:** + // - For single node and 2-node (RAC) DB Systems, do not use a subnet that overlaps with 192.168.16.16/28 + // - For Exadata and VM-based RAC DB Systems, do not use a subnet that overlaps with 192.168.128.0/20 + // These subnets are used by the Oracle Clusterware private interconnect on the database instance. + // Specifying an overlapping subnet will cause the private interconnect to malfunction. + // This restriction applies to both the client subnet and backup subnet. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The OCID of the backup network subnet the DB System is associated with. Applicable only to Exadata. + // **Subnet Restriction:** See above subnetId's 'Subnet Restriction'. + // to malfunction. + BackupSubnetId *string `mandatory:"false" json:"backupSubnetId"` + + // Cluster name for Exadata and 2-node RAC DB Systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. + ClusterName *string `mandatory:"false" json:"clusterName"` + + // The percentage assigned to DATA storage (user data and database files). + // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 40 and 80. + DataStoragePercentage *int `mandatory:"false" json:"dataStoragePercentage"` + + // Data storage size, in GBs, that is currently available to the DB system. This is applicable only for VM-based DBs. + DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"` + + // The type of redundancy configured for the DB System. + // Normal is 2-way redundancy. + // High is 3-way redundancy. + DiskRedundancy DbSystemDiskRedundancyEnum `mandatory:"false" json:"diskRedundancy,omitempty"` + + // The OCID of the last patch history. This is updated as soon as a patch operation is started. + LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` + + // The Oracle license model that applies to all the databases on the DB System. The default is LICENSE_INCLUDED. + LicenseModel DbSystemLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` + + // Additional information about the current lifecycleState. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The port number configured for the listener on the DB System. + ListenerPort *int `mandatory:"false" json:"listenerPort"` + + // Number of nodes in this DB system. For RAC DBs, this will be greater than 1. + NodeCount *int `mandatory:"false" json:"nodeCount"` + + // RECO/REDO storage size, in GBs, that is currently allocated to the DB system. This is applicable only for VM-based DBs. + RecoStorageSizeInGB *int `mandatory:"false" json:"recoStorageSizeInGB"` + + // The OCID of the DNS record for the SCAN IP addresses that are associated with the DB System. + ScanDnsRecordId *string `mandatory:"false" json:"scanDnsRecordId"` + + // The OCID of the Single Client Access Name (SCAN) IP addresses associated with the DB System. + // SCAN IP addresses are typically used for load balancing and are not assigned to any interface. + // Clusterware directs the requests to the appropriate nodes in the cluster. + // - For a single-node DB System, this list is empty. + ScanIpIds []string `mandatory:"false" json:"scanIpIds"` + + // The date and time the DB System was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The version of the DB System. + Version *string `mandatory:"false" json:"version"` + + // The OCID of the virtual IP (VIP) addresses associated with the DB System. + // The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB System to + // enable failover. If one node fails, the VIP is reassigned to another active node in the cluster. + // - For a single-node DB System, this list is empty. + VipIds []string `mandatory:"false" json:"vipIds"` } func (m DbSystem) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DbSystemDatabaseEditionEnum Enum with underlying type: string type DbSystemDatabaseEditionEnum string // Set of constants representing the allowable values for DbSystemDatabaseEdition const ( - DbSystemDatabaseEditionStandardEdition DbSystemDatabaseEditionEnum = "STANDARD_EDITION" - DbSystemDatabaseEditionEnterpriseEdition DbSystemDatabaseEditionEnum = "ENTERPRISE_EDITION" - DbSystemDatabaseEditionEnterpriseEditionExtremePerformance DbSystemDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" - DbSystemDatabaseEditionEnterpriseEditionHighPerformance DbSystemDatabaseEditionEnum = "ENTERPRISE_EDITION_HIGH_PERFORMANCE" - DbSystemDatabaseEditionUnknown DbSystemDatabaseEditionEnum = "UNKNOWN" + DbSystemDatabaseEditionStandardEdition DbSystemDatabaseEditionEnum = "STANDARD_EDITION" + DbSystemDatabaseEditionEnterpriseEdition DbSystemDatabaseEditionEnum = "ENTERPRISE_EDITION" + DbSystemDatabaseEditionEnterpriseEditionExtremePerformance DbSystemDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" + DbSystemDatabaseEditionEnterpriseEditionHighPerformance DbSystemDatabaseEditionEnum = "ENTERPRISE_EDITION_HIGH_PERFORMANCE" ) -var mappingDbSystemDatabaseEdition = map[string]DbSystemDatabaseEditionEnum { - "STANDARD_EDITION": DbSystemDatabaseEditionStandardEdition, - "ENTERPRISE_EDITION": DbSystemDatabaseEditionEnterpriseEdition, - "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": DbSystemDatabaseEditionEnterpriseEditionExtremePerformance, - "ENTERPRISE_EDITION_HIGH_PERFORMANCE": DbSystemDatabaseEditionEnterpriseEditionHighPerformance, - "UNKNOWN": DbSystemDatabaseEditionUnknown, +var mappingDbSystemDatabaseEdition = map[string]DbSystemDatabaseEditionEnum{ + "STANDARD_EDITION": DbSystemDatabaseEditionStandardEdition, + "ENTERPRISE_EDITION": DbSystemDatabaseEditionEnterpriseEdition, + "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": DbSystemDatabaseEditionEnterpriseEditionExtremePerformance, + "ENTERPRISE_EDITION_HIGH_PERFORMANCE": DbSystemDatabaseEditionEnterpriseEditionHighPerformance, } // GetDbSystemDatabaseEditionEnumValues Enumerates the set of values for DbSystemDatabaseEdition func GetDbSystemDatabaseEditionEnumValues() []DbSystemDatabaseEditionEnum { - values := make([]DbSystemDatabaseEditionEnum, 0) - for _, v := range mappingDbSystemDatabaseEdition { - if v != DbSystemDatabaseEditionUnknown { - values = append(values, v) - } - } - return values + values := make([]DbSystemDatabaseEditionEnum, 0) + for _, v := range mappingDbSystemDatabaseEdition { + values = append(values, v) + } + return values } + // DbSystemDiskRedundancyEnum Enum with underlying type: string type DbSystemDiskRedundancyEnum string // Set of constants representing the allowable values for DbSystemDiskRedundancy const ( - DbSystemDiskRedundancyHigh DbSystemDiskRedundancyEnum = "HIGH" - DbSystemDiskRedundancyNormal DbSystemDiskRedundancyEnum = "NORMAL" - DbSystemDiskRedundancyUnknown DbSystemDiskRedundancyEnum = "UNKNOWN" + DbSystemDiskRedundancyHigh DbSystemDiskRedundancyEnum = "HIGH" + DbSystemDiskRedundancyNormal DbSystemDiskRedundancyEnum = "NORMAL" ) -var mappingDbSystemDiskRedundancy = map[string]DbSystemDiskRedundancyEnum { - "HIGH": DbSystemDiskRedundancyHigh, - "NORMAL": DbSystemDiskRedundancyNormal, - "UNKNOWN": DbSystemDiskRedundancyUnknown, +var mappingDbSystemDiskRedundancy = map[string]DbSystemDiskRedundancyEnum{ + "HIGH": DbSystemDiskRedundancyHigh, + "NORMAL": DbSystemDiskRedundancyNormal, } // GetDbSystemDiskRedundancyEnumValues Enumerates the set of values for DbSystemDiskRedundancy func GetDbSystemDiskRedundancyEnumValues() []DbSystemDiskRedundancyEnum { - values := make([]DbSystemDiskRedundancyEnum, 0) - for _, v := range mappingDbSystemDiskRedundancy { - if v != DbSystemDiskRedundancyUnknown { - values = append(values, v) - } - } - return values + values := make([]DbSystemDiskRedundancyEnum, 0) + for _, v := range mappingDbSystemDiskRedundancy { + values = append(values, v) + } + return values } + // DbSystemLicenseModelEnum Enum with underlying type: string type DbSystemLicenseModelEnum string // Set of constants representing the allowable values for DbSystemLicenseModel const ( - DbSystemLicenseModelLicenseIncluded DbSystemLicenseModelEnum = "LICENSE_INCLUDED" - DbSystemLicenseModelBringYourOwnLicense DbSystemLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" - DbSystemLicenseModelUnknown DbSystemLicenseModelEnum = "UNKNOWN" + DbSystemLicenseModelLicenseIncluded DbSystemLicenseModelEnum = "LICENSE_INCLUDED" + DbSystemLicenseModelBringYourOwnLicense DbSystemLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" ) -var mappingDbSystemLicenseModel = map[string]DbSystemLicenseModelEnum { - "LICENSE_INCLUDED": DbSystemLicenseModelLicenseIncluded, - "BRING_YOUR_OWN_LICENSE": DbSystemLicenseModelBringYourOwnLicense, - "UNKNOWN": DbSystemLicenseModelUnknown, +var mappingDbSystemLicenseModel = map[string]DbSystemLicenseModelEnum{ + "LICENSE_INCLUDED": DbSystemLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": DbSystemLicenseModelBringYourOwnLicense, } // GetDbSystemLicenseModelEnumValues Enumerates the set of values for DbSystemLicenseModel func GetDbSystemLicenseModelEnumValues() []DbSystemLicenseModelEnum { - values := make([]DbSystemLicenseModelEnum, 0) - for _, v := range mappingDbSystemLicenseModel { - if v != DbSystemLicenseModelUnknown { - values = append(values, v) - } - } - return values + values := make([]DbSystemLicenseModelEnum, 0) + for _, v := range mappingDbSystemLicenseModel { + values = append(values, v) + } + return values } + // DbSystemLifecycleStateEnum Enum with underlying type: string type DbSystemLifecycleStateEnum string // Set of constants representing the allowable values for DbSystemLifecycleState const ( - DbSystemLifecycleStateProvisioning DbSystemLifecycleStateEnum = "PROVISIONING" - DbSystemLifecycleStateAvailable DbSystemLifecycleStateEnum = "AVAILABLE" - DbSystemLifecycleStateUpdating DbSystemLifecycleStateEnum = "UPDATING" - DbSystemLifecycleStateTerminating DbSystemLifecycleStateEnum = "TERMINATING" - DbSystemLifecycleStateTerminated DbSystemLifecycleStateEnum = "TERMINATED" - DbSystemLifecycleStateFailed DbSystemLifecycleStateEnum = "FAILED" - DbSystemLifecycleStateUnknown DbSystemLifecycleStateEnum = "UNKNOWN" + DbSystemLifecycleStateProvisioning DbSystemLifecycleStateEnum = "PROVISIONING" + DbSystemLifecycleStateAvailable DbSystemLifecycleStateEnum = "AVAILABLE" + DbSystemLifecycleStateUpdating DbSystemLifecycleStateEnum = "UPDATING" + DbSystemLifecycleStateTerminating DbSystemLifecycleStateEnum = "TERMINATING" + DbSystemLifecycleStateTerminated DbSystemLifecycleStateEnum = "TERMINATED" + DbSystemLifecycleStateFailed DbSystemLifecycleStateEnum = "FAILED" ) -var mappingDbSystemLifecycleState = map[string]DbSystemLifecycleStateEnum { - "PROVISIONING": DbSystemLifecycleStateProvisioning, - "AVAILABLE": DbSystemLifecycleStateAvailable, - "UPDATING": DbSystemLifecycleStateUpdating, - "TERMINATING": DbSystemLifecycleStateTerminating, - "TERMINATED": DbSystemLifecycleStateTerminated, - "FAILED": DbSystemLifecycleStateFailed, - "UNKNOWN": DbSystemLifecycleStateUnknown, +var mappingDbSystemLifecycleState = map[string]DbSystemLifecycleStateEnum{ + "PROVISIONING": DbSystemLifecycleStateProvisioning, + "AVAILABLE": DbSystemLifecycleStateAvailable, + "UPDATING": DbSystemLifecycleStateUpdating, + "TERMINATING": DbSystemLifecycleStateTerminating, + "TERMINATED": DbSystemLifecycleStateTerminated, + "FAILED": DbSystemLifecycleStateFailed, } // GetDbSystemLifecycleStateEnumValues Enumerates the set of values for DbSystemLifecycleState func GetDbSystemLifecycleStateEnumValues() []DbSystemLifecycleStateEnum { - values := make([]DbSystemLifecycleStateEnum, 0) - for _, v := range mappingDbSystemLifecycleState { - if v != DbSystemLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DbSystemLifecycleStateEnum, 0) + for _, v := range mappingDbSystemLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_system_shape_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/db_system_shape_summary.go index 85f593780..831411c16 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_system_shape_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_system_shape_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,33 +9,26 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DbSystemShapeSummary The shape of the DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. - // For a description of shapes, see [DB System Launch Options]({{DOC_SERVER_URL}}/Content/Database/References/launchoptions.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. - // If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// DbSystemShapeSummary The shape of the DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. +// For a description of shapes, see DB System Launch Options (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/References/launchoptions.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. +// If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type DbSystemShapeSummary struct { - - // The maximum number of CPU cores that can be enabled on the DB System. - AvailableCoreCount *int `mandatory:"true" json:"availableCoreCount"` - - // The name of the shape used for the DB System. - Name *string `mandatory:"true" json:"name"` - - // Deprecated. Use `name` instead of `shape`. - Shape *string `mandatory:"false" json:"shape"` -} - -func (m DbSystemShapeSummary) String() string { - return common.PointerString(m) -} - + // The maximum number of CPU cores that can be enabled on the DB System. + AvailableCoreCount *int `mandatory:"true" json:"availableCoreCount"` + // The name of the shape used for the DB System. + Name *string `mandatory:"true" json:"name"` + // Deprecated. Use `name` instead of `shape`. + Shape *string `mandatory:"false" json:"shape"` +} +func (m DbSystemShapeSummary) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_system_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/db_system_summary.go index 49a6d7c55..7f8ba31a3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_system_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_system_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,247 +9,228 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DbSystemSummary The Database Service supports several types of DB Systems, ranging in size, price, and performance. For details about each type of system, see: - // - [Exadata DB Systems]({{DOC_SERVER_URL}}/Content/Database/Concepts/exaoverview.htm) - // - [Bare Metal or VM DB Systems]({{DOC_SERVER_URL}}/Content/Database/Concepts/overview.htm) - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). - // - // For information about access control and compartments, see - // [Overview of the Identity Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // For information about Availability Domains, see - // [Regions and Availability Domains]({{DOC_SERVER_URL}}/Content/General/Concepts/regions.htm). - // To get a list of Availability Domains, use the `ListAvailabilityDomains` operation - // in the Identity Service API. +// DbSystemSummary The Database Service supports several types of DB Systems, ranging in size, price, and performance. For details about each type of system, see: +// - Exadata DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/exaoverview.htm) +// - Bare Metal or VM DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm) +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// +// For information about access control and compartments, see +// Overview of the Identity Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// For information about Availability Domains, see +// Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). +// To get a list of Availability Domains, use the `ListAvailabilityDomains` operation +// in the Identity Service API. type DbSystemSummary struct { - - // The name of the Availability Domain that the DB System is located in. - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The number of CPU cores enabled on the DB System. - CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` - - // The Oracle Database Edition that applies to all the databases on the DB System. - DatabaseEdition DbSystemSummaryDatabaseEditionEnum `mandatory:"true" json:"databaseEdition"` - - // The user-friendly name for the DB System. It does not have to be unique. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The domain name for the DB System. - Domain *string `mandatory:"true" json:"domain"` - - // The host name for the DB Node. - Hostname *string `mandatory:"true" json:"hostname"` - - // The OCID of the DB System. - Id *string `mandatory:"true" json:"id"` - - // The current state of the DB System. - LifecycleState DbSystemSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The shape of the DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. - Shape *string `mandatory:"true" json:"shape"` - - // The public key portion of one or more key pairs used for SSH access to the DB System. - SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` - - // The OCID of the subnet the DB System is associated with. - // **Subnet Restrictions:** - // - For single node and 2-node (RAC) DB Systems, do not use a subnet that overlaps with 192.168.16.16/28 - // - For Exadata and VM-based RAC DB Systems, do not use a subnet that overlaps with 192.168.128.0/20 - // These subnets are used by the Oracle Clusterware private interconnect on the database instance. - // Specifying an overlapping subnet will cause the private interconnect to malfunction. - // This restriction applies to both the client subnet and backup subnet. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The OCID of the backup network subnet the DB System is associated with. Applicable only to Exadata. - // **Subnet Restriction:** See above subnetId's 'Subnet Restriction'. - // to malfunction. - BackupSubnetId *string `mandatory:"false" json:"backupSubnetId"` - - // Cluster name for Exadata and 2-node RAC DB Systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. - ClusterName *string `mandatory:"false" json:"clusterName"` - - // The percentage assigned to DATA storage (user data and database files). - // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 40 and 80. - DataStoragePercentage *int `mandatory:"false" json:"dataStoragePercentage"` - - // Data storage size, in GBs, that is currently available to the DB system. This is applicable only for VM-based DBs. - DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"` - - // The type of redundancy configured for the DB System. - // Normal is 2-way redundancy. - // High is 3-way redundancy. - DiskRedundancy DbSystemSummaryDiskRedundancyEnum `mandatory:"false" json:"diskRedundancy,omitempty"` - - // The OCID of the last patch history. This is updated as soon as a patch operation is started. - LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` - - // The Oracle license model that applies to all the databases on the DB System. The default is LICENSE_INCLUDED. - LicenseModel DbSystemSummaryLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - - // Additional information about the current lifecycleState. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The port number configured for the listener on the DB System. - ListenerPort *int `mandatory:"false" json:"listenerPort"` - - // Number of nodes in this DB system. For RAC DBs, this will be greater than 1. - NodeCount *int `mandatory:"false" json:"nodeCount"` - - // RECO/REDO storage size, in GBs, that is currently allocated to the DB system. This is applicable only for VM-based DBs. - RecoStorageSizeInGB *int `mandatory:"false" json:"recoStorageSizeInGB"` - - // The OCID of the DNS record for the SCAN IP addresses that are associated with the DB System. - ScanDnsRecordId *string `mandatory:"false" json:"scanDnsRecordId"` - - // The OCID of the Single Client Access Name (SCAN) IP addresses associated with the DB System. - // SCAN IP addresses are typically used for load balancing and are not assigned to any interface. - // Clusterware directs the requests to the appropriate nodes in the cluster. - // - For a single-node DB System, this list is empty. - ScanIpIds []string `mandatory:"false" json:"scanIpIds"` - - // The date and time the DB System was created. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The version of the DB System. - Version *string `mandatory:"false" json:"version"` - - // The OCID of the virtual IP (VIP) addresses associated with the DB System. - // The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB System to - // enable failover. If one node fails, the VIP is reassigned to another active node in the cluster. - // - For a single-node DB System, this list is empty. - VipIds []string `mandatory:"false" json:"vipIds"` + + // The name of the Availability Domain that the DB System is located in. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The number of CPU cores enabled on the DB System. + CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` + + // The Oracle Database Edition that applies to all the databases on the DB System. + DatabaseEdition DbSystemSummaryDatabaseEditionEnum `mandatory:"true" json:"databaseEdition"` + + // The user-friendly name for the DB System. It does not have to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The domain name for the DB System. + Domain *string `mandatory:"true" json:"domain"` + + // The host name for the DB Node. + Hostname *string `mandatory:"true" json:"hostname"` + + // The OCID of the DB System. + Id *string `mandatory:"true" json:"id"` + + // The current state of the DB System. + LifecycleState DbSystemSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The shape of the DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. + Shape *string `mandatory:"true" json:"shape"` + + // The public key portion of one or more key pairs used for SSH access to the DB System. + SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` + + // The OCID of the subnet the DB System is associated with. + // **Subnet Restrictions:** + // - For single node and 2-node (RAC) DB Systems, do not use a subnet that overlaps with 192.168.16.16/28 + // - For Exadata and VM-based RAC DB Systems, do not use a subnet that overlaps with 192.168.128.0/20 + // These subnets are used by the Oracle Clusterware private interconnect on the database instance. + // Specifying an overlapping subnet will cause the private interconnect to malfunction. + // This restriction applies to both the client subnet and backup subnet. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The OCID of the backup network subnet the DB System is associated with. Applicable only to Exadata. + // **Subnet Restriction:** See above subnetId's 'Subnet Restriction'. + // to malfunction. + BackupSubnetId *string `mandatory:"false" json:"backupSubnetId"` + + // Cluster name for Exadata and 2-node RAC DB Systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. + ClusterName *string `mandatory:"false" json:"clusterName"` + + // The percentage assigned to DATA storage (user data and database files). + // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 40 and 80. + DataStoragePercentage *int `mandatory:"false" json:"dataStoragePercentage"` + + // Data storage size, in GBs, that is currently available to the DB system. This is applicable only for VM-based DBs. + DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"` + + // The type of redundancy configured for the DB System. + // Normal is 2-way redundancy. + // High is 3-way redundancy. + DiskRedundancy DbSystemSummaryDiskRedundancyEnum `mandatory:"false" json:"diskRedundancy,omitempty"` + + // The OCID of the last patch history. This is updated as soon as a patch operation is started. + LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` + + // The Oracle license model that applies to all the databases on the DB System. The default is LICENSE_INCLUDED. + LicenseModel DbSystemSummaryLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` + + // Additional information about the current lifecycleState. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The port number configured for the listener on the DB System. + ListenerPort *int `mandatory:"false" json:"listenerPort"` + + // Number of nodes in this DB system. For RAC DBs, this will be greater than 1. + NodeCount *int `mandatory:"false" json:"nodeCount"` + + // RECO/REDO storage size, in GBs, that is currently allocated to the DB system. This is applicable only for VM-based DBs. + RecoStorageSizeInGB *int `mandatory:"false" json:"recoStorageSizeInGB"` + + // The OCID of the DNS record for the SCAN IP addresses that are associated with the DB System. + ScanDnsRecordId *string `mandatory:"false" json:"scanDnsRecordId"` + + // The OCID of the Single Client Access Name (SCAN) IP addresses associated with the DB System. + // SCAN IP addresses are typically used for load balancing and are not assigned to any interface. + // Clusterware directs the requests to the appropriate nodes in the cluster. + // - For a single-node DB System, this list is empty. + ScanIpIds []string `mandatory:"false" json:"scanIpIds"` + + // The date and time the DB System was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The version of the DB System. + Version *string `mandatory:"false" json:"version"` + + // The OCID of the virtual IP (VIP) addresses associated with the DB System. + // The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB System to + // enable failover. If one node fails, the VIP is reassigned to another active node in the cluster. + // - For a single-node DB System, this list is empty. + VipIds []string `mandatory:"false" json:"vipIds"` } func (m DbSystemSummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // DbSystemSummaryDatabaseEditionEnum Enum with underlying type: string type DbSystemSummaryDatabaseEditionEnum string // Set of constants representing the allowable values for DbSystemSummaryDatabaseEdition const ( - DbSystemSummaryDatabaseEditionStandardEdition DbSystemSummaryDatabaseEditionEnum = "STANDARD_EDITION" - DbSystemSummaryDatabaseEditionEnterpriseEdition DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION" - DbSystemSummaryDatabaseEditionEnterpriseEditionExtremePerformance DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" - DbSystemSummaryDatabaseEditionEnterpriseEditionHighPerformance DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION_HIGH_PERFORMANCE" - DbSystemSummaryDatabaseEditionUnknown DbSystemSummaryDatabaseEditionEnum = "UNKNOWN" + DbSystemSummaryDatabaseEditionStandardEdition DbSystemSummaryDatabaseEditionEnum = "STANDARD_EDITION" + DbSystemSummaryDatabaseEditionEnterpriseEdition DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION" + DbSystemSummaryDatabaseEditionEnterpriseEditionExtremePerformance DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" + DbSystemSummaryDatabaseEditionEnterpriseEditionHighPerformance DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION_HIGH_PERFORMANCE" ) -var mappingDbSystemSummaryDatabaseEdition = map[string]DbSystemSummaryDatabaseEditionEnum { - "STANDARD_EDITION": DbSystemSummaryDatabaseEditionStandardEdition, - "ENTERPRISE_EDITION": DbSystemSummaryDatabaseEditionEnterpriseEdition, - "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": DbSystemSummaryDatabaseEditionEnterpriseEditionExtremePerformance, - "ENTERPRISE_EDITION_HIGH_PERFORMANCE": DbSystemSummaryDatabaseEditionEnterpriseEditionHighPerformance, - "UNKNOWN": DbSystemSummaryDatabaseEditionUnknown, +var mappingDbSystemSummaryDatabaseEdition = map[string]DbSystemSummaryDatabaseEditionEnum{ + "STANDARD_EDITION": DbSystemSummaryDatabaseEditionStandardEdition, + "ENTERPRISE_EDITION": DbSystemSummaryDatabaseEditionEnterpriseEdition, + "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": DbSystemSummaryDatabaseEditionEnterpriseEditionExtremePerformance, + "ENTERPRISE_EDITION_HIGH_PERFORMANCE": DbSystemSummaryDatabaseEditionEnterpriseEditionHighPerformance, } // GetDbSystemSummaryDatabaseEditionEnumValues Enumerates the set of values for DbSystemSummaryDatabaseEdition func GetDbSystemSummaryDatabaseEditionEnumValues() []DbSystemSummaryDatabaseEditionEnum { - values := make([]DbSystemSummaryDatabaseEditionEnum, 0) - for _, v := range mappingDbSystemSummaryDatabaseEdition { - if v != DbSystemSummaryDatabaseEditionUnknown { - values = append(values, v) - } - } - return values + values := make([]DbSystemSummaryDatabaseEditionEnum, 0) + for _, v := range mappingDbSystemSummaryDatabaseEdition { + values = append(values, v) + } + return values } + // DbSystemSummaryDiskRedundancyEnum Enum with underlying type: string type DbSystemSummaryDiskRedundancyEnum string // Set of constants representing the allowable values for DbSystemSummaryDiskRedundancy const ( - DbSystemSummaryDiskRedundancyHigh DbSystemSummaryDiskRedundancyEnum = "HIGH" - DbSystemSummaryDiskRedundancyNormal DbSystemSummaryDiskRedundancyEnum = "NORMAL" - DbSystemSummaryDiskRedundancyUnknown DbSystemSummaryDiskRedundancyEnum = "UNKNOWN" + DbSystemSummaryDiskRedundancyHigh DbSystemSummaryDiskRedundancyEnum = "HIGH" + DbSystemSummaryDiskRedundancyNormal DbSystemSummaryDiskRedundancyEnum = "NORMAL" ) -var mappingDbSystemSummaryDiskRedundancy = map[string]DbSystemSummaryDiskRedundancyEnum { - "HIGH": DbSystemSummaryDiskRedundancyHigh, - "NORMAL": DbSystemSummaryDiskRedundancyNormal, - "UNKNOWN": DbSystemSummaryDiskRedundancyUnknown, +var mappingDbSystemSummaryDiskRedundancy = map[string]DbSystemSummaryDiskRedundancyEnum{ + "HIGH": DbSystemSummaryDiskRedundancyHigh, + "NORMAL": DbSystemSummaryDiskRedundancyNormal, } // GetDbSystemSummaryDiskRedundancyEnumValues Enumerates the set of values for DbSystemSummaryDiskRedundancy func GetDbSystemSummaryDiskRedundancyEnumValues() []DbSystemSummaryDiskRedundancyEnum { - values := make([]DbSystemSummaryDiskRedundancyEnum, 0) - for _, v := range mappingDbSystemSummaryDiskRedundancy { - if v != DbSystemSummaryDiskRedundancyUnknown { - values = append(values, v) - } - } - return values + values := make([]DbSystemSummaryDiskRedundancyEnum, 0) + for _, v := range mappingDbSystemSummaryDiskRedundancy { + values = append(values, v) + } + return values } + // DbSystemSummaryLicenseModelEnum Enum with underlying type: string type DbSystemSummaryLicenseModelEnum string // Set of constants representing the allowable values for DbSystemSummaryLicenseModel const ( - DbSystemSummaryLicenseModelLicenseIncluded DbSystemSummaryLicenseModelEnum = "LICENSE_INCLUDED" - DbSystemSummaryLicenseModelBringYourOwnLicense DbSystemSummaryLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" - DbSystemSummaryLicenseModelUnknown DbSystemSummaryLicenseModelEnum = "UNKNOWN" + DbSystemSummaryLicenseModelLicenseIncluded DbSystemSummaryLicenseModelEnum = "LICENSE_INCLUDED" + DbSystemSummaryLicenseModelBringYourOwnLicense DbSystemSummaryLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" ) -var mappingDbSystemSummaryLicenseModel = map[string]DbSystemSummaryLicenseModelEnum { - "LICENSE_INCLUDED": DbSystemSummaryLicenseModelLicenseIncluded, - "BRING_YOUR_OWN_LICENSE": DbSystemSummaryLicenseModelBringYourOwnLicense, - "UNKNOWN": DbSystemSummaryLicenseModelUnknown, +var mappingDbSystemSummaryLicenseModel = map[string]DbSystemSummaryLicenseModelEnum{ + "LICENSE_INCLUDED": DbSystemSummaryLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": DbSystemSummaryLicenseModelBringYourOwnLicense, } // GetDbSystemSummaryLicenseModelEnumValues Enumerates the set of values for DbSystemSummaryLicenseModel func GetDbSystemSummaryLicenseModelEnumValues() []DbSystemSummaryLicenseModelEnum { - values := make([]DbSystemSummaryLicenseModelEnum, 0) - for _, v := range mappingDbSystemSummaryLicenseModel { - if v != DbSystemSummaryLicenseModelUnknown { - values = append(values, v) - } - } - return values + values := make([]DbSystemSummaryLicenseModelEnum, 0) + for _, v := range mappingDbSystemSummaryLicenseModel { + values = append(values, v) + } + return values } + // DbSystemSummaryLifecycleStateEnum Enum with underlying type: string type DbSystemSummaryLifecycleStateEnum string // Set of constants representing the allowable values for DbSystemSummaryLifecycleState const ( - DbSystemSummaryLifecycleStateProvisioning DbSystemSummaryLifecycleStateEnum = "PROVISIONING" - DbSystemSummaryLifecycleStateAvailable DbSystemSummaryLifecycleStateEnum = "AVAILABLE" - DbSystemSummaryLifecycleStateUpdating DbSystemSummaryLifecycleStateEnum = "UPDATING" - DbSystemSummaryLifecycleStateTerminating DbSystemSummaryLifecycleStateEnum = "TERMINATING" - DbSystemSummaryLifecycleStateTerminated DbSystemSummaryLifecycleStateEnum = "TERMINATED" - DbSystemSummaryLifecycleStateFailed DbSystemSummaryLifecycleStateEnum = "FAILED" - DbSystemSummaryLifecycleStateUnknown DbSystemSummaryLifecycleStateEnum = "UNKNOWN" + DbSystemSummaryLifecycleStateProvisioning DbSystemSummaryLifecycleStateEnum = "PROVISIONING" + DbSystemSummaryLifecycleStateAvailable DbSystemSummaryLifecycleStateEnum = "AVAILABLE" + DbSystemSummaryLifecycleStateUpdating DbSystemSummaryLifecycleStateEnum = "UPDATING" + DbSystemSummaryLifecycleStateTerminating DbSystemSummaryLifecycleStateEnum = "TERMINATING" + DbSystemSummaryLifecycleStateTerminated DbSystemSummaryLifecycleStateEnum = "TERMINATED" + DbSystemSummaryLifecycleStateFailed DbSystemSummaryLifecycleStateEnum = "FAILED" ) -var mappingDbSystemSummaryLifecycleState = map[string]DbSystemSummaryLifecycleStateEnum { - "PROVISIONING": DbSystemSummaryLifecycleStateProvisioning, - "AVAILABLE": DbSystemSummaryLifecycleStateAvailable, - "UPDATING": DbSystemSummaryLifecycleStateUpdating, - "TERMINATING": DbSystemSummaryLifecycleStateTerminating, - "TERMINATED": DbSystemSummaryLifecycleStateTerminated, - "FAILED": DbSystemSummaryLifecycleStateFailed, - "UNKNOWN": DbSystemSummaryLifecycleStateUnknown, +var mappingDbSystemSummaryLifecycleState = map[string]DbSystemSummaryLifecycleStateEnum{ + "PROVISIONING": DbSystemSummaryLifecycleStateProvisioning, + "AVAILABLE": DbSystemSummaryLifecycleStateAvailable, + "UPDATING": DbSystemSummaryLifecycleStateUpdating, + "TERMINATING": DbSystemSummaryLifecycleStateTerminating, + "TERMINATED": DbSystemSummaryLifecycleStateTerminated, + "FAILED": DbSystemSummaryLifecycleStateFailed, } // GetDbSystemSummaryLifecycleStateEnumValues Enumerates the set of values for DbSystemSummaryLifecycleState func GetDbSystemSummaryLifecycleStateEnumValues() []DbSystemSummaryLifecycleStateEnum { - values := make([]DbSystemSummaryLifecycleStateEnum, 0) - for _, v := range mappingDbSystemSummaryLifecycleState { - if v != DbSystemSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]DbSystemSummaryLifecycleStateEnum, 0) + for _, v := range mappingDbSystemSummaryLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_version_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/db_version_summary.go index 1306f5b0d..5920cb4b9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_version_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_version_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,27 +9,20 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // DbVersionSummary The Oracle database software version. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// DbVersionSummary The Oracle database software version. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type DbVersionSummary struct { - - // A valid Oracle database version. - Version *string `mandatory:"true" json:"version"` - - // True if this version of the Oracle database software supports pluggable dbs. - SupportsPdb *bool `mandatory:"false" json:"supportsPdb"` + + // A valid Oracle database version. + Version *string `mandatory:"true" json:"version"` + + // True if this version of the Oracle database software supports pluggable dbs. + SupportsPdb *bool `mandatory:"false" json:"supportsPdb"` } func (m DbVersionSummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/delete_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/delete_backup_request_response.go index 83d2ebfa9..ff0446bbb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/delete_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/delete_backup_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteBackupRequest wrapper for the DeleteBackup operation type DeleteBackupRequest struct { - - // The backup OCID. - BackupId *string `mandatory:"true" contributesTo:"path" name:"backupId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The backup OCID. + BackupId *string `mandatory:"true" contributesTo:"path" name:"backupId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteBackupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteBackupResponse wrapper for the DeleteBackup operation type DeleteBackupResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteBackupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/delete_db_home_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/delete_db_home_request_response.go index c647b827c..d50d313f0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/delete_db_home_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/delete_db_home_request_response.go @@ -1,47 +1,43 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteDbHomeRequest wrapper for the DeleteDbHome operation type DeleteDbHomeRequest struct { - - // The database home [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Whether to perform a final backup of the database or not. Default is false. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work. - PerformFinalBackup *bool `mandatory:"false" contributesTo:"query" name:"performFinalBackup"` + + // The database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Whether to perform a final backup of the database or not. Default is false. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work. + PerformFinalBackup *bool `mandatory:"false" contributesTo:"query" name:"performFinalBackup"` } func (request DeleteDbHomeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteDbHomeResponse wrapper for the DeleteDbHome operation type DeleteDbHomeResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteDbHomeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_details.go b/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_details.go index cf8558a70..40e8bc76b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,23 +9,16 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // FailoverDataGuardAssociationDetails The Data Guard association failover parameters. +// FailoverDataGuardAssociationDetails The Data Guard association failover parameters. type FailoverDataGuardAssociationDetails struct { - - // The DB System administrator password. - DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` + + // The DB System administrator password. + DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` } func (m FailoverDataGuardAssociationDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_request_response.go index f8fdb3418..265c73f00 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // FailoverDataGuardAssociationRequest wrapper for the FailoverDataGuardAssociation operation type FailoverDataGuardAssociationRequest struct { - - // The database [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` - - // The Data Guard association's [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DataGuardAssociationId *string `mandatory:"true" contributesTo:"path" name:"dataGuardAssociationId"` - - // A request to perform a failover, transitioning a standby database into a primary database. - FailoverDataGuardAssociationDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` + + // The Data Guard association's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DataGuardAssociationId *string `mandatory:"true" contributesTo:"path" name:"dataGuardAssociationId"` + + // A request to perform a failover, transitioning a standby database into a primary database. + FailoverDataGuardAssociationDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request FailoverDataGuardAssociationRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // FailoverDataGuardAssociationResponse wrapper for the FailoverDataGuardAssociation operation type FailoverDataGuardAssociationResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DataGuardAssociation instance - DataGuardAssociation `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DataGuardAssociation instance + DataGuardAssociation `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response FailoverDataGuardAssociationResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_backup_request_response.go index 36fe90f3f..8a7ce1835 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_backup_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetBackupRequest wrapper for the GetBackup operation type GetBackupRequest struct { - - // The backup OCID. - BackupId *string `mandatory:"true" contributesTo:"path" name:"backupId"` + + // The backup OCID. + BackupId *string `mandatory:"true" contributesTo:"path" name:"backupId"` } func (request GetBackupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetBackupResponse wrapper for the GetBackup operation type GetBackupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Backup instance - Backup `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Backup instance + Backup `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetBackupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_data_guard_association_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_data_guard_association_request_response.go index 0e578c89a..2b2f55456 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_data_guard_association_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_data_guard_association_request_response.go @@ -1,48 +1,44 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDataGuardAssociationRequest wrapper for the GetDataGuardAssociation operation type GetDataGuardAssociationRequest struct { - - // The database [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` - - // The Data Guard association's [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DataGuardAssociationId *string `mandatory:"true" contributesTo:"path" name:"dataGuardAssociationId"` + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` + + // The Data Guard association's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DataGuardAssociationId *string `mandatory:"true" contributesTo:"path" name:"dataGuardAssociationId"` } func (request GetDataGuardAssociationRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDataGuardAssociationResponse wrapper for the GetDataGuardAssociation operation type GetDataGuardAssociationResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DataGuardAssociation instance - DataGuardAssociation `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DataGuardAssociation instance + DataGuardAssociation `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDataGuardAssociationResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_database_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_database_request_response.go index 548dd895e..8b3a5701b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_database_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_database_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDatabaseRequest wrapper for the GetDatabase operation type GetDatabaseRequest struct { - - // The database [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` } func (request GetDatabaseRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDatabaseResponse wrapper for the GetDatabase operation type GetDatabaseResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Database instance - Database `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Database instance + Database `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDatabaseResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_history_entry_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_history_entry_request_response.go index 29c51b5d0..c129a3119 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_history_entry_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_history_entry_request_response.go @@ -1,48 +1,44 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDbHomePatchHistoryEntryRequest wrapper for the GetDbHomePatchHistoryEntry operation type GetDbHomePatchHistoryEntryRequest struct { - - // The database home [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` - - // The OCID of the patch history entry. - PatchHistoryEntryId *string `mandatory:"true" contributesTo:"path" name:"patchHistoryEntryId"` + + // The database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` + + // The OCID of the patch history entry. + PatchHistoryEntryId *string `mandatory:"true" contributesTo:"path" name:"patchHistoryEntryId"` } func (request GetDbHomePatchHistoryEntryRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDbHomePatchHistoryEntryResponse wrapper for the GetDbHomePatchHistoryEntry operation type GetDbHomePatchHistoryEntryResponse struct { - // The underlying http response - RawResponse *http.Response - - // The PatchHistoryEntry instance - PatchHistoryEntry `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The PatchHistoryEntry instance + PatchHistoryEntry `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDbHomePatchHistoryEntryResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_request_response.go index 3fd03c485..74b389688 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDbHomePatchRequest wrapper for the GetDbHomePatch operation type GetDbHomePatchRequest struct { - - // The database home [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` - - // The OCID of the patch. - PatchId *string `mandatory:"true" contributesTo:"path" name:"patchId"` + + // The database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` + + // The OCID of the patch. + PatchId *string `mandatory:"true" contributesTo:"path" name:"patchId"` } func (request GetDbHomePatchRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDbHomePatchResponse wrapper for the GetDbHomePatch operation type GetDbHomePatchResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Patch instance - Patch `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The Patch instance + Patch `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDbHomePatchResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_request_response.go index 665b99f1f..795c4f4bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDbHomeRequest wrapper for the GetDbHome operation type GetDbHomeRequest struct { - - // The database home [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` + + // The database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` } func (request GetDbHomeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDbHomeResponse wrapper for the GetDbHome operation type GetDbHomeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DbHome instance - DbHome `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DbHome instance + DbHome `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDbHomeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_node_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_node_request_response.go index 8dc578b51..3f5e1fc2a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_node_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_node_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDbNodeRequest wrapper for the GetDbNode operation type GetDbNodeRequest struct { - - // The database node [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbNodeId *string `mandatory:"true" contributesTo:"path" name:"dbNodeId"` + + // The database node OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbNodeId *string `mandatory:"true" contributesTo:"path" name:"dbNodeId"` } func (request GetDbNodeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDbNodeResponse wrapper for the GetDbNode operation type GetDbNodeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DbNode instance - DbNode `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DbNode instance + DbNode `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDbNodeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_history_entry_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_history_entry_request_response.go index 97acf901b..4891a2df8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_history_entry_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_history_entry_request_response.go @@ -1,48 +1,44 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDbSystemPatchHistoryEntryRequest wrapper for the GetDbSystemPatchHistoryEntry operation type GetDbSystemPatchHistoryEntryRequest struct { - - // The DB System [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` - - // The OCID of the patch history entry. - PatchHistoryEntryId *string `mandatory:"true" contributesTo:"path" name:"patchHistoryEntryId"` + + // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` + + // The OCID of the patch history entry. + PatchHistoryEntryId *string `mandatory:"true" contributesTo:"path" name:"patchHistoryEntryId"` } func (request GetDbSystemPatchHistoryEntryRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDbSystemPatchHistoryEntryResponse wrapper for the GetDbSystemPatchHistoryEntry operation type GetDbSystemPatchHistoryEntryResponse struct { - // The underlying http response - RawResponse *http.Response - - // The PatchHistoryEntry instance - PatchHistoryEntry `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The PatchHistoryEntry instance + PatchHistoryEntry `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDbSystemPatchHistoryEntryResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_request_response.go index cf4d29d0b..916b6aafc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDbSystemPatchRequest wrapper for the GetDbSystemPatch operation type GetDbSystemPatchRequest struct { - - // The DB System [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` - - // The OCID of the patch. - PatchId *string `mandatory:"true" contributesTo:"path" name:"patchId"` + + // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` + + // The OCID of the patch. + PatchId *string `mandatory:"true" contributesTo:"path" name:"patchId"` } func (request GetDbSystemPatchRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDbSystemPatchResponse wrapper for the GetDbSystemPatch operation type GetDbSystemPatchResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Patch instance - Patch `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The Patch instance + Patch `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDbSystemPatchResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_request_response.go index 0296f7cfc..9a1dc670f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetDbSystemRequest wrapper for the GetDbSystem operation type GetDbSystemRequest struct { - - // The DB System [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` + + // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` } func (request GetDbSystemRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetDbSystemResponse wrapper for the GetDbSystem operation type GetDbSystemResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DbSystem instance - DbSystem `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DbSystem instance + DbSystem `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetDbSystemResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_details.go b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_details.go index 7eec8c2d9..2ba66b6f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,179 +9,163 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // LaunchDbSystemDetails The representation of LaunchDbSystemDetails +// LaunchDbSystemDetails The representation of LaunchDbSystemDetails type LaunchDbSystemDetails struct { - - // The Availability Domain where the DB System is located. - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The Oracle Cloud ID (OCID) of the compartment the DB System belongs in. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The number of CPU cores to enable. The valid values depend on the specified shape: - // - BM.DenseIO1.36 and BM.HighIO1.36 - Specify a multiple of 2, from 2 to 36. - // - BM.RACLocalStorage1.72 - Specify a multiple of 4, from 4 to 72. - // - Exadata.Quarter1.84 - Specify a multiple of 2, from 22 to 84. - // - Exadata.Half1.168 - Specify a multiple of 4, from 44 to 168. - // - Exadata.Full1.336 - Specify a multiple of 8, from 88 to 336. - // For VM DB systems, the core count is inferred from the specific VM shape chosen, so this parameter is not used. - CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` - - // The Oracle Database Edition that applies to all the databases on the DB System. - // Exadata DB Systems and 2-node RAC DB Systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. - DatabaseEdition LaunchDbSystemDetailsDatabaseEditionEnum `mandatory:"true" json:"databaseEdition"` - - DbHome *CreateDbHomeDetails `mandatory:"true" json:"dbHome"` - - // The host name for the DB System. The host name must begin with an alphabetic character and - // can contain a maximum of 30 alphanumeric characters, including hyphens (-). - // The maximum length of the combined hostname and domain is 63 characters. - // **Note:** The hostname must be unique within the subnet. If it is not unique, - // the DB System will fail to provision. - Hostname *string `mandatory:"true" json:"hostname"` - - // The shape of the DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListDbSystemShapes operation. - Shape *string `mandatory:"true" json:"shape"` - - // The public key portion of the key pair to use for SSH access to the DB System. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. - SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` - - // The OCID of the subnet the DB System is associated with. - // **Subnet Restrictions:** - // - For single node and 2-node (RAC) DB Systems, do not use a subnet that overlaps with 192.168.16.16/28 - // - For Exadata and VM-based RAC DB Systems, do not use a subnet that overlaps with 192.168.128.0/20 - // These subnets are used by the Oracle Clusterware private interconnect on the database instance. - // Specifying an overlapping subnet will cause the private interconnect to malfunction. - // This restriction applies to both the client subnet and backup subnet. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The OCID of the backup network subnet the DB System is associated with. Applicable only to Exadata. - // **Subnet Restrictions:** See above subnetId's **Subnet Restriction**. - BackupSubnetId *string `mandatory:"false" json:"backupSubnetId"` - - // Cluster name for Exadata and 2-node RAC DB Systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. - ClusterName *string `mandatory:"false" json:"clusterName"` - - // The percentage assigned to DATA storage (user data and database files). - // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). - // Specify 80 or 40. The default is 80 percent assigned to DATA storage. This is not applicable for VM based DB systems. - DataStoragePercentage *int `mandatory:"false" json:"dataStoragePercentage"` - - // The type of redundancy configured for the DB System. - // Normal is 2-way redundancy, recommended for test and development systems. - // High is 3-way redundancy, recommended for production systems. - DiskRedundancy LaunchDbSystemDetailsDiskRedundancyEnum `mandatory:"false" json:"diskRedundancy,omitempty"` - - // The user-friendly name for the DB System. It does not have to be unique. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A domain name used for the DB System. If the Oracle-provided Internet and VCN - // Resolver is enabled for the specified subnet, the domain name for the subnet is used - // (don't provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. - Domain *string `mandatory:"false" json:"domain"` - - // Size, in GBs, of the initial data volume that will be created and attached to VM-shape based DB system. This storage can later be scaled up if needed. Note that the total storage size attached will be more than what is requested, to account for REDO/RECO space and software volume. - InitialDataStorageSizeInGB *int `mandatory:"false" json:"initialDataStorageSizeInGB"` - - // The Oracle license model that applies to all the databases on the DB System. The default is LICENSE_INCLUDED. - LicenseModel LaunchDbSystemDetailsLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - - // Number of nodes to launch for a VM-shape based RAC DB system. - NodeCount *int `mandatory:"false" json:"nodeCount"` + + // The Availability Domain where the DB System is located. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The Oracle Cloud ID (OCID) of the compartment the DB System belongs in. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The number of CPU cores to enable. The valid values depend on the specified shape: + // - BM.DenseIO1.36 and BM.HighIO1.36 - Specify a multiple of 2, from 2 to 36. + // - BM.RACLocalStorage1.72 - Specify a multiple of 4, from 4 to 72. + // - Exadata.Quarter1.84 - Specify a multiple of 2, from 22 to 84. + // - Exadata.Half1.168 - Specify a multiple of 4, from 44 to 168. + // - Exadata.Full1.336 - Specify a multiple of 8, from 88 to 336. + // For VM DB systems, the core count is inferred from the specific VM shape chosen, so this parameter is not used. + CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` + + // The Oracle Database Edition that applies to all the databases on the DB System. + // Exadata DB Systems and 2-node RAC DB Systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + DatabaseEdition LaunchDbSystemDetailsDatabaseEditionEnum `mandatory:"true" json:"databaseEdition"` + + DbHome *CreateDbHomeDetails `mandatory:"true" json:"dbHome"` + + // The host name for the DB System. The host name must begin with an alphabetic character and + // can contain a maximum of 30 alphanumeric characters, including hyphens (-). + // The maximum length of the combined hostname and domain is 63 characters. + // **Note:** The hostname must be unique within the subnet. If it is not unique, + // the DB System will fail to provision. + Hostname *string `mandatory:"true" json:"hostname"` + + // The shape of the DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListDbSystemShapes operation. + Shape *string `mandatory:"true" json:"shape"` + + // The public key portion of the key pair to use for SSH access to the DB System. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. + SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` + + // The OCID of the subnet the DB System is associated with. + // **Subnet Restrictions:** + // - For single node and 2-node (RAC) DB Systems, do not use a subnet that overlaps with 192.168.16.16/28 + // - For Exadata and VM-based RAC DB Systems, do not use a subnet that overlaps with 192.168.128.0/20 + // These subnets are used by the Oracle Clusterware private interconnect on the database instance. + // Specifying an overlapping subnet will cause the private interconnect to malfunction. + // This restriction applies to both the client subnet and backup subnet. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The OCID of the backup network subnet the DB System is associated with. Applicable only to Exadata. + // **Subnet Restrictions:** See above subnetId's **Subnet Restriction**. + BackupSubnetId *string `mandatory:"false" json:"backupSubnetId"` + + // Cluster name for Exadata and 2-node RAC DB Systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. + ClusterName *string `mandatory:"false" json:"clusterName"` + + // The percentage assigned to DATA storage (user data and database files). + // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). + // Specify 80 or 40. The default is 80 percent assigned to DATA storage. This is not applicable for VM based DB systems. + DataStoragePercentage *int `mandatory:"false" json:"dataStoragePercentage"` + + // The type of redundancy configured for the DB System. + // Normal is 2-way redundancy, recommended for test and development systems. + // High is 3-way redundancy, recommended for production systems. + DiskRedundancy LaunchDbSystemDetailsDiskRedundancyEnum `mandatory:"false" json:"diskRedundancy,omitempty"` + + // The user-friendly name for the DB System. It does not have to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A domain name used for the DB System. If the Oracle-provided Internet and VCN + // Resolver is enabled for the specified subnet, the domain name for the subnet is used + // (don't provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. + Domain *string `mandatory:"false" json:"domain"` + + // Size, in GBs, of the initial data volume that will be created and attached to VM-shape based DB system. This storage can later be scaled up if needed. Note that the total storage size attached will be more than what is requested, to account for REDO/RECO space and software volume. + InitialDataStorageSizeInGB *int `mandatory:"false" json:"initialDataStorageSizeInGB"` + + // The Oracle license model that applies to all the databases on the DB System. The default is LICENSE_INCLUDED. + LicenseModel LaunchDbSystemDetailsLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` + + // Number of nodes to launch for a VM-shape based RAC DB system. + NodeCount *int `mandatory:"false" json:"nodeCount"` } func (m LaunchDbSystemDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // LaunchDbSystemDetailsDatabaseEditionEnum Enum with underlying type: string type LaunchDbSystemDetailsDatabaseEditionEnum string // Set of constants representing the allowable values for LaunchDbSystemDetailsDatabaseEdition const ( - LaunchDbSystemDetailsDatabaseEditionStandardEdition LaunchDbSystemDetailsDatabaseEditionEnum = "STANDARD_EDITION" - LaunchDbSystemDetailsDatabaseEditionEnterpriseEdition LaunchDbSystemDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION" - LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionExtremePerformance LaunchDbSystemDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" - LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionHighPerformance LaunchDbSystemDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION_HIGH_PERFORMANCE" - LaunchDbSystemDetailsDatabaseEditionUnknown LaunchDbSystemDetailsDatabaseEditionEnum = "UNKNOWN" + LaunchDbSystemDetailsDatabaseEditionStandardEdition LaunchDbSystemDetailsDatabaseEditionEnum = "STANDARD_EDITION" + LaunchDbSystemDetailsDatabaseEditionEnterpriseEdition LaunchDbSystemDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION" + LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionExtremePerformance LaunchDbSystemDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" + LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionHighPerformance LaunchDbSystemDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION_HIGH_PERFORMANCE" ) -var mappingLaunchDbSystemDetailsDatabaseEdition = map[string]LaunchDbSystemDetailsDatabaseEditionEnum { - "STANDARD_EDITION": LaunchDbSystemDetailsDatabaseEditionStandardEdition, - "ENTERPRISE_EDITION": LaunchDbSystemDetailsDatabaseEditionEnterpriseEdition, - "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionExtremePerformance, - "ENTERPRISE_EDITION_HIGH_PERFORMANCE": LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionHighPerformance, - "UNKNOWN": LaunchDbSystemDetailsDatabaseEditionUnknown, +var mappingLaunchDbSystemDetailsDatabaseEdition = map[string]LaunchDbSystemDetailsDatabaseEditionEnum{ + "STANDARD_EDITION": LaunchDbSystemDetailsDatabaseEditionStandardEdition, + "ENTERPRISE_EDITION": LaunchDbSystemDetailsDatabaseEditionEnterpriseEdition, + "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionExtremePerformance, + "ENTERPRISE_EDITION_HIGH_PERFORMANCE": LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionHighPerformance, } // GetLaunchDbSystemDetailsDatabaseEditionEnumValues Enumerates the set of values for LaunchDbSystemDetailsDatabaseEdition func GetLaunchDbSystemDetailsDatabaseEditionEnumValues() []LaunchDbSystemDetailsDatabaseEditionEnum { - values := make([]LaunchDbSystemDetailsDatabaseEditionEnum, 0) - for _, v := range mappingLaunchDbSystemDetailsDatabaseEdition { - if v != LaunchDbSystemDetailsDatabaseEditionUnknown { - values = append(values, v) - } - } - return values + values := make([]LaunchDbSystemDetailsDatabaseEditionEnum, 0) + for _, v := range mappingLaunchDbSystemDetailsDatabaseEdition { + values = append(values, v) + } + return values } + // LaunchDbSystemDetailsDiskRedundancyEnum Enum with underlying type: string type LaunchDbSystemDetailsDiskRedundancyEnum string // Set of constants representing the allowable values for LaunchDbSystemDetailsDiskRedundancy const ( - LaunchDbSystemDetailsDiskRedundancyHigh LaunchDbSystemDetailsDiskRedundancyEnum = "HIGH" - LaunchDbSystemDetailsDiskRedundancyNormal LaunchDbSystemDetailsDiskRedundancyEnum = "NORMAL" - LaunchDbSystemDetailsDiskRedundancyUnknown LaunchDbSystemDetailsDiskRedundancyEnum = "UNKNOWN" + LaunchDbSystemDetailsDiskRedundancyHigh LaunchDbSystemDetailsDiskRedundancyEnum = "HIGH" + LaunchDbSystemDetailsDiskRedundancyNormal LaunchDbSystemDetailsDiskRedundancyEnum = "NORMAL" ) -var mappingLaunchDbSystemDetailsDiskRedundancy = map[string]LaunchDbSystemDetailsDiskRedundancyEnum { - "HIGH": LaunchDbSystemDetailsDiskRedundancyHigh, - "NORMAL": LaunchDbSystemDetailsDiskRedundancyNormal, - "UNKNOWN": LaunchDbSystemDetailsDiskRedundancyUnknown, +var mappingLaunchDbSystemDetailsDiskRedundancy = map[string]LaunchDbSystemDetailsDiskRedundancyEnum{ + "HIGH": LaunchDbSystemDetailsDiskRedundancyHigh, + "NORMAL": LaunchDbSystemDetailsDiskRedundancyNormal, } // GetLaunchDbSystemDetailsDiskRedundancyEnumValues Enumerates the set of values for LaunchDbSystemDetailsDiskRedundancy func GetLaunchDbSystemDetailsDiskRedundancyEnumValues() []LaunchDbSystemDetailsDiskRedundancyEnum { - values := make([]LaunchDbSystemDetailsDiskRedundancyEnum, 0) - for _, v := range mappingLaunchDbSystemDetailsDiskRedundancy { - if v != LaunchDbSystemDetailsDiskRedundancyUnknown { - values = append(values, v) - } - } - return values + values := make([]LaunchDbSystemDetailsDiskRedundancyEnum, 0) + for _, v := range mappingLaunchDbSystemDetailsDiskRedundancy { + values = append(values, v) + } + return values } + // LaunchDbSystemDetailsLicenseModelEnum Enum with underlying type: string type LaunchDbSystemDetailsLicenseModelEnum string // Set of constants representing the allowable values for LaunchDbSystemDetailsLicenseModel const ( - LaunchDbSystemDetailsLicenseModelLicenseIncluded LaunchDbSystemDetailsLicenseModelEnum = "LICENSE_INCLUDED" - LaunchDbSystemDetailsLicenseModelBringYourOwnLicense LaunchDbSystemDetailsLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" - LaunchDbSystemDetailsLicenseModelUnknown LaunchDbSystemDetailsLicenseModelEnum = "UNKNOWN" + LaunchDbSystemDetailsLicenseModelLicenseIncluded LaunchDbSystemDetailsLicenseModelEnum = "LICENSE_INCLUDED" + LaunchDbSystemDetailsLicenseModelBringYourOwnLicense LaunchDbSystemDetailsLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" ) -var mappingLaunchDbSystemDetailsLicenseModel = map[string]LaunchDbSystemDetailsLicenseModelEnum { - "LICENSE_INCLUDED": LaunchDbSystemDetailsLicenseModelLicenseIncluded, - "BRING_YOUR_OWN_LICENSE": LaunchDbSystemDetailsLicenseModelBringYourOwnLicense, - "UNKNOWN": LaunchDbSystemDetailsLicenseModelUnknown, +var mappingLaunchDbSystemDetailsLicenseModel = map[string]LaunchDbSystemDetailsLicenseModelEnum{ + "LICENSE_INCLUDED": LaunchDbSystemDetailsLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": LaunchDbSystemDetailsLicenseModelBringYourOwnLicense, } // GetLaunchDbSystemDetailsLicenseModelEnumValues Enumerates the set of values for LaunchDbSystemDetailsLicenseModel func GetLaunchDbSystemDetailsLicenseModelEnumValues() []LaunchDbSystemDetailsLicenseModelEnum { - values := make([]LaunchDbSystemDetailsLicenseModelEnum, 0) - for _, v := range mappingLaunchDbSystemDetailsLicenseModel { - if v != LaunchDbSystemDetailsLicenseModelUnknown { - values = append(values, v) - } - } - return values + values := make([]LaunchDbSystemDetailsLicenseModelEnum, 0) + for _, v := range mappingLaunchDbSystemDetailsLicenseModel { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_request_response.go index a11d6862b..d1d6b45e6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // LaunchDbSystemRequest wrapper for the LaunchDbSystem operation type LaunchDbSystemRequest struct { - - // Request to launch a DB System. - LaunchDbSystemDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request to launch a DB System. + LaunchDbSystemDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request LaunchDbSystemRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // LaunchDbSystemResponse wrapper for the LaunchDbSystem operation type LaunchDbSystemResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DbSystem instance - DbSystem `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DbSystem instance + DbSystem `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response LaunchDbSystemResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_backups_request_response.go index b91f394de..6bb089016 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_backups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_backups_request_response.go @@ -1,57 +1,53 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListBackupsRequest wrapper for the ListBackups operation type ListBackupsRequest struct { - - // The OCID of the database. - DatabaseId *string `mandatory:"false" contributesTo:"query" name:"databaseId"` - - // The compartment OCID. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the database. + DatabaseId *string `mandatory:"false" contributesTo:"query" name:"databaseId"` + + // The compartment OCID. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListBackupsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListBackupsResponse wrapper for the ListBackups operation type ListBackupsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []BackupSummary instance - Items []BackupSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []BackupSummary instance + Items []BackupSummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListBackupsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_data_guard_associations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_data_guard_associations_request_response.go index e2637ef4b..7f2f123d7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_data_guard_associations_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_data_guard_associations_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDataGuardAssociationsRequest wrapper for the ListDataGuardAssociations operation type ListDataGuardAssociationsRequest struct { - - // The database [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDataGuardAssociationsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDataGuardAssociationsResponse wrapper for the ListDataGuardAssociations operation type ListDataGuardAssociationsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []DataGuardAssociationSummary instance - Items []DataGuardAssociationSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []DataGuardAssociationSummary instance + Items []DataGuardAssociationSummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDataGuardAssociationsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_databases_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_databases_request_response.go index 6276615e6..73e357018 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_databases_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_databases_request_response.go @@ -1,57 +1,53 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDatabasesRequest wrapper for the ListDatabases operation type ListDatabasesRequest struct { - - // The compartment [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // A database home [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbHomeId *string `mandatory:"true" contributesTo:"query" name:"dbHomeId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // A database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbHomeId *string `mandatory:"true" contributesTo:"query" name:"dbHomeId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDatabasesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDatabasesResponse wrapper for the ListDatabases operation type ListDatabasesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []DatabaseSummary instance - Items []DatabaseSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []DatabaseSummary instance + Items []DatabaseSummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDatabasesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patch_history_entries_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patch_history_entries_request_response.go index 713e55134..841a4a809 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patch_history_entries_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patch_history_entries_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDbHomePatchHistoryEntriesRequest wrapper for the ListDbHomePatchHistoryEntries operation type ListDbHomePatchHistoryEntriesRequest struct { - - // The database home [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDbHomePatchHistoryEntriesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDbHomePatchHistoryEntriesResponse wrapper for the ListDbHomePatchHistoryEntries operation type ListDbHomePatchHistoryEntriesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []PatchHistoryEntrySummary instance - Items []PatchHistoryEntrySummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []PatchHistoryEntrySummary instance + Items []PatchHistoryEntrySummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDbHomePatchHistoryEntriesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patches_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patches_request_response.go index 248ea4d08..5dd89d1a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patches_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patches_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDbHomePatchesRequest wrapper for the ListDbHomePatches operation type ListDbHomePatchesRequest struct { - - // The database home [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDbHomePatchesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDbHomePatchesResponse wrapper for the ListDbHomePatches operation type ListDbHomePatchesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []PatchSummary instance - Items []PatchSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []PatchSummary instance + Items []PatchSummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDbHomePatchesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_homes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_homes_request_response.go index 761af5db4..363b60972 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_homes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_homes_request_response.go @@ -1,57 +1,53 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDbHomesRequest wrapper for the ListDbHomes operation type ListDbHomesRequest struct { - - // The compartment [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the DB System. - DbSystemId *string `mandatory:"true" contributesTo:"query" name:"dbSystemId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System. + DbSystemId *string `mandatory:"true" contributesTo:"query" name:"dbSystemId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDbHomesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDbHomesResponse wrapper for the ListDbHomes operation type ListDbHomesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []DbHomeSummary instance - Items []DbHomeSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []DbHomeSummary instance + Items []DbHomeSummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDbHomesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_nodes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_nodes_request_response.go index 536695e6d..ae02ae583 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_nodes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_nodes_request_response.go @@ -1,57 +1,53 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDbNodesRequest wrapper for the ListDbNodes operation type ListDbNodesRequest struct { - - // The compartment [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the DB System. - DbSystemId *string `mandatory:"true" contributesTo:"query" name:"dbSystemId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System. + DbSystemId *string `mandatory:"true" contributesTo:"query" name:"dbSystemId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDbNodesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDbNodesResponse wrapper for the ListDbNodes operation type ListDbNodesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []DbNodeSummary instance - Items []DbNodeSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []DbNodeSummary instance + Items []DbNodeSummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDbNodesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patch_history_entries_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patch_history_entries_request_response.go index 8badcc03b..2a4c1aba1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patch_history_entries_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patch_history_entries_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDbSystemPatchHistoryEntriesRequest wrapper for the ListDbSystemPatchHistoryEntries operation type ListDbSystemPatchHistoryEntriesRequest struct { - - // The DB System [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDbSystemPatchHistoryEntriesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDbSystemPatchHistoryEntriesResponse wrapper for the ListDbSystemPatchHistoryEntries operation type ListDbSystemPatchHistoryEntriesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []PatchHistoryEntrySummary instance - Items []PatchHistoryEntrySummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []PatchHistoryEntrySummary instance + Items []PatchHistoryEntrySummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDbSystemPatchHistoryEntriesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patches_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patches_request_response.go index 709040f05..46ae8fc10 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patches_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patches_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDbSystemPatchesRequest wrapper for the ListDbSystemPatches operation type ListDbSystemPatchesRequest struct { - - // The DB System [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDbSystemPatchesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDbSystemPatchesResponse wrapper for the ListDbSystemPatches operation type ListDbSystemPatchesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []PatchSummary instance - Items []PatchSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []PatchSummary instance + Items []PatchSummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDbSystemPatchesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_shapes_request_response.go index a3d6ae50d..8f3d8b470 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_shapes_request_response.go @@ -1,57 +1,53 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDbSystemShapesRequest wrapper for the ListDbSystemShapes operation type ListDbSystemShapesRequest struct { - - // The name of the Availability Domain. - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // The compartment [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The name of the Availability Domain. + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDbSystemShapesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDbSystemShapesResponse wrapper for the ListDbSystemShapes operation type ListDbSystemShapesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []DbSystemShapeSummary instance - Items []DbSystemShapeSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []DbSystemShapeSummary instance + Items []DbSystemShapeSummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDbSystemShapesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_systems_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_systems_request_response.go index d8d4c8bb1..96a4693e5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_systems_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_systems_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDbSystemsRequest wrapper for the ListDbSystems operation type ListDbSystemsRequest struct { - - // The compartment [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListDbSystemsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDbSystemsResponse wrapper for the ListDbSystems operation type ListDbSystemsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []DbSystemSummary instance - Items []DbSystemSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []DbSystemSummary instance + Items []DbSystemSummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDbSystemsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_versions_request_response.go index fa2f773fc..e6a77b7bb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_versions_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_versions_request_response.go @@ -1,57 +1,53 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListDbVersionsRequest wrapper for the ListDbVersions operation type ListDbVersionsRequest struct { - - // The compartment [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The pagination token to continue listing from. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // If provided, filters the results to the set of database versions which are supported for the given shape. - DbSystemShape *string `mandatory:"false" contributesTo:"query" name:"dbSystemShape"` + + // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // If provided, filters the results to the set of database versions which are supported for the given shape. + DbSystemShape *string `mandatory:"false" contributesTo:"query" name:"dbSystemShape"` } func (request ListDbVersionsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListDbVersionsResponse wrapper for the ListDbVersions operation type ListDbVersionsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []DbVersionSummary instance - Items []DbVersionSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then there are additional items still to get. Include this value as the `page` parameter for the - // subsequent GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#List_Pagination). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []DbVersionSummary instance + Items []DbVersionSummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListDbVersionsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/patch.go b/vendor/github.com/oracle/oci-go-sdk/database/patch.go index 4c6b635e7..7ed8a3398 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/patch.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/patch.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,130 +9,114 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Patch A Patch for a DB System or DB Home. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Patch A Patch for a DB System or DB Home. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Patch struct { - - // The text describing this patch package. - Description *string `mandatory:"true" json:"description"` - - // The OCID of the patch. - Id *string `mandatory:"true" json:"id"` - - // The date and time that the patch was released. - TimeReleased *common.SDKTime `mandatory:"true" json:"timeReleased"` - - // The version of this patch package. - Version *string `mandatory:"true" json:"version"` - - // Actions that can possibly be performed using this patch. - AvailableActions []PatchAvailableActionsEnum `mandatory:"false" json:"availableActions,omitempty"` - - // Action that is currently being performed or was completed last. - LastAction PatchLastActionEnum `mandatory:"false" json:"lastAction,omitempty"` - - // A descriptive text associated with the lifecycleState. - // Typically can contain additional displayable text. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The current state of the patch as a result of lastAction. - LifecycleState PatchLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The text describing this patch package. + Description *string `mandatory:"true" json:"description"` + + // The OCID of the patch. + Id *string `mandatory:"true" json:"id"` + + // The date and time that the patch was released. + TimeReleased *common.SDKTime `mandatory:"true" json:"timeReleased"` + + // The version of this patch package. + Version *string `mandatory:"true" json:"version"` + + // Actions that can possibly be performed using this patch. + AvailableActions []PatchAvailableActionsEnum `mandatory:"false" json:"availableActions,omitempty"` + + // Action that is currently being performed or was completed last. + LastAction PatchLastActionEnum `mandatory:"false" json:"lastAction,omitempty"` + + // A descriptive text associated with the lifecycleState. + // Typically can contain additional displayable text. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The current state of the patch as a result of lastAction. + LifecycleState PatchLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` } func (m Patch) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // PatchAvailableActionsEnum Enum with underlying type: string type PatchAvailableActionsEnum string // Set of constants representing the allowable values for PatchAvailableActions const ( - PatchAvailableActionsApply PatchAvailableActionsEnum = "APPLY" - PatchAvailableActionsPrecheck PatchAvailableActionsEnum = "PRECHECK" - PatchAvailableActionsUnknown PatchAvailableActionsEnum = "UNKNOWN" + PatchAvailableActionsApply PatchAvailableActionsEnum = "APPLY" + PatchAvailableActionsPrecheck PatchAvailableActionsEnum = "PRECHECK" ) -var mappingPatchAvailableActions = map[string]PatchAvailableActionsEnum { - "APPLY": PatchAvailableActionsApply, - "PRECHECK": PatchAvailableActionsPrecheck, - "UNKNOWN": PatchAvailableActionsUnknown, +var mappingPatchAvailableActions = map[string]PatchAvailableActionsEnum{ + "APPLY": PatchAvailableActionsApply, + "PRECHECK": PatchAvailableActionsPrecheck, } // GetPatchAvailableActionsEnumValues Enumerates the set of values for PatchAvailableActions func GetPatchAvailableActionsEnumValues() []PatchAvailableActionsEnum { - values := make([]PatchAvailableActionsEnum, 0) - for _, v := range mappingPatchAvailableActions { - if v != PatchAvailableActionsUnknown { - values = append(values, v) - } - } - return values + values := make([]PatchAvailableActionsEnum, 0) + for _, v := range mappingPatchAvailableActions { + values = append(values, v) + } + return values } + // PatchLastActionEnum Enum with underlying type: string type PatchLastActionEnum string // Set of constants representing the allowable values for PatchLastAction const ( - PatchLastActionApply PatchLastActionEnum = "APPLY" - PatchLastActionPrecheck PatchLastActionEnum = "PRECHECK" - PatchLastActionUnknown PatchLastActionEnum = "UNKNOWN" + PatchLastActionApply PatchLastActionEnum = "APPLY" + PatchLastActionPrecheck PatchLastActionEnum = "PRECHECK" ) -var mappingPatchLastAction = map[string]PatchLastActionEnum { - "APPLY": PatchLastActionApply, - "PRECHECK": PatchLastActionPrecheck, - "UNKNOWN": PatchLastActionUnknown, +var mappingPatchLastAction = map[string]PatchLastActionEnum{ + "APPLY": PatchLastActionApply, + "PRECHECK": PatchLastActionPrecheck, } // GetPatchLastActionEnumValues Enumerates the set of values for PatchLastAction func GetPatchLastActionEnumValues() []PatchLastActionEnum { - values := make([]PatchLastActionEnum, 0) - for _, v := range mappingPatchLastAction { - if v != PatchLastActionUnknown { - values = append(values, v) - } - } - return values + values := make([]PatchLastActionEnum, 0) + for _, v := range mappingPatchLastAction { + values = append(values, v) + } + return values } + // PatchLifecycleStateEnum Enum with underlying type: string type PatchLifecycleStateEnum string // Set of constants representing the allowable values for PatchLifecycleState const ( - PatchLifecycleStateAvailable PatchLifecycleStateEnum = "AVAILABLE" - PatchLifecycleStateSuccess PatchLifecycleStateEnum = "SUCCESS" - PatchLifecycleStateInProgress PatchLifecycleStateEnum = "IN_PROGRESS" - PatchLifecycleStateFailed PatchLifecycleStateEnum = "FAILED" - PatchLifecycleStateUnknown PatchLifecycleStateEnum = "UNKNOWN" + PatchLifecycleStateAvailable PatchLifecycleStateEnum = "AVAILABLE" + PatchLifecycleStateSuccess PatchLifecycleStateEnum = "SUCCESS" + PatchLifecycleStateInProgress PatchLifecycleStateEnum = "IN_PROGRESS" + PatchLifecycleStateFailed PatchLifecycleStateEnum = "FAILED" ) -var mappingPatchLifecycleState = map[string]PatchLifecycleStateEnum { - "AVAILABLE": PatchLifecycleStateAvailable, - "SUCCESS": PatchLifecycleStateSuccess, - "IN_PROGRESS": PatchLifecycleStateInProgress, - "FAILED": PatchLifecycleStateFailed, - "UNKNOWN": PatchLifecycleStateUnknown, +var mappingPatchLifecycleState = map[string]PatchLifecycleStateEnum{ + "AVAILABLE": PatchLifecycleStateAvailable, + "SUCCESS": PatchLifecycleStateSuccess, + "IN_PROGRESS": PatchLifecycleStateInProgress, + "FAILED": PatchLifecycleStateFailed, } // GetPatchLifecycleStateEnumValues Enumerates the set of values for PatchLifecycleState func GetPatchLifecycleStateEnumValues() []PatchLifecycleStateEnum { - values := make([]PatchLifecycleStateEnum, 0) - for _, v := range mappingPatchLifecycleState { - if v != PatchLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]PatchLifecycleStateEnum, 0) + for _, v := range mappingPatchLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/patch_details.go b/vendor/github.com/oracle/oci-go-sdk/database/patch_details.go index 01b12d0b3..1dab6a67a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/patch_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/patch_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,54 +9,44 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // PatchDetails The details about what actions to perform and using what patch to the specified target. - // This is part of an update request that is applied to a version field on the target such - // as DB System, database home, etc. +// PatchDetails The details about what actions to perform and using what patch to the specified target. +// This is part of an update request that is applied to a version field on the target such +// as DB System, database home, etc. type PatchDetails struct { - - // The action to perform on the patch. - Action PatchDetailsActionEnum `mandatory:"false" json:"action,omitempty"` - - // The OCID of the patch. - PatchId *string `mandatory:"false" json:"patchId"` + + // The action to perform on the patch. + Action PatchDetailsActionEnum `mandatory:"false" json:"action,omitempty"` + + // The OCID of the patch. + PatchId *string `mandatory:"false" json:"patchId"` } func (m PatchDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // PatchDetailsActionEnum Enum with underlying type: string type PatchDetailsActionEnum string // Set of constants representing the allowable values for PatchDetailsAction const ( - PatchDetailsActionApply PatchDetailsActionEnum = "APPLY" - PatchDetailsActionPrecheck PatchDetailsActionEnum = "PRECHECK" - PatchDetailsActionUnknown PatchDetailsActionEnum = "UNKNOWN" + PatchDetailsActionApply PatchDetailsActionEnum = "APPLY" + PatchDetailsActionPrecheck PatchDetailsActionEnum = "PRECHECK" ) -var mappingPatchDetailsAction = map[string]PatchDetailsActionEnum { - "APPLY": PatchDetailsActionApply, - "PRECHECK": PatchDetailsActionPrecheck, - "UNKNOWN": PatchDetailsActionUnknown, +var mappingPatchDetailsAction = map[string]PatchDetailsActionEnum{ + "APPLY": PatchDetailsActionApply, + "PRECHECK": PatchDetailsActionPrecheck, } // GetPatchDetailsActionEnumValues Enumerates the set of values for PatchDetailsAction func GetPatchDetailsActionEnumValues() []PatchDetailsActionEnum { - values := make([]PatchDetailsActionEnum, 0) - for _, v := range mappingPatchDetailsAction { - if v != PatchDetailsActionUnknown { - values = append(values, v) - } - } - return values + values := make([]PatchDetailsActionEnum, 0) + for _, v := range mappingPatchDetailsAction { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry.go b/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry.go index d18875442..21fa02767 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,96 +9,83 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // PatchHistoryEntry The record of a patch action on a specified target. +// PatchHistoryEntry The record of a patch action on a specified target. type PatchHistoryEntry struct { - - // The OCID of the patch history entry. - Id *string `mandatory:"true" json:"id"` - - // The current state of the action. - LifecycleState PatchHistoryEntryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID of the patch. - PatchId *string `mandatory:"true" json:"patchId"` - - // The date and time when the patch action started. - TimeStarted *common.SDKTime `mandatory:"true" json:"timeStarted"` - - // The action being performed or was completed. - Action PatchHistoryEntryActionEnum `mandatory:"false" json:"action,omitempty"` - - // A descriptive text associated with the lifecycleState. - // Typically contains additional displayable text. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The date and time when the patch action completed. - TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` + + // The OCID of the patch history entry. + Id *string `mandatory:"true" json:"id"` + + // The current state of the action. + LifecycleState PatchHistoryEntryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID of the patch. + PatchId *string `mandatory:"true" json:"patchId"` + + // The date and time when the patch action started. + TimeStarted *common.SDKTime `mandatory:"true" json:"timeStarted"` + + // The action being performed or was completed. + Action PatchHistoryEntryActionEnum `mandatory:"false" json:"action,omitempty"` + + // A descriptive text associated with the lifecycleState. + // Typically contains additional displayable text. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The date and time when the patch action completed. + TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` } func (m PatchHistoryEntry) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // PatchHistoryEntryActionEnum Enum with underlying type: string type PatchHistoryEntryActionEnum string // Set of constants representing the allowable values for PatchHistoryEntryAction const ( - PatchHistoryEntryActionApply PatchHistoryEntryActionEnum = "APPLY" - PatchHistoryEntryActionPrecheck PatchHistoryEntryActionEnum = "PRECHECK" - PatchHistoryEntryActionUnknown PatchHistoryEntryActionEnum = "UNKNOWN" + PatchHistoryEntryActionApply PatchHistoryEntryActionEnum = "APPLY" + PatchHistoryEntryActionPrecheck PatchHistoryEntryActionEnum = "PRECHECK" ) -var mappingPatchHistoryEntryAction = map[string]PatchHistoryEntryActionEnum { - "APPLY": PatchHistoryEntryActionApply, - "PRECHECK": PatchHistoryEntryActionPrecheck, - "UNKNOWN": PatchHistoryEntryActionUnknown, +var mappingPatchHistoryEntryAction = map[string]PatchHistoryEntryActionEnum{ + "APPLY": PatchHistoryEntryActionApply, + "PRECHECK": PatchHistoryEntryActionPrecheck, } // GetPatchHistoryEntryActionEnumValues Enumerates the set of values for PatchHistoryEntryAction func GetPatchHistoryEntryActionEnumValues() []PatchHistoryEntryActionEnum { - values := make([]PatchHistoryEntryActionEnum, 0) - for _, v := range mappingPatchHistoryEntryAction { - if v != PatchHistoryEntryActionUnknown { - values = append(values, v) - } - } - return values + values := make([]PatchHistoryEntryActionEnum, 0) + for _, v := range mappingPatchHistoryEntryAction { + values = append(values, v) + } + return values } + // PatchHistoryEntryLifecycleStateEnum Enum with underlying type: string type PatchHistoryEntryLifecycleStateEnum string // Set of constants representing the allowable values for PatchHistoryEntryLifecycleState const ( - PatchHistoryEntryLifecycleStateInProgress PatchHistoryEntryLifecycleStateEnum = "IN_PROGRESS" - PatchHistoryEntryLifecycleStateSucceeded PatchHistoryEntryLifecycleStateEnum = "SUCCEEDED" - PatchHistoryEntryLifecycleStateFailed PatchHistoryEntryLifecycleStateEnum = "FAILED" - PatchHistoryEntryLifecycleStateUnknown PatchHistoryEntryLifecycleStateEnum = "UNKNOWN" + PatchHistoryEntryLifecycleStateInProgress PatchHistoryEntryLifecycleStateEnum = "IN_PROGRESS" + PatchHistoryEntryLifecycleStateSucceeded PatchHistoryEntryLifecycleStateEnum = "SUCCEEDED" + PatchHistoryEntryLifecycleStateFailed PatchHistoryEntryLifecycleStateEnum = "FAILED" ) -var mappingPatchHistoryEntryLifecycleState = map[string]PatchHistoryEntryLifecycleStateEnum { - "IN_PROGRESS": PatchHistoryEntryLifecycleStateInProgress, - "SUCCEEDED": PatchHistoryEntryLifecycleStateSucceeded, - "FAILED": PatchHistoryEntryLifecycleStateFailed, - "UNKNOWN": PatchHistoryEntryLifecycleStateUnknown, +var mappingPatchHistoryEntryLifecycleState = map[string]PatchHistoryEntryLifecycleStateEnum{ + "IN_PROGRESS": PatchHistoryEntryLifecycleStateInProgress, + "SUCCEEDED": PatchHistoryEntryLifecycleStateSucceeded, + "FAILED": PatchHistoryEntryLifecycleStateFailed, } // GetPatchHistoryEntryLifecycleStateEnumValues Enumerates the set of values for PatchHistoryEntryLifecycleState func GetPatchHistoryEntryLifecycleStateEnumValues() []PatchHistoryEntryLifecycleStateEnum { - values := make([]PatchHistoryEntryLifecycleStateEnum, 0) - for _, v := range mappingPatchHistoryEntryLifecycleState { - if v != PatchHistoryEntryLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]PatchHistoryEntryLifecycleStateEnum, 0) + for _, v := range mappingPatchHistoryEntryLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry_summary.go index a996080e6..ddb964f93 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,96 +9,83 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // PatchHistoryEntrySummary The record of a patch action on a specified target. +// PatchHistoryEntrySummary The record of a patch action on a specified target. type PatchHistoryEntrySummary struct { - - // The OCID of the patch history entry. - Id *string `mandatory:"true" json:"id"` - - // The current state of the action. - LifecycleState PatchHistoryEntrySummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID of the patch. - PatchId *string `mandatory:"true" json:"patchId"` - - // The date and time when the patch action started. - TimeStarted *common.SDKTime `mandatory:"true" json:"timeStarted"` - - // The action being performed or was completed. - Action PatchHistoryEntrySummaryActionEnum `mandatory:"false" json:"action,omitempty"` - - // A descriptive text associated with the lifecycleState. - // Typically contains additional displayable text. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The date and time when the patch action completed. - TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` + + // The OCID of the patch history entry. + Id *string `mandatory:"true" json:"id"` + + // The current state of the action. + LifecycleState PatchHistoryEntrySummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID of the patch. + PatchId *string `mandatory:"true" json:"patchId"` + + // The date and time when the patch action started. + TimeStarted *common.SDKTime `mandatory:"true" json:"timeStarted"` + + // The action being performed or was completed. + Action PatchHistoryEntrySummaryActionEnum `mandatory:"false" json:"action,omitempty"` + + // A descriptive text associated with the lifecycleState. + // Typically contains additional displayable text. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The date and time when the patch action completed. + TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` } func (m PatchHistoryEntrySummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // PatchHistoryEntrySummaryActionEnum Enum with underlying type: string type PatchHistoryEntrySummaryActionEnum string // Set of constants representing the allowable values for PatchHistoryEntrySummaryAction const ( - PatchHistoryEntrySummaryActionApply PatchHistoryEntrySummaryActionEnum = "APPLY" - PatchHistoryEntrySummaryActionPrecheck PatchHistoryEntrySummaryActionEnum = "PRECHECK" - PatchHistoryEntrySummaryActionUnknown PatchHistoryEntrySummaryActionEnum = "UNKNOWN" + PatchHistoryEntrySummaryActionApply PatchHistoryEntrySummaryActionEnum = "APPLY" + PatchHistoryEntrySummaryActionPrecheck PatchHistoryEntrySummaryActionEnum = "PRECHECK" ) -var mappingPatchHistoryEntrySummaryAction = map[string]PatchHistoryEntrySummaryActionEnum { - "APPLY": PatchHistoryEntrySummaryActionApply, - "PRECHECK": PatchHistoryEntrySummaryActionPrecheck, - "UNKNOWN": PatchHistoryEntrySummaryActionUnknown, +var mappingPatchHistoryEntrySummaryAction = map[string]PatchHistoryEntrySummaryActionEnum{ + "APPLY": PatchHistoryEntrySummaryActionApply, + "PRECHECK": PatchHistoryEntrySummaryActionPrecheck, } // GetPatchHistoryEntrySummaryActionEnumValues Enumerates the set of values for PatchHistoryEntrySummaryAction func GetPatchHistoryEntrySummaryActionEnumValues() []PatchHistoryEntrySummaryActionEnum { - values := make([]PatchHistoryEntrySummaryActionEnum, 0) - for _, v := range mappingPatchHistoryEntrySummaryAction { - if v != PatchHistoryEntrySummaryActionUnknown { - values = append(values, v) - } - } - return values + values := make([]PatchHistoryEntrySummaryActionEnum, 0) + for _, v := range mappingPatchHistoryEntrySummaryAction { + values = append(values, v) + } + return values } + // PatchHistoryEntrySummaryLifecycleStateEnum Enum with underlying type: string type PatchHistoryEntrySummaryLifecycleStateEnum string // Set of constants representing the allowable values for PatchHistoryEntrySummaryLifecycleState const ( - PatchHistoryEntrySummaryLifecycleStateInProgress PatchHistoryEntrySummaryLifecycleStateEnum = "IN_PROGRESS" - PatchHistoryEntrySummaryLifecycleStateSucceeded PatchHistoryEntrySummaryLifecycleStateEnum = "SUCCEEDED" - PatchHistoryEntrySummaryLifecycleStateFailed PatchHistoryEntrySummaryLifecycleStateEnum = "FAILED" - PatchHistoryEntrySummaryLifecycleStateUnknown PatchHistoryEntrySummaryLifecycleStateEnum = "UNKNOWN" + PatchHistoryEntrySummaryLifecycleStateInProgress PatchHistoryEntrySummaryLifecycleStateEnum = "IN_PROGRESS" + PatchHistoryEntrySummaryLifecycleStateSucceeded PatchHistoryEntrySummaryLifecycleStateEnum = "SUCCEEDED" + PatchHistoryEntrySummaryLifecycleStateFailed PatchHistoryEntrySummaryLifecycleStateEnum = "FAILED" ) -var mappingPatchHistoryEntrySummaryLifecycleState = map[string]PatchHistoryEntrySummaryLifecycleStateEnum { - "IN_PROGRESS": PatchHistoryEntrySummaryLifecycleStateInProgress, - "SUCCEEDED": PatchHistoryEntrySummaryLifecycleStateSucceeded, - "FAILED": PatchHistoryEntrySummaryLifecycleStateFailed, - "UNKNOWN": PatchHistoryEntrySummaryLifecycleStateUnknown, +var mappingPatchHistoryEntrySummaryLifecycleState = map[string]PatchHistoryEntrySummaryLifecycleStateEnum{ + "IN_PROGRESS": PatchHistoryEntrySummaryLifecycleStateInProgress, + "SUCCEEDED": PatchHistoryEntrySummaryLifecycleStateSucceeded, + "FAILED": PatchHistoryEntrySummaryLifecycleStateFailed, } // GetPatchHistoryEntrySummaryLifecycleStateEnumValues Enumerates the set of values for PatchHistoryEntrySummaryLifecycleState func GetPatchHistoryEntrySummaryLifecycleStateEnumValues() []PatchHistoryEntrySummaryLifecycleStateEnum { - values := make([]PatchHistoryEntrySummaryLifecycleStateEnum, 0) - for _, v := range mappingPatchHistoryEntrySummaryLifecycleState { - if v != PatchHistoryEntrySummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]PatchHistoryEntrySummaryLifecycleStateEnum, 0) + for _, v := range mappingPatchHistoryEntrySummaryLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/patch_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/patch_summary.go index 406402da0..e803c53fb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/patch_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/patch_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,130 +9,114 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // PatchSummary A Patch for a DB System or DB Home. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// PatchSummary A Patch for a DB System or DB Home. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type PatchSummary struct { - - // The text describing this patch package. - Description *string `mandatory:"true" json:"description"` - - // The OCID of the patch. - Id *string `mandatory:"true" json:"id"` - - // The date and time that the patch was released. - TimeReleased *common.SDKTime `mandatory:"true" json:"timeReleased"` - - // The version of this patch package. - Version *string `mandatory:"true" json:"version"` - - // Actions that can possibly be performed using this patch. - AvailableActions []PatchSummaryAvailableActionsEnum `mandatory:"false" json:"availableActions,omitempty"` - - // Action that is currently being performed or was completed last. - LastAction PatchSummaryLastActionEnum `mandatory:"false" json:"lastAction,omitempty"` - - // A descriptive text associated with the lifecycleState. - // Typically can contain additional displayable text. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The current state of the patch as a result of lastAction. - LifecycleState PatchSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The text describing this patch package. + Description *string `mandatory:"true" json:"description"` + + // The OCID of the patch. + Id *string `mandatory:"true" json:"id"` + + // The date and time that the patch was released. + TimeReleased *common.SDKTime `mandatory:"true" json:"timeReleased"` + + // The version of this patch package. + Version *string `mandatory:"true" json:"version"` + + // Actions that can possibly be performed using this patch. + AvailableActions []PatchSummaryAvailableActionsEnum `mandatory:"false" json:"availableActions,omitempty"` + + // Action that is currently being performed or was completed last. + LastAction PatchSummaryLastActionEnum `mandatory:"false" json:"lastAction,omitempty"` + + // A descriptive text associated with the lifecycleState. + // Typically can contain additional displayable text. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The current state of the patch as a result of lastAction. + LifecycleState PatchSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` } func (m PatchSummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // PatchSummaryAvailableActionsEnum Enum with underlying type: string type PatchSummaryAvailableActionsEnum string // Set of constants representing the allowable values for PatchSummaryAvailableActions const ( - PatchSummaryAvailableActionsApply PatchSummaryAvailableActionsEnum = "APPLY" - PatchSummaryAvailableActionsPrecheck PatchSummaryAvailableActionsEnum = "PRECHECK" - PatchSummaryAvailableActionsUnknown PatchSummaryAvailableActionsEnum = "UNKNOWN" + PatchSummaryAvailableActionsApply PatchSummaryAvailableActionsEnum = "APPLY" + PatchSummaryAvailableActionsPrecheck PatchSummaryAvailableActionsEnum = "PRECHECK" ) -var mappingPatchSummaryAvailableActions = map[string]PatchSummaryAvailableActionsEnum { - "APPLY": PatchSummaryAvailableActionsApply, - "PRECHECK": PatchSummaryAvailableActionsPrecheck, - "UNKNOWN": PatchSummaryAvailableActionsUnknown, +var mappingPatchSummaryAvailableActions = map[string]PatchSummaryAvailableActionsEnum{ + "APPLY": PatchSummaryAvailableActionsApply, + "PRECHECK": PatchSummaryAvailableActionsPrecheck, } // GetPatchSummaryAvailableActionsEnumValues Enumerates the set of values for PatchSummaryAvailableActions func GetPatchSummaryAvailableActionsEnumValues() []PatchSummaryAvailableActionsEnum { - values := make([]PatchSummaryAvailableActionsEnum, 0) - for _, v := range mappingPatchSummaryAvailableActions { - if v != PatchSummaryAvailableActionsUnknown { - values = append(values, v) - } - } - return values + values := make([]PatchSummaryAvailableActionsEnum, 0) + for _, v := range mappingPatchSummaryAvailableActions { + values = append(values, v) + } + return values } + // PatchSummaryLastActionEnum Enum with underlying type: string type PatchSummaryLastActionEnum string // Set of constants representing the allowable values for PatchSummaryLastAction const ( - PatchSummaryLastActionApply PatchSummaryLastActionEnum = "APPLY" - PatchSummaryLastActionPrecheck PatchSummaryLastActionEnum = "PRECHECK" - PatchSummaryLastActionUnknown PatchSummaryLastActionEnum = "UNKNOWN" + PatchSummaryLastActionApply PatchSummaryLastActionEnum = "APPLY" + PatchSummaryLastActionPrecheck PatchSummaryLastActionEnum = "PRECHECK" ) -var mappingPatchSummaryLastAction = map[string]PatchSummaryLastActionEnum { - "APPLY": PatchSummaryLastActionApply, - "PRECHECK": PatchSummaryLastActionPrecheck, - "UNKNOWN": PatchSummaryLastActionUnknown, +var mappingPatchSummaryLastAction = map[string]PatchSummaryLastActionEnum{ + "APPLY": PatchSummaryLastActionApply, + "PRECHECK": PatchSummaryLastActionPrecheck, } // GetPatchSummaryLastActionEnumValues Enumerates the set of values for PatchSummaryLastAction func GetPatchSummaryLastActionEnumValues() []PatchSummaryLastActionEnum { - values := make([]PatchSummaryLastActionEnum, 0) - for _, v := range mappingPatchSummaryLastAction { - if v != PatchSummaryLastActionUnknown { - values = append(values, v) - } - } - return values + values := make([]PatchSummaryLastActionEnum, 0) + for _, v := range mappingPatchSummaryLastAction { + values = append(values, v) + } + return values } + // PatchSummaryLifecycleStateEnum Enum with underlying type: string type PatchSummaryLifecycleStateEnum string // Set of constants representing the allowable values for PatchSummaryLifecycleState const ( - PatchSummaryLifecycleStateAvailable PatchSummaryLifecycleStateEnum = "AVAILABLE" - PatchSummaryLifecycleStateSuccess PatchSummaryLifecycleStateEnum = "SUCCESS" - PatchSummaryLifecycleStateInProgress PatchSummaryLifecycleStateEnum = "IN_PROGRESS" - PatchSummaryLifecycleStateFailed PatchSummaryLifecycleStateEnum = "FAILED" - PatchSummaryLifecycleStateUnknown PatchSummaryLifecycleStateEnum = "UNKNOWN" + PatchSummaryLifecycleStateAvailable PatchSummaryLifecycleStateEnum = "AVAILABLE" + PatchSummaryLifecycleStateSuccess PatchSummaryLifecycleStateEnum = "SUCCESS" + PatchSummaryLifecycleStateInProgress PatchSummaryLifecycleStateEnum = "IN_PROGRESS" + PatchSummaryLifecycleStateFailed PatchSummaryLifecycleStateEnum = "FAILED" ) -var mappingPatchSummaryLifecycleState = map[string]PatchSummaryLifecycleStateEnum { - "AVAILABLE": PatchSummaryLifecycleStateAvailable, - "SUCCESS": PatchSummaryLifecycleStateSuccess, - "IN_PROGRESS": PatchSummaryLifecycleStateInProgress, - "FAILED": PatchSummaryLifecycleStateFailed, - "UNKNOWN": PatchSummaryLifecycleStateUnknown, +var mappingPatchSummaryLifecycleState = map[string]PatchSummaryLifecycleStateEnum{ + "AVAILABLE": PatchSummaryLifecycleStateAvailable, + "SUCCESS": PatchSummaryLifecycleStateSuccess, + "IN_PROGRESS": PatchSummaryLifecycleStateInProgress, + "FAILED": PatchSummaryLifecycleStateFailed, } // GetPatchSummaryLifecycleStateEnumValues Enumerates the set of values for PatchSummaryLifecycleState func GetPatchSummaryLifecycleStateEnumValues() []PatchSummaryLifecycleStateEnum { - values := make([]PatchSummaryLifecycleStateEnum, 0) - for _, v := range mappingPatchSummaryLifecycleState { - if v != PatchSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]PatchSummaryLifecycleStateEnum, 0) + for _, v := range mappingPatchSummaryLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_details.go b/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_details.go index 55b6d9086..b348fafb9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,23 +9,16 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // ReinstateDataGuardAssociationDetails The Data Guard association reinstate parameters. +// ReinstateDataGuardAssociationDetails The Data Guard association reinstate parameters. type ReinstateDataGuardAssociationDetails struct { - - // The DB System administrator password. - DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` + + // The DB System administrator password. + DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` } func (m ReinstateDataGuardAssociationDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_request_response.go index 55e872697..994fdb3c2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ReinstateDataGuardAssociationRequest wrapper for the ReinstateDataGuardAssociation operation type ReinstateDataGuardAssociationRequest struct { - - // The database [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` - - // The Data Guard association's [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DataGuardAssociationId *string `mandatory:"true" contributesTo:"path" name:"dataGuardAssociationId"` - - // A request to reinstate a database in a standby role. - ReinstateDataGuardAssociationDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` + + // The Data Guard association's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DataGuardAssociationId *string `mandatory:"true" contributesTo:"path" name:"dataGuardAssociationId"` + + // A request to reinstate a database in a standby role. + ReinstateDataGuardAssociationDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request ReinstateDataGuardAssociationRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ReinstateDataGuardAssociationResponse wrapper for the ReinstateDataGuardAssociation operation type ReinstateDataGuardAssociationResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DataGuardAssociation instance - DataGuardAssociation `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DataGuardAssociation instance + DataGuardAssociation `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ReinstateDataGuardAssociationResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/restore_database_details.go b/vendor/github.com/oracle/oci-go-sdk/database/restore_database_details.go index 76fd6f32b..4322a35ad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/restore_database_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/restore_database_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,29 +9,22 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // RestoreDatabaseDetails The representation of RestoreDatabaseDetails +// RestoreDatabaseDetails The representation of RestoreDatabaseDetails type RestoreDatabaseDetails struct { - - // Restores using the backup with the System Change Number (SCN) specified. - DatabaseSCN *string `mandatory:"false" json:"databaseSCN"` - - // Restores to the last known good state with the least possible data loss. - Latest *bool `mandatory:"false" json:"latest"` - - // Restores to the timestamp specified. - Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` -} - -func (m RestoreDatabaseDetails) String() string { - return common.PointerString(m) -} - + // Restores using the backup with the System Change Number (SCN) specified. + DatabaseSCN *string `mandatory:"false" json:"databaseSCN"` + // Restores to the last known good state with the least possible data loss. + Latest *bool `mandatory:"false" json:"latest"` + // Restores to the timestamp specified. + Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` +} +func (m RestoreDatabaseDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/restore_database_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/restore_database_request_response.go index a95b8ef1c..19873c923 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/restore_database_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/restore_database_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // RestoreDatabaseRequest wrapper for the RestoreDatabase operation type RestoreDatabaseRequest struct { - - // The database [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` - - // Request to perform database restore. - RestoreDatabaseDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` + + // Request to perform database restore. + RestoreDatabaseDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request RestoreDatabaseRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // RestoreDatabaseResponse wrapper for the RestoreDatabase operation type RestoreDatabaseResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Database instance - Database `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Database instance + Database `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response RestoreDatabaseResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_details.go b/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_details.go index 560080ff1..087705923 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,23 +9,16 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // SwitchoverDataGuardAssociationDetails The Data Guard association switchover parameters. +// SwitchoverDataGuardAssociationDetails The Data Guard association switchover parameters. type SwitchoverDataGuardAssociationDetails struct { - - // The DB System administrator password. - DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` + + // The DB System administrator password. + DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` } func (m SwitchoverDataGuardAssociationDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_request_response.go index 0b7657196..0e3024715 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // SwitchoverDataGuardAssociationRequest wrapper for the SwitchoverDataGuardAssociation operation type SwitchoverDataGuardAssociationRequest struct { - - // The database [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` - - // The Data Guard association's [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DataGuardAssociationId *string `mandatory:"true" contributesTo:"path" name:"dataGuardAssociationId"` - - // Request to swtichover a primary to a standby. - SwitchoverDataGuardAssociationDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` + + // The Data Guard association's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DataGuardAssociationId *string `mandatory:"true" contributesTo:"path" name:"dataGuardAssociationId"` + + // Request to swtichover a primary to a standby. + SwitchoverDataGuardAssociationDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request SwitchoverDataGuardAssociationRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // SwitchoverDataGuardAssociationResponse wrapper for the SwitchoverDataGuardAssociation operation type SwitchoverDataGuardAssociationResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DataGuardAssociation instance - DataGuardAssociation `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DataGuardAssociation instance + DataGuardAssociation `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response SwitchoverDataGuardAssociationResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/terminate_db_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/terminate_db_system_request_response.go index 16128ea13..991b68b0f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/terminate_db_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/terminate_db_system_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // TerminateDbSystemRequest wrapper for the TerminateDbSystem operation type TerminateDbSystemRequest struct { - - // The DB System [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request TerminateDbSystemRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // TerminateDbSystemResponse wrapper for the TerminateDbSystem operation type TerminateDbSystemResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response TerminateDbSystemResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_database_details.go b/vendor/github.com/oracle/oci-go-sdk/database/update_database_details.go index 88f91fa8e..2d436d6d6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/update_database_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_database_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,22 +9,14 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateDatabaseDetails The representation of UpdateDatabaseDetails +// UpdateDatabaseDetails The representation of UpdateDatabaseDetails type UpdateDatabaseDetails struct { - - DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` + DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` } func (m UpdateDatabaseDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_database_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/update_database_request_response.go index a1511514b..c43867603 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/update_database_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_database_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateDatabaseRequest wrapper for the UpdateDatabase operation type UpdateDatabaseRequest struct { - - // The database [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` - - // Request to perform database update. - UpdateDatabaseDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` + + // Request to perform database update. + UpdateDatabaseDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateDatabaseRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateDatabaseResponse wrapper for the UpdateDatabase operation type UpdateDatabaseResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Database instance - Database `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The Database instance + Database `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateDatabaseResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_details.go b/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_details.go index d61359574..741a7e36f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,22 +9,14 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateDbHomeDetails Describes the modification parameters for the DB Home. +// UpdateDbHomeDetails Describes the modification parameters for the DB Home. type UpdateDbHomeDetails struct { - - DbVersion *PatchDetails `mandatory:"false" json:"dbVersion"` + DbVersion *PatchDetails `mandatory:"false" json:"dbVersion"` } func (m UpdateDbHomeDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_request_response.go index ca3f0cb39..b02cd0fb8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateDbHomeRequest wrapper for the UpdateDbHome operation type UpdateDbHomeRequest struct { - - // The database home [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` - - // Request to update the properties of a DB Home. - UpdateDbHomeDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` + + // Request to update the properties of a DB Home. + UpdateDbHomeDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateDbHomeRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateDbHomeResponse wrapper for the UpdateDbHome operation type UpdateDbHomeResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DbHome instance - DbHome `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DbHome instance + DbHome `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateDbHomeResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_details.go b/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_details.go index 9cfb11480..eb03d5d10 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Database Service API @@ -9,31 +9,24 @@ package database import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateDbSystemDetails Describes the modification parameters for the DB System. +// UpdateDbSystemDetails Describes the modification parameters for the DB System. type UpdateDbSystemDetails struct { - - // The number of CPU Cores to be set on the DB System. Applicable only for non-VM based DB systems. - CpuCoreCount *int `mandatory:"false" json:"cpuCoreCount"` - - // Size, in GBs, to which the currently attached storage needs to be scaled up to for VM based DB system. This must be greater than current storage size. Note that the total storage size attached will be more than what is requested, to account for REDO/RECO space and software volume. - DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"` - - // The public key portion of the key pair to use for SSH access to the DB System. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. - SshPublicKeys []string `mandatory:"false" json:"sshPublicKeys"` - - Version *PatchDetails `mandatory:"false" json:"version"` -} - -func (m UpdateDbSystemDetails) String() string { - return common.PointerString(m) -} + // The number of CPU Cores to be set on the DB System. Applicable only for non-VM based DB systems. + CpuCoreCount *int `mandatory:"false" json:"cpuCoreCount"` + // Size, in GBs, to which the currently attached storage needs to be scaled up to for VM based DB system. This must be greater than current storage size. Note that the total storage size attached will be more than what is requested, to account for REDO/RECO space and software volume. + DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"` + // The public key portion of the key pair to use for SSH access to the DB System. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. + SshPublicKeys []string `mandatory:"false" json:"sshPublicKeys"` + Version *PatchDetails `mandatory:"false" json:"version"` +} +func (m UpdateDbSystemDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_request_response.go index 4d791e649..d9cd0493e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package database import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateDbSystemRequest wrapper for the UpdateDbSystem operation type UpdateDbSystemRequest struct { - - // The DB System [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` - - // Request to update the properties of a DB System. - UpdateDbSystemDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` + + // Request to update the properties of a DB System. + UpdateDbSystemDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateDbSystemRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateDbSystemResponse wrapper for the UpdateDbSystem operation type UpdateDbSystemResponse struct { - // The underlying http response - RawResponse *http.Response - - // The DbSystem instance - DbSystem `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The DbSystem instance + DbSystem `presentIn:"body"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response UpdateDbSystemResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/example/.env.sample b/vendor/github.com/oracle/oci-go-sdk/example/.env.sample new file mode 100644 index 000000000..8e479739c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/.env.sample @@ -0,0 +1,11 @@ +# The Availability Domain of the instance. Example: Uocm:PHX-AD-1 +# OCI_AVAILABILITY_DOMAIN=Uocm:PHX-AD-1 +OCI_AVAILABILITY_DOMAIN= + +# The OCID of the compartment. +# OCI_COMPARTMENT_ID=ocid1.compartment.oc1..thisisafakeocidaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +OCI_COMPARTMENT_ID= + +# The OCID of the root compartment. +# OCI_ROOT_COMPARTMENT_ID=ocidv1:tenancy:oc1:phx:00000000000000aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +OCI_ROOT_COMPARTMENT_ID= diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_audit_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_audit_test.go new file mode 100644 index 000000000..5b83bdd7f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_audit_test.go @@ -0,0 +1,36 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Example code for Audit API +// +package example + +import ( + "context" + "fmt" + "time" + + "github.com/oracle/oci-go-sdk/audit" + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/example/helpers" +) + +func ExampleListEvents() { + c, clerr := audit.NewAuditClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(clerr) + + // list events for last 5 hour + req := audit.ListEventsRequest{ + CompartmentId: helpers.CompartmentID(), + StartTime: &common.SDKTime{time.Now().Add(time.Hour * -5)}, + EndTime: &common.SDKTime{time.Now()}, + } + + _, err := c.ListEvents(context.Background(), req) + helpers.LogIfError(err) + + //log.Printf("events returned back: %v", resp.Items) + fmt.Println("list events completed") + + // Output: + // list events completed +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_core_pagination_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_core_pagination_test.go new file mode 100644 index 000000000..2e7df409c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_core_pagination_test.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Example code for Core Services API +// +package example + +import ( + "context" + "fmt" + "log" + + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/core" + "github.com/oracle/oci-go-sdk/example/helpers" +) + +// ExampleListShapes_Pagination demostrate how to use page parameter +func ExampleListShapes_Pagination() { + c, err := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(err) + + request := core.ListShapesRequest{ + CompartmentId: helpers.CompartmentID(), + } + + // to show how pagination works, reduce number of items to return in a paginated "List" call + request.Limit = common.Int(2) + + listShapesFunc := func(request core.ListShapesRequest) (core.ListShapesResponse, error) { + return c.ListShapes(context.Background(), request) + } + + for r, err := listShapesFunc(request); ; r, err = listShapesFunc(request) { + helpers.LogIfError(err) + + log.Printf("list shapes returns: %v", r.Items) + + if r.OpcNextPage != nil { + // if there are more items in next page, fetch items from next page + request.Page = r.OpcNextPage + } else { + // no more result, break the loop + break + } + } + + fmt.Println("list shapes completed") + + // Output: + // list shapes completed +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_core_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_core_test.go new file mode 100644 index 000000000..4f28be308 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_core_test.go @@ -0,0 +1,429 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Example code for Core Services API +// + +package example + +import ( + "context" + "fmt" + "log" + "time" + + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/core" + "github.com/oracle/oci-go-sdk/example/helpers" +) + +const ( + vcnDisplayName = "OCI-GOSDK-Sample-VCN" + subnetDisplayName1 = "OCI-GOSDK-Sample-Subnet1" + subnetDisplayName2 = "OCI-GOSDK-Sample-Subnet2" + + // replace following variables with your instance info + // this is used by ExampleCreateImageDetails_Polymorphic + objectStorageURIWtihImage = "[The Object Storage URL for the image which will be used to create an image.]" +) + +// ExampleLaunchInstance does create an instance +// NOTE: launch instance will create a new instance and VCN. please make sure delete the instance +// after execute this sample code, otherwise, you will be charged for the running instance +func ExampleLaunchInstance() { + c, err := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(err) + ctx := context.Background() + + // create the launch instance request + request := core.LaunchInstanceRequest{} + request.CompartmentId = helpers.CompartmentID() + request.DisplayName = common.String("OCI-Sample-Instance") + request.AvailabilityDomain = helpers.AvailabilityDomain() + + // create a subnet or get the one already created + subnet := CreateOrGetSubnet() + fmt.Println("subnet created") + request.SubnetId = subnet.Id + + // get a image + image := listImages(ctx, c)[0] + fmt.Println("list images") + request.ImageId = image.Id + + // get all the shapes and filter the list by compatibility with the image + shapes := listShapes(ctx, c, request.ImageId) + fmt.Println("list shapes") + request.Shape = shapes[0].Shape + + createResp, err := c.LaunchInstance(ctx, request) + helpers.LogIfError(err) + fmt.Println("instance created") + + // get new created instance + getInstance := func() (interface{}, error) { + request := core.GetInstanceRequest{ + InstanceId: createResp.Instance.Id, + } + + readResp, err := c.GetInstance(ctx, request) + + if err != nil { + return nil, err + } + + return readResp, err + } + + // wait for instance lifecyle become running + helpers.LogIfError( + helpers.RetryUntilTrueOrError( + getInstance, + helpers.CheckLifecycleState(string(core.InstanceLifecycleStateRunning)), + time.Tick(10*time.Second), + time.After((5 * time.Minute)))) + + defer func() { + terminateInstance(ctx, c, createResp.Id) + + client, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(clerr) + + vcnID := subnet.VcnId + deleteSubnet(ctx, client, subnet.Id) + deleteVcn(ctx, client, vcnID) + }() + + // Output: + // subnet created + // list images + // list shapes + // instance created + // terminating instance + // instance terminated + // deleteing subnet + // subnet deleted + // deleteing VCN + // VCN deleted +} + +// ExampleCreateImageDetails_Polymorphic creates a boot disk image for the specified instance or +// imports an exported image from the Oracle Cloud Infrastructure Object Storage service. +func ExampleCreateImageDetails_Polymorphic() { + request := core.CreateImageRequest{} + request.CompartmentId = helpers.CompartmentID() + + // you can import an image based on the Object Storage URL 'core.ImageSourceViaObjectStorageUriDetails' + // or based on the namespace, bucket name and object name 'core.ImageSourceViaObjectStorageTupleDetails' + // following example shows how to import image from object storage uri, you can use another one: + // request.ImageSourceDetails = core.ImageSourceViaObjectStorageTupleDetails + sourceDetails := core.ImageSourceViaObjectStorageUriDetails{} + sourceDetails.SourceUri = common.String(objectStorageURIWtihImage) + + request.ImageSourceDetails = sourceDetails + + c, err := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(err) + + _, err = c.CreateImage(context.Background(), request) + helpers.LogIfError(err) + fmt.Println("image created") +} + +// CreateOrGetVcn either creates a new Virtual Cloud Network (VCN) or get the one already exist +func CreateOrGetVcn() core.Vcn { + c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(clerr) + ctx := context.Background() + + vcnItems := listVcns(ctx, c) + + for _, element := range vcnItems { + if *element.DisplayName == vcnDisplayName { + // VCN already created, return it + return element + } + } + + // create a new VCN + request := core.CreateVcnRequest{} + request.CidrBlock = common.String("10.0.0.0/16") + request.CompartmentId = helpers.CompartmentID() + request.DisplayName = common.String(vcnDisplayName) + request.DnsLabel = common.String("vcndns") + + r, err := c.CreateVcn(ctx, request) + helpers.LogIfError(err) + return r.Vcn +} + +// CreateSubnet creates a new subnet or get the one already exist +func CreateOrGetSubnet() core.Subnet { + return CreateOrGetSubnetWithDetails( + common.String(subnetDisplayName1), + common.String("10.0.0.0/24"), + common.String("subnetdns1"), + helpers.AvailabilityDomain()) +} + +// CreateOrGetSubnetWithDetails either creates a new Virtual Cloud Network (VCN) or get the one already exist +// with detail info +func CreateOrGetSubnetWithDetails(displayName *string, cidrBlock *string, dnsLabel *string, availableDomain *string) core.Subnet { + c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(clerr) + ctx := context.Background() + + subnets := listSubnets(ctx, c) + + if displayName == nil { + displayName = common.String(subnetDisplayName1) + } + + // check if the subnet has already been created + for _, element := range subnets { + if *element.DisplayName == *displayName { + // find the subnet, return it + return element + } + } + + // create a new subnet + request := core.CreateSubnetRequest{} + request.AvailabilityDomain = availableDomain + request.CompartmentId = helpers.CompartmentID() + request.CidrBlock = cidrBlock + request.DisplayName = displayName + request.DnsLabel = dnsLabel + + vcn := CreateOrGetVcn() + request.VcnId = vcn.Id + + r, err := c.CreateSubnet(ctx, request) + helpers.LogIfError(err) + + getSubnet := func() (interface{}, error) { + getReq := core.GetSubnetRequest{ + SubnetId: r.Id, + } + + getResp, err := c.GetSubnet(ctx, getReq) + + if err != nil { + return nil, err + } + + return getResp, nil + } + + // wait for lifecyle become running + helpers.LogIfError( + helpers.RetryUntilTrueOrError( + getSubnet, + helpers.CheckLifecycleState(string(core.SubnetLifecycleStateAvailable)), + time.Tick(10*time.Second), + time.After((5 * time.Minute)))) + + // update the security rules + getReq := core.GetSecurityListRequest{ + SecurityListId: common.String(r.SecurityListIds[0]), + } + + getResp, err := c.GetSecurityList(ctx, getReq) + helpers.LogIfError(err) + + // this security rule allows remote control the instance + portRange := core.PortRange{ + Max: common.Int(1521), + Min: common.Int(1521), + } + + newRules := append(getResp.IngressSecurityRules, core.IngressSecurityRule{ + Protocol: common.String("6"), // TCP + Source: common.String("0.0.0.0/0"), + TcpOptions: &core.TcpOptions{ + DestinationPortRange: &portRange, + }, + }) + + updateReq := core.UpdateSecurityListRequest{ + SecurityListId: common.String(r.SecurityListIds[0]), + } + + updateReq.IngressSecurityRules = newRules + + _, err = c.UpdateSecurityList(ctx, updateReq) + helpers.LogIfError(err) + + return r.Subnet +} + +func listVcns(ctx context.Context, c core.VirtualNetworkClient) []core.Vcn { + request := core.ListVcnsRequest{ + CompartmentId: helpers.CompartmentID(), + } + + r, err := c.ListVcns(ctx, request) + helpers.LogIfError(err) + return r.Items +} + +func listSubnets(ctx context.Context, c core.VirtualNetworkClient) []core.Subnet { + vcn := CreateOrGetVcn() + + request := core.ListSubnetsRequest{ + CompartmentId: helpers.CompartmentID(), + VcnId: vcn.Id, + } + + r, err := c.ListSubnets(ctx, request) + helpers.LogIfError(err) + return r.Items +} + +// ListImages lists the available images in the specified compartment. +func listImages(ctx context.Context, c core.ComputeClient) []core.Image { + request := core.ListImagesRequest{ + CompartmentId: helpers.CompartmentID(), + } + + r, err := c.ListImages(ctx, request) + helpers.LogIfError(err) + + return r.Items +} + +// ListShapes Lists the shapes that can be used to launch an instance within the specified compartment. +func listShapes(ctx context.Context, c core.ComputeClient, imageID *string) []core.Shape { + request := core.ListShapesRequest{ + CompartmentId: helpers.CompartmentID(), + ImageId: imageID, + } + + r, err := c.ListShapes(ctx, request) + helpers.LogIfError(err) + + if r.Items == nil || len(r.Items) == 0 { + log.Fatalln("Invalid response from ListShapes") + } + + return r.Items +} + +func terminateInstance(ctx context.Context, c core.ComputeClient, id *string) { + request := core.TerminateInstanceRequest{ + InstanceId: id, + } + + _, err := c.TerminateInstance(ctx, request) + helpers.LogIfError(err) + + fmt.Println("terminating instance") + + // get new created instance + getInstance := func() (interface{}, error) { + request := core.GetInstanceRequest{ + InstanceId: id, + } + + readResp, err := c.GetInstance(ctx, request) + + if err != nil { + if readResp.RawResponse.StatusCode == 404 { + // cannot find resources which means it's been deleted + return core.Instance{LifecycleState: core.InstanceLifecycleStateTerminated}, nil + } + return nil, err + } + + return readResp, err + } + + // wait for instance lifecyle become terminated + helpers.LogIfError( + helpers.RetryUntilTrueOrError( + getInstance, + helpers.CheckLifecycleState(string(core.InstanceLifecycleStateTerminated)), + time.Tick(10*time.Second), + time.After((5 * time.Minute)))) + + fmt.Println("instance terminated") + +} + +func deleteVcn(ctx context.Context, c core.VirtualNetworkClient, id *string) { + request := core.DeleteVcnRequest{ + VcnId: id, + } + + fmt.Println("deleteing VCN") + _, err := c.DeleteVcn(ctx, request) + helpers.LogIfError(err) + + getVcn := func() (interface{}, error) { + getReq := core.GetVcnRequest{ + VcnId: id, + } + + getResp, err := c.GetVcn(ctx, getReq) + + if err != nil { + if getResp.RawResponse.StatusCode == 404 { + // resource cannot found which means it's been deleted in this case + return core.Vcn{LifecycleState: core.VcnLifecycleStateTerminated}, nil + } + + return nil, err + } + + return getResp, nil + } + + // wait for lifecyle become terminated + helpers.LogIfError( + helpers.RetryUntilTrueOrError( + getVcn, + helpers.CheckLifecycleState(string(core.VcnLifecycleStateTerminated)), + time.Tick(10*time.Second), + time.After((5 * time.Minute)))) + + fmt.Println("VCN deleted") +} + +func deleteSubnet(ctx context.Context, c core.VirtualNetworkClient, id *string) { + request := core.DeleteSubnetRequest{ + SubnetId: id, + } + + _, err := c.DeleteSubnet(context.Background(), request) + helpers.LogIfError(err) + + fmt.Println("deleteing subnet") + + getSubnet := func() (interface{}, error) { + getReq := core.GetSubnetRequest{ + SubnetId: id, + } + + getResp, err := c.GetSubnet(ctx, getReq) + + if err != nil { + if getResp.RawResponse.StatusCode == 404 { + // resource cannot found which means it's been deleted in this case + return core.Subnet{LifecycleState: core.SubnetLifecycleStateTerminated}, nil + } + + return nil, err + } + + return getResp, nil + } + + // wait for lifecyle become terminated + helpers.LogIfError( + helpers.RetryUntilTrueOrError( + getSubnet, + helpers.CheckLifecycleState(string(core.SubnetLifecycleStateTerminated)), + time.Tick(10*time.Second), + time.After((5 * time.Minute)))) + + fmt.Println("subnet deleted") +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_identity_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_identity_test.go new file mode 100644 index 000000000..1ae3cf577 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_identity_test.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Example code for Identity and Access Management Service API +// + +package example + +import ( + "context" + "fmt" + "log" + + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/example/helpers" + "github.com/oracle/oci-go-sdk/identity" +) + +// ExampleListAvailabilityDomains Lists the Availability Domains in your tenancy. +// Specify the OCID of either the tenancy or another of your compartments as +// the value for the compartment ID (remember that the tenancy is simply the root compartment). +func ExampleListAvailabilityDomains() { + c, err := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(err) + + // The OCID of the tenancy containing the compartment. + tenancyID, err := common.DefaultConfigProvider().TenancyOCID() + helpers.LogIfError(err) + + request := identity.ListAvailabilityDomainsRequest{ + CompartmentId: &tenancyID, + } + + r, err := c.ListAvailabilityDomains(context.Background(), request) + helpers.LogIfError(err) + + log.Printf("list of available domains: %v", r.Items) + fmt.Println("list available domains completed") + + // Output: + // list available domains completed +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_loadbalancer_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_loadbalancer_test.go new file mode 100644 index 000000000..db884fd29 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_loadbalancer_test.go @@ -0,0 +1,188 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Example code for Load Balancing Service API +// + +package example + +import ( + "context" + "fmt" + "time" + + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/core" + "github.com/oracle/oci-go-sdk/example/helpers" + "github.com/oracle/oci-go-sdk/identity" + "github.com/oracle/oci-go-sdk/loadbalancer" +) + +const ( + loadbalancerDisplayName = "OCI-GO-Sample-LB" +) + +func ExampleCreateLoadbalancer() { + + c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) + ctx := context.Background() + helpers.LogIfError(clerr) + + request := loadbalancer.CreateLoadBalancerRequest{} + request.CompartmentId = helpers.CompartmentID() + request.DisplayName = common.String(loadbalancerDisplayName) + + subnet1 := CreateOrGetSubnet() + fmt.Println("create subnet1 complete") + + // create a subnet in different availability domain + identityClient, err := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(err) + req := identity.ListAvailabilityDomainsRequest{} + req.CompartmentId = helpers.CompartmentID() + response, err := identityClient.ListAvailabilityDomains(ctx, req) + helpers.LogIfError(err) + availableDomain := response.Items[1].Name + + subnet2 := CreateOrGetSubnetWithDetails(common.String(subnetDisplayName2), common.String("10.0.1.0/24"), common.String("subnetdns2"), availableDomain) + fmt.Println("create subnet2 complete") + + request.SubnetIds = []string{*subnet1.Id, *subnet2.Id} + + shapes := listLoadBalancerShapes(ctx, c) + fmt.Println("list load balancer shapes complete") + + request.ShapeName = shapes[0].Name + + _, err = c.CreateLoadBalancer(ctx, request) + helpers.LogIfError(err) + + fmt.Println("create load balancer complete") + + // get created loadbalancer + getLoadBalancer := func() *loadbalancer.LoadBalancer { + loadbalancers := listLoadBalancers(ctx, c, loadbalancer.LoadBalancerLifecycleStateActive) + for _, element := range loadbalancers { + if *element.DisplayName == loadbalancerDisplayName { + // found it, return + return &element + } + } + + return nil + } + + // use to check the lifecycle states of new load balancer + loadBalancerLifecycleStateCheck := func() (interface{}, error) { + loadBalancer := getLoadBalancer() + if loadBalancer != nil { + return loadBalancer, nil + } + + return loadbalancer.LoadBalancer{}, nil + } + + // wait for instance lifecyle state become running + helpers.LogIfError( + helpers.RetryUntilTrueOrError( + loadBalancerLifecycleStateCheck, + helpers.CheckLifecycleState(string(loadbalancer.LoadBalancerLifecycleStateActive)), + time.Tick(10*time.Second), + time.After((5 * time.Minute)))) + + newCreatedLoadBalancer := getLoadBalancer() + fmt.Printf("new loadbalancer LifecycleState is: %s\n", newCreatedLoadBalancer.LifecycleState) + + // clean up resources + defer func() { + deleteLoadbalancer(ctx, c, newCreatedLoadBalancer.Id) + + client, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(clerr) + + vcnID := subnet1.VcnId + deleteSubnet(ctx, client, subnet1.Id) + deleteSubnet(ctx, client, subnet2.Id) + deleteVcn(ctx, client, vcnID) + }() + + // Output: + // create subnet1 complete + // create subnet2 complete + // list load balancer shapes complete + // create load balancer complete + // new loadbalancer LifecycleState is: ACTIVE + // deleting load balancer + // load balancer deleted + // deleteing subnet + // subnet deleted + // deleteing subnet + // subnet deleted + // deleteing VCN + // VCN deleted +} + +func listLoadBalancerShapes(ctx context.Context, client loadbalancer.LoadBalancerClient) []loadbalancer.LoadBalancerShape { + request := loadbalancer.ListShapesRequest{ + CompartmentId: helpers.CompartmentID(), + } + + r, err := client.ListShapes(ctx, request) + helpers.LogIfError(err) + return r.Items +} + +func listLoadBalancers(ctx context.Context, client loadbalancer.LoadBalancerClient, lifecycleState loadbalancer.LoadBalancerLifecycleStateEnum) []loadbalancer.LoadBalancer { + request := loadbalancer.ListLoadBalancersRequest{ + CompartmentId: helpers.CompartmentID(), + DisplayName: common.String(loadbalancerDisplayName), + LifecycleState: lifecycleState, + } + + r, err := client.ListLoadBalancers(ctx, request) + helpers.LogIfError(err) + return r.Items +} + +func deleteLoadbalancer(ctx context.Context, client loadbalancer.LoadBalancerClient, id *string) { + request := loadbalancer.DeleteLoadBalancerRequest{ + LoadBalancerId: id, + } + + _, err := client.DeleteLoadBalancer(ctx, request) + helpers.LogIfError(err) + fmt.Println("deleting load balancer") + + // get loadbalancer + getLoadBalancer := func() *loadbalancer.LoadBalancer { + loadbalancers := listLoadBalancers(ctx, client, loadbalancer.LoadBalancerLifecycleStateDeleting) + for _, element := range loadbalancers { + if *element.DisplayName == loadbalancerDisplayName { + // found it, return + return &element + } + } + + return nil + } + + // use to check the lifecycle state of load balancer + loadBalancerLifecycleStateCheck := func() (interface{}, error) { + loadBalancer := getLoadBalancer() + if loadBalancer != nil { + return loadBalancer, nil + } + + // cannot find load balancer which means it's been deleted + return loadbalancer.LoadBalancer{LifecycleState: loadbalancer.LoadBalancerLifecycleStateDeleted}, nil + } + + // wait for load balancer been deleted + helpers.LogIfError( + helpers.RetryUntilTrueOrError( + loadBalancerLifecycleStateCheck, + helpers.CheckLifecycleState(string(loadbalancer.LoadBalancerLifecycleStateDeleted)), + time.Tick(10*time.Second), + time.After((10 * time.Minute)))) + + fmt.Println("load balancer deleted") +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_objectstorage_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_objectstorage_test.go new file mode 100644 index 000000000..3481cdc62 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_objectstorage_test.go @@ -0,0 +1,129 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Example code for Object Storage Service API +// + +package example + +import ( + "context" + "crypto/sha256" + "fmt" + "io" + "io/ioutil" + "math/rand" + "os" + "path" + "time" + + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/example/helpers" + "github.com/oracle/oci-go-sdk/objectstorage" +) + +// ExampleObjectStorage_UploadFile shows how to create a bucket and upload a file +func ExampleObjectStorage_UploadFile() { + c, clerr := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(clerr) + + ctx := context.Background() + bname := helpers.GetRandomString(8) + namespace := getNamespace(ctx, c) + + createBucket(ctx, c, namespace, bname) + defer deleteBucket(ctx, c, namespace, bname) + + contentlen := 1024 * 1000 + filepath, filesize := writeTempFileOfSize(int64(contentlen)) + filename := path.Base(filepath) + defer func() { + os.Remove(filename) + }() + + file, e := os.Open(filepath) + defer file.Close() + helpers.LogIfError(e) + + e = putObject(ctx, c, namespace, bname, filename, int(filesize), file, nil) + helpers.LogIfError(e) + defer deleteObject(ctx, c, namespace, bname, filename) + + // Output: + // get namespace + // create bucket + // put object + // delete object + // delete bucket +} + +func getNamespace(ctx context.Context, c objectstorage.ObjectStorageClient) string { + request := objectstorage.GetNamespaceRequest{} + r, err := c.GetNamespace(ctx, request) + helpers.LogIfError(err) + fmt.Println("get namespace") + return *r.Value +} + +func putObject(ctx context.Context, c objectstorage.ObjectStorageClient, namespace, bucketname, objectname string, contentLen int, content io.ReadCloser, metadata map[string]string) error { + request := objectstorage.PutObjectRequest{ + NamespaceName: &namespace, + BucketName: &bucketname, + ObjectName: &objectname, + ContentLength: &contentLen, + PutObjectBody: content, + OpcMeta: metadata, + } + _, err := c.PutObject(ctx, request) + fmt.Println("put object") + return err +} + +func deleteObject(ctx context.Context, c objectstorage.ObjectStorageClient, namespace, bucketname, objectname string) (err error) { + request := objectstorage.DeleteObjectRequest{ + NamespaceName: &namespace, + BucketName: &bucketname, + ObjectName: &objectname, + } + _, err = c.DeleteObject(ctx, request) + helpers.LogIfError(err) + fmt.Println("delete object") + return +} + +func createBucket(ctx context.Context, c objectstorage.ObjectStorageClient, namespace, name string) { + request := objectstorage.CreateBucketRequest{ + NamespaceName: &namespace, + } + request.CompartmentId = helpers.CompartmentID() + request.Name = &name + request.Metadata = make(map[string]string) + request.PublicAccessType = objectstorage.CreateBucketDetailsPublicAccessTypeNopublicaccess + _, err := c.CreateBucket(ctx, request) + helpers.LogIfError(err) + + fmt.Println("create bucket") +} + +func deleteBucket(ctx context.Context, c objectstorage.ObjectStorageClient, namespace, name string) (err error) { + request := objectstorage.DeleteBucketRequest{ + NamespaceName: &namespace, + BucketName: &name, + } + _, err = c.DeleteBucket(ctx, request) + helpers.LogIfError(err) + + fmt.Println("delete bucket") + return +} + +func writeTempFileOfSize(filesize int64) (fileName string, fileSize int64) { + hash := sha256.New() + f, _ := ioutil.TempFile("", "OCIGOSDKSampleFile") + ra := rand.New(rand.NewSource(time.Now().UnixNano())) + defer f.Close() + writer := io.MultiWriter(f, hash) + written, _ := io.CopyN(writer, ra, filesize) + fileName = f.Name() + fileSize = written + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_rawrequest_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_rawrequest_test.go new file mode 100644 index 000000000..ce2fcc1e3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_rawrequest_test.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Example code for sending raw request to Service API +// + +package example + +import ( + "fmt" + "io/ioutil" + "log" + "net/http" + "time" + + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/example/helpers" +) + +// ExampleRawRequest compose a request, sign it and send to server +func ExampleListUsers_RawRequest() { + // build the url + url := "https://identity.us-phoenix-1.oraclecloud.com/20160918/users/?compartmentId=" + *helpers.RootCompartmentID() + + // create request + request, err := http.NewRequest("GET", url, nil) + helpers.LogIfError(err) + + // Set the Date header + request.Header.Set("Date", time.Now().UTC().Format(http.TimeFormat)) + + // And a provider of cryptographic keys + provider := common.DefaultConfigProvider() + + // Build the signer + signer := common.DefaultRequestSigner(provider) + + // Sign the request + signer.Sign(request) + + client := http.Client{} + + fmt.Println("send request") + + // Execute the request + resp, err := client.Do(request) + helpers.LogIfError(err) + + defer resp.Body.Close() + + log.Println("response Status:", resp.Status) + log.Println("response Headers:", resp.Header) + + body, _ := ioutil.ReadAll(resp.Body) + log.Println("response Body:", string(body)) + + fmt.Println("receive response") + + // Output: + // send request + // receive response +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_test.go new file mode 100644 index 000000000..dca41999e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_test.go @@ -0,0 +1,23 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Example code for OCI GOSDK +// +package example + +import ( + "os" + "testing" + + "github.com/oracle/oci-go-sdk/example/helpers" +) + +// Before run the samples, update the .env.sample file with your tenancy info. +// To run individual sample: +// go test github.com/oracle/oci-go-sdk/example -run ^ExampleLaunchInstance$ +// To run all samples: +// go test github.com/oracle/oci-go-sdk/example +func TestMain(m *testing.M) { + // parse the arguments defined in .env.sample file + helpers.ParseAgrs() + os.Exit(m.Run()) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/helpers/args.go b/vendor/github.com/oracle/oci-go-sdk/example/helpers/args.go new file mode 100644 index 000000000..4f8b123f0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/helpers/args.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Helper methods for OCI GOSDK Samples +// + +package helpers + +import ( + "os" + + "github.com/oracle/oci-go-sdk/common" + + "github.com/subosito/gotenv" +) + +var ( + availabilityDomain string + compartmentID string + rootCompartmentID string +) + +// ParseAgrs parse shared variables from environment variables, other samples should define their own +// viariables and call this function to initialize shared variables +func ParseAgrs() { + err := gotenv.Load(".env.sample") + LogIfError(err) + + availabilityDomain = os.Getenv("OCI_AVAILABILITY_DOMAIN") + compartmentID = os.Getenv("OCI_COMPARTMENT_ID") + rootCompartmentID = os.Getenv("OCI_ROOT_COMPARTMENT_ID") +} + +// AvailabilityDomain return the aviailability domain defined in .env.sample file +func AvailabilityDomain() *string { + return common.String(availabilityDomain) +} + +// CompartmentID return the compartment ID defined in .env.sample file +func CompartmentID() *string { + return common.String(compartmentID) +} + +// RootCompartmentID return the root compartment ID defined in .env.sample file +func RootCompartmentID() *string { + return common.String(rootCompartmentID) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/helpers/helper.go b/vendor/github.com/oracle/oci-go-sdk/example/helpers/helper.go new file mode 100644 index 000000000..71317387d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/helpers/helper.go @@ -0,0 +1,111 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Helper methods for OCI GOSDK Samples +// + +package helpers + +import ( + "fmt" + "log" + "math/rand" + "reflect" + "strings" + "time" +) + +// LogIfError is equivalent to Println() followed by a call to os.Exit(1) if error is not nil +func LogIfError(err error) { + if err != nil { + log.Fatalln(err.Error()) + } +} + +// RetryUntilTrueOrError retries a function until the predicate is true or it reaches a timeout. +// The operation is retried at the give frequency +func RetryUntilTrueOrError(operation func() (interface{}, error), predicate func(interface{}) (bool, error), frequency, timeout <-chan time.Time) error { + for { + select { + case <-timeout: + return fmt.Errorf("timeout reached") + case <-frequency: + result, err := operation() + if err != nil { + return err + } + + isTrue, err := predicate(result) + if err != nil { + return err + } + + if isTrue { + return nil + } + } + } +} + +// FindLifecycleFieldValue finds lifecycle value inside the struct based on reflection +func FindLifecycleFieldValue(request interface{}) (string, error) { + val := reflect.ValueOf(request) + if val.Kind() == reflect.Ptr { + if val.IsNil() { + return "", fmt.Errorf("can not unmarshal to response a pointer to nil structure") + } + val = val.Elem() + } + + var err error + typ := val.Type() + for i := 0; i < typ.NumField(); i++ { + if err != nil { + return "", err + } + + sf := typ.Field(i) + + //unexported + if sf.PkgPath != "" { + continue + } + + sv := val.Field(i) + + if sv.Kind() == reflect.Struct { + lif, err := FindLifecycleFieldValue(sv.Interface()) + if err == nil { + return lif, nil + } + } + if !strings.Contains(strings.ToLower(sf.Name), "lifecyclestate") { + continue + } + return sv.String(), nil + } + return "", fmt.Errorf("request does not have a lifecycle field") +} + +// CheckLifecycleState returns a function that checks for that a struct has the given lifecycle +func CheckLifecycleState(lifecycleState string) func(interface{}) (bool, error) { + return func(request interface{}) (bool, error) { + fieldLifecycle, err := FindLifecycleFieldValue(request) + if err != nil { + return false, err + } + isEqual := fieldLifecycle == lifecycleState + log.Printf("Current lifecycle state is: %s, waiting for it becomes to: %s", fieldLifecycle, lifecycleState) + return isEqual, nil + } +} + +// GetRandomString returns a random string with length equals to n +func GetRandomString(n int) string { + letters := []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") + + b := make([]rune, n) + for i := range b { + b[i] = letters[rand.Intn(len(letters))] + } + return string(b) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_export_details.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/create_export_details.go deleted file mode 100644 index 8e8d18f4c..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_export_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // CreateExportDetails The representation of CreateExportDetails -type CreateExportDetails struct { - - // The OCID of this export's export set. - ExportSetId *string `mandatory:"true" json:"exportSetId"` - - // The OCID of this export's file system. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // Path used to access the associated file system. - // Avoid entering confidential information. - // Example: `/accounting` - Path *string `mandatory:"true" json:"path"` -} - -func (m CreateExportDetails) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/create_export_request_response.go deleted file mode 100644 index 0bafb6d0f..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_export_request_response.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// CreateExportRequest wrapper for the CreateExport operation -type CreateExportRequest struct { - - // Details for creating a new export. - CreateExportDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` -} - -func (request CreateExportRequest) String() string { - return common.PointerString(request) -} - -// CreateExportResponse wrapper for the CreateExport operation -type CreateExportResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Export instance - Export `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response CreateExportResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/create_file_system_details.go deleted file mode 100644 index f9a16dcce..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_file_system_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // CreateFileSystemDetails The representation of CreateFileSystemDetails -type CreateFileSystemDetails struct { - - // The Availability Domain to create the file system in. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment to create the file system in. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My file system` - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m CreateFileSystemDetails) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/create_file_system_request_response.go deleted file mode 100644 index 1cb74256b..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_file_system_request_response.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// CreateFileSystemRequest wrapper for the CreateFileSystem operation -type CreateFileSystemRequest struct { - - // Details for creating a new file system. - CreateFileSystemDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` -} - -func (request CreateFileSystemRequest) String() string { - return common.PointerString(request) -} - -// CreateFileSystemResponse wrapper for the CreateFileSystem operation -type CreateFileSystemResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The FileSystem instance - FileSystem `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response CreateFileSystemResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_mount_target_details.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/create_mount_target_details.go deleted file mode 100644 index 3c1dcdf91..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_mount_target_details.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // CreateMountTargetDetails The representation of CreateMountTargetDetails -type CreateMountTargetDetails struct { - - // The Availability Domain to create the mount target in. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment to create the mount target in. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the subnet to create the mount target in. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My mount target` - DisplayName *string `mandatory:"false" json:"displayName"` - - // The hostname for the mount target's IP address. Used for - // DNS. The value is the hostname portion of the private IP's - // fully qualified domain name (FQDN) (for example, - // `-1` in FQDN - // `files-1.subnet123.vcn1.oraclevcn.com`). Must be - // unique across all VNICs in the subnet and comply with [RFC - // 952](https://tools.ietf.org/html/rfc952) and [RFC - // 1123](https://tools.ietf.org/html/rfc1123). - // For more information, see - // [DNS in Your Virtual Cloud Network]({{DOC_SERVER_URL}}/Content/Network/Concepts/dns.htm). - // Example: `files-1` - HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - - // A private IP address of your choice. Must be an available IP address within - // the subnet's CIDR. If you don't specify a value, Oracle automatically - // assigns a private IP address from the subnet. - // Example: `10.0.3.3` - IpAddress *string `mandatory:"false" json:"ipAddress"` -} - -func (m CreateMountTargetDetails) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/create_mount_target_request_response.go deleted file mode 100644 index ce521efbf..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_mount_target_request_response.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// CreateMountTargetRequest wrapper for the CreateMountTarget operation -type CreateMountTargetRequest struct { - - // Details for creating a new mount target. - CreateMountTargetDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` -} - -func (request CreateMountTargetRequest) String() string { - return common.PointerString(request) -} - -// CreateMountTargetResponse wrapper for the CreateMountTarget operation -type CreateMountTargetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The MountTarget instance - MountTarget `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response CreateMountTargetResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_snapshot_details.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/create_snapshot_details.go deleted file mode 100644 index 41d6b9277..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_snapshot_details.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // CreateSnapshotDetails The representation of CreateSnapshotDetails -type CreateSnapshotDetails struct { - - // The OCID of this export's file system. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // Name of the snapshot. Immutable. Must be unique with respect - // to all other non-DELETED snapshots on the associated file - // system. - // Avoid entering confidential information. - // Example: `sunday` - Name *string `mandatory:"true" json:"name"` -} - -func (m CreateSnapshotDetails) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/create_snapshot_request_response.go deleted file mode 100644 index 18c0f8e85..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/create_snapshot_request_response.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// CreateSnapshotRequest wrapper for the CreateSnapshot operation -type CreateSnapshotRequest struct { - - // Details for creating a new snapshot. - CreateSnapshotDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` -} - -func (request CreateSnapshotRequest) String() string { - return common.PointerString(request) -} - -// CreateSnapshotResponse wrapper for the CreateSnapshot operation -type CreateSnapshotResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Snapshot instance - Snapshot `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response CreateSnapshotResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_export_request_response.go deleted file mode 100644 index 6b497ca2d..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_export_request_response.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// DeleteExportRequest wrapper for the DeleteExport operation -type DeleteExportRequest struct { - - // The OCID of the export. This feature is currently in preview and may change before public release. Do not use it for production workloads. - ExportId *string `mandatory:"true" contributesTo:"path" name:"exportId"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` -} - -func (request DeleteExportRequest) String() string { - return common.PointerString(request) -} - -// DeleteExportResponse wrapper for the DeleteExport operation -type DeleteExportResponse struct { - - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response DeleteExportResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_file_system_request_response.go deleted file mode 100644 index 31da0295b..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_file_system_request_response.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// DeleteFileSystemRequest wrapper for the DeleteFileSystem operation -type DeleteFileSystemRequest struct { - - // The OCID of the file system. This feature is currently in preview and may change before public release. Do not use it for production workloads. - FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` -} - -func (request DeleteFileSystemRequest) String() string { - return common.PointerString(request) -} - -// DeleteFileSystemResponse wrapper for the DeleteFileSystem operation -type DeleteFileSystemResponse struct { - - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response DeleteFileSystemResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_mount_target_request_response.go deleted file mode 100644 index e177caafe..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_mount_target_request_response.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// DeleteMountTargetRequest wrapper for the DeleteMountTarget operation -type DeleteMountTargetRequest struct { - - // The OCID of the mount target. This feature is currently in preview and may change before public release. Do not use it for production workloads. - MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` -} - -func (request DeleteMountTargetRequest) String() string { - return common.PointerString(request) -} - -// DeleteMountTargetResponse wrapper for the DeleteMountTarget operation -type DeleteMountTargetResponse struct { - - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response DeleteMountTargetResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_snapshot_request_response.go deleted file mode 100644 index d75d1531e..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/delete_snapshot_request_response.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// DeleteSnapshotRequest wrapper for the DeleteSnapshot operation -type DeleteSnapshotRequest struct { - - // The OCID of the snapshot. This feature is currently in preview and may change before public release. Do not use it for production workloads. - SnapshotId *string `mandatory:"true" contributesTo:"path" name:"snapshotId"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` -} - -func (request DeleteSnapshotRequest) String() string { - return common.PointerString(request) -} - -// DeleteSnapshotResponse wrapper for the DeleteSnapshot operation -type DeleteSnapshotResponse struct { - - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response DeleteSnapshotResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/export.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/export.go deleted file mode 100644 index 80d2e7bd6..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/export.go +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // Export A file system and the path can be used to mount it. Each export - // resource belongs to exacty one export set. - // The export's path attribute of the export is not a path in the - // refenced file system, but the value used by clients for the path - // component of the remotetarget arugment when mounting the file - // system. - // The path must start with a / followed by a sequence of 0 or more - // /-separated path elements. For any two non-DELETED Export - // resources associated with the same ExportSet the path element - // sequence for the first Export resource can't contain the - // complete path element sequence of the second Export resource. - // For example: - // Good: - // /foo and /bar - // /foo1 and /foo2 - // /foo and /foo1 - // Bad: - // /foo and /foo/bar - // / and /foo - // Also note, paths may not end in /, no path element can be '.' - // or '..', and no path element can be longer than 255 bytes. - // No two non-DELETED export resources in the same export set can - // reference the same file system. -type Export struct { - - // The OCID of this export's export set. - ExportSetId *string `mandatory:"true" json:"exportSetId"` - - // The OCID of this export's file system. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // The OCID of the export. - Id *string `mandatory:"true" json:"id"` - - // The current state of the export. - LifecycleState ExportLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Path used to access the associated file system. - // Avoid entering confidential information. - // Example: `/accounting` - Path *string `mandatory:"true" json:"path"` - - // The date and time the export was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` -} - -func (m Export) String() string { - return common.PointerString(m) -} - - -// ExportLifecycleStateEnum Enum with underlying type: string -type ExportLifecycleStateEnum string - -// Set of constants representing the allowable values for ExportLifecycleState -const ( - ExportLifecycleStateCreating ExportLifecycleStateEnum = "CREATING" - ExportLifecycleStateActive ExportLifecycleStateEnum = "ACTIVE" - ExportLifecycleStateDeleting ExportLifecycleStateEnum = "DELETING" - ExportLifecycleStateDeleted ExportLifecycleStateEnum = "DELETED" - ExportLifecycleStateUnknown ExportLifecycleStateEnum = "UNKNOWN" -) - -var mappingExportLifecycleState = map[string]ExportLifecycleStateEnum { - "CREATING": ExportLifecycleStateCreating, - "ACTIVE": ExportLifecycleStateActive, - "DELETING": ExportLifecycleStateDeleting, - "DELETED": ExportLifecycleStateDeleted, - "UNKNOWN": ExportLifecycleStateUnknown, -} - -// GetExportLifecycleStateEnumValues Enumerates the set of values for ExportLifecycleState -func GetExportLifecycleStateEnumValues() []ExportLifecycleStateEnum { - values := make([]ExportLifecycleStateEnum, 0) - for _, v := range mappingExportLifecycleState { - if v != ExportLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/export_set.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/export_set.go deleted file mode 100644 index 27736e019..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/export_set.go +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // ExportSet A set of file systems to be exported via one (or more) mount - // targets. Composed of zero or more export resource. -type ExportSet struct { - - // The OCID of the compartment that contains the export set. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My export set` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the export set. - Id *string `mandatory:"true" json:"id"` - - // The current state of the export set. - LifecycleState ExportSetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the export set was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the VCN the export set is in. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The Availability Domain the export set is in. May be unset. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // Controls the maximum `tbytes`, `fbytes`, and `abytes`, - // values reported by `NFS FSSTAT` calls though any assocated - // mount targets. This is an advanced feature, most - // applications should leave this set to its default value. The - // `tbytes` value reported by `FSSTAT` will be - // `maxFsStatBytes`. `fbytes` and `abytes` value will be - // `maxFsStatBytes` minus the metered size of the file - // system. If the metered size is larger than `maxFsStatBytes` - // then `fbytes` and `abytes` will both be 0. - MaxFsStatBytes *int `mandatory:"false" json:"maxFsStatBytes"` - - // Controls the maximum `ffiles`, `ffiles`, and `afiles`, - // values reported by `NFS FSSTAT` calls though any assocated - // mount targets. This is an advanced feature, most - // applications should leave this set to its default value. The - // `tfiles` value reported by `FSSTAT` will be - // `maxFsStatFiles`. `ffiles` and `afiles` value will be - // `maxFsStatFiles` minus the metered size of the file - // system. If the metered size is larger than `maxFsStatFiles` - // then `ffiles` and `afiles` will both be 0. - MaxFsStatFiles *int `mandatory:"false" json:"maxFsStatFiles"` -} - -func (m ExportSet) String() string { - return common.PointerString(m) -} - - -// ExportSetLifecycleStateEnum Enum with underlying type: string -type ExportSetLifecycleStateEnum string - -// Set of constants representing the allowable values for ExportSetLifecycleState -const ( - ExportSetLifecycleStateCreating ExportSetLifecycleStateEnum = "CREATING" - ExportSetLifecycleStateActive ExportSetLifecycleStateEnum = "ACTIVE" - ExportSetLifecycleStateDeleting ExportSetLifecycleStateEnum = "DELETING" - ExportSetLifecycleStateDeleted ExportSetLifecycleStateEnum = "DELETED" - ExportSetLifecycleStateUnknown ExportSetLifecycleStateEnum = "UNKNOWN" -) - -var mappingExportSetLifecycleState = map[string]ExportSetLifecycleStateEnum { - "CREATING": ExportSetLifecycleStateCreating, - "ACTIVE": ExportSetLifecycleStateActive, - "DELETING": ExportSetLifecycleStateDeleting, - "DELETED": ExportSetLifecycleStateDeleted, - "UNKNOWN": ExportSetLifecycleStateUnknown, -} - -// GetExportSetLifecycleStateEnumValues Enumerates the set of values for ExportSetLifecycleState -func GetExportSetLifecycleStateEnumValues() []ExportSetLifecycleStateEnum { - values := make([]ExportSetLifecycleStateEnum, 0) - for _, v := range mappingExportSetLifecycleState { - if v != ExportSetLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/export_set_summary.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/export_set_summary.go deleted file mode 100644 index b2cda6f0e..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/export_set_summary.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // ExportSetSummary Summary information for an ExportSet. -type ExportSetSummary struct { - - // The OCID of the compartment that contains the export set. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My export set` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the export set. - Id *string `mandatory:"true" json:"id"` - - // The current state of the export set. - LifecycleState ExportSetSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the export set was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the VCN the export set is in. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The Availability Domain the export set is in. May be unset. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` -} - -func (m ExportSetSummary) String() string { - return common.PointerString(m) -} - - -// ExportSetSummaryLifecycleStateEnum Enum with underlying type: string -type ExportSetSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for ExportSetSummaryLifecycleState -const ( - ExportSetSummaryLifecycleStateCreating ExportSetSummaryLifecycleStateEnum = "CREATING" - ExportSetSummaryLifecycleStateActive ExportSetSummaryLifecycleStateEnum = "ACTIVE" - ExportSetSummaryLifecycleStateDeleting ExportSetSummaryLifecycleStateEnum = "DELETING" - ExportSetSummaryLifecycleStateDeleted ExportSetSummaryLifecycleStateEnum = "DELETED" - ExportSetSummaryLifecycleStateUnknown ExportSetSummaryLifecycleStateEnum = "UNKNOWN" -) - -var mappingExportSetSummaryLifecycleState = map[string]ExportSetSummaryLifecycleStateEnum { - "CREATING": ExportSetSummaryLifecycleStateCreating, - "ACTIVE": ExportSetSummaryLifecycleStateActive, - "DELETING": ExportSetSummaryLifecycleStateDeleting, - "DELETED": ExportSetSummaryLifecycleStateDeleted, - "UNKNOWN": ExportSetSummaryLifecycleStateUnknown, -} - -// GetExportSetSummaryLifecycleStateEnumValues Enumerates the set of values for ExportSetSummaryLifecycleState -func GetExportSetSummaryLifecycleStateEnumValues() []ExportSetSummaryLifecycleStateEnum { - values := make([]ExportSetSummaryLifecycleStateEnum, 0) - for _, v := range mappingExportSetSummaryLifecycleState { - if v != ExportSetSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/export_summary.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/export_summary.go deleted file mode 100644 index fd511c955..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/export_summary.go +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // ExportSummary Summary information for an Export. -type ExportSummary struct { - - // The OCID of this export's export set. - ExportSetId *string `mandatory:"true" json:"exportSetId"` - - // The OCID of this export's file system. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // The OCID of the export. - Id *string `mandatory:"true" json:"id"` - - // The current state of the export. - LifecycleState ExportSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Path used to access the associated file system. - // Avoid entering confidential information. - // Example: `/accounting` - Path *string `mandatory:"true" json:"path"` - - // The date and time the export was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` -} - -func (m ExportSummary) String() string { - return common.PointerString(m) -} - - -// ExportSummaryLifecycleStateEnum Enum with underlying type: string -type ExportSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for ExportSummaryLifecycleState -const ( - ExportSummaryLifecycleStateCreating ExportSummaryLifecycleStateEnum = "CREATING" - ExportSummaryLifecycleStateActive ExportSummaryLifecycleStateEnum = "ACTIVE" - ExportSummaryLifecycleStateDeleting ExportSummaryLifecycleStateEnum = "DELETING" - ExportSummaryLifecycleStateDeleted ExportSummaryLifecycleStateEnum = "DELETED" - ExportSummaryLifecycleStateUnknown ExportSummaryLifecycleStateEnum = "UNKNOWN" -) - -var mappingExportSummaryLifecycleState = map[string]ExportSummaryLifecycleStateEnum { - "CREATING": ExportSummaryLifecycleStateCreating, - "ACTIVE": ExportSummaryLifecycleStateActive, - "DELETING": ExportSummaryLifecycleStateDeleting, - "DELETED": ExportSummaryLifecycleStateDeleted, - "UNKNOWN": ExportSummaryLifecycleStateUnknown, -} - -// GetExportSummaryLifecycleStateEnumValues Enumerates the set of values for ExportSummaryLifecycleState -func GetExportSummaryLifecycleStateEnumValues() []ExportSummaryLifecycleStateEnum { - values := make([]ExportSummaryLifecycleStateEnum, 0) - for _, v := range mappingExportSummaryLifecycleState { - if v != ExportSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/ffsw_filestorage_client.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/ffsw_filestorage_client.go deleted file mode 100644 index 549359f85..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/ffsw_filestorage_client.go +++ /dev/null @@ -1,506 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -//FileStorageClient a client for FileStorage -type FileStorageClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewFileStorageClientWithConfigurationProvider Creates a new default FileStorage client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewFileStorageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client FileStorageClient, err error) { - baseClient, err := common.NewClientWithConfig(configProvider) - if err != nil { - return - } - - client = FileStorageClient{BaseClient: baseClient} - client.BasePath = "20171215" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *FileStorageClient) SetRegion(region string) { - client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "filestorage", region) -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *FileStorageClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } - - // Error has been checked already - region, _ := configProvider.Region() - client.config = &configProvider - client.SetRegion(region) - return nil -} - -// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set -func (client *FileStorageClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// CreateExport Creates a new export in the specifed export set, path, and -// file system. -func (client FileStorageClient) CreateExport(ctx context.Context, request CreateExportRequest) (response CreateExportResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/exports", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// CreateFileSystem Create a new file system in the specified compartment and -// availability domain. File systems in one availability domain -// can be mounted by instances in another availability domain, -// but they may see higher latencies than instances in the same -// availability domain as the file system. -// Once a file system is created it can be assocated with a mount -// target and then mounted by instances that can connect to the -// mount target's IP address. A file system can be assocated with -// more than one mount target at a time. -// For information about access control and compartments, see -// [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). -// For information about Availability Domains, see [Regions and -// Availability Domains]({{DOC_SERVER_URL}}/Content/General/Concepts/regions.htm). -// To get a list of Availability Domains, use the -// `ListAvailabilityDomains` operation in the Identity and Access -// Management Service API. -// All Oracle Bare Metal Cloud Services resources, including -// file systems, get an Oracle-assigned, unique ID called an Oracle -// Cloud Identifier (OCID). When you create a resource, you can -// find its OCID in the response. You can also retrieve a -// resource's OCID by using a List API operation on that resource -// type, or by viewing the resource in the Console. -func (client FileStorageClient) CreateFileSystem(ctx context.Context, request CreateFileSystemRequest) (response CreateFileSystemResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/fileSystems", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// CreateMountTarget Create a new mount target in the specified compartment and -// subnet. A file system can only be assocated with a mount -// target if they are both in the availablity domain. Instances -// can connect to mount targets in another availablity domain but -// they may see higher latencies than instances in the same -// availability domain as the mount target. -// Mount targets have one or more private IP addresses that can -// be used as the host portion of remotetarget parameters in -// client mount commands. These private IP addresses are listed -// in privateIpIds property of the mount target and are HA. Mount -// targets also consume additional IP addresses in their subnet. -// For information about access control and compartments, see -// [Overview of the IAM -// Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). -// For information about Availability Domains, see [Regions and -// Availability Domains]({{DOC_SERVER_URL}}/Content/General/Concepts/regions.htm). -// To get a list of Availability Domains, use the -// `ListAvailabilityDomains` operation in the Identity and Access -// Management Service API. -// All Oracle Bare Metal Cloud Services resources, including -// mount targets, get an Oracle-assigned, unique ID called an -// Oracle Cloud Identifier (OCID). When you create a resource, -// you can find its OCID in the response. You can also retrieve a -// resource's OCID by using a List API operation on that resource -// type, or by viewing the resource in the Console. -func (client FileStorageClient) CreateMountTarget(ctx context.Context, request CreateMountTargetRequest) (response CreateMountTargetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/mountTargets", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// CreateSnapshot Creates a new snapshot of the specified file system. The -// snapshot will be accessible at `.snapshot/`. -func (client FileStorageClient) CreateSnapshot(ctx context.Context, request CreateSnapshotRequest) (response CreateSnapshotResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/snapshots", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// DeleteExport Delete the specified export. -func (client FileStorageClient) DeleteExport(ctx context.Context, request DeleteExportRequest) (response DeleteExportResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/exports/{exportId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// DeleteFileSystem Delete the specified file system. The file system must not be -// referenced by any non-deleted export resources. Deleting a -// file system also deletes all of its snapshots. -func (client FileStorageClient) DeleteFileSystem(ctx context.Context, request DeleteFileSystemRequest) (response DeleteFileSystemResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/fileSystems/{fileSystemId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// DeleteMountTarget Delete the specified mount target. This will also delete the -// mount target's VNICs. -func (client FileStorageClient) DeleteMountTarget(ctx context.Context, request DeleteMountTargetRequest) (response DeleteMountTargetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/mountTargets/{mountTargetId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// DeleteSnapshot Delete the specified snapshot. -func (client FileStorageClient) DeleteSnapshot(ctx context.Context, request DeleteSnapshotRequest) (response DeleteSnapshotResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/snapshots/{snapshotId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// GetExport Gets the specified export's information. -func (client FileStorageClient) GetExport(ctx context.Context, request GetExportRequest) (response GetExportResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/exports/{exportId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// GetExportSet Gets the specified export set's information. -func (client FileStorageClient) GetExportSet(ctx context.Context, request GetExportSetRequest) (response GetExportSetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/exportSets/{exportSetId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// GetFileSystem Gets the specified file system's information. -func (client FileStorageClient) GetFileSystem(ctx context.Context, request GetFileSystemRequest) (response GetFileSystemResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/fileSystems/{fileSystemId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// GetMountTarget Gets the specified mount targets's information. -func (client FileStorageClient) GetMountTarget(ctx context.Context, request GetMountTargetRequest) (response GetMountTargetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/mountTargets/{mountTargetId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// GetSnapshot Gets the specified snapshot's information. -func (client FileStorageClient) GetSnapshot(ctx context.Context, request GetSnapshotRequest) (response GetSnapshotResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/snapshots/{snapshotId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// ListExportSets List the export set resources in the specified compartment. -func (client FileStorageClient) ListExportSets(ctx context.Context, request ListExportSetsRequest) (response ListExportSetsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/exportSets", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// ListExports List the export resources in the specified compartment. Must -// also specify an export set and / or a file system. -func (client FileStorageClient) ListExports(ctx context.Context, request ListExportsRequest) (response ListExportsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/exports", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// ListFileSystems List the file system resources in the specified compartment. -func (client FileStorageClient) ListFileSystems(ctx context.Context, request ListFileSystemsRequest) (response ListFileSystemsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/fileSystems", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// ListLockOwners List the lock owners in a given file system. -func (client FileStorageClient) ListLockOwners(ctx context.Context, request ListLockOwnersRequest) (response ListLockOwnersResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/fileSystems/{fileSystemId}/lockOwners", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// ListMountTargets List the mount target resources in the specified compartment. -func (client FileStorageClient) ListMountTargets(ctx context.Context, request ListMountTargetsRequest) (response ListMountTargetsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/mountTargets", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// ListSnapshots List the snapshots of the specified file system. -func (client FileStorageClient) ListSnapshots(ctx context.Context, request ListSnapshotsRequest) (response ListSnapshotsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/snapshots", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// UpdateExportSet Update the specified export set's information. -func (client FileStorageClient) UpdateExportSet(ctx context.Context, request UpdateExportSetRequest) (response UpdateExportSetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/exportSets/{exportSetId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// UpdateFileSystem Update the specified file system's information. -func (client FileStorageClient) UpdateFileSystem(ctx context.Context, request UpdateFileSystemRequest) (response UpdateFileSystemResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/fileSystems/{fileSystemId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - -// UpdateMountTarget Update the specified mount targets's information. -func (client FileStorageClient) UpdateMountTarget(ctx context.Context, request UpdateMountTargetRequest) (response UpdateMountTargetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/mountTargets/{mountTargetId}", request) - if err != nil { - return - } - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/file_system.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/file_system.go deleted file mode 100644 index f17696765..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/file_system.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // FileSystem A file system. A file system can be made accessible by adding it - // to an export set and associating the export set with a mount - // target. The same file system can be in multiple export sets and - // associated with multiple mount targets. - // To use any of the API operations, you must be authorized in an - // IAM policy. If you are not authorized, talk to an - // administrator. If you are an administrator who needs to write - // policies to give users access, see [Getting Started with - // Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). -type FileSystem struct { - - // The number of bytes consumed by the file system, including - // snapshot. This number reflects the metered size of the file - // system, and is updated asynchronously with respect to - // updates to the file system. For details on file system - // metering see [File System Metering]({{DOC_SERVER_URL}}/Content/File/Concepts/metering.htm). - MeteredBytes *int `mandatory:"true" json:"meteredBytes"` - - // The OCID of the compartment that contains the file system. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My file system` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the file system. - Id *string `mandatory:"true" json:"id"` - - // The current state of the file system. - LifecycleState FileSystemLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the file system was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The Availability Domain the file system is in. May be unset. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` -} - -func (m FileSystem) String() string { - return common.PointerString(m) -} - - -// FileSystemLifecycleStateEnum Enum with underlying type: string -type FileSystemLifecycleStateEnum string - -// Set of constants representing the allowable values for FileSystemLifecycleState -const ( - FileSystemLifecycleStateCreating FileSystemLifecycleStateEnum = "CREATING" - FileSystemLifecycleStateActive FileSystemLifecycleStateEnum = "ACTIVE" - FileSystemLifecycleStateDeleting FileSystemLifecycleStateEnum = "DELETING" - FileSystemLifecycleStateDeleted FileSystemLifecycleStateEnum = "DELETED" - FileSystemLifecycleStateUnknown FileSystemLifecycleStateEnum = "UNKNOWN" -) - -var mappingFileSystemLifecycleState = map[string]FileSystemLifecycleStateEnum { - "CREATING": FileSystemLifecycleStateCreating, - "ACTIVE": FileSystemLifecycleStateActive, - "DELETING": FileSystemLifecycleStateDeleting, - "DELETED": FileSystemLifecycleStateDeleted, - "UNKNOWN": FileSystemLifecycleStateUnknown, -} - -// GetFileSystemLifecycleStateEnumValues Enumerates the set of values for FileSystemLifecycleState -func GetFileSystemLifecycleStateEnumValues() []FileSystemLifecycleStateEnum { - values := make([]FileSystemLifecycleStateEnum, 0) - for _, v := range mappingFileSystemLifecycleState { - if v != FileSystemLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/file_system_summary.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/file_system_summary.go deleted file mode 100644 index d601f2c1d..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/file_system_summary.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // FileSystemSummary Summary information for a file system. -type FileSystemSummary struct { - - // The number of bytes consumed by the file system, including - // snapshot. This number reflects the metered size of the file - // system, and is updated asynchronously with respect to - // updates to the file system. For details on file system - // metering see [File System Metering]({{DOC_SERVER_URL}}/Content/File/Concepts/metering.htm). - MeteredBytes *int `mandatory:"true" json:"meteredBytes"` - - // The OCID of the compartment that contains the file system. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My file system` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the file system. - Id *string `mandatory:"true" json:"id"` - - // The current state of the file system. - LifecycleState FileSystemSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the file system was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The Availability Domain the file system is in. May be unset. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` -} - -func (m FileSystemSummary) String() string { - return common.PointerString(m) -} - - -// FileSystemSummaryLifecycleStateEnum Enum with underlying type: string -type FileSystemSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for FileSystemSummaryLifecycleState -const ( - FileSystemSummaryLifecycleStateCreating FileSystemSummaryLifecycleStateEnum = "CREATING" - FileSystemSummaryLifecycleStateActive FileSystemSummaryLifecycleStateEnum = "ACTIVE" - FileSystemSummaryLifecycleStateDeleting FileSystemSummaryLifecycleStateEnum = "DELETING" - FileSystemSummaryLifecycleStateDeleted FileSystemSummaryLifecycleStateEnum = "DELETED" - FileSystemSummaryLifecycleStateUnknown FileSystemSummaryLifecycleStateEnum = "UNKNOWN" -) - -var mappingFileSystemSummaryLifecycleState = map[string]FileSystemSummaryLifecycleStateEnum { - "CREATING": FileSystemSummaryLifecycleStateCreating, - "ACTIVE": FileSystemSummaryLifecycleStateActive, - "DELETING": FileSystemSummaryLifecycleStateDeleting, - "DELETED": FileSystemSummaryLifecycleStateDeleted, - "UNKNOWN": FileSystemSummaryLifecycleStateUnknown, -} - -// GetFileSystemSummaryLifecycleStateEnumValues Enumerates the set of values for FileSystemSummaryLifecycleState -func GetFileSystemSummaryLifecycleStateEnumValues() []FileSystemSummaryLifecycleStateEnum { - values := make([]FileSystemSummaryLifecycleStateEnum, 0) - for _, v := range mappingFileSystemSummaryLifecycleState { - if v != FileSystemSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/get_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/get_export_request_response.go deleted file mode 100644 index 69228e013..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/get_export_request_response.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// GetExportRequest wrapper for the GetExport operation -type GetExportRequest struct { - - // The OCID of the export. This feature is currently in preview and may change before public release. Do not use it for production workloads. - ExportId *string `mandatory:"true" contributesTo:"path" name:"exportId"` -} - -func (request GetExportRequest) String() string { - return common.PointerString(request) -} - -// GetExportResponse wrapper for the GetExport operation -type GetExportResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Export instance - Export `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response GetExportResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/get_export_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/get_export_set_request_response.go deleted file mode 100644 index 83ff2f4eb..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/get_export_set_request_response.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// GetExportSetRequest wrapper for the GetExportSet operation -type GetExportSetRequest struct { - - // The OCID of the export set. This feature is currently in preview and may change before public release. Do not use it for production workloads. - ExportSetId *string `mandatory:"true" contributesTo:"path" name:"exportSetId"` -} - -func (request GetExportSetRequest) String() string { - return common.PointerString(request) -} - -// GetExportSetResponse wrapper for the GetExportSet operation -type GetExportSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The ExportSet instance - ExportSet `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response GetExportSetResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/get_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/get_file_system_request_response.go deleted file mode 100644 index 369ba6b28..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/get_file_system_request_response.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// GetFileSystemRequest wrapper for the GetFileSystem operation -type GetFileSystemRequest struct { - - // The OCID of the file system. This feature is currently in preview and may change before public release. Do not use it for production workloads. - FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` -} - -func (request GetFileSystemRequest) String() string { - return common.PointerString(request) -} - -// GetFileSystemResponse wrapper for the GetFileSystem operation -type GetFileSystemResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The FileSystem instance - FileSystem `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response GetFileSystemResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/get_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/get_mount_target_request_response.go deleted file mode 100644 index 47159db58..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/get_mount_target_request_response.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// GetMountTargetRequest wrapper for the GetMountTarget operation -type GetMountTargetRequest struct { - - // The OCID of the mount target. This feature is currently in preview and may change before public release. Do not use it for production workloads. - MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` -} - -func (request GetMountTargetRequest) String() string { - return common.PointerString(request) -} - -// GetMountTargetResponse wrapper for the GetMountTarget operation -type GetMountTargetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The MountTarget instance - MountTarget `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response GetMountTargetResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/get_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/get_snapshot_request_response.go deleted file mode 100644 index f4e16330c..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/get_snapshot_request_response.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// GetSnapshotRequest wrapper for the GetSnapshot operation -type GetSnapshotRequest struct { - - // The OCID of the snapshot. This feature is currently in preview and may change before public release. Do not use it for production workloads. - SnapshotId *string `mandatory:"true" contributesTo:"path" name:"snapshotId"` -} - -func (request GetSnapshotRequest) String() string { - return common.PointerString(request) -} - -// GetSnapshotResponse wrapper for the GetSnapshot operation -type GetSnapshotResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Snapshot instance - Snapshot `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response GetSnapshotResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_export_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/list_export_sets_request_response.go deleted file mode 100644 index 710e7bd3c..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_export_sets_request_response.go +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// ListExportSetsRequest wrapper for the ListExportSets operation -type ListExportSetsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Example: `My resource` - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListExportSetsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Filter results by OCID. Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. Only one sort order may be provided. - // Time created is default ordered as descending. Display name, - // path, and name is default ordered as ascending. - SortBy ListExportSetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc'. - SortOrder ListExportSetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` -} - -func (request ListExportSetsRequest) String() string { - return common.PointerString(request) -} - -// ListExportSetsResponse wrapper for the ListExportSets operation -type ListExportSetsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []ExportSetSummary instance - Items []ExportSetSummary `presentIn:"body"` - - - // For pagination of a list of items. When paging through - // a list, if this header appears in the response, then a - // partial list might have been returned. Include this - // value as the `page` parameter for the subsequent GET - // request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response ListExportSetsResponse) String() string { - return common.PointerString(response) -} - -// ListExportSetsLifecycleStateEnum Enum with underlying type: string -type ListExportSetsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListExportSetsLifecycleState -const ( - ListExportSetsLifecycleStateCreating ListExportSetsLifecycleStateEnum = "CREATING" - ListExportSetsLifecycleStateActive ListExportSetsLifecycleStateEnum = "ACTIVE" - ListExportSetsLifecycleStateDeleting ListExportSetsLifecycleStateEnum = "DELETING" - ListExportSetsLifecycleStateDeleted ListExportSetsLifecycleStateEnum = "DELETED" - ListExportSetsLifecycleStateFailed ListExportSetsLifecycleStateEnum = "FAILED" - ListExportSetsLifecycleStateUnknown ListExportSetsLifecycleStateEnum = "UNKNOWN" -) - -var mappingListExportSetsLifecycleState = map[string]ListExportSetsLifecycleStateEnum { - "CREATING": ListExportSetsLifecycleStateCreating, - "ACTIVE": ListExportSetsLifecycleStateActive, - "DELETING": ListExportSetsLifecycleStateDeleting, - "DELETED": ListExportSetsLifecycleStateDeleted, - "FAILED": ListExportSetsLifecycleStateFailed, - "UNKNOWN": ListExportSetsLifecycleStateUnknown, -} - -// GetListExportSetsLifecycleStateEnumValues Enumerates the set of values for ListExportSetsLifecycleState -func GetListExportSetsLifecycleStateEnumValues() []ListExportSetsLifecycleStateEnum { - values := make([]ListExportSetsLifecycleStateEnum, 0) - for _, v := range mappingListExportSetsLifecycleState { - if v != ListExportSetsLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - -// ListExportSetsSortByEnum Enum with underlying type: string -type ListExportSetsSortByEnum string - -// Set of constants representing the allowable values for ListExportSetsSortBy -const ( - ListExportSetsSortByTimecreated ListExportSetsSortByEnum = "TIMECREATED" - ListExportSetsSortByDisplayname ListExportSetsSortByEnum = "DISPLAYNAME" - ListExportSetsSortByName ListExportSetsSortByEnum = "NAME" - ListExportSetsSortByPath ListExportSetsSortByEnum = "PATH" - ListExportSetsSortByUnknown ListExportSetsSortByEnum = "UNKNOWN" -) - -var mappingListExportSetsSortBy = map[string]ListExportSetsSortByEnum { - "TIMECREATED": ListExportSetsSortByTimecreated, - "DISPLAYNAME": ListExportSetsSortByDisplayname, - "NAME": ListExportSetsSortByName, - "PATH": ListExportSetsSortByPath, - "UNKNOWN": ListExportSetsSortByUnknown, -} - -// GetListExportSetsSortByEnumValues Enumerates the set of values for ListExportSetsSortBy -func GetListExportSetsSortByEnumValues() []ListExportSetsSortByEnum { - values := make([]ListExportSetsSortByEnum, 0) - for _, v := range mappingListExportSetsSortBy { - if v != ListExportSetsSortByUnknown { - values = append(values, v) - } - } - return values -} - -// ListExportSetsSortOrderEnum Enum with underlying type: string -type ListExportSetsSortOrderEnum string - -// Set of constants representing the allowable values for ListExportSetsSortOrder -const ( - ListExportSetsSortOrderAsc ListExportSetsSortOrderEnum = "ASC" - ListExportSetsSortOrderDesc ListExportSetsSortOrderEnum = "DESC" - ListExportSetsSortOrderUnknown ListExportSetsSortOrderEnum = "UNKNOWN" -) - -var mappingListExportSetsSortOrder = map[string]ListExportSetsSortOrderEnum { - "ASC": ListExportSetsSortOrderAsc, - "DESC": ListExportSetsSortOrderDesc, - "UNKNOWN": ListExportSetsSortOrderUnknown, -} - -// GetListExportSetsSortOrderEnumValues Enumerates the set of values for ListExportSetsSortOrder -func GetListExportSetsSortOrderEnumValues() []ListExportSetsSortOrderEnum { - values := make([]ListExportSetsSortOrderEnum, 0) - for _, v := range mappingListExportSetsSortOrder { - if v != ListExportSetsSortOrderUnknown { - values = append(values, v) - } - } - return values -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_exports_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/list_exports_request_response.go deleted file mode 100644 index ee859c5c9..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_exports_request_response.go +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// ListExportsRequest wrapper for the ListExports operation -type ListExportsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID of the export set. This feature is currently in preview and may change before public release. Do not use it for production workloads. - ExportSetId *string `mandatory:"false" contributesTo:"query" name:"exportSetId"` - - // The OCID of the export set. This feature is currently in preview and may change before public release. Do not use it for production workloads. - ExportSet *string `mandatory:"false" contributesTo:"query" name:"exportSet"` - - // The OCID of the file system. This feature is currently in preview and may change before public release. Do not use it for production workloads. - FileSystemId *string `mandatory:"false" contributesTo:"query" name:"fileSystemId"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListExportsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Filter results by OCID. Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. Only one sort order may be provided. - // Time created is default ordered as descending. Display name, - // path, and name is default ordered as ascending. - SortBy ListExportsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc'. - SortOrder ListExportsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` -} - -func (request ListExportsRequest) String() string { - return common.PointerString(request) -} - -// ListExportsResponse wrapper for the ListExports operation -type ListExportsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []ExportSummary instance - Items []ExportSummary `presentIn:"body"` - - - // For pagination of a list of items. When paging through - // a list, if this header appears in the response, then a - // partial list might have been returned. Include this - // value as the `page` parameter for the subsequent GET - // request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response ListExportsResponse) String() string { - return common.PointerString(response) -} - -// ListExportsLifecycleStateEnum Enum with underlying type: string -type ListExportsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListExportsLifecycleState -const ( - ListExportsLifecycleStateCreating ListExportsLifecycleStateEnum = "CREATING" - ListExportsLifecycleStateActive ListExportsLifecycleStateEnum = "ACTIVE" - ListExportsLifecycleStateDeleting ListExportsLifecycleStateEnum = "DELETING" - ListExportsLifecycleStateDeleted ListExportsLifecycleStateEnum = "DELETED" - ListExportsLifecycleStateFailed ListExportsLifecycleStateEnum = "FAILED" - ListExportsLifecycleStateUnknown ListExportsLifecycleStateEnum = "UNKNOWN" -) - -var mappingListExportsLifecycleState = map[string]ListExportsLifecycleStateEnum { - "CREATING": ListExportsLifecycleStateCreating, - "ACTIVE": ListExportsLifecycleStateActive, - "DELETING": ListExportsLifecycleStateDeleting, - "DELETED": ListExportsLifecycleStateDeleted, - "FAILED": ListExportsLifecycleStateFailed, - "UNKNOWN": ListExportsLifecycleStateUnknown, -} - -// GetListExportsLifecycleStateEnumValues Enumerates the set of values for ListExportsLifecycleState -func GetListExportsLifecycleStateEnumValues() []ListExportsLifecycleStateEnum { - values := make([]ListExportsLifecycleStateEnum, 0) - for _, v := range mappingListExportsLifecycleState { - if v != ListExportsLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - -// ListExportsSortByEnum Enum with underlying type: string -type ListExportsSortByEnum string - -// Set of constants representing the allowable values for ListExportsSortBy -const ( - ListExportsSortByTimecreated ListExportsSortByEnum = "TIMECREATED" - ListExportsSortByDisplayname ListExportsSortByEnum = "DISPLAYNAME" - ListExportsSortByName ListExportsSortByEnum = "NAME" - ListExportsSortByPath ListExportsSortByEnum = "PATH" - ListExportsSortByUnknown ListExportsSortByEnum = "UNKNOWN" -) - -var mappingListExportsSortBy = map[string]ListExportsSortByEnum { - "TIMECREATED": ListExportsSortByTimecreated, - "DISPLAYNAME": ListExportsSortByDisplayname, - "NAME": ListExportsSortByName, - "PATH": ListExportsSortByPath, - "UNKNOWN": ListExportsSortByUnknown, -} - -// GetListExportsSortByEnumValues Enumerates the set of values for ListExportsSortBy -func GetListExportsSortByEnumValues() []ListExportsSortByEnum { - values := make([]ListExportsSortByEnum, 0) - for _, v := range mappingListExportsSortBy { - if v != ListExportsSortByUnknown { - values = append(values, v) - } - } - return values -} - -// ListExportsSortOrderEnum Enum with underlying type: string -type ListExportsSortOrderEnum string - -// Set of constants representing the allowable values for ListExportsSortOrder -const ( - ListExportsSortOrderAsc ListExportsSortOrderEnum = "ASC" - ListExportsSortOrderDesc ListExportsSortOrderEnum = "DESC" - ListExportsSortOrderUnknown ListExportsSortOrderEnum = "UNKNOWN" -) - -var mappingListExportsSortOrder = map[string]ListExportsSortOrderEnum { - "ASC": ListExportsSortOrderAsc, - "DESC": ListExportsSortOrderDesc, - "UNKNOWN": ListExportsSortOrderUnknown, -} - -// GetListExportsSortOrderEnumValues Enumerates the set of values for ListExportsSortOrder -func GetListExportsSortOrderEnumValues() []ListExportsSortOrderEnum { - values := make([]ListExportsSortOrderEnum, 0) - for _, v := range mappingListExportsSortOrder { - if v != ListExportsSortOrderUnknown { - values = append(values, v) - } - } - return values -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_file_systems_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/list_file_systems_request_response.go deleted file mode 100644 index b17fb0d3b..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_file_systems_request_response.go +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// ListFileSystemsRequest wrapper for the ListFileSystems operation -type ListFileSystemsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Example: `My resource` - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListFileSystemsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Filter results by OCID. Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. Only one sort order may be provided. - // Time created is default ordered as descending. Display name, - // path, and name is default ordered as ascending. - SortBy ListFileSystemsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc'. - SortOrder ListFileSystemsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` -} - -func (request ListFileSystemsRequest) String() string { - return common.PointerString(request) -} - -// ListFileSystemsResponse wrapper for the ListFileSystems operation -type ListFileSystemsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []FileSystemSummary instance - Items []FileSystemSummary `presentIn:"body"` - - - // For pagination of a list of items. When paging through - // a list, if this header appears in the response, then a - // partial list might have been returned. Include this - // value as the `page` parameter for the subsequent GET - // request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response ListFileSystemsResponse) String() string { - return common.PointerString(response) -} - -// ListFileSystemsLifecycleStateEnum Enum with underlying type: string -type ListFileSystemsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListFileSystemsLifecycleState -const ( - ListFileSystemsLifecycleStateCreating ListFileSystemsLifecycleStateEnum = "CREATING" - ListFileSystemsLifecycleStateActive ListFileSystemsLifecycleStateEnum = "ACTIVE" - ListFileSystemsLifecycleStateDeleting ListFileSystemsLifecycleStateEnum = "DELETING" - ListFileSystemsLifecycleStateDeleted ListFileSystemsLifecycleStateEnum = "DELETED" - ListFileSystemsLifecycleStateFailed ListFileSystemsLifecycleStateEnum = "FAILED" - ListFileSystemsLifecycleStateUnknown ListFileSystemsLifecycleStateEnum = "UNKNOWN" -) - -var mappingListFileSystemsLifecycleState = map[string]ListFileSystemsLifecycleStateEnum { - "CREATING": ListFileSystemsLifecycleStateCreating, - "ACTIVE": ListFileSystemsLifecycleStateActive, - "DELETING": ListFileSystemsLifecycleStateDeleting, - "DELETED": ListFileSystemsLifecycleStateDeleted, - "FAILED": ListFileSystemsLifecycleStateFailed, - "UNKNOWN": ListFileSystemsLifecycleStateUnknown, -} - -// GetListFileSystemsLifecycleStateEnumValues Enumerates the set of values for ListFileSystemsLifecycleState -func GetListFileSystemsLifecycleStateEnumValues() []ListFileSystemsLifecycleStateEnum { - values := make([]ListFileSystemsLifecycleStateEnum, 0) - for _, v := range mappingListFileSystemsLifecycleState { - if v != ListFileSystemsLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - -// ListFileSystemsSortByEnum Enum with underlying type: string -type ListFileSystemsSortByEnum string - -// Set of constants representing the allowable values for ListFileSystemsSortBy -const ( - ListFileSystemsSortByTimecreated ListFileSystemsSortByEnum = "TIMECREATED" - ListFileSystemsSortByDisplayname ListFileSystemsSortByEnum = "DISPLAYNAME" - ListFileSystemsSortByName ListFileSystemsSortByEnum = "NAME" - ListFileSystemsSortByPath ListFileSystemsSortByEnum = "PATH" - ListFileSystemsSortByUnknown ListFileSystemsSortByEnum = "UNKNOWN" -) - -var mappingListFileSystemsSortBy = map[string]ListFileSystemsSortByEnum { - "TIMECREATED": ListFileSystemsSortByTimecreated, - "DISPLAYNAME": ListFileSystemsSortByDisplayname, - "NAME": ListFileSystemsSortByName, - "PATH": ListFileSystemsSortByPath, - "UNKNOWN": ListFileSystemsSortByUnknown, -} - -// GetListFileSystemsSortByEnumValues Enumerates the set of values for ListFileSystemsSortBy -func GetListFileSystemsSortByEnumValues() []ListFileSystemsSortByEnum { - values := make([]ListFileSystemsSortByEnum, 0) - for _, v := range mappingListFileSystemsSortBy { - if v != ListFileSystemsSortByUnknown { - values = append(values, v) - } - } - return values -} - -// ListFileSystemsSortOrderEnum Enum with underlying type: string -type ListFileSystemsSortOrderEnum string - -// Set of constants representing the allowable values for ListFileSystemsSortOrder -const ( - ListFileSystemsSortOrderAsc ListFileSystemsSortOrderEnum = "ASC" - ListFileSystemsSortOrderDesc ListFileSystemsSortOrderEnum = "DESC" - ListFileSystemsSortOrderUnknown ListFileSystemsSortOrderEnum = "UNKNOWN" -) - -var mappingListFileSystemsSortOrder = map[string]ListFileSystemsSortOrderEnum { - "ASC": ListFileSystemsSortOrderAsc, - "DESC": ListFileSystemsSortOrderDesc, - "UNKNOWN": ListFileSystemsSortOrderUnknown, -} - -// GetListFileSystemsSortOrderEnumValues Enumerates the set of values for ListFileSystemsSortOrder -func GetListFileSystemsSortOrderEnumValues() []ListFileSystemsSortOrderEnum { - values := make([]ListFileSystemsSortOrderEnum, 0) - for _, v := range mappingListFileSystemsSortOrder { - if v != ListFileSystemsSortOrderUnknown { - values = append(values, v) - } - } - return values -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_lock_owners_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/list_lock_owners_request_response.go deleted file mode 100644 index 3d10f6768..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_lock_owners_request_response.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// ListLockOwnersRequest wrapper for the ListLockOwners operation -type ListLockOwnersRequest struct { - - // The OCID of the file system. This feature is currently in preview and may change before public release. Do not use it for production workloads. - FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` - - // The OCID of a mount target. This feature is currently in preview and may change before public release. Do not use it for production workloads. - MountTarget *string `mandatory:"false" contributesTo:"query" name:"mountTarget"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` -} - -func (request ListLockOwnersRequest) String() string { - return common.PointerString(request) -} - -// ListLockOwnersResponse wrapper for the ListLockOwners operation -type ListLockOwnersResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []LockOwner instance - Items []LockOwner `presentIn:"body"` - - - // For pagination of a list of items. When paging through - // a list, if this header appears in the response, then a - // partial list might have been returned. Include this - // value as the `page` parameter for the subsequent GET - // request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response ListLockOwnersResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_mount_targets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/list_mount_targets_request_response.go deleted file mode 100644 index 85f1ee8ce..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_mount_targets_request_response.go +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// ListMountTargetsRequest wrapper for the ListMountTargets operation -type ListMountTargetsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the Availability Domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Example: `My resource` - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The OCID of the export set. This feature is currently in preview and may change before public release. Do not use it for production workloads. - ExportSetId *string `mandatory:"false" contributesTo:"query" name:"exportSetId"` - - // The OCID of the export set. This feature is currently in preview and may change before public release. Do not use it for production workloads. - ExportSet *string `mandatory:"false" contributesTo:"query" name:"exportSet"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListMountTargetsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Filter results by OCID. Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. Only one sort order may be provided. - // Time created is default ordered as descending. Display name, - // path, and name is default ordered as ascending. - SortBy ListMountTargetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc'. - SortOrder ListMountTargetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` -} - -func (request ListMountTargetsRequest) String() string { - return common.PointerString(request) -} - -// ListMountTargetsResponse wrapper for the ListMountTargets operation -type ListMountTargetsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []MountTargetSummary instance - Items []MountTargetSummary `presentIn:"body"` - - - // For pagination of a list of items. When paging through - // a list, if this header appears in the response, then a - // partial list might have been returned. Include this - // value as the `page` parameter for the subsequent GET - // request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response ListMountTargetsResponse) String() string { - return common.PointerString(response) -} - -// ListMountTargetsLifecycleStateEnum Enum with underlying type: string -type ListMountTargetsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListMountTargetsLifecycleState -const ( - ListMountTargetsLifecycleStateCreating ListMountTargetsLifecycleStateEnum = "CREATING" - ListMountTargetsLifecycleStateActive ListMountTargetsLifecycleStateEnum = "ACTIVE" - ListMountTargetsLifecycleStateDeleting ListMountTargetsLifecycleStateEnum = "DELETING" - ListMountTargetsLifecycleStateDeleted ListMountTargetsLifecycleStateEnum = "DELETED" - ListMountTargetsLifecycleStateFailed ListMountTargetsLifecycleStateEnum = "FAILED" - ListMountTargetsLifecycleStateUnknown ListMountTargetsLifecycleStateEnum = "UNKNOWN" -) - -var mappingListMountTargetsLifecycleState = map[string]ListMountTargetsLifecycleStateEnum { - "CREATING": ListMountTargetsLifecycleStateCreating, - "ACTIVE": ListMountTargetsLifecycleStateActive, - "DELETING": ListMountTargetsLifecycleStateDeleting, - "DELETED": ListMountTargetsLifecycleStateDeleted, - "FAILED": ListMountTargetsLifecycleStateFailed, - "UNKNOWN": ListMountTargetsLifecycleStateUnknown, -} - -// GetListMountTargetsLifecycleStateEnumValues Enumerates the set of values for ListMountTargetsLifecycleState -func GetListMountTargetsLifecycleStateEnumValues() []ListMountTargetsLifecycleStateEnum { - values := make([]ListMountTargetsLifecycleStateEnum, 0) - for _, v := range mappingListMountTargetsLifecycleState { - if v != ListMountTargetsLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - -// ListMountTargetsSortByEnum Enum with underlying type: string -type ListMountTargetsSortByEnum string - -// Set of constants representing the allowable values for ListMountTargetsSortBy -const ( - ListMountTargetsSortByTimecreated ListMountTargetsSortByEnum = "TIMECREATED" - ListMountTargetsSortByDisplayname ListMountTargetsSortByEnum = "DISPLAYNAME" - ListMountTargetsSortByName ListMountTargetsSortByEnum = "NAME" - ListMountTargetsSortByPath ListMountTargetsSortByEnum = "PATH" - ListMountTargetsSortByUnknown ListMountTargetsSortByEnum = "UNKNOWN" -) - -var mappingListMountTargetsSortBy = map[string]ListMountTargetsSortByEnum { - "TIMECREATED": ListMountTargetsSortByTimecreated, - "DISPLAYNAME": ListMountTargetsSortByDisplayname, - "NAME": ListMountTargetsSortByName, - "PATH": ListMountTargetsSortByPath, - "UNKNOWN": ListMountTargetsSortByUnknown, -} - -// GetListMountTargetsSortByEnumValues Enumerates the set of values for ListMountTargetsSortBy -func GetListMountTargetsSortByEnumValues() []ListMountTargetsSortByEnum { - values := make([]ListMountTargetsSortByEnum, 0) - for _, v := range mappingListMountTargetsSortBy { - if v != ListMountTargetsSortByUnknown { - values = append(values, v) - } - } - return values -} - -// ListMountTargetsSortOrderEnum Enum with underlying type: string -type ListMountTargetsSortOrderEnum string - -// Set of constants representing the allowable values for ListMountTargetsSortOrder -const ( - ListMountTargetsSortOrderAsc ListMountTargetsSortOrderEnum = "ASC" - ListMountTargetsSortOrderDesc ListMountTargetsSortOrderEnum = "DESC" - ListMountTargetsSortOrderUnknown ListMountTargetsSortOrderEnum = "UNKNOWN" -) - -var mappingListMountTargetsSortOrder = map[string]ListMountTargetsSortOrderEnum { - "ASC": ListMountTargetsSortOrderAsc, - "DESC": ListMountTargetsSortOrderDesc, - "UNKNOWN": ListMountTargetsSortOrderUnknown, -} - -// GetListMountTargetsSortOrderEnumValues Enumerates the set of values for ListMountTargetsSortOrder -func GetListMountTargetsSortOrderEnumValues() []ListMountTargetsSortOrderEnum { - values := make([]ListMountTargetsSortOrderEnum, 0) - for _, v := range mappingListMountTargetsSortOrder { - if v != ListMountTargetsSortOrderUnknown { - values = append(values, v) - } - } - return values -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_snapshots_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/list_snapshots_request_response.go deleted file mode 100644 index 95e984fb5..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/list_snapshots_request_response.go +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// ListSnapshotsRequest wrapper for the ListSnapshots operation -type ListSnapshotsRequest struct { - - // The OCID of the file system. This feature is currently in preview and may change before public release. Do not use it for production workloads. - FileSystemId *string `mandatory:"true" contributesTo:"query" name:"fileSystemId"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Snapshot name. - // Example: `sunday` - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListSnapshotsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Filter results by OCID. Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. Only one sort order may be provided. - // Time created is default ordered as descending. Display name, - // path, and name is default ordered as ascending. - SortBy ListSnapshotsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc'. - SortOrder ListSnapshotsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` -} - -func (request ListSnapshotsRequest) String() string { - return common.PointerString(request) -} - -// ListSnapshotsResponse wrapper for the ListSnapshots operation -type ListSnapshotsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []SnapshotSummary instance - Items []SnapshotSummary `presentIn:"body"` - - - // For pagination of a list of items. When paging through - // a list, if this header appears in the response, then a - // partial list might have been returned. Include this - // value as the `page` parameter for the subsequent GET - // request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response ListSnapshotsResponse) String() string { - return common.PointerString(response) -} - -// ListSnapshotsLifecycleStateEnum Enum with underlying type: string -type ListSnapshotsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListSnapshotsLifecycleState -const ( - ListSnapshotsLifecycleStateCreating ListSnapshotsLifecycleStateEnum = "CREATING" - ListSnapshotsLifecycleStateActive ListSnapshotsLifecycleStateEnum = "ACTIVE" - ListSnapshotsLifecycleStateDeleting ListSnapshotsLifecycleStateEnum = "DELETING" - ListSnapshotsLifecycleStateDeleted ListSnapshotsLifecycleStateEnum = "DELETED" - ListSnapshotsLifecycleStateFailed ListSnapshotsLifecycleStateEnum = "FAILED" - ListSnapshotsLifecycleStateUnknown ListSnapshotsLifecycleStateEnum = "UNKNOWN" -) - -var mappingListSnapshotsLifecycleState = map[string]ListSnapshotsLifecycleStateEnum { - "CREATING": ListSnapshotsLifecycleStateCreating, - "ACTIVE": ListSnapshotsLifecycleStateActive, - "DELETING": ListSnapshotsLifecycleStateDeleting, - "DELETED": ListSnapshotsLifecycleStateDeleted, - "FAILED": ListSnapshotsLifecycleStateFailed, - "UNKNOWN": ListSnapshotsLifecycleStateUnknown, -} - -// GetListSnapshotsLifecycleStateEnumValues Enumerates the set of values for ListSnapshotsLifecycleState -func GetListSnapshotsLifecycleStateEnumValues() []ListSnapshotsLifecycleStateEnum { - values := make([]ListSnapshotsLifecycleStateEnum, 0) - for _, v := range mappingListSnapshotsLifecycleState { - if v != ListSnapshotsLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - -// ListSnapshotsSortByEnum Enum with underlying type: string -type ListSnapshotsSortByEnum string - -// Set of constants representing the allowable values for ListSnapshotsSortBy -const ( - ListSnapshotsSortByTimecreated ListSnapshotsSortByEnum = "TIMECREATED" - ListSnapshotsSortByDisplayname ListSnapshotsSortByEnum = "DISPLAYNAME" - ListSnapshotsSortByName ListSnapshotsSortByEnum = "NAME" - ListSnapshotsSortByPath ListSnapshotsSortByEnum = "PATH" - ListSnapshotsSortByUnknown ListSnapshotsSortByEnum = "UNKNOWN" -) - -var mappingListSnapshotsSortBy = map[string]ListSnapshotsSortByEnum { - "TIMECREATED": ListSnapshotsSortByTimecreated, - "DISPLAYNAME": ListSnapshotsSortByDisplayname, - "NAME": ListSnapshotsSortByName, - "PATH": ListSnapshotsSortByPath, - "UNKNOWN": ListSnapshotsSortByUnknown, -} - -// GetListSnapshotsSortByEnumValues Enumerates the set of values for ListSnapshotsSortBy -func GetListSnapshotsSortByEnumValues() []ListSnapshotsSortByEnum { - values := make([]ListSnapshotsSortByEnum, 0) - for _, v := range mappingListSnapshotsSortBy { - if v != ListSnapshotsSortByUnknown { - values = append(values, v) - } - } - return values -} - -// ListSnapshotsSortOrderEnum Enum with underlying type: string -type ListSnapshotsSortOrderEnum string - -// Set of constants representing the allowable values for ListSnapshotsSortOrder -const ( - ListSnapshotsSortOrderAsc ListSnapshotsSortOrderEnum = "ASC" - ListSnapshotsSortOrderDesc ListSnapshotsSortOrderEnum = "DESC" - ListSnapshotsSortOrderUnknown ListSnapshotsSortOrderEnum = "UNKNOWN" -) - -var mappingListSnapshotsSortOrder = map[string]ListSnapshotsSortOrderEnum { - "ASC": ListSnapshotsSortOrderAsc, - "DESC": ListSnapshotsSortOrderDesc, - "UNKNOWN": ListSnapshotsSortOrderUnknown, -} - -// GetListSnapshotsSortOrderEnumValues Enumerates the set of values for ListSnapshotsSortOrder -func GetListSnapshotsSortOrderEnumValues() []ListSnapshotsSortOrderEnum { - values := make([]ListSnapshotsSortOrderEnum, 0) - for _, v := range mappingListSnapshotsSortOrder { - if v != ListSnapshotsSortOrderUnknown { - values = append(values, v) - } - } - return values -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/lock_owner.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/lock_owner.go deleted file mode 100644 index daa96d583..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/lock_owner.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // LockOwner Identifies a client that owns one or more locks in the given file system. -type LockOwner struct { - - // The OCID of this file system where the locks are held. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // The IP address of the client hold the locks. - ClientIpAddress *string `mandatory:"true" json:"clientIpAddress"` - - // The OCID of the mount target the locks are held through. - MountTargetId *string `mandatory:"true" json:"mountTargetId"` - - // The OCID of the mount target's VCN. - VcnId *string `mandatory:"true" json:"vcnId"` -} - -func (m LockOwner) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/mount_target.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/mount_target.go deleted file mode 100644 index 5d8fa6c44..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/mount_target.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // MountTarget Provides access to a collection of file systems via VNIC(s) on a - // specified subnet. The set of file system is controlled via the - // referenced export set. -type MountTarget struct { - - // The OCID of the compartment that contains the mount target. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My mount target` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the mount target. - Id *string `mandatory:"true" json:"id"` - - // Additional information about the current lifecycleState. - LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"` - - // The current state of the mount target. - LifecycleState MountTargetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCIDs of the private IPs associated with this mount target. - PrivateIpIds []string `mandatory:"true" json:"privateIpIds"` - - // The OCID of the subnet the mount target is in. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The date and time the mount target was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The Availability Domain the mount target is in. May be unset. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID of the associated export set. Controls what file - // systems will be exported via NFS on this mount target. - ExportSetId *string `mandatory:"false" json:"exportSetId"` -} - -func (m MountTarget) String() string { - return common.PointerString(m) -} - - -// MountTargetLifecycleStateEnum Enum with underlying type: string -type MountTargetLifecycleStateEnum string - -// Set of constants representing the allowable values for MountTargetLifecycleState -const ( - MountTargetLifecycleStateCreating MountTargetLifecycleStateEnum = "CREATING" - MountTargetLifecycleStateActive MountTargetLifecycleStateEnum = "ACTIVE" - MountTargetLifecycleStateDeleting MountTargetLifecycleStateEnum = "DELETING" - MountTargetLifecycleStateDeleted MountTargetLifecycleStateEnum = "DELETED" - MountTargetLifecycleStateFailed MountTargetLifecycleStateEnum = "FAILED" - MountTargetLifecycleStateUnknown MountTargetLifecycleStateEnum = "UNKNOWN" -) - -var mappingMountTargetLifecycleState = map[string]MountTargetLifecycleStateEnum { - "CREATING": MountTargetLifecycleStateCreating, - "ACTIVE": MountTargetLifecycleStateActive, - "DELETING": MountTargetLifecycleStateDeleting, - "DELETED": MountTargetLifecycleStateDeleted, - "FAILED": MountTargetLifecycleStateFailed, - "UNKNOWN": MountTargetLifecycleStateUnknown, -} - -// GetMountTargetLifecycleStateEnumValues Enumerates the set of values for MountTargetLifecycleState -func GetMountTargetLifecycleStateEnumValues() []MountTargetLifecycleStateEnum { - values := make([]MountTargetLifecycleStateEnum, 0) - for _, v := range mappingMountTargetLifecycleState { - if v != MountTargetLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/mount_target_summary.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/mount_target_summary.go deleted file mode 100644 index ffed81cad..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/mount_target_summary.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // MountTargetSummary Summary information for a MountTarget. -type MountTargetSummary struct { - - // The OCID of the compartment that contains the mount target. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My mount target` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the mount target. - Id *string `mandatory:"true" json:"id"` - - // The current state of the mount target. - LifecycleState MountTargetSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCIDs of the private IPs associated with this mount target. - PrivateIpIds []string `mandatory:"true" json:"privateIpIds"` - - // The OCID of the subnet the mount target is in. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The date and time the mount target was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The Availability Domain the mount target is in. May be unset. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID of the associated export set. Controls what file - // systems will be exported via NFS on this mount target. - ExportSetId *string `mandatory:"false" json:"exportSetId"` -} - -func (m MountTargetSummary) String() string { - return common.PointerString(m) -} - - -// MountTargetSummaryLifecycleStateEnum Enum with underlying type: string -type MountTargetSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for MountTargetSummaryLifecycleState -const ( - MountTargetSummaryLifecycleStateCreating MountTargetSummaryLifecycleStateEnum = "CREATING" - MountTargetSummaryLifecycleStateActive MountTargetSummaryLifecycleStateEnum = "ACTIVE" - MountTargetSummaryLifecycleStateDeleting MountTargetSummaryLifecycleStateEnum = "DELETING" - MountTargetSummaryLifecycleStateDeleted MountTargetSummaryLifecycleStateEnum = "DELETED" - MountTargetSummaryLifecycleStateFailed MountTargetSummaryLifecycleStateEnum = "FAILED" - MountTargetSummaryLifecycleStateUnknown MountTargetSummaryLifecycleStateEnum = "UNKNOWN" -) - -var mappingMountTargetSummaryLifecycleState = map[string]MountTargetSummaryLifecycleStateEnum { - "CREATING": MountTargetSummaryLifecycleStateCreating, - "ACTIVE": MountTargetSummaryLifecycleStateActive, - "DELETING": MountTargetSummaryLifecycleStateDeleting, - "DELETED": MountTargetSummaryLifecycleStateDeleted, - "FAILED": MountTargetSummaryLifecycleStateFailed, - "UNKNOWN": MountTargetSummaryLifecycleStateUnknown, -} - -// GetMountTargetSummaryLifecycleStateEnumValues Enumerates the set of values for MountTargetSummaryLifecycleState -func GetMountTargetSummaryLifecycleStateEnumValues() []MountTargetSummaryLifecycleStateEnum { - values := make([]MountTargetSummaryLifecycleStateEnum, 0) - for _, v := range mappingMountTargetSummaryLifecycleState { - if v != MountTargetSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/snapshot.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/snapshot.go deleted file mode 100644 index cf8502eda..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/snapshot.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // Snapshot A point in time snapshot of a specified file system. -type Snapshot struct { - - // The OCID of the snapshot's file system. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // The OCID of the snapshot. - Id *string `mandatory:"true" json:"id"` - - // The current state of the snapshot. - LifecycleState SnapshotLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Name of the snapshot. Immutable. - // Avoid entering confidential information. - // Example: `sunday` - Name *string `mandatory:"true" json:"name"` - - // The date and time the snapshot was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` -} - -func (m Snapshot) String() string { - return common.PointerString(m) -} - - -// SnapshotLifecycleStateEnum Enum with underlying type: string -type SnapshotLifecycleStateEnum string - -// Set of constants representing the allowable values for SnapshotLifecycleState -const ( - SnapshotLifecycleStateCreating SnapshotLifecycleStateEnum = "CREATING" - SnapshotLifecycleStateActive SnapshotLifecycleStateEnum = "ACTIVE" - SnapshotLifecycleStateDeleting SnapshotLifecycleStateEnum = "DELETING" - SnapshotLifecycleStateDeleted SnapshotLifecycleStateEnum = "DELETED" - SnapshotLifecycleStateUnknown SnapshotLifecycleStateEnum = "UNKNOWN" -) - -var mappingSnapshotLifecycleState = map[string]SnapshotLifecycleStateEnum { - "CREATING": SnapshotLifecycleStateCreating, - "ACTIVE": SnapshotLifecycleStateActive, - "DELETING": SnapshotLifecycleStateDeleting, - "DELETED": SnapshotLifecycleStateDeleted, - "UNKNOWN": SnapshotLifecycleStateUnknown, -} - -// GetSnapshotLifecycleStateEnumValues Enumerates the set of values for SnapshotLifecycleState -func GetSnapshotLifecycleStateEnumValues() []SnapshotLifecycleStateEnum { - values := make([]SnapshotLifecycleStateEnum, 0) - for _, v := range mappingSnapshotLifecycleState { - if v != SnapshotLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/snapshot_summary.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/snapshot_summary.go deleted file mode 100644 index 99efc5322..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/snapshot_summary.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // SnapshotSummary Summary information for a Snapshot. -type SnapshotSummary struct { - - // The OCID of the snapshot's file system. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // The OCID of the snapshot. - Id *string `mandatory:"true" json:"id"` - - // The current state of the snapshot. - LifecycleState SnapshotSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Name of the snapshot. Immutable. - // Avoid entering confidential information. - // Example: `sunday` - Name *string `mandatory:"true" json:"name"` - - // The date and time the snapshot was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` -} - -func (m SnapshotSummary) String() string { - return common.PointerString(m) -} - - -// SnapshotSummaryLifecycleStateEnum Enum with underlying type: string -type SnapshotSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for SnapshotSummaryLifecycleState -const ( - SnapshotSummaryLifecycleStateCreating SnapshotSummaryLifecycleStateEnum = "CREATING" - SnapshotSummaryLifecycleStateActive SnapshotSummaryLifecycleStateEnum = "ACTIVE" - SnapshotSummaryLifecycleStateDeleting SnapshotSummaryLifecycleStateEnum = "DELETING" - SnapshotSummaryLifecycleStateDeleted SnapshotSummaryLifecycleStateEnum = "DELETED" - SnapshotSummaryLifecycleStateUnknown SnapshotSummaryLifecycleStateEnum = "UNKNOWN" -) - -var mappingSnapshotSummaryLifecycleState = map[string]SnapshotSummaryLifecycleStateEnum { - "CREATING": SnapshotSummaryLifecycleStateCreating, - "ACTIVE": SnapshotSummaryLifecycleStateActive, - "DELETING": SnapshotSummaryLifecycleStateDeleting, - "DELETED": SnapshotSummaryLifecycleStateDeleted, - "UNKNOWN": SnapshotSummaryLifecycleStateUnknown, -} - -// GetSnapshotSummaryLifecycleStateEnumValues Enumerates the set of values for SnapshotSummaryLifecycleState -func GetSnapshotSummaryLifecycleStateEnumValues() []SnapshotSummaryLifecycleStateEnum { - values := make([]SnapshotSummaryLifecycleStateEnum, 0) - for _, v := range mappingSnapshotSummaryLifecycleState { - if v != SnapshotSummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values -} - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_export_set_details.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/update_export_set_details.go deleted file mode 100644 index 31f9e2224..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_export_set_details.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // UpdateExportSetDetails The representation of UpdateExportSetDetails -type UpdateExportSetDetails struct { - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My export set` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Controls the maximum `tbytes`, `fbytes`, and `abytes`, - // values reported by `NFS FSSTAT` calls though any assocated - // mount targets. This is an advanced feature, most - // applications should leave this set to its default value. The - // `tbytes` value reported by `FSSTAT` will be - // `maxFsStatBytes`. `fbytes` and `abytes` value will be - // `maxFsStatBytes` minus the metered size of the file - // system. If the metered size is larger than `maxFsStatBytes` - // then `fbytes` and `abytes` will both be 0. - MaxFsStatBytes *int `mandatory:"false" json:"maxFsStatBytes"` - - // Controls the maximum `ffiles`, `ffiles`, and `afiles`, - // values reported by `NFS FSSTAT` calls though any assocated - // mount targets. This is an advanced feature, most - // applications should leave this set to its default value. The - // `tfiles` value reported by `FSSTAT` will be - // `maxFsStatFiles`. `ffiles` and `afiles` value will be - // `maxFsStatFiles` minus the metered size of the file - // system. If the metered size is larger than `maxFsStatFiles` - // then `ffiles` and `afiles` will both be 0. - MaxFsStatFiles *int `mandatory:"false" json:"maxFsStatFiles"` -} - -func (m UpdateExportSetDetails) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_export_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/update_export_set_request_response.go deleted file mode 100644 index 44634c0f8..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_export_set_request_response.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// UpdateExportSetRequest wrapper for the UpdateExportSet operation -type UpdateExportSetRequest struct { - - // The OCID of the export set. This feature is currently in preview and may change before public release. Do not use it for production workloads. - ExportSetId *string `mandatory:"true" contributesTo:"path" name:"exportSetId"` - - // Details object for updating an export set. - UpdateExportSetDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` -} - -func (request UpdateExportSetRequest) String() string { - return common.PointerString(request) -} - -// UpdateExportSetResponse wrapper for the UpdateExportSet operation -type UpdateExportSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The ExportSet instance - ExportSet `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response UpdateExportSetResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/update_file_system_details.go deleted file mode 100644 index c2b26f2a4..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_file_system_details.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // UpdateFileSystemDetails The representation of UpdateFileSystemDetails -type UpdateFileSystemDetails struct { - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My file system` - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m UpdateFileSystemDetails) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/update_file_system_request_response.go deleted file mode 100644 index 0ec9ae66a..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_file_system_request_response.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// UpdateFileSystemRequest wrapper for the UpdateFileSystem operation -type UpdateFileSystemRequest struct { - - // The OCID of the file system. This feature is currently in preview and may change before public release. Do not use it for production workloads. - FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` - - // Details object for updating a file system. - UpdateFileSystemDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` -} - -func (request UpdateFileSystemRequest) String() string { - return common.PointerString(request) -} - -// UpdateFileSystemResponse wrapper for the UpdateFileSystem operation -type UpdateFileSystemResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The FileSystem instance - FileSystem `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response UpdateFileSystemResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_mount_target_details.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/update_mount_target_details.go deleted file mode 100644 index abae9c857..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_mount_target_details.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// File Storage Service API -// -// APIs for OCI file storage service. -// - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // UpdateMountTargetDetails The representation of UpdateMountTargetDetails -type UpdateMountTargetDetails struct { - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My mount target` - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m UpdateMountTargetDetails) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/ffsw/update_mount_target_request_response.go deleted file mode 100644 index a7caca350..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/ffsw/update_mount_target_request_response.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package ffsw - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// UpdateMountTargetRequest wrapper for the UpdateMountTarget operation -type UpdateMountTargetRequest struct { - - // The OCID of the mount target. This feature is currently in preview and may change before public release. Do not use it for production workloads. - MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` - - // Details object for updating a mount target. - UpdateMountTargetDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` -} - -func (request UpdateMountTargetRequest) String() string { - return common.PointerString(request) -} - -// UpdateMountTargetResponse wrapper for the UpdateMountTarget operation -type UpdateMountTargetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The MountTarget instance - MountTarget `presentIn:"body"` - - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response UpdateMountTargetResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/add_user_to_group_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/add_user_to_group_details.go index c27d3f71a..03b811f24 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/add_user_to_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/add_user_to_group_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,26 +9,19 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // AddUserToGroupDetails The representation of AddUserToGroupDetails +// AddUserToGroupDetails The representation of AddUserToGroupDetails type AddUserToGroupDetails struct { - - // The OCID of the user. - UserId *string `mandatory:"true" json:"userId"` - - // The OCID of the group. - GroupId *string `mandatory:"true" json:"groupId"` + + // The OCID of the user. + UserId *string `mandatory:"true" json:"userId"` + + // The OCID of the group. + GroupId *string `mandatory:"true" json:"groupId"` } func (m AddUserToGroupDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/add_user_to_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/add_user_to_group_request_response.go index eedadb622..34b121dd0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/add_user_to_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/add_user_to_group_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // AddUserToGroupRequest wrapper for the AddUserToGroup operation type AddUserToGroupRequest struct { - - // Request object for adding a user to a group. - AddUserToGroupDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request object for adding a user to a group. + AddUserToGroupDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request AddUserToGroupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // AddUserToGroupResponse wrapper for the AddUserToGroup operation type AddUserToGroupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The UserGroupMembership instance - UserGroupMembership `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The UserGroupMembership instance + UserGroupMembership `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response AddUserToGroupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/api_key.go b/vendor/github.com/oracle/oci-go-sdk/identity/api_key.go index b13a57f1f..d5b9eed1d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/api_key.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/api_key.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,82 +9,72 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // ApiKey A PEM-format RSA credential for securing requests to the Oracle Cloud Infrastructure REST API. Also known - // as an *API signing key*. Specifically, this is the public key from the key pair. The private key remains with - // the user calling the API. For information about generating a key pair - // in the required PEM format, see [Required Keys and OCIDs]({{DOC_SERVER_URL}}/Content/API/Concepts/apisigningkey.htm). - // **Important:** This is **not** the SSH key for accessing compute instances. - // Each user can have a maximum of three API signing keys. - // For more information about user credentials, see [User Credentials]({{DOC_SERVER_URL}}/Content/Identity/Concepts/usercredentials.htm). +// ApiKey A PEM-format RSA credential for securing requests to the Oracle Cloud Infrastructure REST API. Also known +// as an *API signing key*. Specifically, this is the public key from the key pair. The private key remains with +// the user calling the API. For information about generating a key pair +// in the required PEM format, see Required Keys and OCIDs (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm). +// **Important:** This is **not** the SSH key for accessing compute instances. +// Each user can have a maximum of three API signing keys. +// For more information about user credentials, see User Credentials (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/usercredentials.htm). type ApiKey struct { - - // An Oracle-assigned identifier for the key, in this format: - // TENANCY_OCID/USER_OCID/KEY_FINGERPRINT. - KeyId *string `mandatory:"false" json:"keyId"` - - // The key's value. - KeyValue *string `mandatory:"false" json:"keyValue"` - - // The key's fingerprint (e.g., 12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef). - Fingerprint *string `mandatory:"false" json:"fingerprint"` - - // The OCID of the user the key belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // Date and time the `ApiKey` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The API key's current state. After creating an `ApiKey` object, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState ApiKeyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // An Oracle-assigned identifier for the key, in this format: + // TENANCY_OCID/USER_OCID/KEY_FINGERPRINT. + KeyId *string `mandatory:"false" json:"keyId"` + + // The key's value. + KeyValue *string `mandatory:"false" json:"keyValue"` + + // The key's fingerprint (e.g., 12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef). + Fingerprint *string `mandatory:"false" json:"fingerprint"` + + // The OCID of the user the key belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // Date and time the `ApiKey` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The API key's current state. After creating an `ApiKey` object, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState ApiKeyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` } func (m ApiKey) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // ApiKeyLifecycleStateEnum Enum with underlying type: string type ApiKeyLifecycleStateEnum string // Set of constants representing the allowable values for ApiKeyLifecycleState const ( - ApiKeyLifecycleStateCreating ApiKeyLifecycleStateEnum = "CREATING" - ApiKeyLifecycleStateActive ApiKeyLifecycleStateEnum = "ACTIVE" - ApiKeyLifecycleStateInactive ApiKeyLifecycleStateEnum = "INACTIVE" - ApiKeyLifecycleStateDeleting ApiKeyLifecycleStateEnum = "DELETING" - ApiKeyLifecycleStateDeleted ApiKeyLifecycleStateEnum = "DELETED" - ApiKeyLifecycleStateUnknown ApiKeyLifecycleStateEnum = "UNKNOWN" + ApiKeyLifecycleStateCreating ApiKeyLifecycleStateEnum = "CREATING" + ApiKeyLifecycleStateActive ApiKeyLifecycleStateEnum = "ACTIVE" + ApiKeyLifecycleStateInactive ApiKeyLifecycleStateEnum = "INACTIVE" + ApiKeyLifecycleStateDeleting ApiKeyLifecycleStateEnum = "DELETING" + ApiKeyLifecycleStateDeleted ApiKeyLifecycleStateEnum = "DELETED" ) -var mappingApiKeyLifecycleState = map[string]ApiKeyLifecycleStateEnum { - "CREATING": ApiKeyLifecycleStateCreating, - "ACTIVE": ApiKeyLifecycleStateActive, - "INACTIVE": ApiKeyLifecycleStateInactive, - "DELETING": ApiKeyLifecycleStateDeleting, - "DELETED": ApiKeyLifecycleStateDeleted, - "UNKNOWN": ApiKeyLifecycleStateUnknown, +var mappingApiKeyLifecycleState = map[string]ApiKeyLifecycleStateEnum{ + "CREATING": ApiKeyLifecycleStateCreating, + "ACTIVE": ApiKeyLifecycleStateActive, + "INACTIVE": ApiKeyLifecycleStateInactive, + "DELETING": ApiKeyLifecycleStateDeleting, + "DELETED": ApiKeyLifecycleStateDeleted, } // GetApiKeyLifecycleStateEnumValues Enumerates the set of values for ApiKeyLifecycleState func GetApiKeyLifecycleStateEnumValues() []ApiKeyLifecycleStateEnum { - values := make([]ApiKeyLifecycleStateEnum, 0) - for _, v := range mappingApiKeyLifecycleState { - if v != ApiKeyLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]ApiKeyLifecycleStateEnum, 0) + for _, v := range mappingApiKeyLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/availability_domain.go b/vendor/github.com/oracle/oci-go-sdk/identity/availability_domain.go index e7a2d879c..7d5d03b95 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/availability_domain.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/availability_domain.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,28 +9,21 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // AvailabilityDomain One or more isolated, fault-tolerant Oracle data centers that host cloud resources such as instances, volumes, - // and subnets. A region contains several Availability Domains. For more information, see - // [Regions and Availability Domains]({{DOC_SERVER_URL}}/Content/General/Concepts/regions.htm). +// AvailabilityDomain One or more isolated, fault-tolerant Oracle data centers that host cloud resources such as instances, volumes, +// and subnets. A region contains several Availability Domains. For more information, see +// Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). type AvailabilityDomain struct { - - // The name of the Availability Domain. - Name *string `mandatory:"false" json:"name"` - - // The OCID of the tenancy. - CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The name of the Availability Domain. + Name *string `mandatory:"false" json:"name"` + + // The OCID of the tenancy. + CompartmentId *string `mandatory:"false" json:"compartmentId"` } func (m AvailabilityDomain) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/compartment.go b/vendor/github.com/oracle/oci-go-sdk/identity/compartment.go index 5d1942448..941523d22 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/compartment.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/compartment.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,90 +9,80 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Compartment A collection of related resources. Compartments are a fundamental component of Oracle Cloud Infrastructure - // for organizing and isolating your cloud resources. You use them to clearly separate resources for the purposes - // of measuring usage and billing, access (through the use of IAM Service policies), and isolation (separating the - // resources for one project or business unit from another). A common approach is to create a compartment for each - // major part of your organization. For more information, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm) and also - // [Setting Up Your Tenancy]({{DOC_SERVER_URL}}/Content/GSG/Concepts/settinguptenancy.htm). - // - // To place a resource in a compartment, simply specify the compartment ID in the "Create" request object when - // initially creating the resource. For example, to launch an instance into a particular compartment, specify - // that compartment's OCID in the `LaunchInstance` request. You can't move an existing resource from one - // compartment to another. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Compartment A collection of related resources. Compartments are a fundamental component of Oracle Cloud Infrastructure +// for organizing and isolating your cloud resources. You use them to clearly separate resources for the purposes +// of measuring usage and billing, access (through the use of IAM Service policies), and isolation (separating the +// resources for one project or business unit from another). A common approach is to create a compartment for each +// major part of your organization. For more information, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm) and also +// Setting Up Your Tenancy (https://docs.us-phoenix-1.oraclecloud.com/Content/GSG/Concepts/settinguptenancy.htm). +// +// To place a resource in a compartment, simply specify the compartment ID in the "Create" request object when +// initially creating the resource. For example, to launch an instance into a particular compartment, specify +// that compartment's OCID in the `LaunchInstance` request. You can't move an existing resource from one +// compartment to another. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Compartment struct { - - // The OCID of the compartment. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the tenancy containing the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the compartment during creation. The name must be unique across all - // compartments in the tenancy. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the compartment. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // Date and time the compartment was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The compartment's current state. After creating a compartment, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState CompartmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // The OCID of the compartment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the tenancy containing the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the compartment during creation. The name must be unique across all + // compartments in the tenancy. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the compartment. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` + + // Date and time the compartment was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The compartment's current state. After creating a compartment, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState CompartmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` } func (m Compartment) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // CompartmentLifecycleStateEnum Enum with underlying type: string type CompartmentLifecycleStateEnum string // Set of constants representing the allowable values for CompartmentLifecycleState const ( - CompartmentLifecycleStateCreating CompartmentLifecycleStateEnum = "CREATING" - CompartmentLifecycleStateActive CompartmentLifecycleStateEnum = "ACTIVE" - CompartmentLifecycleStateInactive CompartmentLifecycleStateEnum = "INACTIVE" - CompartmentLifecycleStateDeleting CompartmentLifecycleStateEnum = "DELETING" - CompartmentLifecycleStateDeleted CompartmentLifecycleStateEnum = "DELETED" - CompartmentLifecycleStateUnknown CompartmentLifecycleStateEnum = "UNKNOWN" + CompartmentLifecycleStateCreating CompartmentLifecycleStateEnum = "CREATING" + CompartmentLifecycleStateActive CompartmentLifecycleStateEnum = "ACTIVE" + CompartmentLifecycleStateInactive CompartmentLifecycleStateEnum = "INACTIVE" + CompartmentLifecycleStateDeleting CompartmentLifecycleStateEnum = "DELETING" + CompartmentLifecycleStateDeleted CompartmentLifecycleStateEnum = "DELETED" ) -var mappingCompartmentLifecycleState = map[string]CompartmentLifecycleStateEnum { - "CREATING": CompartmentLifecycleStateCreating, - "ACTIVE": CompartmentLifecycleStateActive, - "INACTIVE": CompartmentLifecycleStateInactive, - "DELETING": CompartmentLifecycleStateDeleting, - "DELETED": CompartmentLifecycleStateDeleted, - "UNKNOWN": CompartmentLifecycleStateUnknown, +var mappingCompartmentLifecycleState = map[string]CompartmentLifecycleStateEnum{ + "CREATING": CompartmentLifecycleStateCreating, + "ACTIVE": CompartmentLifecycleStateActive, + "INACTIVE": CompartmentLifecycleStateInactive, + "DELETING": CompartmentLifecycleStateDeleting, + "DELETED": CompartmentLifecycleStateDeleted, } // GetCompartmentLifecycleStateEnumValues Enumerates the set of values for CompartmentLifecycleState func GetCompartmentLifecycleStateEnumValues() []CompartmentLifecycleStateEnum { - values := make([]CompartmentLifecycleStateEnum, 0) - for _, v := range mappingCompartmentLifecycleState { - if v != CompartmentLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]CompartmentLifecycleStateEnum, 0) + for _, v := range mappingCompartmentLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_api_key_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_api_key_details.go index bfc50d5c8..b9d6157ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_api_key_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_api_key_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,23 +9,16 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateApiKeyDetails The representation of CreateApiKeyDetails +// CreateApiKeyDetails The representation of CreateApiKeyDetails type CreateApiKeyDetails struct { - - // The public key. Must be an RSA key in PEM format. - Key *string `mandatory:"true" json:"key"` + + // The public key. Must be an RSA key in PEM format. + Key *string `mandatory:"true" json:"key"` } func (m CreateApiKeyDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_compartment_details.go index d50624313..fb4813a61 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_compartment_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,30 +9,23 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateCompartmentDetails The representation of CreateCompartmentDetails +// CreateCompartmentDetails The representation of CreateCompartmentDetails type CreateCompartmentDetails struct { - - // The OCID of the tenancy containing the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the compartment during creation. The name must be unique across all compartments - // in the tenancy. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the compartment during creation. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` -} - -func (m CreateCompartmentDetails) String() string { - return common.PointerString(m) -} - + // The OCID of the tenancy containing the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The name you assign to the compartment during creation. The name must be unique across all compartments + // in the tenancy. + Name *string `mandatory:"true" json:"name"` + // The description you assign to the compartment during creation. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` +} +func (m CreateCompartmentDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_compartment_request_response.go index bdbadc816..5ae960ed6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_compartment_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateCompartmentRequest wrapper for the CreateCompartment operation type CreateCompartmentRequest struct { - - // Request object for creating a new compartment. - CreateCompartmentDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request object for creating a new compartment. + CreateCompartmentDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateCompartmentRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateCompartmentResponse wrapper for the CreateCompartment operation type CreateCompartmentResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Compartment instance - Compartment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The Compartment instance + Compartment `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response CreateCompartmentResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_customer_secret_key_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_customer_secret_key_details.go index bb8a2cb76..f61527dc9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_customer_secret_key_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_customer_secret_key_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,23 +9,16 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateCustomerSecretKeyDetails The representation of CreateCustomerSecretKeyDetails +// CreateCustomerSecretKeyDetails The representation of CreateCustomerSecretKeyDetails type CreateCustomerSecretKeyDetails struct { - - // The name you assign to the secret key during creation. Does not have to be unique, and it's changeable. - DisplayName *string `mandatory:"true" json:"displayName"` + + // The name you assign to the secret key during creation. Does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"true" json:"displayName"` } func (m CreateCustomerSecretKeyDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_customer_secret_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_customer_secret_key_request_response.go index 0d8c55854..db24ca7a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_customer_secret_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_customer_secret_key_request_response.go @@ -1,55 +1,51 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateCustomerSecretKeyRequest wrapper for the CreateCustomerSecretKey operation type CreateCustomerSecretKeyRequest struct { - - // Request object for creating a new secret key. - CreateCustomerSecretKeyDetails `contributesTo:"body"` - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request object for creating a new secret key. + CreateCustomerSecretKeyDetails `contributesTo:"body"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateCustomerSecretKeyRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateCustomerSecretKeyResponse wrapper for the CreateCustomerSecretKey operation type CreateCustomerSecretKeyResponse struct { - // The underlying http response - RawResponse *http.Response - - // The CustomerSecretKey instance - CustomerSecretKey `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The CustomerSecretKey instance + CustomerSecretKey `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response CreateCustomerSecretKeyResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_group_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_group_details.go index 9fff1b2b4..98a265dc9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_group_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,30 +9,23 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateGroupDetails The representation of CreateGroupDetails +// CreateGroupDetails The representation of CreateGroupDetails type CreateGroupDetails struct { - - // The OCID of the tenancy containing the group. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the group during creation. The name must be unique across all groups - // in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the group during creation. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` -} - -func (m CreateGroupDetails) String() string { - return common.PointerString(m) -} - + // The OCID of the tenancy containing the group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The name you assign to the group during creation. The name must be unique across all groups + // in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + // The description you assign to the group during creation. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` +} +func (m CreateGroupDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_group_request_response.go index f4f0ac2e4..882880cb9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_group_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateGroupRequest wrapper for the CreateGroup operation type CreateGroupRequest struct { - - // Request object for creating a new group. - CreateGroupDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request object for creating a new group. + CreateGroupDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateGroupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateGroupResponse wrapper for the CreateGroup operation type CreateGroupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Group instance - Group `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The Group instance + Group `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response CreateGroupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_details.go index a1c08a9df..35d7f594a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,95 +9,96 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // CreateIdentityProviderDetails The representation of CreateIdentityProviderDetails +// CreateIdentityProviderDetails The representation of CreateIdentityProviderDetails type CreateIdentityProviderDetails interface { - - // The OCID of your tenancy. - GetCompartmentId() *string - - // The name you assign to the `IdentityProvider` during creation. - // The name must be unique across all `IdentityProvider` objects in the - // tenancy and cannot be changed. - GetName() *string - - // The description you assign to the `IdentityProvider` during creation. - // Does not have to be unique, and it's changeable. - GetDescription() *string - - // The identity provider service or product. - // Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft - // Active Directory Federation Services (ADFS). - // Example: `IDCS` - GetProductType() CreateIdentityProviderDetailsProductTypeEnum + + // The OCID of your tenancy. + GetCompartmentId() *string + + // The name you assign to the `IdentityProvider` during creation. + // The name must be unique across all `IdentityProvider` objects in the + // tenancy and cannot be changed. + GetName() *string + + // The description you assign to the `IdentityProvider` during creation. + // Does not have to be unique, and it's changeable. + GetDescription() *string + + // The identity provider service or product. + // Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft + // Active Directory Federation Services (ADFS). + // Example: `IDCS` + GetProductType() CreateIdentityProviderDetailsProductTypeEnum } type createidentityproviderdetails struct { - JsonData []byte - CompartmentId *string `mandatory:"true" json:"compartmentId"` - Name *string `mandatory:"true" json:"name"` - Description *string `mandatory:"true" json:"description"` - ProductType CreateIdentityProviderDetailsProductTypeEnum `mandatory:"true" json:"productType"` - Protocol string `json:"protocol"` + JsonData []byte + CompartmentId *string `mandatory:"true" json:"compartmentId"` + Name *string `mandatory:"true" json:"name"` + Description *string `mandatory:"true" json:"description"` + ProductType CreateIdentityProviderDetailsProductTypeEnum `mandatory:"true" json:"productType"` + Protocol string `json:"protocol"` } - // UnmarshalJSON unmarshals json func (m *createidentityproviderdetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalercreateidentityproviderdetails createidentityproviderdetails - s := struct { - Model Unmarshalercreateidentityproviderdetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.CompartmentId = s.Model.CompartmentId - m.Name = s.Model.Name - m.Description = s.Model.Description - m.ProductType = s.Model.ProductType - m.Protocol = s.Model.Protocol - - return err + m.JsonData = data + type Unmarshalercreateidentityproviderdetails createidentityproviderdetails + s := struct { + Model Unmarshalercreateidentityproviderdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.CompartmentId = s.Model.CompartmentId + m.Name = s.Model.Name + m.Description = s.Model.Description + m.ProductType = s.Model.ProductType + m.Protocol = s.Model.Protocol + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *createidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.Protocol) { - case "SAML2": - mm := CreateSaml2IdentityProviderDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.Protocol { + case "SAML2": + mm := CreateSaml2IdentityProviderDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } +} + +//GetCompartmentId returns CompartmentId +func (m createidentityproviderdetails) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetName returns Name +func (m createidentityproviderdetails) GetName() *string { + return m.Name +} + +//GetDescription returns Description +func (m createidentityproviderdetails) GetDescription() *string { + return m.Description } - //GetCompartmentId returns CompartmentId - func (m createidentityproviderdetails) GetCompartmentId() *string { - return m.CompartmentId - } - //GetName returns Name - func (m createidentityproviderdetails) GetName() *string { - return m.Name - } - //GetDescription returns Description - func (m createidentityproviderdetails) GetDescription() *string { - return m.Description - } - //GetProductType returns ProductType - func (m createidentityproviderdetails) GetProductType() CreateIdentityProviderDetailsProductTypeEnum { - return m.ProductType - } +//GetProductType returns ProductType +func (m createidentityproviderdetails) GetProductType() CreateIdentityProviderDetailsProductTypeEnum { + return m.ProductType +} func (m createidentityproviderdetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // CreateIdentityProviderDetailsProductTypeEnum Enum with underlying type: string @@ -105,28 +106,20 @@ type CreateIdentityProviderDetailsProductTypeEnum string // Set of constants representing the allowable values for CreateIdentityProviderDetailsProductType const ( - CreateIdentityProviderDetailsProductTypeIdcs CreateIdentityProviderDetailsProductTypeEnum = "IDCS" - CreateIdentityProviderDetailsProductTypeAdfs CreateIdentityProviderDetailsProductTypeEnum = "ADFS" - CreateIdentityProviderDetailsProductTypeUnknown CreateIdentityProviderDetailsProductTypeEnum = "UNKNOWN" + CreateIdentityProviderDetailsProductTypeIdcs CreateIdentityProviderDetailsProductTypeEnum = "IDCS" + CreateIdentityProviderDetailsProductTypeAdfs CreateIdentityProviderDetailsProductTypeEnum = "ADFS" ) -var mappingCreateIdentityProviderDetailsProductType = map[string]CreateIdentityProviderDetailsProductTypeEnum { - "IDCS": CreateIdentityProviderDetailsProductTypeIdcs, - "ADFS": CreateIdentityProviderDetailsProductTypeAdfs, - "UNKNOWN": CreateIdentityProviderDetailsProductTypeUnknown, +var mappingCreateIdentityProviderDetailsProductType = map[string]CreateIdentityProviderDetailsProductTypeEnum{ + "IDCS": CreateIdentityProviderDetailsProductTypeIdcs, + "ADFS": CreateIdentityProviderDetailsProductTypeAdfs, } // GetCreateIdentityProviderDetailsProductTypeEnumValues Enumerates the set of values for CreateIdentityProviderDetailsProductType func GetCreateIdentityProviderDetailsProductTypeEnumValues() []CreateIdentityProviderDetailsProductTypeEnum { - values := make([]CreateIdentityProviderDetailsProductTypeEnum, 0) - for _, v := range mappingCreateIdentityProviderDetailsProductType { - if v != CreateIdentityProviderDetailsProductTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]CreateIdentityProviderDetailsProductTypeEnum, 0) + for _, v := range mappingCreateIdentityProviderDetailsProductType { + values = append(values, v) + } + return values } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_request_response.go index d771623ab..a3ac552dd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateIdentityProviderRequest wrapper for the CreateIdentityProvider operation type CreateIdentityProviderRequest struct { - - // Request object for creating a new SAML2 identity provider. - CreateIdentityProviderDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request object for creating a new SAML2 identity provider. + CreateIdentityProviderDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateIdentityProviderRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateIdentityProviderResponse wrapper for the CreateIdentityProvider operation type CreateIdentityProviderResponse struct { - // The underlying http response - RawResponse *http.Response - - // The IdentityProvider instance - IdentityProvider `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The IdentityProvider instance + IdentityProvider `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response CreateIdentityProviderResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_idp_group_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_idp_group_mapping_details.go index 4b25e9357..a6cb91192 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_idp_group_mapping_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_idp_group_mapping_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,27 +9,20 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateIdpGroupMappingDetails The representation of CreateIdpGroupMappingDetails +// CreateIdpGroupMappingDetails The representation of CreateIdpGroupMappingDetails type CreateIdpGroupMappingDetails struct { - - // The name of the IdP group you want to map. - IdpGroupName *string `mandatory:"true" json:"idpGroupName"` - - // The OCID of the IAM Service Group - // you want to map to the IdP group. - GroupId *string `mandatory:"true" json:"groupId"` + + // The name of the IdP group you want to map. + IdpGroupName *string `mandatory:"true" json:"idpGroupName"` + + // The OCID of the IAM Service Group + // you want to map to the IdP group. + GroupId *string `mandatory:"true" json:"groupId"` } func (m CreateIdpGroupMappingDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_idp_group_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_idp_group_mapping_request_response.go index a51721862..376d07bc3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_idp_group_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_idp_group_mapping_request_response.go @@ -1,55 +1,51 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateIdpGroupMappingRequest wrapper for the CreateIdpGroupMapping operation type CreateIdpGroupMappingRequest struct { - - // Add a mapping from an SAML2.0 identity provider group to a BMC group. - CreateIdpGroupMappingDetails `contributesTo:"body"` - - // The OCID of the identity provider. - IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Add a mapping from an SAML2.0 identity provider group to a BMC group. + CreateIdpGroupMappingDetails `contributesTo:"body"` + + // The OCID of the identity provider. + IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateIdpGroupMappingRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateIdpGroupMappingResponse wrapper for the CreateIdpGroupMapping operation type CreateIdpGroupMappingResponse struct { - // The underlying http response - RawResponse *http.Response - - // The IdpGroupMapping instance - IdpGroupMapping `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The IdpGroupMapping instance + IdpGroupMapping `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response CreateIdpGroupMappingResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_or_reset_u_i_password_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_or_reset_u_i_password_request_response.go index 57c5b79cf..8d6de9aa8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_or_reset_u_i_password_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_or_reset_u_i_password_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateOrResetUIPasswordRequest wrapper for the CreateOrResetUIPassword operation type CreateOrResetUIPasswordRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateOrResetUIPasswordRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateOrResetUIPasswordResponse wrapper for the CreateOrResetUIPassword operation type CreateOrResetUIPasswordResponse struct { - // The underlying http response - RawResponse *http.Response - - // The UiPassword instance - UiPassword `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The UiPassword instance + UiPassword `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response CreateOrResetUIPasswordResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_details.go index 641bd2847..b25f8b649 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,40 +9,33 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreatePolicyDetails The representation of CreatePolicyDetails +// CreatePolicyDetails The representation of CreatePolicyDetails type CreatePolicyDetails struct { - - // The OCID of the compartment containing the policy (either the tenancy or another compartment). - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the policy during creation. The name must be unique across all policies - // in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // An array of policy statements written in the policy language. See - // [How Policies Work]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policies.htm) and - // [Common Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/commonpolicies.htm). - Statements []string `mandatory:"true" json:"statements"` - - // The description you assign to the policy during creation. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the - // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular - // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. - VersionDate *common.SDKTime `mandatory:"false" json:"versionDate"` -} -func (m CreatePolicyDetails) String() string { - return common.PointerString(m) -} + // The OCID of the compartment containing the policy (either the tenancy or another compartment). + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The name you assign to the policy during creation. The name must be unique across all policies + // in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + // An array of policy statements written in the policy language. See + // How Policies Work (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policies.htm) and + // Common Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/commonpolicies.htm). + Statements []string `mandatory:"true" json:"statements"` + // The description you assign to the policy during creation. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` + // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the + // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular + // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. + VersionDate *common.SDKTime `mandatory:"false" json:"versionDate"` +} +func (m CreatePolicyDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_request_response.go index 67a790abd..b6d7e0028 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreatePolicyRequest wrapper for the CreatePolicy operation type CreatePolicyRequest struct { - - // Request object for creating a new policy. - CreatePolicyDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request object for creating a new policy. + CreatePolicyDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreatePolicyRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreatePolicyResponse wrapper for the CreatePolicy operation type CreatePolicyResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Policy instance - Policy `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The Policy instance + Policy `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response CreatePolicyResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_region_subscription_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_region_subscription_details.go index 2b4bf566d..78e866f7c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_region_subscription_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_region_subscription_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,28 +9,21 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateRegionSubscriptionDetails The representation of CreateRegionSubscriptionDetails +// CreateRegionSubscriptionDetails The representation of CreateRegionSubscriptionDetails type CreateRegionSubscriptionDetails struct { - - // The regions's key. - // Allowed values are: - // - `PHX` - // - `IAD` - // - `FRA` - // Example: `PHX` - RegionKey *string `mandatory:"true" json:"regionKey"` + + // The regions's key. + // Allowed values are: + // - `PHX` + // - `IAD` + // - `FRA` + // Example: `PHX` + RegionKey *string `mandatory:"true" json:"regionKey"` } func (m CreateRegionSubscriptionDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_region_subscription_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_region_subscription_request_response.go index 72ad57483..66dc199d1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_region_subscription_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_region_subscription_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateRegionSubscriptionRequest wrapper for the CreateRegionSubscription operation type CreateRegionSubscriptionRequest struct { - - // Request object for activate a new region. - CreateRegionSubscriptionDetails `contributesTo:"body"` - - // The OCID of the tenancy. - TenancyId *string `mandatory:"true" contributesTo:"path" name:"tenancyId"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request object for activate a new region. + CreateRegionSubscriptionDetails `contributesTo:"body"` + + // The OCID of the tenancy. + TenancyId *string `mandatory:"true" contributesTo:"path" name:"tenancyId"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateRegionSubscriptionRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateRegionSubscriptionResponse wrapper for the CreateRegionSubscription operation type CreateRegionSubscriptionResponse struct { - // The underlying http response - RawResponse *http.Response - - // The RegionSubscription instance - RegionSubscription `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The RegionSubscription instance + RegionSubscription `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreateRegionSubscriptionResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_saml2_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_saml2_identity_provider_details.go index e806889bc..f4eba6eee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_saml2_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_saml2_identity_provider_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,74 +9,73 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // CreateSaml2IdentityProviderDetails The representation of CreateSaml2IdentityProviderDetails +// CreateSaml2IdentityProviderDetails The representation of CreateSaml2IdentityProviderDetails type CreateSaml2IdentityProviderDetails struct { - - // The OCID of your tenancy. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the `IdentityProvider` during creation. - // The name must be unique across all `IdentityProvider` objects in the - // tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the `IdentityProvider` during creation. - // Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // The URL for retrieving the identity provider's metadata, - // which contains information required for federating. - MetadataUrl *string `mandatory:"true" json:"metadataUrl"` - - // The XML that contains the information required for federating. - Metadata *string `mandatory:"true" json:"metadata"` - - // The identity provider service or product. - // Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft - // Active Directory Federation Services (ADFS). - // Example: `IDCS` - ProductType CreateIdentityProviderDetailsProductTypeEnum `mandatory:"true" json:"productType"` + + // The OCID of your tenancy. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the `IdentityProvider` during creation. + // The name must be unique across all `IdentityProvider` objects in the + // tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the `IdentityProvider` during creation. + // Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` + + // The URL for retrieving the identity provider's metadata, + // which contains information required for federating. + MetadataUrl *string `mandatory:"true" json:"metadataUrl"` + + // The XML that contains the information required for federating. + Metadata *string `mandatory:"true" json:"metadata"` + + // The identity provider service or product. + // Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft + // Active Directory Federation Services (ADFS). + // Example: `IDCS` + ProductType CreateIdentityProviderDetailsProductTypeEnum `mandatory:"true" json:"productType"` } - //GetCompartmentId returns CompartmentId - func (m CreateSaml2IdentityProviderDetails) GetCompartmentId() *string { - return m.CompartmentId - } - //GetName returns Name - func (m CreateSaml2IdentityProviderDetails) GetName() *string { - return m.Name - } - //GetDescription returns Description - func (m CreateSaml2IdentityProviderDetails) GetDescription() *string { - return m.Description - } - //GetProductType returns ProductType - func (m CreateSaml2IdentityProviderDetails) GetProductType() CreateIdentityProviderDetailsProductTypeEnum { - return m.ProductType - } -func (m CreateSaml2IdentityProviderDetails) String() string { - return common.PointerString(m) +//GetCompartmentId returns CompartmentId +func (m CreateSaml2IdentityProviderDetails) GetCompartmentId() *string { + return m.CompartmentId } -// MarshalJSON marshals to json representation -func (m CreateSaml2IdentityProviderDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeCreateSaml2IdentityProviderDetails CreateSaml2IdentityProviderDetails - s := struct { - DiscriminatorParam string `json:"protocol"` - MarshalTypeCreateSaml2IdentityProviderDetails - }{ - "SAML2", - (MarshalTypeCreateSaml2IdentityProviderDetails)(m), - } - - return json.Marshal(&s) +//GetName returns Name +func (m CreateSaml2IdentityProviderDetails) GetName() *string { + return m.Name } +//GetDescription returns Description +func (m CreateSaml2IdentityProviderDetails) GetDescription() *string { + return m.Description +} + +//GetProductType returns ProductType +func (m CreateSaml2IdentityProviderDetails) GetProductType() CreateIdentityProviderDetailsProductTypeEnum { + return m.ProductType +} +func (m CreateSaml2IdentityProviderDetails) String() string { + return common.PointerString(m) +} +// MarshalJSON marshals to json representation +func (m CreateSaml2IdentityProviderDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeCreateSaml2IdentityProviderDetails CreateSaml2IdentityProviderDetails + s := struct { + DiscriminatorParam string `json:"protocol"` + MarshalTypeCreateSaml2IdentityProviderDetails + }{ + "SAML2", + (MarshalTypeCreateSaml2IdentityProviderDetails)(m), + } + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_swift_password_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_swift_password_details.go index 1240460df..0182d9dc5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_swift_password_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_swift_password_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,23 +9,16 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateSwiftPasswordDetails The representation of CreateSwiftPasswordDetails +// CreateSwiftPasswordDetails The representation of CreateSwiftPasswordDetails type CreateSwiftPasswordDetails struct { - - // The description you assign to the Swift password during creation. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` + + // The description you assign to the Swift password during creation. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` } func (m CreateSwiftPasswordDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_swift_password_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_swift_password_request_response.go index fc9d0e84b..696261df5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_swift_password_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_swift_password_request_response.go @@ -1,55 +1,51 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateSwiftPasswordRequest wrapper for the CreateSwiftPassword operation type CreateSwiftPasswordRequest struct { - - // Request object for creating a new swift password. - CreateSwiftPasswordDetails `contributesTo:"body"` - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request object for creating a new swift password. + CreateSwiftPasswordDetails `contributesTo:"body"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateSwiftPasswordRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateSwiftPasswordResponse wrapper for the CreateSwiftPassword operation type CreateSwiftPasswordResponse struct { - // The underlying http response - RawResponse *http.Response - - // The SwiftPassword instance - SwiftPassword `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The SwiftPassword instance + SwiftPassword `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response CreateSwiftPasswordResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_user_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_user_details.go index c819a1053..37ddd5857 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_user_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_user_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,30 +9,23 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateUserDetails The representation of CreateUserDetails +// CreateUserDetails The representation of CreateUserDetails type CreateUserDetails struct { - - // The OCID of the tenancy containing the user. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the user during creation. This is the user's login for the Console. - // The name must be unique across all users in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the user during creation. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` -} - -func (m CreateUserDetails) String() string { - return common.PointerString(m) -} - + // The OCID of the tenancy containing the user. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The name you assign to the user during creation. This is the user's login for the Console. + // The name must be unique across all users in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + // The description you assign to the user during creation. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` +} +func (m CreateUserDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_user_request_response.go index 9df2dcd36..137de9446 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_user_request_response.go @@ -1,52 +1,48 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateUserRequest wrapper for the CreateUser operation type CreateUserRequest struct { - - // Request object for creating a new user. - CreateUserDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Request object for creating a new user. + CreateUserDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateUserRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateUserResponse wrapper for the CreateUser operation type CreateUserResponse struct { - // The underlying http response - RawResponse *http.Response - - // The User instance - User `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The User instance + User `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response CreateUserResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key.go b/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key.go index 1144f2c72..f3137bf6e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,84 +9,74 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CustomerSecretKey A `CustomerSecretKey` is an Oracle-provided key for using the Object Storage Service's - // [Amazon S3 compatible API]({{DOC_SERVER_URL}}/Content/Object/Tasks/s3compatibleapi.htm). - // A user can have up to two secret keys at a time. - // **Note:** The secret key is always an Oracle-generated string; you can't change it to a string of your choice. - // For more information, see [Managing User Credentials]({{DOC_SERVER_URL}}/Content/Identity/Tasks/managingcredentials.htm). +// CustomerSecretKey A `CustomerSecretKey` is an Oracle-provided key for using the Object Storage Service's +// Amazon S3 compatible API (https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/s3compatibleapi.htm). +// A user can have up to two secret keys at a time. +// **Note:** The secret key is always an Oracle-generated string; you can't change it to a string of your choice. +// For more information, see Managing User Credentials (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingcredentials.htm). type CustomerSecretKey struct { - - // The secret key. - Key *string `mandatory:"false" json:"key"` - - // The OCID of the secret key. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the user the password belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // The display name you assign to the secret key. Does not have to be unique, and it's changeable. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Date and time the `CustomerSecretKey` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time when this password will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The secret key's current state. After creating a secret key, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState CustomerSecretKeyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // The secret key. + Key *string `mandatory:"false" json:"key"` + + // The OCID of the secret key. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the password belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The display name you assign to the secret key. Does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Date and time the `CustomerSecretKey` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time when this password will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The secret key's current state. After creating a secret key, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState CustomerSecretKeyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` } func (m CustomerSecretKey) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // CustomerSecretKeyLifecycleStateEnum Enum with underlying type: string type CustomerSecretKeyLifecycleStateEnum string // Set of constants representing the allowable values for CustomerSecretKeyLifecycleState const ( - CustomerSecretKeyLifecycleStateCreating CustomerSecretKeyLifecycleStateEnum = "CREATING" - CustomerSecretKeyLifecycleStateActive CustomerSecretKeyLifecycleStateEnum = "ACTIVE" - CustomerSecretKeyLifecycleStateInactive CustomerSecretKeyLifecycleStateEnum = "INACTIVE" - CustomerSecretKeyLifecycleStateDeleting CustomerSecretKeyLifecycleStateEnum = "DELETING" - CustomerSecretKeyLifecycleStateDeleted CustomerSecretKeyLifecycleStateEnum = "DELETED" - CustomerSecretKeyLifecycleStateUnknown CustomerSecretKeyLifecycleStateEnum = "UNKNOWN" + CustomerSecretKeyLifecycleStateCreating CustomerSecretKeyLifecycleStateEnum = "CREATING" + CustomerSecretKeyLifecycleStateActive CustomerSecretKeyLifecycleStateEnum = "ACTIVE" + CustomerSecretKeyLifecycleStateInactive CustomerSecretKeyLifecycleStateEnum = "INACTIVE" + CustomerSecretKeyLifecycleStateDeleting CustomerSecretKeyLifecycleStateEnum = "DELETING" + CustomerSecretKeyLifecycleStateDeleted CustomerSecretKeyLifecycleStateEnum = "DELETED" ) -var mappingCustomerSecretKeyLifecycleState = map[string]CustomerSecretKeyLifecycleStateEnum { - "CREATING": CustomerSecretKeyLifecycleStateCreating, - "ACTIVE": CustomerSecretKeyLifecycleStateActive, - "INACTIVE": CustomerSecretKeyLifecycleStateInactive, - "DELETING": CustomerSecretKeyLifecycleStateDeleting, - "DELETED": CustomerSecretKeyLifecycleStateDeleted, - "UNKNOWN": CustomerSecretKeyLifecycleStateUnknown, +var mappingCustomerSecretKeyLifecycleState = map[string]CustomerSecretKeyLifecycleStateEnum{ + "CREATING": CustomerSecretKeyLifecycleStateCreating, + "ACTIVE": CustomerSecretKeyLifecycleStateActive, + "INACTIVE": CustomerSecretKeyLifecycleStateInactive, + "DELETING": CustomerSecretKeyLifecycleStateDeleting, + "DELETED": CustomerSecretKeyLifecycleStateDeleted, } // GetCustomerSecretKeyLifecycleStateEnumValues Enumerates the set of values for CustomerSecretKeyLifecycleState func GetCustomerSecretKeyLifecycleStateEnumValues() []CustomerSecretKeyLifecycleStateEnum { - values := make([]CustomerSecretKeyLifecycleStateEnum, 0) - for _, v := range mappingCustomerSecretKeyLifecycleState { - if v != CustomerSecretKeyLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]CustomerSecretKeyLifecycleStateEnum, 0) + for _, v := range mappingCustomerSecretKeyLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key_summary.go b/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key_summary.go index 1a00da064..bc59eed42 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,78 +9,68 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CustomerSecretKeySummary As the name suggests, a `CustomerSecretKeySummary` object contains information about a `CustomerSecretKey`. - // A `CustomerSecretKey` is an Oracle-provided key for using the Object Storage Service's Amazon S3 compatible API. +// CustomerSecretKeySummary As the name suggests, a `CustomerSecretKeySummary` object contains information about a `CustomerSecretKey`. +// A `CustomerSecretKey` is an Oracle-provided key for using the Object Storage Service's Amazon S3 compatible API. type CustomerSecretKeySummary struct { - - // The OCID of the secret key. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the user the password belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // The displayName you assign to the secret key. Does not have to be unique, and it's changeable. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Date and time the `CustomerSecretKey` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time when this password will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The secret key's current state. After creating a secret key, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState CustomerSecretKeySummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // The OCID of the secret key. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the password belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The displayName you assign to the secret key. Does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Date and time the `CustomerSecretKey` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time when this password will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The secret key's current state. After creating a secret key, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState CustomerSecretKeySummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` } func (m CustomerSecretKeySummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // CustomerSecretKeySummaryLifecycleStateEnum Enum with underlying type: string type CustomerSecretKeySummaryLifecycleStateEnum string // Set of constants representing the allowable values for CustomerSecretKeySummaryLifecycleState const ( - CustomerSecretKeySummaryLifecycleStateCreating CustomerSecretKeySummaryLifecycleStateEnum = "CREATING" - CustomerSecretKeySummaryLifecycleStateActive CustomerSecretKeySummaryLifecycleStateEnum = "ACTIVE" - CustomerSecretKeySummaryLifecycleStateInactive CustomerSecretKeySummaryLifecycleStateEnum = "INACTIVE" - CustomerSecretKeySummaryLifecycleStateDeleting CustomerSecretKeySummaryLifecycleStateEnum = "DELETING" - CustomerSecretKeySummaryLifecycleStateDeleted CustomerSecretKeySummaryLifecycleStateEnum = "DELETED" - CustomerSecretKeySummaryLifecycleStateUnknown CustomerSecretKeySummaryLifecycleStateEnum = "UNKNOWN" + CustomerSecretKeySummaryLifecycleStateCreating CustomerSecretKeySummaryLifecycleStateEnum = "CREATING" + CustomerSecretKeySummaryLifecycleStateActive CustomerSecretKeySummaryLifecycleStateEnum = "ACTIVE" + CustomerSecretKeySummaryLifecycleStateInactive CustomerSecretKeySummaryLifecycleStateEnum = "INACTIVE" + CustomerSecretKeySummaryLifecycleStateDeleting CustomerSecretKeySummaryLifecycleStateEnum = "DELETING" + CustomerSecretKeySummaryLifecycleStateDeleted CustomerSecretKeySummaryLifecycleStateEnum = "DELETED" ) -var mappingCustomerSecretKeySummaryLifecycleState = map[string]CustomerSecretKeySummaryLifecycleStateEnum { - "CREATING": CustomerSecretKeySummaryLifecycleStateCreating, - "ACTIVE": CustomerSecretKeySummaryLifecycleStateActive, - "INACTIVE": CustomerSecretKeySummaryLifecycleStateInactive, - "DELETING": CustomerSecretKeySummaryLifecycleStateDeleting, - "DELETED": CustomerSecretKeySummaryLifecycleStateDeleted, - "UNKNOWN": CustomerSecretKeySummaryLifecycleStateUnknown, +var mappingCustomerSecretKeySummaryLifecycleState = map[string]CustomerSecretKeySummaryLifecycleStateEnum{ + "CREATING": CustomerSecretKeySummaryLifecycleStateCreating, + "ACTIVE": CustomerSecretKeySummaryLifecycleStateActive, + "INACTIVE": CustomerSecretKeySummaryLifecycleStateInactive, + "DELETING": CustomerSecretKeySummaryLifecycleStateDeleting, + "DELETED": CustomerSecretKeySummaryLifecycleStateDeleted, } // GetCustomerSecretKeySummaryLifecycleStateEnumValues Enumerates the set of values for CustomerSecretKeySummaryLifecycleState func GetCustomerSecretKeySummaryLifecycleStateEnumValues() []CustomerSecretKeySummaryLifecycleStateEnum { - values := make([]CustomerSecretKeySummaryLifecycleStateEnum, 0) - for _, v := range mappingCustomerSecretKeySummaryLifecycleState { - if v != CustomerSecretKeySummaryLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]CustomerSecretKeySummaryLifecycleStateEnum, 0) + for _, v := range mappingCustomerSecretKeySummaryLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/delete_api_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/delete_api_key_request_response.go index 9acba065b..e2beffe0a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/delete_api_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/delete_api_key_request_response.go @@ -1,47 +1,43 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteApiKeyRequest wrapper for the DeleteApiKey operation type DeleteApiKeyRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // The key's fingerprint. - Fingerprint *string `mandatory:"true" contributesTo:"path" name:"fingerprint"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The key's fingerprint. + Fingerprint *string `mandatory:"true" contributesTo:"path" name:"fingerprint"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteApiKeyRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteApiKeyResponse wrapper for the DeleteApiKey operation type DeleteApiKeyResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteApiKeyResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/delete_customer_secret_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/delete_customer_secret_key_request_response.go index 00b28891e..02855f42b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/delete_customer_secret_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/delete_customer_secret_key_request_response.go @@ -1,47 +1,43 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteCustomerSecretKeyRequest wrapper for the DeleteCustomerSecretKey operation type DeleteCustomerSecretKeyRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // The OCID of the secret key. - CustomerSecretKeyId *string `mandatory:"true" contributesTo:"path" name:"customerSecretKeyId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The OCID of the secret key. + CustomerSecretKeyId *string `mandatory:"true" contributesTo:"path" name:"customerSecretKeyId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteCustomerSecretKeyRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteCustomerSecretKeyResponse wrapper for the DeleteCustomerSecretKey operation type DeleteCustomerSecretKeyResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteCustomerSecretKeyResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/delete_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/delete_group_request_response.go index 134fc7ccc..9b63b8bf4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/delete_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/delete_group_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteGroupRequest wrapper for the DeleteGroup operation type DeleteGroupRequest struct { - - // The OCID of the group. - GroupId *string `mandatory:"true" contributesTo:"path" name:"groupId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the group. + GroupId *string `mandatory:"true" contributesTo:"path" name:"groupId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteGroupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteGroupResponse wrapper for the DeleteGroup operation type DeleteGroupResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteGroupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/delete_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/delete_identity_provider_request_response.go index f58278e13..e0d82c0fa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/delete_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/delete_identity_provider_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteIdentityProviderRequest wrapper for the DeleteIdentityProvider operation type DeleteIdentityProviderRequest struct { - - // The OCID of the identity provider. - IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the identity provider. + IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteIdentityProviderRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteIdentityProviderResponse wrapper for the DeleteIdentityProvider operation type DeleteIdentityProviderResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteIdentityProviderResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/delete_idp_group_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/delete_idp_group_mapping_request_response.go index 192451b52..02d2b8c50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/delete_idp_group_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/delete_idp_group_mapping_request_response.go @@ -1,47 +1,43 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteIdpGroupMappingRequest wrapper for the DeleteIdpGroupMapping operation type DeleteIdpGroupMappingRequest struct { - - // The OCID of the identity provider. - IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` - - // The OCID of the group mapping. - MappingId *string `mandatory:"true" contributesTo:"path" name:"mappingId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the identity provider. + IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` + + // The OCID of the group mapping. + MappingId *string `mandatory:"true" contributesTo:"path" name:"mappingId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteIdpGroupMappingRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteIdpGroupMappingResponse wrapper for the DeleteIdpGroupMapping operation type DeleteIdpGroupMappingResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteIdpGroupMappingResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/delete_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/delete_policy_request_response.go index 0d4bc1e47..905f97563 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/delete_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/delete_policy_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeletePolicyRequest wrapper for the DeletePolicy operation type DeletePolicyRequest struct { - - // The OCID of the policy. - PolicyId *string `mandatory:"true" contributesTo:"path" name:"policyId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the policy. + PolicyId *string `mandatory:"true" contributesTo:"path" name:"policyId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeletePolicyRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeletePolicyResponse wrapper for the DeletePolicy operation type DeletePolicyResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeletePolicyResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/delete_swift_password_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/delete_swift_password_request_response.go index a7afa7ffc..fac41a4f3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/delete_swift_password_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/delete_swift_password_request_response.go @@ -1,47 +1,43 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteSwiftPasswordRequest wrapper for the DeleteSwiftPassword operation type DeleteSwiftPasswordRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // The OCID of the Swift password. - SwiftPasswordId *string `mandatory:"true" contributesTo:"path" name:"swiftPasswordId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The OCID of the Swift password. + SwiftPasswordId *string `mandatory:"true" contributesTo:"path" name:"swiftPasswordId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteSwiftPasswordRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteSwiftPasswordResponse wrapper for the DeleteSwiftPassword operation type DeleteSwiftPasswordResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteSwiftPasswordResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/delete_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/delete_user_request_response.go index d7d934a6a..5dffac8f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/delete_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/delete_user_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteUserRequest wrapper for the DeleteUser operation type DeleteUserRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request DeleteUserRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteUserResponse wrapper for the DeleteUser operation type DeleteUserResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteUserResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/fault_domain.go b/vendor/github.com/oracle/oci-go-sdk/identity/fault_domain.go index 462815a9b..4f596c95b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/fault_domain.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/fault_domain.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,31 +9,24 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // FaultDomain A Fault Domain is a logical grouping of hardware and infrastructure within an Availability Domain that can become - // unavailable in its entirety either due to hardware failure such as Top-of-rack (TOR) switch failure or due to - // planned software maintenance such as security updates that reboot your instances. +// FaultDomain A Fault Domain is a logical grouping of hardware and infrastructure within an Availability Domain that can become +// unavailable in its entirety either due to hardware failure such as Top-of-rack (TOR) switch failure or due to +// planned software maintenance such as security updates that reboot your instances. type FaultDomain struct { - - // The name of the Fault Domain. - Name *string `mandatory:"false" json:"name"` - - // The OCID of the of the compartment. Currently only tenancy (root) compartment can be provided. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The name of the availabilityDomain where the Fault Domain belongs. - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` -} - -func (m FaultDomain) String() string { - return common.PointerString(m) -} - + // The name of the Fault Domain. + Name *string `mandatory:"false" json:"name"` + // The OCID of the of the compartment. Currently only tenancy (root) compartment can be provided. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + // The name of the availabilityDomain where the Fault Domain belongs. + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` +} +func (m FaultDomain) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/get_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/get_compartment_request_response.go index ccd71ac75..f85794587 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/get_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/get_compartment_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetCompartmentRequest wrapper for the GetCompartment operation type GetCompartmentRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"path" name:"compartmentId"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"path" name:"compartmentId"` } func (request GetCompartmentRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetCompartmentResponse wrapper for the GetCompartment operation type GetCompartmentResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Compartment instance - Compartment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The Compartment instance + Compartment `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response GetCompartmentResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/get_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/get_group_request_response.go index b5a7cd98c..90d97badc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/get_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/get_group_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetGroupRequest wrapper for the GetGroup operation type GetGroupRequest struct { - - // The OCID of the group. - GroupId *string `mandatory:"true" contributesTo:"path" name:"groupId"` + + // The OCID of the group. + GroupId *string `mandatory:"true" contributesTo:"path" name:"groupId"` } func (request GetGroupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetGroupResponse wrapper for the GetGroup operation type GetGroupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Group instance - Group `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The Group instance + Group `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response GetGroupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/get_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/get_identity_provider_request_response.go index ac6a076e8..503c1687a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/get_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/get_identity_provider_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetIdentityProviderRequest wrapper for the GetIdentityProvider operation type GetIdentityProviderRequest struct { - - // The OCID of the identity provider. - IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` + + // The OCID of the identity provider. + IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` } func (request GetIdentityProviderRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetIdentityProviderResponse wrapper for the GetIdentityProvider operation type GetIdentityProviderResponse struct { - // The underlying http response - RawResponse *http.Response - - // The IdentityProvider instance - IdentityProvider `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The IdentityProvider instance + IdentityProvider `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response GetIdentityProviderResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/get_idp_group_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/get_idp_group_mapping_request_response.go index 9fab7ec33..b589e1e9f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/get_idp_group_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/get_idp_group_mapping_request_response.go @@ -1,48 +1,44 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetIdpGroupMappingRequest wrapper for the GetIdpGroupMapping operation type GetIdpGroupMappingRequest struct { - - // The OCID of the identity provider. - IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` - - // The OCID of the group mapping. - MappingId *string `mandatory:"true" contributesTo:"path" name:"mappingId"` + + // The OCID of the identity provider. + IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` + + // The OCID of the group mapping. + MappingId *string `mandatory:"true" contributesTo:"path" name:"mappingId"` } func (request GetIdpGroupMappingRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetIdpGroupMappingResponse wrapper for the GetIdpGroupMapping operation type GetIdpGroupMappingResponse struct { - // The underlying http response - RawResponse *http.Response - - // The IdpGroupMapping instance - IdpGroupMapping `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The IdpGroupMapping instance + IdpGroupMapping `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response GetIdpGroupMappingResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/get_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/get_policy_request_response.go index ff7beb7e3..3bff5478c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/get_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/get_policy_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetPolicyRequest wrapper for the GetPolicy operation type GetPolicyRequest struct { - - // The OCID of the policy. - PolicyId *string `mandatory:"true" contributesTo:"path" name:"policyId"` + + // The OCID of the policy. + PolicyId *string `mandatory:"true" contributesTo:"path" name:"policyId"` } func (request GetPolicyRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetPolicyResponse wrapper for the GetPolicy operation type GetPolicyResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Policy instance - Policy `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The Policy instance + Policy `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response GetPolicyResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/get_tenancy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/get_tenancy_request_response.go index 1c5e7a2be..8ad0f641d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/get_tenancy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/get_tenancy_request_response.go @@ -1,42 +1,38 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetTenancyRequest wrapper for the GetTenancy operation type GetTenancyRequest struct { - - // The OCID of the tenancy. - TenancyId *string `mandatory:"true" contributesTo:"path" name:"tenancyId"` + + // The OCID of the tenancy. + TenancyId *string `mandatory:"true" contributesTo:"path" name:"tenancyId"` } func (request GetTenancyRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetTenancyResponse wrapper for the GetTenancy operation type GetTenancyResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Tenancy instance - Tenancy `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The Tenancy instance + Tenancy `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetTenancyResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/get_user_group_membership_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/get_user_group_membership_request_response.go index 85d0fb5c6..492240dbf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/get_user_group_membership_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/get_user_group_membership_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetUserGroupMembershipRequest wrapper for the GetUserGroupMembership operation type GetUserGroupMembershipRequest struct { - - // The OCID of the userGroupMembership. - UserGroupMembershipId *string `mandatory:"true" contributesTo:"path" name:"userGroupMembershipId"` + + // The OCID of the userGroupMembership. + UserGroupMembershipId *string `mandatory:"true" contributesTo:"path" name:"userGroupMembershipId"` } func (request GetUserGroupMembershipRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetUserGroupMembershipResponse wrapper for the GetUserGroupMembership operation type GetUserGroupMembershipResponse struct { - // The underlying http response - RawResponse *http.Response - - // The UserGroupMembership instance - UserGroupMembership `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The UserGroupMembership instance + UserGroupMembership `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response GetUserGroupMembershipResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/get_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/get_user_request_response.go index 5a178a3ce..980955dad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/get_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/get_user_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetUserRequest wrapper for the GetUser operation type GetUserRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` } func (request GetUserRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetUserResponse wrapper for the GetUser operation type GetUserResponse struct { - // The underlying http response - RawResponse *http.Response - - // The User instance - User `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The User instance + User `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response GetUserResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/group.go b/vendor/github.com/oracle/oci-go-sdk/identity/group.go index 264180cf3..8029ba950 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/group.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/group.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,86 +9,76 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Group A collection of users who all need the same type of access to a particular set of resources or compartment. - // For conceptual information about groups and other IAM Service components, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // If you're federating with an identity provider (IdP), you need to create mappings between the groups - // defined in the IdP and groups you define in the IAM service. For more information, see - // [Identity Providers and Federation]({{DOC_SERVER_URL}}/Content/Identity/Concepts/federation.htm). Also see - // IdentityProvider and - // IdpGroupMapping. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Group A collection of users who all need the same type of access to a particular set of resources or compartment. +// For conceptual information about groups and other IAM Service components, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// If you're federating with an identity provider (IdP), you need to create mappings between the groups +// defined in the IdP and groups you define in the IAM service. For more information, see +// Identity Providers and Federation (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/federation.htm). Also see +// IdentityProvider and +// IdpGroupMapping. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Group struct { - - // The OCID of the group. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the tenancy containing the group. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the group during creation. The name must be unique across all groups in - // the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the group. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // Date and time the group was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The group's current state. After creating a group, make sure its `lifecycleState` changes from CREATING to - // ACTIVE before using it. - LifecycleState GroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // The OCID of the group. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the tenancy containing the group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the group during creation. The name must be unique across all groups in + // the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the group. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` + + // Date and time the group was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The group's current state. After creating a group, make sure its `lifecycleState` changes from CREATING to + // ACTIVE before using it. + LifecycleState GroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` } func (m Group) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // GroupLifecycleStateEnum Enum with underlying type: string type GroupLifecycleStateEnum string // Set of constants representing the allowable values for GroupLifecycleState const ( - GroupLifecycleStateCreating GroupLifecycleStateEnum = "CREATING" - GroupLifecycleStateActive GroupLifecycleStateEnum = "ACTIVE" - GroupLifecycleStateInactive GroupLifecycleStateEnum = "INACTIVE" - GroupLifecycleStateDeleting GroupLifecycleStateEnum = "DELETING" - GroupLifecycleStateDeleted GroupLifecycleStateEnum = "DELETED" - GroupLifecycleStateUnknown GroupLifecycleStateEnum = "UNKNOWN" + GroupLifecycleStateCreating GroupLifecycleStateEnum = "CREATING" + GroupLifecycleStateActive GroupLifecycleStateEnum = "ACTIVE" + GroupLifecycleStateInactive GroupLifecycleStateEnum = "INACTIVE" + GroupLifecycleStateDeleting GroupLifecycleStateEnum = "DELETING" + GroupLifecycleStateDeleted GroupLifecycleStateEnum = "DELETED" ) -var mappingGroupLifecycleState = map[string]GroupLifecycleStateEnum { - "CREATING": GroupLifecycleStateCreating, - "ACTIVE": GroupLifecycleStateActive, - "INACTIVE": GroupLifecycleStateInactive, - "DELETING": GroupLifecycleStateDeleting, - "DELETED": GroupLifecycleStateDeleted, - "UNKNOWN": GroupLifecycleStateUnknown, +var mappingGroupLifecycleState = map[string]GroupLifecycleStateEnum{ + "CREATING": GroupLifecycleStateCreating, + "ACTIVE": GroupLifecycleStateActive, + "INACTIVE": GroupLifecycleStateInactive, + "DELETING": GroupLifecycleStateDeleting, + "DELETED": GroupLifecycleStateDeleted, } // GetGroupLifecycleStateEnumValues Enumerates the set of values for GroupLifecycleState func GetGroupLifecycleStateEnumValues() []GroupLifecycleStateEnum { - values := make([]GroupLifecycleStateEnum, 0) - for _, v := range mappingGroupLifecycleState { - if v != GroupLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]GroupLifecycleStateEnum, 0) + for _, v := range mappingGroupLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/identity_client.go b/vendor/github.com/oracle/oci-go-sdk/identity/identity_client.go index cd8f36c77..8bf0c90c5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/identity_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/identity_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -8,1372 +8,1160 @@ package identity -import( - "github.com/oracle/oci-go-sdk/common" - "context" - "fmt" - "net/http" +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) //IdentityClient a client for Identity type IdentityClient struct { - common.BaseClient - config *common.ConfigurationProvider + common.BaseClient + config *common.ConfigurationProvider } - // NewIdentityClientWithConfigurationProvider Creates a new default Identity client with the given configuration provider. // the configuration provider will be used for the default signer as well as reading the region -func NewIdentityClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client IdentityClient, err error){ - baseClient, err := common.NewClientWithConfig(configProvider) - if err != nil { - return - } - - client = IdentityClient{BaseClient: baseClient} - client.BasePath = "20160918" - err = client.setConfigurationProvider(configProvider) - return +func NewIdentityClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client IdentityClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } + + client = IdentityClient{BaseClient: baseClient} + client.BasePath = "20160918" + err = client.setConfigurationProvider(configProvider) + return } // SetRegion overrides the region of this client. -func (client *IdentityClient) SetRegion(region string) { - client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "identity", region) +func (client *IdentityClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "identity", region) } - // SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid func (client *IdentityClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } - - // Error has been checked already - region, _ := configProvider.Region() - client.config = &configProvider - client.SetRegion(region) - return nil + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.config = &configProvider + client.SetRegion(region) + return nil } // ConfigurationProvider the ConfigurationProvider used in this client, or null if none set func (client *IdentityClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config + return client.config } - - - - - - // AddUserToGroup Adds the specified user to the specified group and returns a `UserGroupMembership` object with its own OCID. - // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the - // object, first make sure its `lifecycleState` has changed to ACTIVE. -func(client IdentityClient) AddUserToGroup(ctx context.Context, request AddUserToGroupRequest) (response AddUserToGroupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/userGroupMemberships/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// AddUserToGroup Adds the specified user to the specified group and returns a `UserGroupMembership` object with its own OCID. +// After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the +// object, first make sure its `lifecycleState` has changed to ACTIVE. +func (client IdentityClient) AddUserToGroup(ctx context.Context, request AddUserToGroupRequest) (response AddUserToGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/userGroupMemberships/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreateCompartment Creates a new compartment in your tenancy. - // **Important:** Compartments cannot be deleted. - // You must specify your tenancy's OCID as the compartment ID in the request object. Remember that the tenancy - // is simply the root compartment. For information about OCIDs, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You must also specify a *name* for the compartment, which must be unique across all compartments in - // your tenancy. You can use this name or the OCID when writing policies that apply - // to the compartment. For more information about policies, see - // [How Policies Work]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policies.htm). - // You must also specify a *description* for the compartment (although it can be an empty string). It does - // not have to be unique, and you can change it anytime with - // UpdateCompartment. - // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the - // object, first make sure its `lifecycleState` has changed to ACTIVE. -func(client IdentityClient) CreateCompartment(ctx context.Context, request CreateCompartmentRequest) (response CreateCompartmentResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/compartments/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateCompartment Creates a new compartment in your tenancy. +// **Important:** Compartments cannot be deleted. +// You must specify your tenancy's OCID as the compartment ID in the request object. Remember that the tenancy +// is simply the root compartment. For information about OCIDs, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You must also specify a *name* for the compartment, which must be unique across all compartments in +// your tenancy. You can use this name or the OCID when writing policies that apply +// to the compartment. For more information about policies, see +// How Policies Work (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policies.htm). +// You must also specify a *description* for the compartment (although it can be an empty string). It does +// not have to be unique, and you can change it anytime with +// UpdateCompartment. +// After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the +// object, first make sure its `lifecycleState` has changed to ACTIVE. +func (client IdentityClient) CreateCompartment(ctx context.Context, request CreateCompartmentRequest) (response CreateCompartmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/compartments/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreateCustomerSecretKey Creates a new secret key for the specified user. Secret keys are used for authentication with the Object Storage Service's Amazon S3 - // compatible API. For information, see - // [Managing User Credentials]({{DOC_SERVER_URL}}/Content/Identity/Tasks/managingcredentials.htm). - // You must specify a *description* for the secret key (although it can be an empty string). It does not - // have to be unique, and you can change it anytime with - // UpdateCustomerSecretKey. - // Every user has permission to create a secret key for *their own user ID*. An administrator in your organization - // does not need to write a policy to give users this ability. To compare, administrators who have permission to the - // tenancy can use this operation to create a secret key for any user, including themselves. -func(client IdentityClient) CreateCustomerSecretKey(ctx context.Context, request CreateCustomerSecretKeyRequest) (response CreateCustomerSecretKeyResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/users/{userId}/customerSecretKeys/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateCustomerSecretKey Creates a new secret key for the specified user. Secret keys are used for authentication with the Object Storage Service's Amazon S3 +// compatible API. For information, see +// Managing User Credentials (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingcredentials.htm). +// You must specify a *description* for the secret key (although it can be an empty string). It does not +// have to be unique, and you can change it anytime with +// UpdateCustomerSecretKey. +// Every user has permission to create a secret key for *their own user ID*. An administrator in your organization +// does not need to write a policy to give users this ability. To compare, administrators who have permission to the +// tenancy can use this operation to create a secret key for any user, including themselves. +func (client IdentityClient) CreateCustomerSecretKey(ctx context.Context, request CreateCustomerSecretKeyRequest) (response CreateCustomerSecretKeyResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/users/{userId}/customerSecretKeys/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreateGroup Creates a new group in your tenancy. - // You must specify your tenancy's OCID as the compartment ID in the request object (remember that the tenancy - // is simply the root compartment). Notice that IAM resources (users, groups, compartments, and some policies) - // reside within the tenancy itself, unlike cloud resources such as compute instances, which typically - // reside within compartments inside the tenancy. For information about OCIDs, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You must also specify a *name* for the group, which must be unique across all groups in your tenancy and - // cannot be changed. You can use this name or the OCID when writing policies that apply to the group. For more - // information about policies, see [How Policies Work]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policies.htm). - // You must also specify a *description* for the group (although it can be an empty string). It does not - // have to be unique, and you can change it anytime with UpdateGroup. - // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the - // object, first make sure its `lifecycleState` has changed to ACTIVE. - // After creating the group, you need to put users in it and write policies for it. - // See AddUserToGroup and - // CreatePolicy. -func(client IdentityClient) CreateGroup(ctx context.Context, request CreateGroupRequest) (response CreateGroupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/groups/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateGroup Creates a new group in your tenancy. +// You must specify your tenancy's OCID as the compartment ID in the request object (remember that the tenancy +// is simply the root compartment). Notice that IAM resources (users, groups, compartments, and some policies) +// reside within the tenancy itself, unlike cloud resources such as compute instances, which typically +// reside within compartments inside the tenancy. For information about OCIDs, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You must also specify a *name* for the group, which must be unique across all groups in your tenancy and +// cannot be changed. You can use this name or the OCID when writing policies that apply to the group. For more +// information about policies, see How Policies Work (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policies.htm). +// You must also specify a *description* for the group (although it can be an empty string). It does not +// have to be unique, and you can change it anytime with UpdateGroup. +// After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the +// object, first make sure its `lifecycleState` has changed to ACTIVE. +// After creating the group, you need to put users in it and write policies for it. +// See AddUserToGroup and +// CreatePolicy. +func (client IdentityClient) CreateGroup(ctx context.Context, request CreateGroupRequest) (response CreateGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/groups/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreateIdentityProvider Creates a new identity provider in your tenancy. For more information, see - // [Identity Providers and Federation]({{DOC_SERVER_URL}}/Content/Identity/Concepts/federation.htm). - // You must specify your tenancy's OCID as the compartment ID in the request object. - // Remember that the tenancy is simply the root compartment. For information about - // OCIDs, see [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You must also specify a *name* for the `IdentityProvider`, which must be unique - // across all `IdentityProvider` objects in your tenancy and cannot be changed. - // You must also specify a *description* for the `IdentityProvider` (although - // it can be an empty string). It does not have to be unique, and you can change - // it anytime with - // UpdateIdentityProvider. - // After you send your request, the new object's `lifecycleState` will temporarily - // be CREATING. Before using the object, first make sure its `lifecycleState` has - // changed to ACTIVE. -func(client IdentityClient) CreateIdentityProvider(ctx context.Context, request CreateIdentityProviderRequest) (response CreateIdentityProviderResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/identityProviders/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &identityprovider{}) - return +// CreateIdentityProvider Creates a new identity provider in your tenancy. For more information, see +// Identity Providers and Federation (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/federation.htm). +// You must specify your tenancy's OCID as the compartment ID in the request object. +// Remember that the tenancy is simply the root compartment. For information about +// OCIDs, see Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You must also specify a *name* for the `IdentityProvider`, which must be unique +// across all `IdentityProvider` objects in your tenancy and cannot be changed. +// You must also specify a *description* for the `IdentityProvider` (although +// it can be an empty string). It does not have to be unique, and you can change +// it anytime with +// UpdateIdentityProvider. +// After you send your request, the new object's `lifecycleState` will temporarily +// be CREATING. Before using the object, first make sure its `lifecycleState` has +// changed to ACTIVE. +func (client IdentityClient) CreateIdentityProvider(ctx context.Context, request CreateIdentityProviderRequest) (response CreateIdentityProviderResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/identityProviders/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &identityprovider{}) + return } - - - - // CreateIdpGroupMapping Creates a single mapping between an IdP group and an IAM Service - // Group. -func(client IdentityClient) CreateIdpGroupMapping(ctx context.Context, request CreateIdpGroupMappingRequest) (response CreateIdpGroupMappingResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/identityProviders/{identityProviderId}/groupMappings/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateIdpGroupMapping Creates a single mapping between an IdP group and an IAM Service +// Group. +func (client IdentityClient) CreateIdpGroupMapping(ctx context.Context, request CreateIdpGroupMappingRequest) (response CreateIdpGroupMappingResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/identityProviders/{identityProviderId}/groupMappings/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreateOrResetUIPassword Creates a new Console one-time password for the specified user. For more information about user - // credentials, see [User Credentials]({{DOC_SERVER_URL}}/Content/Identity/Concepts/usercredentials.htm). - // Use this operation after creating a new user, or if a user forgets their password. The new one-time - // password is returned to you in the response, and you must securely deliver it to the user. They'll - // be prompted to change this password the next time they sign in to the Console. If they don't change - // it within 7 days, the password will expire and you'll need to create a new one-time password for the - // user. - // **Note:** The user's Console login is the unique name you specified when you created the user - // (see CreateUser). -func(client IdentityClient) CreateOrResetUIPassword(ctx context.Context, request CreateOrResetUIPasswordRequest) (response CreateOrResetUIPasswordResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/users/{userId}/uiPassword", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateOrResetUIPassword Creates a new Console one-time password for the specified user. For more information about user +// credentials, see User Credentials (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/usercredentials.htm). +// Use this operation after creating a new user, or if a user forgets their password. The new one-time +// password is returned to you in the response, and you must securely deliver it to the user. They'll +// be prompted to change this password the next time they sign in to the Console. If they don't change +// it within 7 days, the password will expire and you'll need to create a new one-time password for the +// user. +// **Note:** The user's Console login is the unique name you specified when you created the user +// (see CreateUser). +func (client IdentityClient) CreateOrResetUIPassword(ctx context.Context, request CreateOrResetUIPasswordRequest) (response CreateOrResetUIPasswordResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/users/{userId}/uiPassword", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreatePolicy Creates a new policy in the specified compartment (either the tenancy or another of your compartments). - // If you're new to policies, see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). - // You must specify a *name* for the policy, which must be unique across all policies in your tenancy - // and cannot be changed. - // You must also specify a *description* for the policy (although it can be an empty string). It does not - // have to be unique, and you can change it anytime with UpdatePolicy. - // You must specify one or more policy statements in the statements array. For information about writing - // policies, see [How Policies Work]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policies.htm) and - // [Common Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/commonpolicies.htm). - // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the - // object, first make sure its `lifecycleState` has changed to ACTIVE. - // New policies take effect typically within 10 seconds. -func(client IdentityClient) CreatePolicy(ctx context.Context, request CreatePolicyRequest) (response CreatePolicyResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/policies/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreatePolicy Creates a new policy in the specified compartment (either the tenancy or another of your compartments). +// If you're new to policies, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// You must specify a *name* for the policy, which must be unique across all policies in your tenancy +// and cannot be changed. +// You must also specify a *description* for the policy (although it can be an empty string). It does not +// have to be unique, and you can change it anytime with UpdatePolicy. +// You must specify one or more policy statements in the statements array. For information about writing +// policies, see How Policies Work (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policies.htm) and +// Common Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/commonpolicies.htm). +// After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the +// object, first make sure its `lifecycleState` has changed to ACTIVE. +// New policies take effect typically within 10 seconds. +func (client IdentityClient) CreatePolicy(ctx context.Context, request CreatePolicyRequest) (response CreatePolicyResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/policies/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreateRegionSubscription Creates a subscription to a region for a tenancy. -func(client IdentityClient) CreateRegionSubscription(ctx context.Context, request CreateRegionSubscriptionRequest) (response CreateRegionSubscriptionResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/tenancies/{tenancyId}/regionSubscriptions", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateRegionSubscription Creates a subscription to a region for a tenancy. +func (client IdentityClient) CreateRegionSubscription(ctx context.Context, request CreateRegionSubscriptionRequest) (response CreateRegionSubscriptionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/tenancies/{tenancyId}/regionSubscriptions", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreateSwiftPassword Creates a new Swift password for the specified user. For information about what Swift passwords are for, see - // [Managing User Credentials]({{DOC_SERVER_URL}}/Content/Identity/Tasks/managingcredentials.htm). - // You must specify a *description* for the Swift password (although it can be an empty string). It does not - // have to be unique, and you can change it anytime with - // UpdateSwiftPassword. - // Every user has permission to create a Swift password for *their own user ID*. An administrator in your organization - // does not need to write a policy to give users this ability. To compare, administrators who have permission to the - // tenancy can use this operation to create a Swift password for any user, including themselves. -func(client IdentityClient) CreateSwiftPassword(ctx context.Context, request CreateSwiftPasswordRequest) (response CreateSwiftPasswordResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/users/{userId}/swiftPasswords/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateSwiftPassword Creates a new Swift password for the specified user. For information about what Swift passwords are for, see +// Managing User Credentials (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingcredentials.htm). +// You must specify a *description* for the Swift password (although it can be an empty string). It does not +// have to be unique, and you can change it anytime with +// UpdateSwiftPassword. +// Every user has permission to create a Swift password for *their own user ID*. An administrator in your organization +// does not need to write a policy to give users this ability. To compare, administrators who have permission to the +// tenancy can use this operation to create a Swift password for any user, including themselves. +func (client IdentityClient) CreateSwiftPassword(ctx context.Context, request CreateSwiftPasswordRequest) (response CreateSwiftPasswordResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/users/{userId}/swiftPasswords/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreateUser Creates a new user in your tenancy. For conceptual information about users, your tenancy, and other - // IAM Service components, see [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // You must specify your tenancy's OCID as the compartment ID in the request object (remember that the - // tenancy is simply the root compartment). Notice that IAM resources (users, groups, compartments, and - // some policies) reside within the tenancy itself, unlike cloud resources such as compute instances, - // which typically reside within compartments inside the tenancy. For information about OCIDs, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // You must also specify a *name* for the user, which must be unique across all users in your tenancy - // and cannot be changed. Allowed characters: No spaces. Only letters, numerals, hyphens, periods, - // underscores, +, and @. If you specify a name that's already in use, you'll get a 409 error. - // This name will be the user's login to the Console. You might want to pick a - // name that your company's own identity system (e.g., Active Directory, LDAP, etc.) already uses. - // If you delete a user and then create a new user with the same name, they'll be considered different - // users because they have different OCIDs. - // You must also specify a *description* for the user (although it can be an empty string). - // It does not have to be unique, and you can change it anytime with - // UpdateUser. You can use the field to provide the user's - // full name, a description, a nickname, or other information to generally identify the user. - // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before - // using the object, first make sure its `lifecycleState` has changed to ACTIVE. - // A new user has no permissions until you place the user in one or more groups (see - // AddUserToGroup). If the user needs to - // access the Console, you need to provide the user a password (see - // CreateOrResetUIPassword). - // If the user needs to access the Oracle Cloud Infrastructure REST API, you need to upload a - // public API signing key for that user (see - // [Required Keys and OCIDs]({{DOC_SERVER_URL}}/Content/API/Concepts/apisigningkey.htm) and also - // UploadApiKey). - // **Important:** Make sure to inform the new user which compartment(s) they have access to. -func(client IdentityClient) CreateUser(ctx context.Context, request CreateUserRequest) (response CreateUserResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/users/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateUser Creates a new user in your tenancy. For conceptual information about users, your tenancy, and other +// IAM Service components, see Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// You must specify your tenancy's OCID as the compartment ID in the request object (remember that the +// tenancy is simply the root compartment). Notice that IAM resources (users, groups, compartments, and +// some policies) reside within the tenancy itself, unlike cloud resources such as compute instances, +// which typically reside within compartments inside the tenancy. For information about OCIDs, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// You must also specify a *name* for the user, which must be unique across all users in your tenancy +// and cannot be changed. Allowed characters: No spaces. Only letters, numerals, hyphens, periods, +// underscores, +, and @. If you specify a name that's already in use, you'll get a 409 error. +// This name will be the user's login to the Console. You might want to pick a +// name that your company's own identity system (e.g., Active Directory, LDAP, etc.) already uses. +// If you delete a user and then create a new user with the same name, they'll be considered different +// users because they have different OCIDs. +// You must also specify a *description* for the user (although it can be an empty string). +// It does not have to be unique, and you can change it anytime with +// UpdateUser. You can use the field to provide the user's +// full name, a description, a nickname, or other information to generally identify the user. +// After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before +// using the object, first make sure its `lifecycleState` has changed to ACTIVE. +// A new user has no permissions until you place the user in one or more groups (see +// AddUserToGroup). If the user needs to +// access the Console, you need to provide the user a password (see +// CreateOrResetUIPassword). +// If the user needs to access the Oracle Cloud Infrastructure REST API, you need to upload a +// public API signing key for that user (see +// Required Keys and OCIDs (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm) and also +// UploadApiKey). +// **Important:** Make sure to inform the new user which compartment(s) they have access to. +func (client IdentityClient) CreateUser(ctx context.Context, request CreateUserRequest) (response CreateUserResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/users/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteApiKey Deletes the specified API signing key for the specified user. - // Every user has permission to use this operation to delete a key for *their own user ID*. An - // administrator in your organization does not need to write a policy to give users this ability. - // To compare, administrators who have permission to the tenancy can use this operation to delete - // a key for any user, including themselves. -func(client IdentityClient) DeleteApiKey(ctx context.Context, request DeleteApiKeyRequest) (response DeleteApiKeyResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/users/{userId}/apiKeys/{fingerprint}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteApiKey Deletes the specified API signing key for the specified user. +// Every user has permission to use this operation to delete a key for *their own user ID*. An +// administrator in your organization does not need to write a policy to give users this ability. +// To compare, administrators who have permission to the tenancy can use this operation to delete +// a key for any user, including themselves. +func (client IdentityClient) DeleteApiKey(ctx context.Context, request DeleteApiKeyRequest) (response DeleteApiKeyResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/users/{userId}/apiKeys/{fingerprint}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteCustomerSecretKey Deletes the specified secret key for the specified user. -func(client IdentityClient) DeleteCustomerSecretKey(ctx context.Context, request DeleteCustomerSecretKeyRequest) (response DeleteCustomerSecretKeyResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/users/{userId}/customerSecretKeys/{customerSecretKeyId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteCustomerSecretKey Deletes the specified secret key for the specified user. +func (client IdentityClient) DeleteCustomerSecretKey(ctx context.Context, request DeleteCustomerSecretKeyRequest) (response DeleteCustomerSecretKeyResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/users/{userId}/customerSecretKeys/{customerSecretKeyId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteGroup Deletes the specified group. The group must be empty. -func(client IdentityClient) DeleteGroup(ctx context.Context, request DeleteGroupRequest) (response DeleteGroupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/groups/{groupId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteGroup Deletes the specified group. The group must be empty. +func (client IdentityClient) DeleteGroup(ctx context.Context, request DeleteGroupRequest) (response DeleteGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/groups/{groupId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteIdentityProvider Deletes the specified identity provider. The identity provider must not have - // any group mappings (see IdpGroupMapping). -func(client IdentityClient) DeleteIdentityProvider(ctx context.Context, request DeleteIdentityProviderRequest) (response DeleteIdentityProviderResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/identityProviders/{identityProviderId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteIdentityProvider Deletes the specified identity provider. The identity provider must not have +// any group mappings (see IdpGroupMapping). +func (client IdentityClient) DeleteIdentityProvider(ctx context.Context, request DeleteIdentityProviderRequest) (response DeleteIdentityProviderResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/identityProviders/{identityProviderId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteIdpGroupMapping Deletes the specified group mapping. -func(client IdentityClient) DeleteIdpGroupMapping(ctx context.Context, request DeleteIdpGroupMappingRequest) (response DeleteIdpGroupMappingResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/identityProviders/{identityProviderId}/groupMappings/{mappingId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteIdpGroupMapping Deletes the specified group mapping. +func (client IdentityClient) DeleteIdpGroupMapping(ctx context.Context, request DeleteIdpGroupMappingRequest) (response DeleteIdpGroupMappingResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/identityProviders/{identityProviderId}/groupMappings/{mappingId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeletePolicy Deletes the specified policy. The deletion takes effect typically within 10 seconds. -func(client IdentityClient) DeletePolicy(ctx context.Context, request DeletePolicyRequest) (response DeletePolicyResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/policies/{policyId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeletePolicy Deletes the specified policy. The deletion takes effect typically within 10 seconds. +func (client IdentityClient) DeletePolicy(ctx context.Context, request DeletePolicyRequest) (response DeletePolicyResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/policies/{policyId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteSwiftPassword Deletes the specified Swift password for the specified user. -func(client IdentityClient) DeleteSwiftPassword(ctx context.Context, request DeleteSwiftPasswordRequest) (response DeleteSwiftPasswordResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/users/{userId}/swiftPasswords/{swiftPasswordId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteSwiftPassword Deletes the specified Swift password for the specified user. +func (client IdentityClient) DeleteSwiftPassword(ctx context.Context, request DeleteSwiftPasswordRequest) (response DeleteSwiftPasswordResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/users/{userId}/swiftPasswords/{swiftPasswordId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteUser Deletes the specified user. The user must not be in any groups. -func(client IdentityClient) DeleteUser(ctx context.Context, request DeleteUserRequest) (response DeleteUserResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/users/{userId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteUser Deletes the specified user. The user must not be in any groups. +func (client IdentityClient) DeleteUser(ctx context.Context, request DeleteUserRequest) (response DeleteUserResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/users/{userId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetCompartment Gets the specified compartment's information. - // This operation does not return a list of all the resources inside the compartment. There is no single - // API operation that does that. Compartments can contain multiple types of resources (instances, block - // storage volumes, etc.). To find out what's in a compartment, you must call the "List" operation for - // each resource type and specify the compartment's OCID as a query parameter in the request. For example, - // call the ListInstances operation in the Cloud Compute - // Service or the ListVolumes operation in Cloud Block Storage. -func(client IdentityClient) GetCompartment(ctx context.Context, request GetCompartmentRequest) (response GetCompartmentResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/compartments/{compartmentId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetCompartment Gets the specified compartment's information. +// This operation does not return a list of all the resources inside the compartment. There is no single +// API operation that does that. Compartments can contain multiple types of resources (instances, block +// storage volumes, etc.). To find out what's in a compartment, you must call the "List" operation for +// each resource type and specify the compartment's OCID as a query parameter in the request. For example, +// call the ListInstances operation in the Cloud Compute +// Service or the ListVolumes operation in Cloud Block Storage. +func (client IdentityClient) GetCompartment(ctx context.Context, request GetCompartmentRequest) (response GetCompartmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/compartments/{compartmentId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetGroup Gets the specified group's information. - // This operation does not return a list of all the users in the group. To do that, use - // ListUserGroupMemberships and - // provide the group's OCID as a query parameter in the request. -func(client IdentityClient) GetGroup(ctx context.Context, request GetGroupRequest) (response GetGroupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/groups/{groupId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetGroup Gets the specified group's information. +// This operation does not return a list of all the users in the group. To do that, use +// ListUserGroupMemberships and +// provide the group's OCID as a query parameter in the request. +func (client IdentityClient) GetGroup(ctx context.Context, request GetGroupRequest) (response GetGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/groups/{groupId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetIdentityProvider Gets the specified identity provider's information. -func(client IdentityClient) GetIdentityProvider(ctx context.Context, request GetIdentityProviderRequest) (response GetIdentityProviderResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/identityProviders/{identityProviderId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &identityprovider{}) - return +// GetIdentityProvider Gets the specified identity provider's information. +func (client IdentityClient) GetIdentityProvider(ctx context.Context, request GetIdentityProviderRequest) (response GetIdentityProviderResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/identityProviders/{identityProviderId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &identityprovider{}) + return } - - - - // GetIdpGroupMapping Gets the specified group mapping. -func(client IdentityClient) GetIdpGroupMapping(ctx context.Context, request GetIdpGroupMappingRequest) (response GetIdpGroupMappingResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/identityProviders/{identityProviderId}/groupMappings/{mappingId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetIdpGroupMapping Gets the specified group mapping. +func (client IdentityClient) GetIdpGroupMapping(ctx context.Context, request GetIdpGroupMappingRequest) (response GetIdpGroupMappingResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/identityProviders/{identityProviderId}/groupMappings/{mappingId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetPolicy Gets the specified policy's information. -func(client IdentityClient) GetPolicy(ctx context.Context, request GetPolicyRequest) (response GetPolicyResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/policies/{policyId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetPolicy Gets the specified policy's information. +func (client IdentityClient) GetPolicy(ctx context.Context, request GetPolicyRequest) (response GetPolicyResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/policies/{policyId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetTenancy Get the specified tenancy's information. -func(client IdentityClient) GetTenancy(ctx context.Context, request GetTenancyRequest) (response GetTenancyResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/tenancies/{tenancyId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetTenancy Get the specified tenancy's information. +func (client IdentityClient) GetTenancy(ctx context.Context, request GetTenancyRequest) (response GetTenancyResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/tenancies/{tenancyId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetUser Gets the specified user's information. -func(client IdentityClient) GetUser(ctx context.Context, request GetUserRequest) (response GetUserResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/users/{userId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetUser Gets the specified user's information. +func (client IdentityClient) GetUser(ctx context.Context, request GetUserRequest) (response GetUserResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/users/{userId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetUserGroupMembership Gets the specified UserGroupMembership's information. -func(client IdentityClient) GetUserGroupMembership(ctx context.Context, request GetUserGroupMembershipRequest) (response GetUserGroupMembershipResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/userGroupMemberships/{userGroupMembershipId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetUserGroupMembership Gets the specified UserGroupMembership's information. +func (client IdentityClient) GetUserGroupMembership(ctx context.Context, request GetUserGroupMembershipRequest) (response GetUserGroupMembershipResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/userGroupMemberships/{userGroupMembershipId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListApiKeys Lists the API signing keys for the specified user. A user can have a maximum of three keys. - // Every user has permission to use this API call for *their own user ID*. An administrator in your - // organization does not need to write a policy to give users this ability. -func(client IdentityClient) ListApiKeys(ctx context.Context, request ListApiKeysRequest) (response ListApiKeysResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/users/{userId}/apiKeys/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListApiKeys Lists the API signing keys for the specified user. A user can have a maximum of three keys. +// Every user has permission to use this API call for *their own user ID*. An administrator in your +// organization does not need to write a policy to give users this ability. +func (client IdentityClient) ListApiKeys(ctx context.Context, request ListApiKeysRequest) (response ListApiKeysResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/users/{userId}/apiKeys/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListAvailabilityDomains Lists the Availability Domains in your tenancy. Specify the OCID of either the tenancy or another - // of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment). - // See [Where to Get the Tenancy's OCID and User's OCID]({{DOC_SERVER_URL}}/Content/API/Concepts/apisigningkey.htm#five). -func(client IdentityClient) ListAvailabilityDomains(ctx context.Context, request ListAvailabilityDomainsRequest) (response ListAvailabilityDomainsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/availabilityDomains/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListAvailabilityDomains Lists the Availability Domains in your tenancy. Specify the OCID of either the tenancy or another +// of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five). +func (client IdentityClient) ListAvailabilityDomains(ctx context.Context, request ListAvailabilityDomainsRequest) (response ListAvailabilityDomainsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/availabilityDomains/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListCompartments Lists the compartments in your tenancy. You must specify your tenancy's OCID as the value - // for the compartment ID (remember that the tenancy is simply the root compartment). - // See [Where to Get the Tenancy's OCID and User's OCID]({{DOC_SERVER_URL}}/Content/API/Concepts/apisigningkey.htm#five). -func(client IdentityClient) ListCompartments(ctx context.Context, request ListCompartmentsRequest) (response ListCompartmentsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/compartments/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListCompartments Lists the compartments in your tenancy. You must specify your tenancy's OCID as the value +// for the compartment ID (remember that the tenancy is simply the root compartment). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five). +func (client IdentityClient) ListCompartments(ctx context.Context, request ListCompartmentsRequest) (response ListCompartmentsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/compartments/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListCustomerSecretKeys Lists the secret keys for the specified user. The returned object contains the secret key's OCID, but not - // the secret key itself. The actual secret key is returned only upon creation. -func(client IdentityClient) ListCustomerSecretKeys(ctx context.Context, request ListCustomerSecretKeysRequest) (response ListCustomerSecretKeysResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/users/{userId}/customerSecretKeys/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListCustomerSecretKeys Lists the secret keys for the specified user. The returned object contains the secret key's OCID, but not +// the secret key itself. The actual secret key is returned only upon creation. +func (client IdentityClient) ListCustomerSecretKeys(ctx context.Context, request ListCustomerSecretKeysRequest) (response ListCustomerSecretKeysResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/users/{userId}/customerSecretKeys/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListFaultDomains Lists the Fault Domains in your tenancy. Specify the OCID of either the tenancy or another - // of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment). - // See [Where to Get the Tenancy's OCID and User's OCID]({{DOC_SERVER_URL}}/Content/API/Concepts/apisigningkey.htm#five). -func(client IdentityClient) ListFaultDomains(ctx context.Context, request ListFaultDomainsRequest) (response ListFaultDomainsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/faultDomains/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListFaultDomains Lists the Fault Domains in your tenancy. Specify the OCID of either the tenancy or another +// of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five). +func (client IdentityClient) ListFaultDomains(ctx context.Context, request ListFaultDomainsRequest) (response ListFaultDomainsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/faultDomains/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListGroups Lists the groups in your tenancy. You must specify your tenancy's OCID as the value for - // the compartment ID (remember that the tenancy is simply the root compartment). - // See [Where to Get the Tenancy's OCID and User's OCID]({{DOC_SERVER_URL}}/Content/API/Concepts/apisigningkey.htm#five). -func(client IdentityClient) ListGroups(ctx context.Context, request ListGroupsRequest) (response ListGroupsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/groups/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListGroups Lists the groups in your tenancy. You must specify your tenancy's OCID as the value for +// the compartment ID (remember that the tenancy is simply the root compartment). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five). +func (client IdentityClient) ListGroups(ctx context.Context, request ListGroupsRequest) (response ListGroupsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/groups/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - //listidentityprovider allows to unmarshal list of polymorphic IdentityProvider type listidentityprovider []identityprovider //UnmarshalPolymorphicJSON unmarshals polymorphic json list of items func (m *listidentityprovider) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - res := make([]IdentityProvider, len(*m)) - for i, v := range *m { - nn, err := v.UnmarshalPolymorphicJSON(v.JsonData) - if err != nil { - return nil, err - } - res[i] = nn.(IdentityProvider) - } - return res, nil + res := make([]IdentityProvider, len(*m)) + for i, v := range *m { + nn, err := v.UnmarshalPolymorphicJSON(v.JsonData) + if err != nil { + return nil, err + } + res[i] = nn.(IdentityProvider) + } + return res, nil } - - // ListIdentityProviders Lists all the identity providers in your tenancy. You must specify the identity provider type (e.g., `SAML2` for - // identity providers using the SAML2.0 protocol). You must specify your tenancy's OCID as the value for the - // compartment ID (remember that the tenancy is simply the root compartment). - // See [Where to Get the Tenancy's OCID and User's OCID]({{DOC_SERVER_URL}}/Content/API/Concepts/apisigningkey.htm#five). -func(client IdentityClient) ListIdentityProviders(ctx context.Context, request ListIdentityProvidersRequest) (response ListIdentityProvidersResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/identityProviders/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &listidentityprovider{}) - return +// ListIdentityProviders Lists all the identity providers in your tenancy. You must specify the identity provider type (e.g., `SAML2` for +// identity providers using the SAML2.0 protocol). You must specify your tenancy's OCID as the value for the +// compartment ID (remember that the tenancy is simply the root compartment). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five). +func (client IdentityClient) ListIdentityProviders(ctx context.Context, request ListIdentityProvidersRequest) (response ListIdentityProvidersResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/identityProviders/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &listidentityprovider{}) + return } - - - - // ListIdpGroupMappings Lists the group mappings for the specified identity provider. -func(client IdentityClient) ListIdpGroupMappings(ctx context.Context, request ListIdpGroupMappingsRequest) (response ListIdpGroupMappingsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/identityProviders/{identityProviderId}/groupMappings/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListIdpGroupMappings Lists the group mappings for the specified identity provider. +func (client IdentityClient) ListIdpGroupMappings(ctx context.Context, request ListIdpGroupMappingsRequest) (response ListIdpGroupMappingsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/identityProviders/{identityProviderId}/groupMappings/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListPolicies Lists the policies in the specified compartment (either the tenancy or another of your compartments). - // See [Where to Get the Tenancy's OCID and User's OCID]({{DOC_SERVER_URL}}/Content/API/Concepts/apisigningkey.htm#five). - // To determine which policies apply to a particular group or compartment, you must view the individual - // statements inside all your policies. There isn't a way to automatically obtain that information via the API. -func(client IdentityClient) ListPolicies(ctx context.Context, request ListPoliciesRequest) (response ListPoliciesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/policies/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListPolicies Lists the policies in the specified compartment (either the tenancy or another of your compartments). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five). +// To determine which policies apply to a particular group or compartment, you must view the individual +// statements inside all your policies. There isn't a way to automatically obtain that information via the API. +func (client IdentityClient) ListPolicies(ctx context.Context, request ListPoliciesRequest) (response ListPoliciesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/policies/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListRegionSubscriptions Lists the region subscriptions for the specified tenancy. -func(client IdentityClient) ListRegionSubscriptions(ctx context.Context, request ListRegionSubscriptionsRequest) (response ListRegionSubscriptionsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/tenancies/{tenancyId}/regionSubscriptions", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListRegionSubscriptions Lists the region subscriptions for the specified tenancy. +func (client IdentityClient) ListRegionSubscriptions(ctx context.Context, request ListRegionSubscriptionsRequest) (response ListRegionSubscriptionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/tenancies/{tenancyId}/regionSubscriptions", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } +// ListRegions Lists all the regions offered by Oracle Cloud Infrastructure. +func (client IdentityClient) ListRegions(ctx context.Context) (response ListRegionsResponse, err error) { + httpRequest := common.MakeDefaultHTTPRequest(http.MethodGet, "/regions") + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } - - // ListRegions Lists all the regions offered by Oracle Cloud Infrastructure. -func(client IdentityClient) ListRegions(ctx context.Context, ) (response ListRegionsResponse, err error) { - httpRequest := common.MakeDefaultHTTPRequest(http.MethodGet, "/regions") - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListSwiftPasswords Lists the Swift passwords for the specified user. The returned object contains the password's OCID, but not - // the password itself. The actual password is returned only upon creation. -func(client IdentityClient) ListSwiftPasswords(ctx context.Context, request ListSwiftPasswordsRequest) (response ListSwiftPasswordsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/users/{userId}/swiftPasswords/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListSwiftPasswords Lists the Swift passwords for the specified user. The returned object contains the password's OCID, but not +// the password itself. The actual password is returned only upon creation. +func (client IdentityClient) ListSwiftPasswords(ctx context.Context, request ListSwiftPasswordsRequest) (response ListSwiftPasswordsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/users/{userId}/swiftPasswords/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListUserGroupMemberships Lists the `UserGroupMembership` objects in your tenancy. You must specify your tenancy's OCID - // as the value for the compartment ID - // (see [Where to Get the Tenancy's OCID and User's OCID]({{DOC_SERVER_URL}}/Content/API/Concepts/apisigningkey.htm#five)). - // You must also then filter the list in one of these ways: - // - You can limit the results to just the memberships for a given user by specifying a `userId`. - // - Similarly, you can limit the results to just the memberships for a given group by specifying a `groupId`. - // - You can set both the `userId` and `groupId` to determine if the specified user is in the specified group. - // If the answer is no, the response is an empty list. -func(client IdentityClient) ListUserGroupMemberships(ctx context.Context, request ListUserGroupMembershipsRequest) (response ListUserGroupMembershipsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/userGroupMemberships/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListUserGroupMemberships Lists the `UserGroupMembership` objects in your tenancy. You must specify your tenancy's OCID +// as the value for the compartment ID +// (see Where to Get the Tenancy's OCID and User's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five)). +// You must also then filter the list in one of these ways: +// - You can limit the results to just the memberships for a given user by specifying a `userId`. +// - Similarly, you can limit the results to just the memberships for a given group by specifying a `groupId`. +// - You can set both the `userId` and `groupId` to determine if the specified user is in the specified group. +// If the answer is no, the response is an empty list. +func (client IdentityClient) ListUserGroupMemberships(ctx context.Context, request ListUserGroupMembershipsRequest) (response ListUserGroupMembershipsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/userGroupMemberships/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListUsers Lists the users in your tenancy. You must specify your tenancy's OCID as the value for the - // compartment ID (remember that the tenancy is simply the root compartment). - // See [Where to Get the Tenancy's OCID and User's OCID]({{DOC_SERVER_URL}}/Content/API/Concepts/apisigningkey.htm#five). -func(client IdentityClient) ListUsers(ctx context.Context, request ListUsersRequest) (response ListUsersResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/users/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListUsers Lists the users in your tenancy. You must specify your tenancy's OCID as the value for the +// compartment ID (remember that the tenancy is simply the root compartment). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five). +func (client IdentityClient) ListUsers(ctx context.Context, request ListUsersRequest) (response ListUsersResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/users/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // RemoveUserFromGroup Removes a user from a group by deleting the corresponding `UserGroupMembership`. -func(client IdentityClient) RemoveUserFromGroup(ctx context.Context, request RemoveUserFromGroupRequest) (response RemoveUserFromGroupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/userGroupMemberships/{userGroupMembershipId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// RemoveUserFromGroup Removes a user from a group by deleting the corresponding `UserGroupMembership`. +func (client IdentityClient) RemoveUserFromGroup(ctx context.Context, request RemoveUserFromGroupRequest) (response RemoveUserFromGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/userGroupMemberships/{userGroupMembershipId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateCompartment Updates the specified compartment's description or name. You can't update the root compartment. -func(client IdentityClient) UpdateCompartment(ctx context.Context, request UpdateCompartmentRequest) (response UpdateCompartmentResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/compartments/{compartmentId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateCompartment Updates the specified compartment's description or name. You can't update the root compartment. +func (client IdentityClient) UpdateCompartment(ctx context.Context, request UpdateCompartmentRequest) (response UpdateCompartmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/compartments/{compartmentId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateCustomerSecretKey Updates the specified secret key's description. -func(client IdentityClient) UpdateCustomerSecretKey(ctx context.Context, request UpdateCustomerSecretKeyRequest) (response UpdateCustomerSecretKeyResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/users/{userId}/customerSecretKeys/{customerSecretKeyId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateCustomerSecretKey Updates the specified secret key's description. +func (client IdentityClient) UpdateCustomerSecretKey(ctx context.Context, request UpdateCustomerSecretKeyRequest) (response UpdateCustomerSecretKeyResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/users/{userId}/customerSecretKeys/{customerSecretKeyId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateGroup Updates the specified group. -func(client IdentityClient) UpdateGroup(ctx context.Context, request UpdateGroupRequest) (response UpdateGroupResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/groups/{groupId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateGroup Updates the specified group. +func (client IdentityClient) UpdateGroup(ctx context.Context, request UpdateGroupRequest) (response UpdateGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/groups/{groupId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateIdentityProvider Updates the specified identity provider. -func(client IdentityClient) UpdateIdentityProvider(ctx context.Context, request UpdateIdentityProviderRequest) (response UpdateIdentityProviderResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/identityProviders/{identityProviderId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &identityprovider{}) - return +// UpdateIdentityProvider Updates the specified identity provider. +func (client IdentityClient) UpdateIdentityProvider(ctx context.Context, request UpdateIdentityProviderRequest) (response UpdateIdentityProviderResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/identityProviders/{identityProviderId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &identityprovider{}) + return } - - - - // UpdateIdpGroupMapping Updates the specified group mapping. -func(client IdentityClient) UpdateIdpGroupMapping(ctx context.Context, request UpdateIdpGroupMappingRequest) (response UpdateIdpGroupMappingResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/identityProviders/{identityProviderId}/groupMappings/{mappingId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateIdpGroupMapping Updates the specified group mapping. +func (client IdentityClient) UpdateIdpGroupMapping(ctx context.Context, request UpdateIdpGroupMappingRequest) (response UpdateIdpGroupMappingResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/identityProviders/{identityProviderId}/groupMappings/{mappingId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdatePolicy Updates the specified policy. You can update the description or the policy statements themselves. - // Policy changes take effect typically within 10 seconds. -func(client IdentityClient) UpdatePolicy(ctx context.Context, request UpdatePolicyRequest) (response UpdatePolicyResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/policies/{policyId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdatePolicy Updates the specified policy. You can update the description or the policy statements themselves. +// Policy changes take effect typically within 10 seconds. +func (client IdentityClient) UpdatePolicy(ctx context.Context, request UpdatePolicyRequest) (response UpdatePolicyResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/policies/{policyId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateSwiftPassword Updates the specified Swift password's description. -func(client IdentityClient) UpdateSwiftPassword(ctx context.Context, request UpdateSwiftPasswordRequest) (response UpdateSwiftPasswordResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/users/{userId}/swiftPasswords/{swiftPasswordId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateSwiftPassword Updates the specified Swift password's description. +func (client IdentityClient) UpdateSwiftPassword(ctx context.Context, request UpdateSwiftPasswordRequest) (response UpdateSwiftPasswordResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/users/{userId}/swiftPasswords/{swiftPasswordId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateUser Updates the description of the specified user. -func(client IdentityClient) UpdateUser(ctx context.Context, request UpdateUserRequest) (response UpdateUserResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/users/{userId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateUser Updates the description of the specified user. +func (client IdentityClient) UpdateUser(ctx context.Context, request UpdateUserRequest) (response UpdateUserResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/users/{userId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateUserState Updates the state of the specified user. -func(client IdentityClient) UpdateUserState(ctx context.Context, request UpdateUserStateRequest) (response UpdateUserStateResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/users/{userId}/state/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateUserState Updates the state of the specified user. +func (client IdentityClient) UpdateUserState(ctx context.Context, request UpdateUserStateRequest) (response UpdateUserStateResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/users/{userId}/state/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UploadApiKey Uploads an API signing key for the specified user. - // Every user has permission to use this operation to upload a key for *their own user ID*. An - // administrator in your organization does not need to write a policy to give users this ability. - // To compare, administrators who have permission to the tenancy can use this operation to upload a - // key for any user, including themselves. - // **Important:** Even though you have permission to upload an API key, you might not yet - // have permission to do much else. If you try calling an operation unrelated to your own credential - // management (e.g., `ListUsers`, `LaunchInstance`) and receive an "unauthorized" error, - // check with an administrator to confirm which IAM Service group(s) you're in and what access - // you have. Also confirm you're working in the correct compartment. - // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using - // the object, first make sure its `lifecycleState` has changed to ACTIVE. -func(client IdentityClient) UploadApiKey(ctx context.Context, request UploadApiKeyRequest) (response UploadApiKeyResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/users/{userId}/apiKeys/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UploadApiKey Uploads an API signing key for the specified user. +// Every user has permission to use this operation to upload a key for *their own user ID*. An +// administrator in your organization does not need to write a policy to give users this ability. +// To compare, administrators who have permission to the tenancy can use this operation to upload a +// key for any user, including themselves. +// **Important:** Even though you have permission to upload an API key, you might not yet +// have permission to do much else. If you try calling an operation unrelated to your own credential +// management (e.g., `ListUsers`, `LaunchInstance`) and receive an "unauthorized" error, +// check with an administrator to confirm which IAM Service group(s) you're in and what access +// you have. Also confirm you're working in the correct compartment. +// After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using +// the object, first make sure its `lifecycleState` has changed to ACTIVE. +func (client IdentityClient) UploadApiKey(ctx context.Context, request UploadApiKeyRequest) (response UploadApiKeyResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/users/{userId}/apiKeys/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/identity_provider.go b/vendor/github.com/oracle/oci-go-sdk/identity/identity_provider.go index 563f8733b..170df8879 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/identity_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/identity_provider.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,145 +9,150 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // IdentityProvider The resulting base object when you add an identity provider to your tenancy. A - // Saml2IdentityProvider - // is a specific type of `IdentityProvider` that supports the SAML 2.0 protocol. Each - // `IdentityProvider` object has its own OCID. For more information, see - // [Identity Providers and Federation]({{DOC_SERVER_URL}}/Content/Identity/Concepts/federation.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// IdentityProvider The resulting base object when you add an identity provider to your tenancy. A +// Saml2IdentityProvider +// is a specific type of `IdentityProvider` that supports the SAML 2.0 protocol. Each +// `IdentityProvider` object has its own OCID. For more information, see +// Identity Providers and Federation (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/federation.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type IdentityProvider interface { - - // The OCID of the `IdentityProvider`. - GetId() *string - - // The OCID of the tenancy containing the `IdentityProvider`. - GetCompartmentId() *string - - // The name you assign to the `IdentityProvider` during creation. The name - // must be unique across all `IdentityProvider` objects in the tenancy and - // cannot be changed. This is the name federated users see when choosing - // which identity provider to use when signing in to the Oracle Cloud Infrastructure - // Console. - GetName() *string - - // The description you assign to the `IdentityProvider` during creation. Does - // not have to be unique, and it's changeable. - GetDescription() *string - - // The identity provider service or product. - // Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft - // Active Directory Federation Services (ADFS). - // Allowed values are: - // - `ADFS` - // - `IDCS` - // Example: `IDCS` - GetProductType() *string - - // Date and time the `IdentityProvider` was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - GetTimeCreated() *common.SDKTime - - // The current state. After creating an `IdentityProvider`, make sure its - // `lifecycleState` changes from CREATING to ACTIVE before using it. - GetLifecycleState() IdentityProviderLifecycleStateEnum - - // The detailed status of INACTIVE lifecycleState. - GetInactiveStatus() *int + + // The OCID of the `IdentityProvider`. + GetId() *string + + // The OCID of the tenancy containing the `IdentityProvider`. + GetCompartmentId() *string + + // The name you assign to the `IdentityProvider` during creation. The name + // must be unique across all `IdentityProvider` objects in the tenancy and + // cannot be changed. This is the name federated users see when choosing + // which identity provider to use when signing in to the Oracle Cloud Infrastructure + // Console. + GetName() *string + + // The description you assign to the `IdentityProvider` during creation. Does + // not have to be unique, and it's changeable. + GetDescription() *string + + // The identity provider service or product. + // Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft + // Active Directory Federation Services (ADFS). + // Allowed values are: + // - `ADFS` + // - `IDCS` + // Example: `IDCS` + GetProductType() *string + + // Date and time the `IdentityProvider` was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + GetTimeCreated() *common.SDKTime + + // The current state. After creating an `IdentityProvider`, make sure its + // `lifecycleState` changes from CREATING to ACTIVE before using it. + GetLifecycleState() IdentityProviderLifecycleStateEnum + + // The detailed status of INACTIVE lifecycleState. + GetInactiveStatus() *int } type identityprovider struct { - JsonData []byte - Id *string `mandatory:"true" json:"id"` - CompartmentId *string `mandatory:"true" json:"compartmentId"` - Name *string `mandatory:"true" json:"name"` - Description *string `mandatory:"true" json:"description"` - ProductType *string `mandatory:"true" json:"productType"` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - LifecycleState IdentityProviderLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` - Protocol string `json:"protocol"` + JsonData []byte + Id *string `mandatory:"true" json:"id"` + CompartmentId *string `mandatory:"true" json:"compartmentId"` + Name *string `mandatory:"true" json:"name"` + Description *string `mandatory:"true" json:"description"` + ProductType *string `mandatory:"true" json:"productType"` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + LifecycleState IdentityProviderLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + Protocol string `json:"protocol"` } - // UnmarshalJSON unmarshals json func (m *identityprovider) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshaleridentityprovider identityprovider - s := struct { - Model Unmarshaleridentityprovider - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Id = s.Model.Id - m.CompartmentId = s.Model.CompartmentId - m.Name = s.Model.Name - m.Description = s.Model.Description - m.ProductType = s.Model.ProductType - m.TimeCreated = s.Model.TimeCreated - m.LifecycleState = s.Model.LifecycleState - m.InactiveStatus = s.Model.InactiveStatus - m.Protocol = s.Model.Protocol - - return err + m.JsonData = data + type Unmarshaleridentityprovider identityprovider + s := struct { + Model Unmarshaleridentityprovider + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Id = s.Model.Id + m.CompartmentId = s.Model.CompartmentId + m.Name = s.Model.Name + m.Description = s.Model.Description + m.ProductType = s.Model.ProductType + m.TimeCreated = s.Model.TimeCreated + m.LifecycleState = s.Model.LifecycleState + m.InactiveStatus = s.Model.InactiveStatus + m.Protocol = s.Model.Protocol + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *identityprovider) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.Protocol) { - case "SAML2": - mm := Saml2IdentityProvider{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.Protocol { + case "SAML2": + mm := Saml2IdentityProvider{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } +} + +//GetId returns Id +func (m identityprovider) GetId() *string { + return m.Id +} + +//GetCompartmentId returns CompartmentId +func (m identityprovider) GetCompartmentId() *string { + return m.CompartmentId } - //GetId returns Id - func (m identityprovider) GetId() *string { - return m.Id - } - //GetCompartmentId returns CompartmentId - func (m identityprovider) GetCompartmentId() *string { - return m.CompartmentId - } - //GetName returns Name - func (m identityprovider) GetName() *string { - return m.Name - } - //GetDescription returns Description - func (m identityprovider) GetDescription() *string { - return m.Description - } - //GetProductType returns ProductType - func (m identityprovider) GetProductType() *string { - return m.ProductType - } - //GetTimeCreated returns TimeCreated - func (m identityprovider) GetTimeCreated() *common.SDKTime { - return m.TimeCreated - } - //GetLifecycleState returns LifecycleState - func (m identityprovider) GetLifecycleState() IdentityProviderLifecycleStateEnum { - return m.LifecycleState - } - //GetInactiveStatus returns InactiveStatus - func (m identityprovider) GetInactiveStatus() *int { - return m.InactiveStatus - } +//GetName returns Name +func (m identityprovider) GetName() *string { + return m.Name +} + +//GetDescription returns Description +func (m identityprovider) GetDescription() *string { + return m.Description +} + +//GetProductType returns ProductType +func (m identityprovider) GetProductType() *string { + return m.ProductType +} + +//GetTimeCreated returns TimeCreated +func (m identityprovider) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +//GetLifecycleState returns LifecycleState +func (m identityprovider) GetLifecycleState() IdentityProviderLifecycleStateEnum { + return m.LifecycleState +} + +//GetInactiveStatus returns InactiveStatus +func (m identityprovider) GetInactiveStatus() *int { + return m.InactiveStatus +} func (m identityprovider) String() string { - return common.PointerString(m) + return common.PointerString(m) } // IdentityProviderLifecycleStateEnum Enum with underlying type: string @@ -155,34 +160,26 @@ type IdentityProviderLifecycleStateEnum string // Set of constants representing the allowable values for IdentityProviderLifecycleState const ( - IdentityProviderLifecycleStateCreating IdentityProviderLifecycleStateEnum = "CREATING" - IdentityProviderLifecycleStateActive IdentityProviderLifecycleStateEnum = "ACTIVE" - IdentityProviderLifecycleStateInactive IdentityProviderLifecycleStateEnum = "INACTIVE" - IdentityProviderLifecycleStateDeleting IdentityProviderLifecycleStateEnum = "DELETING" - IdentityProviderLifecycleStateDeleted IdentityProviderLifecycleStateEnum = "DELETED" - IdentityProviderLifecycleStateUnknown IdentityProviderLifecycleStateEnum = "UNKNOWN" + IdentityProviderLifecycleStateCreating IdentityProviderLifecycleStateEnum = "CREATING" + IdentityProviderLifecycleStateActive IdentityProviderLifecycleStateEnum = "ACTIVE" + IdentityProviderLifecycleStateInactive IdentityProviderLifecycleStateEnum = "INACTIVE" + IdentityProviderLifecycleStateDeleting IdentityProviderLifecycleStateEnum = "DELETING" + IdentityProviderLifecycleStateDeleted IdentityProviderLifecycleStateEnum = "DELETED" ) -var mappingIdentityProviderLifecycleState = map[string]IdentityProviderLifecycleStateEnum { - "CREATING": IdentityProviderLifecycleStateCreating, - "ACTIVE": IdentityProviderLifecycleStateActive, - "INACTIVE": IdentityProviderLifecycleStateInactive, - "DELETING": IdentityProviderLifecycleStateDeleting, - "DELETED": IdentityProviderLifecycleStateDeleted, - "UNKNOWN": IdentityProviderLifecycleStateUnknown, +var mappingIdentityProviderLifecycleState = map[string]IdentityProviderLifecycleStateEnum{ + "CREATING": IdentityProviderLifecycleStateCreating, + "ACTIVE": IdentityProviderLifecycleStateActive, + "INACTIVE": IdentityProviderLifecycleStateInactive, + "DELETING": IdentityProviderLifecycleStateDeleting, + "DELETED": IdentityProviderLifecycleStateDeleted, } // GetIdentityProviderLifecycleStateEnumValues Enumerates the set of values for IdentityProviderLifecycleState func GetIdentityProviderLifecycleStateEnumValues() []IdentityProviderLifecycleStateEnum { - values := make([]IdentityProviderLifecycleStateEnum, 0) - for _, v := range mappingIdentityProviderLifecycleState { - if v != IdentityProviderLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]IdentityProviderLifecycleStateEnum, 0) + for _, v := range mappingIdentityProviderLifecycleState { + values = append(values, v) + } + return values } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/idp_group_mapping.go b/vendor/github.com/oracle/oci-go-sdk/identity/idp_group_mapping.go index 61ae080f8..cf9c0100b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/idp_group_mapping.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/idp_group_mapping.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,86 +9,76 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // IdpGroupMapping A mapping between a single group defined by the identity provider (IdP) you're federating with - // and a single IAM Service Group in Oracle Cloud Infrastructure. - // For more information about group mappings and what they're for, see - // [Identity Providers and Federation]({{DOC_SERVER_URL}}/Content/Identity/Concepts/federation.htm). - // A given IdP group can be mapped to zero, one, or multiple IAM Service groups, and vice versa. - // But each `IdPGroupMapping` object is between only a single IdP group and IAM Service group. - // Each `IdPGroupMapping` object has its own OCID. - // **Note:** Any users who are in more than 50 IdP groups cannot be authenticated to use the Oracle - // Cloud Infrastructure Console. +// IdpGroupMapping A mapping between a single group defined by the identity provider (IdP) you're federating with +// and a single IAM Service Group in Oracle Cloud Infrastructure. +// For more information about group mappings and what they're for, see +// Identity Providers and Federation (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/federation.htm). +// A given IdP group can be mapped to zero, one, or multiple IAM Service groups, and vice versa. +// But each `IdPGroupMapping` object is between only a single IdP group and IAM Service group. +// Each `IdPGroupMapping` object has its own OCID. +// **Note:** Any users who are in more than 50 IdP groups cannot be authenticated to use the Oracle +// Cloud Infrastructure Console. type IdpGroupMapping struct { - - // The OCID of the `IdpGroupMapping`. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the `IdentityProvider` this mapping belongs to. - IdpId *string `mandatory:"true" json:"idpId"` - - // The name of the IdP group that is mapped to the IAM Service group. - IdpGroupName *string `mandatory:"true" json:"idpGroupName"` - - // The OCID of the IAM Service group that is mapped to the IdP group. - GroupId *string `mandatory:"true" json:"groupId"` - - // The OCID of the tenancy containing the `IdentityProvider`. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Date and time the mapping was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The mapping's current state. After creating a mapping object, make sure its `lifecycleState` changes - // from CREATING to ACTIVE before using it. - LifecycleState IdpGroupMappingLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // The OCID of the `IdpGroupMapping`. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the `IdentityProvider` this mapping belongs to. + IdpId *string `mandatory:"true" json:"idpId"` + + // The name of the IdP group that is mapped to the IAM Service group. + IdpGroupName *string `mandatory:"true" json:"idpGroupName"` + + // The OCID of the IAM Service group that is mapped to the IdP group. + GroupId *string `mandatory:"true" json:"groupId"` + + // The OCID of the tenancy containing the `IdentityProvider`. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Date and time the mapping was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The mapping's current state. After creating a mapping object, make sure its `lifecycleState` changes + // from CREATING to ACTIVE before using it. + LifecycleState IdpGroupMappingLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` } func (m IdpGroupMapping) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // IdpGroupMappingLifecycleStateEnum Enum with underlying type: string type IdpGroupMappingLifecycleStateEnum string // Set of constants representing the allowable values for IdpGroupMappingLifecycleState const ( - IdpGroupMappingLifecycleStateCreating IdpGroupMappingLifecycleStateEnum = "CREATING" - IdpGroupMappingLifecycleStateActive IdpGroupMappingLifecycleStateEnum = "ACTIVE" - IdpGroupMappingLifecycleStateInactive IdpGroupMappingLifecycleStateEnum = "INACTIVE" - IdpGroupMappingLifecycleStateDeleting IdpGroupMappingLifecycleStateEnum = "DELETING" - IdpGroupMappingLifecycleStateDeleted IdpGroupMappingLifecycleStateEnum = "DELETED" - IdpGroupMappingLifecycleStateUnknown IdpGroupMappingLifecycleStateEnum = "UNKNOWN" + IdpGroupMappingLifecycleStateCreating IdpGroupMappingLifecycleStateEnum = "CREATING" + IdpGroupMappingLifecycleStateActive IdpGroupMappingLifecycleStateEnum = "ACTIVE" + IdpGroupMappingLifecycleStateInactive IdpGroupMappingLifecycleStateEnum = "INACTIVE" + IdpGroupMappingLifecycleStateDeleting IdpGroupMappingLifecycleStateEnum = "DELETING" + IdpGroupMappingLifecycleStateDeleted IdpGroupMappingLifecycleStateEnum = "DELETED" ) -var mappingIdpGroupMappingLifecycleState = map[string]IdpGroupMappingLifecycleStateEnum { - "CREATING": IdpGroupMappingLifecycleStateCreating, - "ACTIVE": IdpGroupMappingLifecycleStateActive, - "INACTIVE": IdpGroupMappingLifecycleStateInactive, - "DELETING": IdpGroupMappingLifecycleStateDeleting, - "DELETED": IdpGroupMappingLifecycleStateDeleted, - "UNKNOWN": IdpGroupMappingLifecycleStateUnknown, +var mappingIdpGroupMappingLifecycleState = map[string]IdpGroupMappingLifecycleStateEnum{ + "CREATING": IdpGroupMappingLifecycleStateCreating, + "ACTIVE": IdpGroupMappingLifecycleStateActive, + "INACTIVE": IdpGroupMappingLifecycleStateInactive, + "DELETING": IdpGroupMappingLifecycleStateDeleting, + "DELETED": IdpGroupMappingLifecycleStateDeleted, } // GetIdpGroupMappingLifecycleStateEnumValues Enumerates the set of values for IdpGroupMappingLifecycleState func GetIdpGroupMappingLifecycleStateEnumValues() []IdpGroupMappingLifecycleStateEnum { - values := make([]IdpGroupMappingLifecycleStateEnum, 0) - for _, v := range mappingIdpGroupMappingLifecycleState { - if v != IdpGroupMappingLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]IdpGroupMappingLifecycleStateEnum, 0) + for _, v := range mappingIdpGroupMappingLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_api_keys_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_api_keys_request_response.go index f2ad846c3..62ce550f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_api_keys_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_api_keys_request_response.go @@ -1,47 +1,43 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListApiKeysRequest wrapper for the ListApiKeys operation type ListApiKeysRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` } func (request ListApiKeysRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListApiKeysResponse wrapper for the ListApiKeys operation type ListApiKeysResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []ApiKey instance - Items []ApiKey `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The []ApiKey instance + Items []ApiKey `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListApiKeysResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_availability_domains_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_availability_domains_request_response.go index 23f782e27..407c2a36a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_availability_domains_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_availability_domains_request_response.go @@ -1,47 +1,43 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListAvailabilityDomainsRequest wrapper for the ListAvailabilityDomains operation type ListAvailabilityDomainsRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` } func (request ListAvailabilityDomainsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListAvailabilityDomainsResponse wrapper for the ListAvailabilityDomains operation type ListAvailabilityDomainsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []AvailabilityDomain instance - Items []AvailabilityDomain `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The []AvailabilityDomain instance + Items []AvailabilityDomain `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListAvailabilityDomainsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_compartments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_compartments_request_response.go index 50b6e47a9..6d4338d3d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_compartments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_compartments_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListCompartmentsRequest wrapper for the ListCompartments operation type ListCompartmentsRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` } func (request ListCompartmentsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListCompartmentsResponse wrapper for the ListCompartments operation type ListCompartmentsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Compartment instance - Items []Compartment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The []Compartment instance + Items []Compartment `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListCompartmentsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_customer_secret_keys_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_customer_secret_keys_request_response.go index f796e6cbc..a1de6bb33 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_customer_secret_keys_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_customer_secret_keys_request_response.go @@ -1,47 +1,43 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListCustomerSecretKeysRequest wrapper for the ListCustomerSecretKeys operation type ListCustomerSecretKeysRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` } func (request ListCustomerSecretKeysRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListCustomerSecretKeysResponse wrapper for the ListCustomerSecretKeys operation type ListCustomerSecretKeysResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []CustomerSecretKeySummary instance - Items []CustomerSecretKeySummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The []CustomerSecretKeySummary instance + Items []CustomerSecretKeySummary `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListCustomerSecretKeysResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_fault_domains_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_fault_domains_request_response.go index 087e27f71..58e8cf4ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_fault_domains_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_fault_domains_request_response.go @@ -1,45 +1,41 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListFaultDomainsRequest wrapper for the ListFaultDomains operation type ListFaultDomainsRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availibilityDomain. - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availibilityDomain. + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` } func (request ListFaultDomainsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListFaultDomainsResponse wrapper for the ListFaultDomains operation type ListFaultDomainsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []FaultDomain instance - Items []FaultDomain `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The []FaultDomain instance + Items []FaultDomain `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListFaultDomainsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_groups_request_response.go index 5028ac467..b466a566f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_groups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_groups_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListGroupsRequest wrapper for the ListGroups operation type ListGroupsRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` } func (request ListGroupsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListGroupsResponse wrapper for the ListGroups operation type ListGroupsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Group instance - Items []Group `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The []Group instance + Items []Group `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListGroupsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_identity_providers_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_identity_providers_request_response.go index 72c3240c6..abebf6877 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_identity_providers_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_identity_providers_request_response.go @@ -1,57 +1,54 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListIdentityProvidersRequest wrapper for the ListIdentityProviders operation type ListIdentityProvidersRequest struct { - - // The protocol used for federation. - Protocol ListIdentityProvidersProtocolEnum `mandatory:"true" contributesTo:"query" name:"protocol" omitEmpty:"true"` - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The protocol used for federation. + Protocol ListIdentityProvidersProtocolEnum `mandatory:"true" contributesTo:"query" name:"protocol" omitEmpty:"true"` + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` } func (request ListIdentityProvidersRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListIdentityProvidersResponse wrapper for the ListIdentityProviders operation type ListIdentityProvidersResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []IdentityProvider instance - Items []IdentityProvider `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The []IdentityProvider instance + Items []IdentityProvider `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListIdentityProvidersResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListIdentityProvidersProtocolEnum Enum with underlying type: string @@ -59,23 +56,18 @@ type ListIdentityProvidersProtocolEnum string // Set of constants representing the allowable values for ListIdentityProvidersProtocol const ( - ListIdentityProvidersProtocolSaml2 ListIdentityProvidersProtocolEnum = "SAML2" - ListIdentityProvidersProtocolUnknown ListIdentityProvidersProtocolEnum = "UNKNOWN" + ListIdentityProvidersProtocolSaml2 ListIdentityProvidersProtocolEnum = "SAML2" ) -var mappingListIdentityProvidersProtocol = map[string]ListIdentityProvidersProtocolEnum { - "SAML2": ListIdentityProvidersProtocolSaml2, - "UNKNOWN": ListIdentityProvidersProtocolUnknown, +var mappingListIdentityProvidersProtocol = map[string]ListIdentityProvidersProtocolEnum{ + "SAML2": ListIdentityProvidersProtocolSaml2, } // GetListIdentityProvidersProtocolEnumValues Enumerates the set of values for ListIdentityProvidersProtocol func GetListIdentityProvidersProtocolEnumValues() []ListIdentityProvidersProtocolEnum { - values := make([]ListIdentityProvidersProtocolEnum, 0) - for _, v := range mappingListIdentityProvidersProtocol { - if v != ListIdentityProvidersProtocolUnknown { - values = append(values, v) - } - } - return values + values := make([]ListIdentityProvidersProtocolEnum, 0) + for _, v := range mappingListIdentityProvidersProtocol { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_idp_group_mappings_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_idp_group_mappings_request_response.go index da2299b2a..09323f659 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_idp_group_mappings_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_idp_group_mappings_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListIdpGroupMappingsRequest wrapper for the ListIdpGroupMappings operation type ListIdpGroupMappingsRequest struct { - - // The OCID of the identity provider. - IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The OCID of the identity provider. + IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` } func (request ListIdpGroupMappingsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListIdpGroupMappingsResponse wrapper for the ListIdpGroupMappings operation type ListIdpGroupMappingsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []IdpGroupMapping instance - Items []IdpGroupMapping `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The []IdpGroupMapping instance + Items []IdpGroupMapping `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListIdpGroupMappingsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_policies_request_response.go index fae2a952b..6b6461d28 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_policies_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_policies_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListPoliciesRequest wrapper for the ListPolicies operation type ListPoliciesRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` } func (request ListPoliciesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListPoliciesResponse wrapper for the ListPolicies operation type ListPoliciesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Policy instance - Items []Policy `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The []Policy instance + Items []Policy `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListPoliciesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_region_subscriptions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_region_subscriptions_request_response.go index f82ae06b6..a10917633 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_region_subscriptions_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_region_subscriptions_request_response.go @@ -1,42 +1,38 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListRegionSubscriptionsRequest wrapper for the ListRegionSubscriptions operation type ListRegionSubscriptionsRequest struct { - - // The OCID of the tenancy. - TenancyId *string `mandatory:"true" contributesTo:"path" name:"tenancyId"` + + // The OCID of the tenancy. + TenancyId *string `mandatory:"true" contributesTo:"path" name:"tenancyId"` } func (request ListRegionSubscriptionsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListRegionSubscriptionsResponse wrapper for the ListRegionSubscriptions operation type ListRegionSubscriptionsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []RegionSubscription instance - Items []RegionSubscription `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The []RegionSubscription instance + Items []RegionSubscription `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListRegionSubscriptionsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_regions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_regions_request_response.go index dfffbd82f..528b6b863 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_regions_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_regions_request_response.go @@ -1,11 +1,11 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListRegionsRequest wrapper for the ListRegions operation @@ -13,27 +13,23 @@ type ListRegionsRequest struct { } func (request ListRegionsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListRegionsResponse wrapper for the ListRegions operation type ListRegionsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Region instance - Items []Region `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The []Region instance + Items []Region `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListRegionsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_swift_passwords_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_swift_passwords_request_response.go index cd4809817..86d737c0f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_swift_passwords_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_swift_passwords_request_response.go @@ -1,47 +1,43 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListSwiftPasswordsRequest wrapper for the ListSwiftPasswords operation type ListSwiftPasswordsRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` } func (request ListSwiftPasswordsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListSwiftPasswordsResponse wrapper for the ListSwiftPasswords operation type ListSwiftPasswordsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []SwiftPassword instance - Items []SwiftPassword `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The []SwiftPassword instance + Items []SwiftPassword `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListSwiftPasswordsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_user_group_memberships_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_user_group_memberships_request_response.go index ee8961a33..3f6d406b8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_user_group_memberships_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_user_group_memberships_request_response.go @@ -1,59 +1,55 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListUserGroupMembershipsRequest wrapper for the ListUserGroupMemberships operation type ListUserGroupMembershipsRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the user. - UserId *string `mandatory:"false" contributesTo:"query" name:"userId"` - - // The OCID of the group. - GroupId *string `mandatory:"false" contributesTo:"query" name:"groupId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the user. + UserId *string `mandatory:"false" contributesTo:"query" name:"userId"` + + // The OCID of the group. + GroupId *string `mandatory:"false" contributesTo:"query" name:"groupId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` } func (request ListUserGroupMembershipsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListUserGroupMembershipsResponse wrapper for the ListUserGroupMemberships operation type ListUserGroupMembershipsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []UserGroupMembership instance - Items []UserGroupMembership `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The []UserGroupMembership instance + Items []UserGroupMembership `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListUserGroupMembershipsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_users_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_users_request_response.go index 92584989b..905d7e8c5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_users_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_users_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListUsersRequest wrapper for the ListUsers operation type ListUsersRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` } func (request ListUsersRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListUsersResponse wrapper for the ListUsers operation type ListUsersResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []User instance - Items []User `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The []User instance + Items []User `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListUsersResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/policy.go b/vendor/github.com/oracle/oci-go-sdk/identity/policy.go index b569e5099..39eacc77a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/policy.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,93 +9,83 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Policy A document that specifies the type of access a group has to the resources in a compartment. For information about - // policies and other IAM Service components, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). If you're new to policies, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). - // The word "policy" is used by people in different ways: - // * An individual statement written in the policy language - // * A collection of statements in a single, named "policy" document (which has an Oracle Cloud ID (OCID) assigned to it) - // * The overall body of policies your organization uses to control access to resources - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. +// Policy A document that specifies the type of access a group has to the resources in a compartment. For information about +// policies and other IAM Service components, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). If you're new to policies, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// The word "policy" is used by people in different ways: +// * An individual statement written in the policy language +// * A collection of statements in a single, named "policy" document (which has an Oracle Cloud ID (OCID) assigned to it) +// * The overall body of policies your organization uses to control access to resources +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. type Policy struct { - - // The OCID of the policy. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the compartment containing the policy (either the tenancy or another compartment). - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the policy during creation. The name must be unique across all policies - // in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // An array of one or more policy statements written in the policy language. - Statements []string `mandatory:"true" json:"statements"` - - // The description you assign to the policy. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // Date and time the policy was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The policy's current state. After creating a policy, make sure its `lifecycleState` changes from CREATING to - // ACTIVE before using it. - LifecycleState PolicyLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` - - // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the - // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular - // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. - VersionDate *common.SDKTime `mandatory:"false" json:"versionDate"` + + // The OCID of the policy. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the policy (either the tenancy or another compartment). + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the policy during creation. The name must be unique across all policies + // in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // An array of one or more policy statements written in the policy language. + Statements []string `mandatory:"true" json:"statements"` + + // The description you assign to the policy. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` + + // Date and time the policy was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The policy's current state. After creating a policy, make sure its `lifecycleState` changes from CREATING to + // ACTIVE before using it. + LifecycleState PolicyLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the + // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular + // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. + VersionDate *common.SDKTime `mandatory:"false" json:"versionDate"` } func (m Policy) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // PolicyLifecycleStateEnum Enum with underlying type: string type PolicyLifecycleStateEnum string // Set of constants representing the allowable values for PolicyLifecycleState const ( - PolicyLifecycleStateCreating PolicyLifecycleStateEnum = "CREATING" - PolicyLifecycleStateActive PolicyLifecycleStateEnum = "ACTIVE" - PolicyLifecycleStateInactive PolicyLifecycleStateEnum = "INACTIVE" - PolicyLifecycleStateDeleting PolicyLifecycleStateEnum = "DELETING" - PolicyLifecycleStateDeleted PolicyLifecycleStateEnum = "DELETED" - PolicyLifecycleStateUnknown PolicyLifecycleStateEnum = "UNKNOWN" + PolicyLifecycleStateCreating PolicyLifecycleStateEnum = "CREATING" + PolicyLifecycleStateActive PolicyLifecycleStateEnum = "ACTIVE" + PolicyLifecycleStateInactive PolicyLifecycleStateEnum = "INACTIVE" + PolicyLifecycleStateDeleting PolicyLifecycleStateEnum = "DELETING" + PolicyLifecycleStateDeleted PolicyLifecycleStateEnum = "DELETED" ) -var mappingPolicyLifecycleState = map[string]PolicyLifecycleStateEnum { - "CREATING": PolicyLifecycleStateCreating, - "ACTIVE": PolicyLifecycleStateActive, - "INACTIVE": PolicyLifecycleStateInactive, - "DELETING": PolicyLifecycleStateDeleting, - "DELETED": PolicyLifecycleStateDeleted, - "UNKNOWN": PolicyLifecycleStateUnknown, +var mappingPolicyLifecycleState = map[string]PolicyLifecycleStateEnum{ + "CREATING": PolicyLifecycleStateCreating, + "ACTIVE": PolicyLifecycleStateActive, + "INACTIVE": PolicyLifecycleStateInactive, + "DELETING": PolicyLifecycleStateDeleting, + "DELETED": PolicyLifecycleStateDeleted, } // GetPolicyLifecycleStateEnumValues Enumerates the set of values for PolicyLifecycleState func GetPolicyLifecycleStateEnumValues() []PolicyLifecycleStateEnum { - values := make([]PolicyLifecycleStateEnum, 0) - for _, v := range mappingPolicyLifecycleState { - if v != PolicyLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]PolicyLifecycleStateEnum, 0) + for _, v := range mappingPolicyLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/region.go b/vendor/github.com/oracle/oci-go-sdk/identity/region.go index 82cd9838b..ba73a4453 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/region.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/region.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,39 +9,32 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Region A localized geographic area, such as Phoenix, AZ. Oracle Cloud Infrastructure is hosted in regions and Availability - // Domains. A region is composed of several Availability Domains. An Availability Domain is one or more data centers - // located within a region. For more information, see [Regions and Availability Domains]({{DOC_SERVER_URL}}/Content/General/Concepts/regions.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Region A localized geographic area, such as Phoenix, AZ. Oracle Cloud Infrastructure is hosted in regions and Availability +// Domains. A region is composed of several Availability Domains. An Availability Domain is one or more data centers +// located within a region. For more information, see Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Region struct { - - // The key of the region. - // Allowed values are: - // - `PHX` - // - `IAD` - // - `FRA` - Key *string `mandatory:"false" json:"key"` - - // The name of the region. - // Allowed values are: - // - `us-phoenix-1` - // - `us-ashburn-1` - // - `eu-frankfurt-1` - Name *string `mandatory:"false" json:"name"` + + // The key of the region. + // Allowed values are: + // - `PHX` + // - `IAD` + // - `FRA` + Key *string `mandatory:"false" json:"key"` + + // The name of the region. + // Allowed values are: + // - `us-phoenix-1` + // - `us-ashburn-1` + // - `eu-frankfurt-1` + Name *string `mandatory:"false" json:"name"` } func (m Region) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/region_subscription.go b/vendor/github.com/oracle/oci-go-sdk/identity/region_subscription.go index 192f00f2c..dfa9f26b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/region_subscription.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/region_subscription.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,70 +9,60 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // RegionSubscription An object that represents your tenancy's access to a particular region (i.e., a subscription), the status of that - // access, and whether that region is the home region. For more information, see [Managing Regions]({{DOC_SERVER_URL}}/Content/Identity/Tasks/managingregions.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// RegionSubscription An object that represents your tenancy's access to a particular region (i.e., a subscription), the status of that +// access, and whether that region is the home region. For more information, see Managing Regions (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingregions.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type RegionSubscription struct { - - // The region's key. - // Allowed values are: - // - `PHX` - // - `IAD` - // - `FRA` - RegionKey *string `mandatory:"true" json:"regionKey"` - - // The region's name. - // Allowed values are: - // - `us-phoenix-1` - // - `us-ashburn-1` - // - `eu-frankurt-1` - RegionName *string `mandatory:"true" json:"regionName"` - - // The region subscription status. - Status RegionSubscriptionStatusEnum `mandatory:"true" json:"status"` - - // Indicates if the region is the home region or not. - IsHomeRegion *bool `mandatory:"true" json:"isHomeRegion"` + + // The region's key. + // Allowed values are: + // - `PHX` + // - `IAD` + // - `FRA` + RegionKey *string `mandatory:"true" json:"regionKey"` + + // The region's name. + // Allowed values are: + // - `us-phoenix-1` + // - `us-ashburn-1` + // - `eu-frankurt-1` + RegionName *string `mandatory:"true" json:"regionName"` + + // The region subscription status. + Status RegionSubscriptionStatusEnum `mandatory:"true" json:"status"` + + // Indicates if the region is the home region or not. + IsHomeRegion *bool `mandatory:"true" json:"isHomeRegion"` } func (m RegionSubscription) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // RegionSubscriptionStatusEnum Enum with underlying type: string type RegionSubscriptionStatusEnum string // Set of constants representing the allowable values for RegionSubscriptionStatus const ( - RegionSubscriptionStatusReady RegionSubscriptionStatusEnum = "READY" - RegionSubscriptionStatusInProgress RegionSubscriptionStatusEnum = "IN_PROGRESS" - RegionSubscriptionStatusUnknown RegionSubscriptionStatusEnum = "UNKNOWN" + RegionSubscriptionStatusReady RegionSubscriptionStatusEnum = "READY" + RegionSubscriptionStatusInProgress RegionSubscriptionStatusEnum = "IN_PROGRESS" ) -var mappingRegionSubscriptionStatus = map[string]RegionSubscriptionStatusEnum { - "READY": RegionSubscriptionStatusReady, - "IN_PROGRESS": RegionSubscriptionStatusInProgress, - "UNKNOWN": RegionSubscriptionStatusUnknown, +var mappingRegionSubscriptionStatus = map[string]RegionSubscriptionStatusEnum{ + "READY": RegionSubscriptionStatusReady, + "IN_PROGRESS": RegionSubscriptionStatusInProgress, } // GetRegionSubscriptionStatusEnumValues Enumerates the set of values for RegionSubscriptionStatus func GetRegionSubscriptionStatusEnumValues() []RegionSubscriptionStatusEnum { - values := make([]RegionSubscriptionStatusEnum, 0) - for _, v := range mappingRegionSubscriptionStatus { - if v != RegionSubscriptionStatusUnknown { - values = append(values, v) - } - } - return values + values := make([]RegionSubscriptionStatusEnum, 0) + for _, v := range mappingRegionSubscriptionStatus { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/remove_user_from_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/remove_user_from_group_request_response.go index e908d98a1..afed269d0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/remove_user_from_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/remove_user_from_group_request_response.go @@ -1,44 +1,40 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // RemoveUserFromGroupRequest wrapper for the RemoveUserFromGroup operation type RemoveUserFromGroupRequest struct { - - // The OCID of the userGroupMembership. - UserGroupMembershipId *string `mandatory:"true" contributesTo:"path" name:"userGroupMembershipId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the userGroupMembership. + UserGroupMembershipId *string `mandatory:"true" contributesTo:"path" name:"userGroupMembershipId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request RemoveUserFromGroupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // RemoveUserFromGroupResponse wrapper for the RemoveUserFromGroup operation type RemoveUserFromGroupResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response RemoveUserFromGroupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/saml2_identity_provider.go b/vendor/github.com/oracle/oci-go-sdk/identity/saml2_identity_provider.go index 5c4337bee..0ef2511b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/saml2_identity_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/saml2_identity_provider.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,116 +9,119 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // Saml2IdentityProvider A special type of IdentityProvider that - // supports the SAML 2.0 protocol. For more information, see - // [Identity Providers and Federation]({{DOC_SERVER_URL}}/Content/Identity/Concepts/federation.htm). +// Saml2IdentityProvider A special type of IdentityProvider that +// supports the SAML 2.0 protocol. For more information, see +// Identity Providers and Federation (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/federation.htm). type Saml2IdentityProvider struct { - - // The OCID of the `IdentityProvider`. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the tenancy containing the `IdentityProvider`. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the `IdentityProvider` during creation. The name - // must be unique across all `IdentityProvider` objects in the tenancy and - // cannot be changed. This is the name federated users see when choosing - // which identity provider to use when signing in to the Oracle Cloud Infrastructure - // Console. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the `IdentityProvider` during creation. Does - // not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // The identity provider service or product. - // Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft - // Active Directory Federation Services (ADFS). - // Allowed values are: - // - `ADFS` - // - `IDCS` - // Example: `IDCS` - ProductType *string `mandatory:"true" json:"productType"` - - // Date and time the `IdentityProvider` was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The URL for retrieving the identity provider's metadata, which - // contains information required for federating. - MetadataUrl *string `mandatory:"true" json:"metadataUrl"` - - // The identity provider's signing certificate used by the IAM Service - // to validate the SAML2 token. - SigningCertificate *string `mandatory:"true" json:"signingCertificate"` - - // The URL to redirect federated users to for authentication with the - // identity provider. - RedirectUrl *string `mandatory:"true" json:"redirectUrl"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` - - // The current state. After creating an `IdentityProvider`, make sure its - // `lifecycleState` changes from CREATING to ACTIVE before using it. - LifecycleState IdentityProviderLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID of the `IdentityProvider`. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the tenancy containing the `IdentityProvider`. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the `IdentityProvider` during creation. The name + // must be unique across all `IdentityProvider` objects in the tenancy and + // cannot be changed. This is the name federated users see when choosing + // which identity provider to use when signing in to the Oracle Cloud Infrastructure + // Console. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the `IdentityProvider` during creation. Does + // not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` + + // The identity provider service or product. + // Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft + // Active Directory Federation Services (ADFS). + // Allowed values are: + // - `ADFS` + // - `IDCS` + // Example: `IDCS` + ProductType *string `mandatory:"true" json:"productType"` + + // Date and time the `IdentityProvider` was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The URL for retrieving the identity provider's metadata, which + // contains information required for federating. + MetadataUrl *string `mandatory:"true" json:"metadataUrl"` + + // The identity provider's signing certificate used by the IAM Service + // to validate the SAML2 token. + SigningCertificate *string `mandatory:"true" json:"signingCertificate"` + + // The URL to redirect federated users to for authentication with the + // identity provider. + RedirectUrl *string `mandatory:"true" json:"redirectUrl"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // The current state. After creating an `IdentityProvider`, make sure its + // `lifecycleState` changes from CREATING to ACTIVE before using it. + LifecycleState IdentityProviderLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` } - //GetId returns Id - func (m Saml2IdentityProvider) GetId() *string { - return m.Id - } - //GetCompartmentId returns CompartmentId - func (m Saml2IdentityProvider) GetCompartmentId() *string { - return m.CompartmentId - } - //GetName returns Name - func (m Saml2IdentityProvider) GetName() *string { - return m.Name - } - //GetDescription returns Description - func (m Saml2IdentityProvider) GetDescription() *string { - return m.Description - } - //GetProductType returns ProductType - func (m Saml2IdentityProvider) GetProductType() *string { - return m.ProductType - } - //GetTimeCreated returns TimeCreated - func (m Saml2IdentityProvider) GetTimeCreated() *common.SDKTime { - return m.TimeCreated - } - //GetLifecycleState returns LifecycleState - func (m Saml2IdentityProvider) GetLifecycleState() IdentityProviderLifecycleStateEnum { - return m.LifecycleState - } - //GetInactiveStatus returns InactiveStatus - func (m Saml2IdentityProvider) GetInactiveStatus() *int { - return m.InactiveStatus - } -func (m Saml2IdentityProvider) String() string { - return common.PointerString(m) +//GetId returns Id +func (m Saml2IdentityProvider) GetId() *string { + return m.Id } -// MarshalJSON marshals to json representation -func (m Saml2IdentityProvider) MarshalJSON() (buff []byte, e error) { - type MarshalTypeSaml2IdentityProvider Saml2IdentityProvider - s := struct { - DiscriminatorParam string `json:"protocol"` - MarshalTypeSaml2IdentityProvider - }{ - "SAML2", - (MarshalTypeSaml2IdentityProvider)(m), - } - - return json.Marshal(&s) +//GetCompartmentId returns CompartmentId +func (m Saml2IdentityProvider) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetName returns Name +func (m Saml2IdentityProvider) GetName() *string { + return m.Name +} + +//GetDescription returns Description +func (m Saml2IdentityProvider) GetDescription() *string { + return m.Description +} + +//GetProductType returns ProductType +func (m Saml2IdentityProvider) GetProductType() *string { + return m.ProductType } +//GetTimeCreated returns TimeCreated +func (m Saml2IdentityProvider) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} +//GetLifecycleState returns LifecycleState +func (m Saml2IdentityProvider) GetLifecycleState() IdentityProviderLifecycleStateEnum { + return m.LifecycleState +} +//GetInactiveStatus returns InactiveStatus +func (m Saml2IdentityProvider) GetInactiveStatus() *int { + return m.InactiveStatus +} +func (m Saml2IdentityProvider) String() string { + return common.PointerString(m) +} + +// MarshalJSON marshals to json representation +func (m Saml2IdentityProvider) MarshalJSON() (buff []byte, e error) { + type MarshalTypeSaml2IdentityProvider Saml2IdentityProvider + s := struct { + DiscriminatorParam string `json:"protocol"` + MarshalTypeSaml2IdentityProvider + }{ + "SAML2", + (MarshalTypeSaml2IdentityProvider)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/swift_password.go b/vendor/github.com/oracle/oci-go-sdk/identity/swift_password.go index 106c84c45..89a37c63c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/swift_password.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/swift_password.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,85 +9,75 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // SwiftPassword Swift is the OpenStack object storage service. A `SwiftPassword` is an Oracle-provided password for using a - // Swift client with the Oracle Cloud Infrastructure Object Storage Service. This password is associated with - // the user's Console login. Swift passwords never expire. A user can have up to two Swift passwords at a time. - // **Note:** The password is always an Oracle-generated string; you can't change it to a string of your choice. - // For more information, see [Managing User Credentials]({{DOC_SERVER_URL}}/Content/Identity/Tasks/managingcredentials.htm). +// SwiftPassword Swift is the OpenStack object storage service. A `SwiftPassword` is an Oracle-provided password for using a +// Swift client with the Oracle Cloud Infrastructure Object Storage Service. This password is associated with +// the user's Console login. Swift passwords never expire. A user can have up to two Swift passwords at a time. +// **Note:** The password is always an Oracle-generated string; you can't change it to a string of your choice. +// For more information, see Managing User Credentials (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingcredentials.htm). type SwiftPassword struct { - - // The Swift password. The value is available only in the response for `CreateSwiftPassword`, and not - // for `ListSwiftPasswords` or `UpdateSwiftPassword`. - Password *string `mandatory:"false" json:"password"` - - // The OCID of the Swift password. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the user the password belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // The description you assign to the Swift password. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // Date and time the `SwiftPassword` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time when this password will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - ExpiresOn *common.SDKTime `mandatory:"false" json:"expiresOn"` - - // The password's current state. After creating a password, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState SwiftPasswordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // The Swift password. The value is available only in the response for `CreateSwiftPassword`, and not + // for `ListSwiftPasswords` or `UpdateSwiftPassword`. + Password *string `mandatory:"false" json:"password"` + + // The OCID of the Swift password. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the password belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The description you assign to the Swift password. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + + // Date and time the `SwiftPassword` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time when this password will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + ExpiresOn *common.SDKTime `mandatory:"false" json:"expiresOn"` + + // The password's current state. After creating a password, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState SwiftPasswordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` } func (m SwiftPassword) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // SwiftPasswordLifecycleStateEnum Enum with underlying type: string type SwiftPasswordLifecycleStateEnum string // Set of constants representing the allowable values for SwiftPasswordLifecycleState const ( - SwiftPasswordLifecycleStateCreating SwiftPasswordLifecycleStateEnum = "CREATING" - SwiftPasswordLifecycleStateActive SwiftPasswordLifecycleStateEnum = "ACTIVE" - SwiftPasswordLifecycleStateInactive SwiftPasswordLifecycleStateEnum = "INACTIVE" - SwiftPasswordLifecycleStateDeleting SwiftPasswordLifecycleStateEnum = "DELETING" - SwiftPasswordLifecycleStateDeleted SwiftPasswordLifecycleStateEnum = "DELETED" - SwiftPasswordLifecycleStateUnknown SwiftPasswordLifecycleStateEnum = "UNKNOWN" + SwiftPasswordLifecycleStateCreating SwiftPasswordLifecycleStateEnum = "CREATING" + SwiftPasswordLifecycleStateActive SwiftPasswordLifecycleStateEnum = "ACTIVE" + SwiftPasswordLifecycleStateInactive SwiftPasswordLifecycleStateEnum = "INACTIVE" + SwiftPasswordLifecycleStateDeleting SwiftPasswordLifecycleStateEnum = "DELETING" + SwiftPasswordLifecycleStateDeleted SwiftPasswordLifecycleStateEnum = "DELETED" ) -var mappingSwiftPasswordLifecycleState = map[string]SwiftPasswordLifecycleStateEnum { - "CREATING": SwiftPasswordLifecycleStateCreating, - "ACTIVE": SwiftPasswordLifecycleStateActive, - "INACTIVE": SwiftPasswordLifecycleStateInactive, - "DELETING": SwiftPasswordLifecycleStateDeleting, - "DELETED": SwiftPasswordLifecycleStateDeleted, - "UNKNOWN": SwiftPasswordLifecycleStateUnknown, +var mappingSwiftPasswordLifecycleState = map[string]SwiftPasswordLifecycleStateEnum{ + "CREATING": SwiftPasswordLifecycleStateCreating, + "ACTIVE": SwiftPasswordLifecycleStateActive, + "INACTIVE": SwiftPasswordLifecycleStateInactive, + "DELETING": SwiftPasswordLifecycleStateDeleting, + "DELETED": SwiftPasswordLifecycleStateDeleted, } // GetSwiftPasswordLifecycleStateEnumValues Enumerates the set of values for SwiftPasswordLifecycleState func GetSwiftPasswordLifecycleStateEnumValues() []SwiftPasswordLifecycleStateEnum { - values := make([]SwiftPasswordLifecycleStateEnum, 0) - for _, v := range mappingSwiftPasswordLifecycleState { - if v != SwiftPasswordLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]SwiftPasswordLifecycleStateEnum, 0) + for _, v := range mappingSwiftPasswordLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/tenancy.go b/vendor/github.com/oracle/oci-go-sdk/identity/tenancy.go index a381ed24d..676b91b9a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/tenancy.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/tenancy.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,42 +9,35 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Tenancy The root compartment that contains all of your organization's compartments and other - // Oracle Cloud Infrastructure cloud resources. When you sign up for Oracle Cloud Infrastructure, - // Oracle creates a tenancy for your company, which is a secure and isolated partition - // where you can create, organize, and administer your cloud resources. - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Tenancy The root compartment that contains all of your organization's compartments and other +// Oracle Cloud Infrastructure cloud resources. When you sign up for Oracle Cloud Infrastructure, +// Oracle creates a tenancy for your company, which is a secure and isolated partition +// where you can create, organize, and administer your cloud resources. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Tenancy struct { - - // The OCID of the tenancy. - Id *string `mandatory:"false" json:"id"` - - // The name of the tenancy. - Name *string `mandatory:"false" json:"name"` - - // The description of the tenancy. - Description *string `mandatory:"false" json:"description"` - - // The region key for the tenancy's home region. - // Allowed values are: - // - `IAD` - // - `PHX` - // - `FRA` - HomeRegionKey *string `mandatory:"false" json:"homeRegionKey"` -} - -func (m Tenancy) String() string { - return common.PointerString(m) -} + // The OCID of the tenancy. + Id *string `mandatory:"false" json:"id"` + // The name of the tenancy. + Name *string `mandatory:"false" json:"name"` + // The description of the tenancy. + Description *string `mandatory:"false" json:"description"` + // The region key for the tenancy's home region. + // Allowed values are: + // - `IAD` + // - `PHX` + // - `FRA` + HomeRegionKey *string `mandatory:"false" json:"homeRegionKey"` +} +func (m Tenancy) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/ui_password.go b/vendor/github.com/oracle/oci-go-sdk/identity/ui_password.go index 94be6f789..d0ff89997 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/ui_password.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/ui_password.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,71 +9,61 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UiPassword A text password that enables a user to sign in to the Console, the user interface for interacting with Oracle - // Cloud Infrastructure. - // For more information about user credentials, see [User Credentials]({{DOC_SERVER_URL}}/Content/Identity/Concepts/usercredentials.htm). +// UiPassword A text password that enables a user to sign in to the Console, the user interface for interacting with Oracle +// Cloud Infrastructure. +// For more information about user credentials, see User Credentials (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/usercredentials.htm). type UiPassword struct { - - // The user's password for the Console. - Password *string `mandatory:"false" json:"password"` - - // The OCID of the user. - UserId *string `mandatory:"false" json:"userId"` - - // Date and time the password was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The password's current state. After creating a password, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState UiPasswordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // The user's password for the Console. + Password *string `mandatory:"false" json:"password"` + + // The OCID of the user. + UserId *string `mandatory:"false" json:"userId"` + + // Date and time the password was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The password's current state. After creating a password, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState UiPasswordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` } func (m UiPassword) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // UiPasswordLifecycleStateEnum Enum with underlying type: string type UiPasswordLifecycleStateEnum string // Set of constants representing the allowable values for UiPasswordLifecycleState const ( - UiPasswordLifecycleStateCreating UiPasswordLifecycleStateEnum = "CREATING" - UiPasswordLifecycleStateActive UiPasswordLifecycleStateEnum = "ACTIVE" - UiPasswordLifecycleStateInactive UiPasswordLifecycleStateEnum = "INACTIVE" - UiPasswordLifecycleStateDeleting UiPasswordLifecycleStateEnum = "DELETING" - UiPasswordLifecycleStateDeleted UiPasswordLifecycleStateEnum = "DELETED" - UiPasswordLifecycleStateUnknown UiPasswordLifecycleStateEnum = "UNKNOWN" + UiPasswordLifecycleStateCreating UiPasswordLifecycleStateEnum = "CREATING" + UiPasswordLifecycleStateActive UiPasswordLifecycleStateEnum = "ACTIVE" + UiPasswordLifecycleStateInactive UiPasswordLifecycleStateEnum = "INACTIVE" + UiPasswordLifecycleStateDeleting UiPasswordLifecycleStateEnum = "DELETING" + UiPasswordLifecycleStateDeleted UiPasswordLifecycleStateEnum = "DELETED" ) -var mappingUiPasswordLifecycleState = map[string]UiPasswordLifecycleStateEnum { - "CREATING": UiPasswordLifecycleStateCreating, - "ACTIVE": UiPasswordLifecycleStateActive, - "INACTIVE": UiPasswordLifecycleStateInactive, - "DELETING": UiPasswordLifecycleStateDeleting, - "DELETED": UiPasswordLifecycleStateDeleted, - "UNKNOWN": UiPasswordLifecycleStateUnknown, +var mappingUiPasswordLifecycleState = map[string]UiPasswordLifecycleStateEnum{ + "CREATING": UiPasswordLifecycleStateCreating, + "ACTIVE": UiPasswordLifecycleStateActive, + "INACTIVE": UiPasswordLifecycleStateInactive, + "DELETING": UiPasswordLifecycleStateDeleting, + "DELETED": UiPasswordLifecycleStateDeleted, } // GetUiPasswordLifecycleStateEnumValues Enumerates the set of values for UiPasswordLifecycleState func GetUiPasswordLifecycleStateEnumValues() []UiPasswordLifecycleStateEnum { - values := make([]UiPasswordLifecycleStateEnum, 0) - for _, v := range mappingUiPasswordLifecycleState { - if v != UiPasswordLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]UiPasswordLifecycleStateEnum, 0) + for _, v := range mappingUiPasswordLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_compartment_details.go index 6a57434e5..0e064808c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_compartment_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,26 +9,19 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateCompartmentDetails The representation of UpdateCompartmentDetails +// UpdateCompartmentDetails The representation of UpdateCompartmentDetails type UpdateCompartmentDetails struct { - - // The description you assign to the compartment. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // The new name you assign to the compartment. The name must be unique across all compartments in the tenancy. - Name *string `mandatory:"false" json:"name"` + + // The description you assign to the compartment. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + + // The new name you assign to the compartment. The name must be unique across all compartments in the tenancy. + Name *string `mandatory:"false" json:"name"` } func (m UpdateCompartmentDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_compartment_request_response.go index 17b3e2d04..217bc6877 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_compartment_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateCompartmentRequest wrapper for the UpdateCompartment operation type UpdateCompartmentRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"path" name:"compartmentId"` - - // Request object for updating a compartment. - UpdateCompartmentDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"path" name:"compartmentId"` + + // Request object for updating a compartment. + UpdateCompartmentDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateCompartmentRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateCompartmentResponse wrapper for the UpdateCompartment operation type UpdateCompartmentResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Compartment instance - Compartment `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The Compartment instance + Compartment `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response UpdateCompartmentResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_customer_secret_key_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_customer_secret_key_details.go index 1b56dde1f..397e18396 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_customer_secret_key_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_customer_secret_key_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,23 +9,16 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateCustomerSecretKeyDetails The representation of UpdateCustomerSecretKeyDetails +// UpdateCustomerSecretKeyDetails The representation of UpdateCustomerSecretKeyDetails type UpdateCustomerSecretKeyDetails struct { - - // The description you assign to the secret key. Does not have to be unique, and it's changeable. - DisplayName *string `mandatory:"false" json:"displayName"` + + // The description you assign to the secret key. Does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"false" json:"displayName"` } func (m UpdateCustomerSecretKeyDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_customer_secret_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_customer_secret_key_request_response.go index e7336d9db..e722571e7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_customer_secret_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_customer_secret_key_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateCustomerSecretKeyRequest wrapper for the UpdateCustomerSecretKey operation type UpdateCustomerSecretKeyRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // The OCID of the secret key. - CustomerSecretKeyId *string `mandatory:"true" contributesTo:"path" name:"customerSecretKeyId"` - - // Request object for updating a secret key. - UpdateCustomerSecretKeyDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The OCID of the secret key. + CustomerSecretKeyId *string `mandatory:"true" contributesTo:"path" name:"customerSecretKeyId"` + + // Request object for updating a secret key. + UpdateCustomerSecretKeyDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateCustomerSecretKeyRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateCustomerSecretKeyResponse wrapper for the UpdateCustomerSecretKey operation type UpdateCustomerSecretKeyResponse struct { - // The underlying http response - RawResponse *http.Response - - // The CustomerSecretKeySummary instance - CustomerSecretKeySummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The CustomerSecretKeySummary instance + CustomerSecretKeySummary `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response UpdateCustomerSecretKeyResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_group_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_group_details.go index 36388d00b..35a082a90 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_group_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,23 +9,16 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateGroupDetails The representation of UpdateGroupDetails +// UpdateGroupDetails The representation of UpdateGroupDetails type UpdateGroupDetails struct { - - // The description you assign to the group. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` + + // The description you assign to the group. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` } func (m UpdateGroupDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_group_request_response.go index a3c452f4a..75840e1c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_group_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateGroupRequest wrapper for the UpdateGroup operation type UpdateGroupRequest struct { - - // The OCID of the group. - GroupId *string `mandatory:"true" contributesTo:"path" name:"groupId"` - - // Request object for updating a group. - UpdateGroupDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the group. + GroupId *string `mandatory:"true" contributesTo:"path" name:"groupId"` + + // Request object for updating a group. + UpdateGroupDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateGroupRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateGroupResponse wrapper for the UpdateGroup operation type UpdateGroupResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Group instance - Group `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The Group instance + Group `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response UpdateGroupResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_details.go index 172504add..976c40edf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,66 +9,59 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // UpdateIdentityProviderDetails The representation of UpdateIdentityProviderDetails +// UpdateIdentityProviderDetails The representation of UpdateIdentityProviderDetails type UpdateIdentityProviderDetails interface { - - // The description you assign to the `IdentityProvider`. Does not have to - // be unique, and it's changeable. - GetDescription() *string + + // The description you assign to the `IdentityProvider`. Does not have to + // be unique, and it's changeable. + GetDescription() *string } type updateidentityproviderdetails struct { - JsonData []byte - Description *string `mandatory:"false" json:"description"` - Protocol string `json:"protocol"` + JsonData []byte + Description *string `mandatory:"false" json:"description"` + Protocol string `json:"protocol"` } - // UnmarshalJSON unmarshals json func (m *updateidentityproviderdetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerupdateidentityproviderdetails updateidentityproviderdetails - s := struct { - Model Unmarshalerupdateidentityproviderdetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Description = s.Model.Description - m.Protocol = s.Model.Protocol - - return err + m.JsonData = data + type Unmarshalerupdateidentityproviderdetails updateidentityproviderdetails + s := struct { + Model Unmarshalerupdateidentityproviderdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Description = s.Model.Description + m.Protocol = s.Model.Protocol + + return err } // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *updateidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - var err error - switch(m.Protocol) { - case "SAML2": - mm := UpdateSaml2IdentityProviderDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return m, nil - } + var err error + switch m.Protocol { + case "SAML2": + mm := UpdateSaml2IdentityProviderDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return m, nil + } } - //GetDescription returns Description - func (m updateidentityproviderdetails) GetDescription() *string { - return m.Description - } +//GetDescription returns Description +func (m updateidentityproviderdetails) GetDescription() *string { + return m.Description +} func (m updateidentityproviderdetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_request_response.go index ad48d6a6d..e092b59f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateIdentityProviderRequest wrapper for the UpdateIdentityProvider operation type UpdateIdentityProviderRequest struct { - - // The OCID of the identity provider. - IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` - - // Request object for updating a identity provider. - UpdateIdentityProviderDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the identity provider. + IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` + + // Request object for updating a identity provider. + UpdateIdentityProviderDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateIdentityProviderRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateIdentityProviderResponse wrapper for the UpdateIdentityProvider operation type UpdateIdentityProviderResponse struct { - // The underlying http response - RawResponse *http.Response - - // The IdentityProvider instance - IdentityProvider `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The IdentityProvider instance + IdentityProvider `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response UpdateIdentityProviderResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_idp_group_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_idp_group_mapping_details.go index d88b90dc4..bf7716f61 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_idp_group_mapping_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_idp_group_mapping_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,26 +9,19 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateIdpGroupMappingDetails The representation of UpdateIdpGroupMappingDetails +// UpdateIdpGroupMappingDetails The representation of UpdateIdpGroupMappingDetails type UpdateIdpGroupMappingDetails struct { - - // The idp group name. - IdpGroupName *string `mandatory:"false" json:"idpGroupName"` - - // The OCID of the group. - GroupId *string `mandatory:"false" json:"groupId"` + + // The idp group name. + IdpGroupName *string `mandatory:"false" json:"idpGroupName"` + + // The OCID of the group. + GroupId *string `mandatory:"false" json:"groupId"` } func (m UpdateIdpGroupMappingDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_idp_group_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_idp_group_mapping_request_response.go index d771f2579..be9dbd3df 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_idp_group_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_idp_group_mapping_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateIdpGroupMappingRequest wrapper for the UpdateIdpGroupMapping operation type UpdateIdpGroupMappingRequest struct { - - // The OCID of the identity provider. - IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` - - // The OCID of the group mapping. - MappingId *string `mandatory:"true" contributesTo:"path" name:"mappingId"` - - // Request object for updating an identity provider group mapping - UpdateIdpGroupMappingDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the identity provider. + IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` + + // The OCID of the group mapping. + MappingId *string `mandatory:"true" contributesTo:"path" name:"mappingId"` + + // Request object for updating an identity provider group mapping + UpdateIdpGroupMappingDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateIdpGroupMappingRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateIdpGroupMappingResponse wrapper for the UpdateIdpGroupMapping operation type UpdateIdpGroupMappingResponse struct { - // The underlying http response - RawResponse *http.Response - - // The IdpGroupMapping instance - IdpGroupMapping `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The IdpGroupMapping instance + IdpGroupMapping `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response UpdateIdpGroupMappingResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_details.go index c15ebe07c..3fd45b64e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,33 +9,26 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdatePolicyDetails The representation of UpdatePolicyDetails +// UpdatePolicyDetails The representation of UpdatePolicyDetails type UpdatePolicyDetails struct { - - // The description you assign to the policy. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // An array of policy statements written in the policy language. See - // [How Policies Work]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policies.htm) and - // [Common Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/commonpolicies.htm). - Statements []string `mandatory:"false" json:"statements"` - - // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the - // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular - // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. - VersionDate *common.SDKTime `mandatory:"false" json:"versionDate"` -} - -func (m UpdatePolicyDetails) String() string { - return common.PointerString(m) -} - + // The description you assign to the policy. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + // An array of policy statements written in the policy language. See + // How Policies Work (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policies.htm) and + // Common Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/commonpolicies.htm). + Statements []string `mandatory:"false" json:"statements"` + // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the + // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular + // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. + VersionDate *common.SDKTime `mandatory:"false" json:"versionDate"` +} +func (m UpdatePolicyDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_request_response.go index abfb3015f..198afbecd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdatePolicyRequest wrapper for the UpdatePolicy operation type UpdatePolicyRequest struct { - - // The OCID of the policy. - PolicyId *string `mandatory:"true" contributesTo:"path" name:"policyId"` - - // Request object for updating a policy. - UpdatePolicyDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the policy. + PolicyId *string `mandatory:"true" contributesTo:"path" name:"policyId"` + + // Request object for updating a policy. + UpdatePolicyDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdatePolicyRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdatePolicyResponse wrapper for the UpdatePolicy operation type UpdatePolicyResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Policy instance - Policy `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The Policy instance + Policy `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response UpdatePolicyResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_saml2_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_saml2_identity_provider_details.go index 2ba2f8517..f83217f2b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_saml2_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_saml2_identity_provider_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,48 +9,44 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" - "encoding/json" + "encoding/json" + "github.com/oracle/oci-go-sdk/common" ) - - // UpdateSaml2IdentityProviderDetails The representation of UpdateSaml2IdentityProviderDetails +// UpdateSaml2IdentityProviderDetails The representation of UpdateSaml2IdentityProviderDetails type UpdateSaml2IdentityProviderDetails struct { - - // The description you assign to the `IdentityProvider`. Does not have to - // be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // The URL for retrieving the identity provider's metadata, - // which contains information required for federating. - MetadataUrl *string `mandatory:"false" json:"metadataUrl"` - - // The XML that contains the information required for federating. - Metadata *string `mandatory:"false" json:"metadata"` + + // The description you assign to the `IdentityProvider`. Does not have to + // be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + + // The URL for retrieving the identity provider's metadata, + // which contains information required for federating. + MetadataUrl *string `mandatory:"false" json:"metadataUrl"` + + // The XML that contains the information required for federating. + Metadata *string `mandatory:"false" json:"metadata"` +} + +//GetDescription returns Description +func (m UpdateSaml2IdentityProviderDetails) GetDescription() *string { + return m.Description } - //GetDescription returns Description - func (m UpdateSaml2IdentityProviderDetails) GetDescription() *string { - return m.Description - } func (m UpdateSaml2IdentityProviderDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } // MarshalJSON marshals to json representation func (m UpdateSaml2IdentityProviderDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeUpdateSaml2IdentityProviderDetails UpdateSaml2IdentityProviderDetails - s := struct { - DiscriminatorParam string `json:"protocol"` - MarshalTypeUpdateSaml2IdentityProviderDetails - }{ - "SAML2", - (MarshalTypeUpdateSaml2IdentityProviderDetails)(m), - } - - return json.Marshal(&s) + type MarshalTypeUpdateSaml2IdentityProviderDetails UpdateSaml2IdentityProviderDetails + s := struct { + DiscriminatorParam string `json:"protocol"` + MarshalTypeUpdateSaml2IdentityProviderDetails + }{ + "SAML2", + (MarshalTypeUpdateSaml2IdentityProviderDetails)(m), + } + + return json.Marshal(&s) } - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_state_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_state_details.go index 70ae416c7..3c920d786 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_state_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_state_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,23 +9,16 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateStateDetails The representation of UpdateStateDetails +// UpdateStateDetails The representation of UpdateStateDetails type UpdateStateDetails struct { - - // Update state to blocked or unblocked. Only "false" is supported (for changing the state to unblocked). - Blocked *bool `mandatory:"false" json:"blocked"` + + // Update state to blocked or unblocked. Only "false" is supported (for changing the state to unblocked). + Blocked *bool `mandatory:"false" json:"blocked"` } func (m UpdateStateDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_swift_password_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_swift_password_details.go index c7dcf14ab..7f987bf70 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_swift_password_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_swift_password_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,23 +9,16 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateSwiftPasswordDetails The representation of UpdateSwiftPasswordDetails +// UpdateSwiftPasswordDetails The representation of UpdateSwiftPasswordDetails type UpdateSwiftPasswordDetails struct { - - // The description you assign to the Swift password. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` + + // The description you assign to the Swift password. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` } func (m UpdateSwiftPasswordDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_swift_password_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_swift_password_request_response.go index 90b150b46..0ec212ff8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_swift_password_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_swift_password_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateSwiftPasswordRequest wrapper for the UpdateSwiftPassword operation type UpdateSwiftPasswordRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // The OCID of the Swift password. - SwiftPasswordId *string `mandatory:"true" contributesTo:"path" name:"swiftPasswordId"` - - // Request object for updating a Swift password. - UpdateSwiftPasswordDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The OCID of the Swift password. + SwiftPasswordId *string `mandatory:"true" contributesTo:"path" name:"swiftPasswordId"` + + // Request object for updating a Swift password. + UpdateSwiftPasswordDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateSwiftPasswordRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateSwiftPasswordResponse wrapper for the UpdateSwiftPassword operation type UpdateSwiftPasswordResponse struct { - // The underlying http response - RawResponse *http.Response - - // The SwiftPassword instance - SwiftPassword `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The SwiftPassword instance + SwiftPassword `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response UpdateSwiftPasswordResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_user_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_user_details.go index 27dc615a8..07b2ce2a4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_user_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_user_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,23 +9,16 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateUserDetails The representation of UpdateUserDetails +// UpdateUserDetails The representation of UpdateUserDetails type UpdateUserDetails struct { - - // The description you assign to the user. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` + + // The description you assign to the user. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` } func (m UpdateUserDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_user_request_response.go index a587f94c7..41565565e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_user_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateUserRequest wrapper for the UpdateUser operation type UpdateUserRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // Request object for updating a user. - UpdateUserDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // Request object for updating a user. + UpdateUserDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateUserRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateUserResponse wrapper for the UpdateUser operation type UpdateUserResponse struct { - // The underlying http response - RawResponse *http.Response - - // The User instance - User `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The User instance + User `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response UpdateUserResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_user_state_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_user_state_request_response.go index 1c2929c9b..f1e2c7514 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_user_state_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_user_state_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateUserStateRequest wrapper for the UpdateUserState operation type UpdateUserStateRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // Request object for updating a user state. - UpdateStateDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // 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. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // Request object for updating a user state. + UpdateStateDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` } func (request UpdateUserStateRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateUserStateResponse wrapper for the UpdateUserState operation type UpdateUserStateResponse struct { - // The underlying http response - RawResponse *http.Response - - // The User instance - User `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The User instance + User `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response UpdateUserStateResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/upload_api_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/upload_api_key_request_response.go index 84b4f5392..4a971b526 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/upload_api_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/upload_api_key_request_response.go @@ -1,55 +1,51 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UploadApiKeyRequest wrapper for the UploadApiKey operation type UploadApiKeyRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // Request object for uploading an API key for a user. - CreateApiKeyDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // Request object for uploading an API key for a user. + CreateApiKeyDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request UploadApiKeyRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UploadApiKeyResponse wrapper for the UploadApiKey operation type UploadApiKeyResponse struct { - // The underlying http response - RawResponse *http.Response - - // The ApiKey instance - ApiKey `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` + // The ApiKey instance + ApiKey `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response UploadApiKeyResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/user.go b/vendor/github.com/oracle/oci-go-sdk/identity/user.go index 7a51b54d3..945e672e4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/user.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/user.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,93 +9,83 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // User An individual employee or system that needs to manage or use your company's Oracle Cloud Infrastructure - // resources. Users might need to launch instances, manage remote disks, work with your cloud network, etc. Users - // have one or more IAM Service credentials (ApiKey, - // UIPassword, and SwiftPassword). - // For more information, see [User Credentials]({{DOC_SERVER_URL}}/Content/API/Concepts/usercredentials.htm)). End users of your - // application are not typically IAM Service users. For conceptual information about users and other IAM Service - // components, see [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // These users are created directly within the Oracle Cloud Infrastructure system, via the IAM service. - // They are different from *federated users*, who authenticate themselves to the Oracle Cloud Infrastructure - // Console via an identity provider. For more information, see - // [Identity Providers and Federation]({{DOC_SERVER_URL}}/Content/Identity/Concepts/federation.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, - // see [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// User An individual employee or system that needs to manage or use your company's Oracle Cloud Infrastructure +// resources. Users might need to launch instances, manage remote disks, work with your cloud network, etc. Users +// have one or more IAM Service credentials (ApiKey, +// UIPassword, and SwiftPassword). +// For more information, see User Credentials (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usercredentials.htm)). End users of your +// application are not typically IAM Service users. For conceptual information about users and other IAM Service +// components, see Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// These users are created directly within the Oracle Cloud Infrastructure system, via the IAM service. +// They are different from *federated users*, who authenticate themselves to the Oracle Cloud Infrastructure +// Console via an identity provider. For more information, see +// Identity Providers and Federation (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/federation.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type User struct { - - // The OCID of the user. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the tenancy containing the user. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the user during creation. This is the user's login for the Console. - // The name must be unique across all users in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the user. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // Date and time the user was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The user's current state. After creating a user, make sure its `lifecycleState` changes from CREATING to - // ACTIVE before using it. - LifecycleState UserLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Returned only if the user's `lifecycleState` is INACTIVE. A 16-bit value showing the reason why the user - // is inactive: - // - bit 0: SUSPENDED (reserved for future use) - // - bit 1: DISABLED (reserved for future use) - // - bit 2: BLOCKED (the user has exceeded the maximum number of failed login attempts for the Console) - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // The OCID of the user. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the tenancy containing the user. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the user during creation. This is the user's login for the Console. + // The name must be unique across all users in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the user. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` + + // Date and time the user was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The user's current state. After creating a user, make sure its `lifecycleState` changes from CREATING to + // ACTIVE before using it. + LifecycleState UserLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Returned only if the user's `lifecycleState` is INACTIVE. A 16-bit value showing the reason why the user + // is inactive: + // - bit 0: SUSPENDED (reserved for future use) + // - bit 1: DISABLED (reserved for future use) + // - bit 2: BLOCKED (the user has exceeded the maximum number of failed login attempts for the Console) + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` } func (m User) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // UserLifecycleStateEnum Enum with underlying type: string type UserLifecycleStateEnum string // Set of constants representing the allowable values for UserLifecycleState const ( - UserLifecycleStateCreating UserLifecycleStateEnum = "CREATING" - UserLifecycleStateActive UserLifecycleStateEnum = "ACTIVE" - UserLifecycleStateInactive UserLifecycleStateEnum = "INACTIVE" - UserLifecycleStateDeleting UserLifecycleStateEnum = "DELETING" - UserLifecycleStateDeleted UserLifecycleStateEnum = "DELETED" - UserLifecycleStateUnknown UserLifecycleStateEnum = "UNKNOWN" + UserLifecycleStateCreating UserLifecycleStateEnum = "CREATING" + UserLifecycleStateActive UserLifecycleStateEnum = "ACTIVE" + UserLifecycleStateInactive UserLifecycleStateEnum = "INACTIVE" + UserLifecycleStateDeleting UserLifecycleStateEnum = "DELETING" + UserLifecycleStateDeleted UserLifecycleStateEnum = "DELETED" ) -var mappingUserLifecycleState = map[string]UserLifecycleStateEnum { - "CREATING": UserLifecycleStateCreating, - "ACTIVE": UserLifecycleStateActive, - "INACTIVE": UserLifecycleStateInactive, - "DELETING": UserLifecycleStateDeleting, - "DELETED": UserLifecycleStateDeleted, - "UNKNOWN": UserLifecycleStateUnknown, +var mappingUserLifecycleState = map[string]UserLifecycleStateEnum{ + "CREATING": UserLifecycleStateCreating, + "ACTIVE": UserLifecycleStateActive, + "INACTIVE": UserLifecycleStateInactive, + "DELETING": UserLifecycleStateDeleting, + "DELETED": UserLifecycleStateDeleted, } // GetUserLifecycleStateEnumValues Enumerates the set of values for UserLifecycleState func GetUserLifecycleStateEnumValues() []UserLifecycleStateEnum { - values := make([]UserLifecycleStateEnum, 0) - for _, v := range mappingUserLifecycleState { - if v != UserLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]UserLifecycleStateEnum, 0) + for _, v := range mappingUserLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/user_group_membership.go b/vendor/github.com/oracle/oci-go-sdk/identity/user_group_membership.go index a68a14589..f2b1a3aee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/user_group_membership.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/user_group_membership.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Identity and Access Management Service API @@ -9,76 +9,66 @@ package identity import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UserGroupMembership An object that represents the membership of a user in a group. When you add a user to a group, the result is a - // `UserGroupMembership` with its own OCID. To remove a user from a group, you delete the `UserGroupMembership` object. +// UserGroupMembership An object that represents the membership of a user in a group. When you add a user to a group, the result is a +// `UserGroupMembership` with its own OCID. To remove a user from a group, you delete the `UserGroupMembership` object. type UserGroupMembership struct { - - // The OCID of the membership. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the tenancy containing the user, group, and membership object. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the group. - GroupId *string `mandatory:"true" json:"groupId"` - - // The OCID of the user. - UserId *string `mandatory:"true" json:"userId"` - - // Date and time the membership was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The membership's current state. After creating a membership object, make sure its `lifecycleState` changes - // from CREATING to ACTIVE before using it. - LifecycleState UserGroupMembershipLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // The OCID of the membership. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the tenancy containing the user, group, and membership object. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the group. + GroupId *string `mandatory:"true" json:"groupId"` + + // The OCID of the user. + UserId *string `mandatory:"true" json:"userId"` + + // Date and time the membership was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The membership's current state. After creating a membership object, make sure its `lifecycleState` changes + // from CREATING to ACTIVE before using it. + LifecycleState UserGroupMembershipLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` } func (m UserGroupMembership) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // UserGroupMembershipLifecycleStateEnum Enum with underlying type: string type UserGroupMembershipLifecycleStateEnum string // Set of constants representing the allowable values for UserGroupMembershipLifecycleState const ( - UserGroupMembershipLifecycleStateCreating UserGroupMembershipLifecycleStateEnum = "CREATING" - UserGroupMembershipLifecycleStateActive UserGroupMembershipLifecycleStateEnum = "ACTIVE" - UserGroupMembershipLifecycleStateInactive UserGroupMembershipLifecycleStateEnum = "INACTIVE" - UserGroupMembershipLifecycleStateDeleting UserGroupMembershipLifecycleStateEnum = "DELETING" - UserGroupMembershipLifecycleStateDeleted UserGroupMembershipLifecycleStateEnum = "DELETED" - UserGroupMembershipLifecycleStateUnknown UserGroupMembershipLifecycleStateEnum = "UNKNOWN" + UserGroupMembershipLifecycleStateCreating UserGroupMembershipLifecycleStateEnum = "CREATING" + UserGroupMembershipLifecycleStateActive UserGroupMembershipLifecycleStateEnum = "ACTIVE" + UserGroupMembershipLifecycleStateInactive UserGroupMembershipLifecycleStateEnum = "INACTIVE" + UserGroupMembershipLifecycleStateDeleting UserGroupMembershipLifecycleStateEnum = "DELETING" + UserGroupMembershipLifecycleStateDeleted UserGroupMembershipLifecycleStateEnum = "DELETED" ) -var mappingUserGroupMembershipLifecycleState = map[string]UserGroupMembershipLifecycleStateEnum { - "CREATING": UserGroupMembershipLifecycleStateCreating, - "ACTIVE": UserGroupMembershipLifecycleStateActive, - "INACTIVE": UserGroupMembershipLifecycleStateInactive, - "DELETING": UserGroupMembershipLifecycleStateDeleting, - "DELETED": UserGroupMembershipLifecycleStateDeleted, - "UNKNOWN": UserGroupMembershipLifecycleStateUnknown, +var mappingUserGroupMembershipLifecycleState = map[string]UserGroupMembershipLifecycleStateEnum{ + "CREATING": UserGroupMembershipLifecycleStateCreating, + "ACTIVE": UserGroupMembershipLifecycleStateActive, + "INACTIVE": UserGroupMembershipLifecycleStateInactive, + "DELETING": UserGroupMembershipLifecycleStateDeleting, + "DELETED": UserGroupMembershipLifecycleStateDeleted, } // GetUserGroupMembershipLifecycleStateEnumValues Enumerates the set of values for UserGroupMembershipLifecycleState func GetUserGroupMembershipLifecycleStateEnumValues() []UserGroupMembershipLifecycleStateEnum { - values := make([]UserGroupMembershipLifecycleStateEnum, 0) - for _, v := range mappingUserGroupMembershipLifecycleState { - if v != UserGroupMembershipLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]UserGroupMembershipLifecycleStateEnum, 0) + for _, v := range mappingUserGroupMembershipLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/integtest/core_blockstorage_client_integ_test.go b/vendor/github.com/oracle/oci-go-sdk/integtest/core_blockstorage_client_integ_test.go deleted file mode 100644 index 114a22c48..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/integtest/core_blockstorage_client_integ_test.go +++ /dev/null @@ -1,225 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// APIs for Networking Service, Compute Service, and Block Volume Service. -// - -package integtest - -import ( - "context" - "fmt" - "testing" - "time" - - "github.com/oracle/oci-go-sdk/common" - "github.com/oracle/oci-go-sdk/core" - "github.com/stretchr/testify/assert" -) - -var ( - tick = time.Tick(500 * time.Millisecond) - timeout = time.After(30 * time.Second) -) - -//Volumes CRUDL -func TestBlockstorageClient_CreateVolume(t *testing.T) { - - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateVolumeRequest{} - - request.AvailabilityDomain = common.String(validAD()) - request.CompartmentId = common.String(getTenancyID()) - request.DisplayName = common.String("GoSDK2_TestBlockStorageCreateVolumeDisplayName") - - resCreate, err := c.CreateVolume(context.Background(), request) - assert.NoError(t, err) - assert.NotEmpty(t, resCreate.Id) - - //Read - readTest := func() (interface{}, error) { - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetVolumeRequest{} - request.VolumeId = resCreate.Id - resRead, err := c.GetVolume(context.Background(), request) - return resRead, err - } - assert.NoError(t, - retryUntilTrueOrError(readTest, - checkLifecycleState(string(core.VolumeLifecycleStateAvailable)), tick, timeout)) - - //update - updateTest := func(t *testing.T) { - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateVolumeRequest{} - request.VolumeId = resCreate.Id - request.DisplayName = common.String("GoSDK2_TestBlockStorageCreateVolumeDisplayNameUpdated") - r, err := c.UpdateVolume(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return - } - updateTest(t) - - //list - listTest := func(t *testing.T) { - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListVolumesRequest{} - request.CompartmentId = common.String(getTenancyID()) - r, err := c.ListVolumes(context.Background(), request) - assert.NoError(t, err) - assert.NotEmpty(t, r.Items) - return - } - listTest(t) - - //delete - deleteTest := func(t *testing.T) { - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteVolumeRequest{} - request.VolumeId = resCreate.Id - _, err := c.DeleteVolume(context.Background(), request) - assert.NoError(t, err) - return - } - deleteTest(t) - - return -} - -func TestBlockstorageClient_CreateVolumeBackup(t *testing.T) { - - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - var volumeId *string - //First create a volume - createVol := func(t *testing.T) { - rCreateVol := core.CreateVolumeRequest{} - rCreateVol.AvailabilityDomain = common.String(validAD()) - rCreateVol.CompartmentId = common.String(getTenancyID()) - rCreateVol.DisplayName = common.String("GoSDK2_TestBlockStorageCreateVolumeForBackup") - resCreate, err := c.CreateVolume(context.Background(), rCreateVol) - volumeId = resCreate.Id - failIfError(t, err) - } - - deleteVol := func() { - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteVolumeRequest{} - request.VolumeId = volumeId - c.DeleteVolume(context.Background(), request) - return - } - - readVol := func() (interface{}, error) { - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetVolumeRequest{} - request.VolumeId = volumeId - resRead, err := c.GetVolume(context.Background(), request) - return resRead, err - } - - createVol(t) - defer deleteVol() - failIfError(t, - retryUntilTrueOrError(readVol, - checkLifecycleState(string(core.VolumeLifecycleStateAvailable)), tick, time.After(120*time.Second))) - - //Create - request := core.CreateVolumeBackupRequest{} - request.VolumeId = volumeId - request.DisplayName = common.String("GoSDK2_TestBlockStorageCreateVolumeBackup") - r, err := c.CreateVolumeBackup(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - failIfError(t, err) - - //Read - readTest := func() (interface{}, error) { - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetVolumeBackupRequest{} - request.VolumeBackupId = r.Id - rRead, err := c.GetVolumeBackup(context.Background(), request) - return rRead, err - } - - failIfError(t, - retryUntilTrueOrError(readTest, - checkLifecycleState(string(core.VolumeBackupLifecycleStateAvailable)), tick, time.After(120*time.Second))) - - //List - listTest := func(t *testing.T) { - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListVolumeBackupsRequest{} - request.CompartmentId = common.String(getTenancyID()) - request.VolumeId = volumeId - r, err := c.ListVolumeBackups(context.Background(), request) - failIfError(t, err) - assert.True(t, len(r.Items) > 0) - return - } - listTest(t) - - //Update - updateTest := func(t *testing.T) { - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateVolumeBackupRequest{} - request.VolumeBackupId = r.Id - request.DisplayName = common.String("GoSDK2_TestBlockStorageVolumeBackupUpdate") - r, err := c.UpdateVolumeBackup(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - failIfError(t, err) - return - } - updateTest(t) - - //Delete - deleteTest := func(t *testing.T) { - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteVolumeBackupRequest{} - request.VolumeBackupId = r.Id - _, err := c.DeleteVolumeBackup(context.Background(), request) - failIfError(t, err) - return - } - - deleteTest(t) - return -} - -func TestBlockstorageClient_ListBootVolumes(t *testing.T) { - bootVolumes := listBootVolumes(t) - assert.NotEmpty(t, bootVolumes) - return -} - -func TestBlockstorageClient_GetBootVolume(t *testing.T) { - // get list of boot volumes and make sure it's not empty - bootVolumes := listBootVolumes(t) - assert.NotEmpty(t, bootVolumes) - - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetBootVolumeRequest{ - BootVolumeId: bootVolumes[0].Id, - } - - r, err := c.GetBootVolume(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r.Id) - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/integtest/core_compute_client_integ_test.go b/vendor/github.com/oracle/oci-go-sdk/integtest/core_compute_client_integ_test.go deleted file mode 100644 index 54981e670..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/integtest/core_compute_client_integ_test.go +++ /dev/null @@ -1,444 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// APIs for Networking Service, Compute Service, and Block Volume Service. -// - -package integtest - -import ( - "context" - "fmt" - "testing" - - "github.com/oracle/oci-go-sdk/common" - "github.com/oracle/oci-go-sdk/core" - "github.com/stretchr/testify/assert" -) - -func TestComputeClient_AttachVnic(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.AttachVnicRequest{} - r, err := c.AttachVnic(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_AttachVolume(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.AttachVolumeRequest{} - r, err := c.AttachVolume(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_CaptureConsoleHistory(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CaptureConsoleHistoryRequest{} - r, err := c.CaptureConsoleHistory(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_CreateImage(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateImageRequest{} - r, err := c.CreateImage(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_CreateInstanceConsoleConnection(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateInstanceConsoleConnectionRequest{} - r, err := c.CreateInstanceConsoleConnection(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_DeleteConsoleHistory(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteConsoleHistoryRequest{} - _, err := c.DeleteConsoleHistory(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestComputeClient_DeleteImage(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteImageRequest{} - _, err := c.DeleteImage(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestComputeClient_DeleteInstanceConsoleConnection(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteInstanceConsoleConnectionRequest{} - _, err := c.DeleteInstanceConsoleConnection(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestComputeClient_DetachVnic(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DetachVnicRequest{} - _, err := c.DetachVnic(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestComputeClient_DetachVolume(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DetachVolumeRequest{} - _, err := c.DetachVolume(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestComputeClient_ExportImage(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ExportImageRequest{} - r, err := c.ExportImage(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_GetConsoleHistory(t *testing.T) { - history := captureOrGetConsoleHistory(t) - assert.NotEmpty(t, history, fmt.Sprint(history)) - - r := getConsoleHistory(t, history.Id) - assert.NotEmpty(t, r, fmt.Sprint(r)) - return -} - -func TestComputeClient_GetConsoleHistoryContent(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetConsoleHistoryContentRequest{} - r, err := c.GetConsoleHistoryContent(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_GetImage(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetImageRequest{} - r, err := c.GetImage(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_GetInstance(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetInstanceRequest{} - r, err := c.GetInstance(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_GetInstanceConsoleConnection(t *testing.T) { - consoleConnection := createOrGetInstanceConsoleConnection(t) - assert.NotEmpty(t, consoleConnection) - assert.NotEmpty(t, consoleConnection.Id) - - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.GetInstanceConsoleConnectionRequest{} - request.InstanceConsoleConnectionId = consoleConnection.Id - - r, err := c.GetInstanceConsoleConnection(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_GetVnicAttachment(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetVnicAttachmentRequest{} - r, err := c.GetVnicAttachment(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_GetVolumeAttachment(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetVolumeAttachmentRequest{} - r, err := c.GetVolumeAttachment(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_GetWindowsInstanceInitialCredentials(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetWindowsInstanceInitialCredentialsRequest{} - r, err := c.GetWindowsInstanceInitialCredentials(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_InstanceAction(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.InstanceActionRequest{} - r, err := c.InstanceAction(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_LaunchInstance(t *testing.T) { - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.LaunchInstanceRequest{} - request.CompartmentId = common.String(getCompartmentID()) - request.DisplayName = common.String("GOSDK2_Test_Instance") - request.AvailabilityDomain = common.String(validAD()) - request.SubnetId = createOrGetSubnet(t).Id - - // search image by display name to make integration test running more relaible - // i.e. ServiceLimitExeceed error etc... - images := listImagesByDisplayName(t, common.String("Oracle-Linux-7.4-2018.01.20-0")) - assert.NotEmpty(t, images) - request.ImageId = images[0].Id - - shapes := listShapesForImage(t, request.ImageId) - assert.NotEmpty(t, shapes) - - // if more shapes return, use different one to avoid getting service limited error - if len(shapes) > 0 { - request.Shape = shapes[1].Shape - } else { - request.Shape = shapes[0].Shape - } - - r, err := c.LaunchInstance(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r, fmt.Sprint(r)) - - // if we've successfully created a instance during testing, make sure that we delete it - defer func(client core.ComputeClient, r core.Instance) { - // delete instance - request := core.TerminateInstanceRequest{ - InstanceId: r.Id, - } - - resp, err := client.TerminateInstance(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp.OpcRequestId) - }(c, r.Instance) - - return -} - -func TestComputeClient_ListConsoleHistories(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListConsoleHistoriesRequest{} - r, err := c.ListConsoleHistories(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_ListImages(t *testing.T) { - images := listImages(t) - assert.NotEmpty(t, images, fmt.Sprint(images)) - return -} - -func TestComputeClient_ListInstanceConsoleConnections(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListInstanceConsoleConnectionsRequest{} - r, err := c.ListInstanceConsoleConnections(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_ListInstances(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListInstancesRequest{} - r, err := c.ListInstances(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_ListShapes(t *testing.T) { - shapes := listShapes(t) - assert.NotEmpty(t, shapes, fmt.Sprint(shapes)) - return -} - -func TestComputeClient_ListVnicAttachments(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListVnicAttachmentsRequest{} - r, err := c.ListVnicAttachments(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_ListVolumeAttachments(t *testing.T) { - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - // make sure volume is created - volume := createOrGetVolume(t) - instance := createOrGetInstance(t) - - listAttachedVolumes := func() []core.VolumeAttachment { - request := core.ListVolumeAttachmentsRequest{ - CompartmentId: common.String(getCompartmentID()), - InstanceId: instance.Id, - } - r, err := c.ListVolumeAttachments(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return r.Items - } - - // get list of attached volumes for current instance - attachedVolumes := listAttachedVolumes() - - // if no volume attached, attach one - if attachedVolumes == nil || - len(attachedVolumes) == 0 { - // attach volume to instance - attachRequest := core.AttachVolumeRequest{} - attachRequest.AttachVolumeDetails = core.AttachIScsiVolumeDetails{ - InstanceId: instance.Id, - VolumeId: volume.Id, - } - - _, err := c.AttachVolume(context.Background(), attachRequest) - failIfError(t, err) - attachedVolumes = listAttachedVolumes() - } - - assert.NotEmpty(t, attachedVolumes, fmt.Sprint(attachedVolumes)) - return -} - -func TestComputeClient_ListBootVolumeAttachments(t *testing.T) { - bootVolumeAttachments := listBootVolumeAttachments(t) - assert.NotEmpty(t, bootVolumeAttachments) - return -} - -func TestBlockstorageClient_GetBootVolumeAttachment(t *testing.T) { - bootVolumeAttachments := listBootVolumeAttachments(t) - - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetBootVolumeAttachmentRequest{ - BootVolumeAttachmentId: bootVolumeAttachments[0].Id, - } - - r, err := c.GetBootVolumeAttachment(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r.Id) - return -} - -func TestComputeClient_TerminateInstance(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.TerminateInstanceRequest{} - _, err := c.TerminateInstance(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestComputeClient_UpdateConsoleHistory(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateConsoleHistoryRequest{} - r, err := c.UpdateConsoleHistory(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_UpdateImage(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateImageRequest{} - r, err := c.UpdateImage(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestComputeClient_UpdateInstance(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateInstanceRequest{} - r, err := c.UpdateInstance(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/integtest/core_virtualnetwork_client_integ_test.go b/vendor/github.com/oracle/oci-go-sdk/integtest/core_virtualnetwork_client_integ_test.go deleted file mode 100644 index 531172f28..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/integtest/core_virtualnetwork_client_integ_test.go +++ /dev/null @@ -1,905 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// APIs for Networking Service, Compute Service, and Block Volume Service. -// - -package integtest - -import ( - "context" - "fmt" - "testing" - - "github.com/oracle/oci-go-sdk/common" - "github.com/oracle/oci-go-sdk/core" - "github.com/stretchr/testify/assert" -) - -var ( - testRegionForVirtualNetwork = common.RegionPHX -) - -func TestVirtualNetworkClient_CreateCpe(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateCpeRequest{} - r, err := c.CreateCpe(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateCrossConnect(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateCrossConnectRequest{} - r, err := c.CreateCrossConnect(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateCrossConnectGroup(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateCrossConnectGroupRequest{} - r, err := c.CreateCrossConnectGroup(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateDhcpOptions(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateDhcpOptionsRequest{} - r, err := c.CreateDhcpOptions(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateDrg(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateDrgRequest{} - r, err := c.CreateDrg(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateDrgAttachment(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateDrgAttachmentRequest{} - r, err := c.CreateDrgAttachment(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateIPSecConnection(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateIPSecConnectionRequest{} - r, err := c.CreateIPSecConnection(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateInternetGateway(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateInternetGatewayRequest{} - r, err := c.CreateInternetGateway(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreatePrivateIp(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreatePrivateIpRequest{} - r, err := c.CreatePrivateIp(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateRouteTable(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateRouteTableRequest{} - r, err := c.CreateRouteTable(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateSecurityList(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateSecurityListRequest{} - r, err := c.CreateSecurityList(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateSubnet(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateSubnetRequest{} - r, err := c.CreateSubnet(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateVcn(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateVcnRequest{} - r, err := c.CreateVcn(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_CreateVirtualCircuit(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateVirtualCircuitRequest{} - r, err := c.CreateVirtualCircuit(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteCpe(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteCpeRequest{} - _, err := c.DeleteCpe(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteCrossConnect(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteCrossConnectRequest{} - _, err := c.DeleteCrossConnect(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteCrossConnectGroup(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteCrossConnectGroupRequest{} - _, err := c.DeleteCrossConnectGroup(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteDhcpOptions(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteDhcpOptionsRequest{} - _, err := c.DeleteDhcpOptions(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteDrg(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteDrgRequest{} - _, err := c.DeleteDrg(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteDrgAttachment(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteDrgAttachmentRequest{} - _, err := c.DeleteDrgAttachment(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteIPSecConnection(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteIPSecConnectionRequest{} - _, err := c.DeleteIPSecConnection(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteInternetGateway(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteInternetGatewayRequest{} - _, err := c.DeleteInternetGateway(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeletePrivateIp(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeletePrivateIpRequest{} - _, err := c.DeletePrivateIp(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteRouteTable(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteRouteTableRequest{} - _, err := c.DeleteRouteTable(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteSecurityList(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteSecurityListRequest{} - _, err := c.DeleteSecurityList(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteSubnet(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteSubnetRequest{} - _, err := c.DeleteSubnet(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteVcn(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteVcnRequest{} - _, err := c.DeleteVcn(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_DeleteVirtualCircuit(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.DeleteVirtualCircuitRequest{} - _, err := c.DeleteVirtualCircuit(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetCpe(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetCpeRequest{} - r, err := c.GetCpe(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetCrossConnect(t *testing.T) { - crossConnect := createOrGetCrossConnect(t) - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetCrossConnectRequest{} - request.CrossConnectId = crossConnect.Id - r, err := c.GetCrossConnect(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetCrossConnectGroup(t *testing.T) { - connectGroup := createOrGetCrossConnectGroup(t) - assert.NotEmpty(t, connectGroup) - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetCrossConnectGroupRequest{ - CrossConnectGroupId: connectGroup.Id, - } - - r, err := c.GetCrossConnectGroup(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetCrossConnectLetterOfAuthority(t *testing.T) { - r := getCrossConnectLetterOfAuthority(t) - assert.NotEmpty(t, r, fmt.Sprint(r)) - return -} - -func TestVirtualNetworkClient_GetCrossConnectStatus(t *testing.T) { - crossConnectStatus := getCrossConnectStatus(t) - assert.NotEmpty(t, crossConnectStatus, fmt.Sprint(crossConnectStatus)) - assert.NotEmpty(t, crossConnectStatus.CrossConnectId, fmt.Sprint(crossConnectStatus.CrossConnectId)) - return -} - -func TestVirtualNetworkClient_GetDhcpOptions(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetDhcpOptionsRequest{} - r, err := c.GetDhcpOptions(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetDrg(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetDrgRequest{} - r, err := c.GetDrg(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetDrgAttachment(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetDrgAttachmentRequest{} - r, err := c.GetDrgAttachment(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetFastConnectProviderService(t *testing.T) { - r := getFastConnectProviderServices(t) - assert.NotEmpty(t, r, fmt.Sprint(r)) - return -} - -func TestVirtualNetworkClient_GetIPSecConnection(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetIPSecConnectionRequest{} - r, err := c.GetIPSecConnection(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetIPSecConnectionDeviceConfig(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetIPSecConnectionDeviceConfigRequest{} - r, err := c.GetIPSecConnectionDeviceConfig(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetIPSecConnectionDeviceStatus(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetIPSecConnectionDeviceStatusRequest{} - r, err := c.GetIPSecConnectionDeviceStatus(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetInternetGateway(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetInternetGatewayRequest{} - r, err := c.GetInternetGateway(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetPrivateIp(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetPrivateIpRequest{} - r, err := c.GetPrivateIp(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetRouteTable(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetRouteTableRequest{} - r, err := c.GetRouteTable(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetSecurityList(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetSecurityListRequest{} - r, err := c.GetSecurityList(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetSubnet(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetSubnetRequest{} - r, err := c.GetSubnet(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetVcn(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetVcnRequest{} - r, err := c.GetVcn(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetVirtualCircuit(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetVirtualCircuitRequest{} - r, err := c.GetVirtualCircuit(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetVnic(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetVnicRequest{} - r, err := c.GetVnic(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListCpes(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListCpesRequest{} - r, err := c.ListCpes(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListCrossConnectGroups(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListCrossConnectGroupsRequest{} - r, err := c.ListCrossConnectGroups(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListCrossConnectLocations(t *testing.T) { - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListCrossConnectLocationsRequest{} - request.CompartmentId = common.String(getCompartmentID()) - r, err := c.ListCrossConnectLocations(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r, fmt.Sprint(r)) - return -} - -func TestVirtualNetworkClient_ListCrossConnects(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListCrossConnectsRequest{} - r, err := c.ListCrossConnects(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListCrossconnectPortSpeedShapes(t *testing.T) { - shapes := listCrossConnectPortSpeedShapes(t) - assert.NotEmpty(t, shapes, fmt.Sprint(shapes)) - return -} - -func TestVirtualNetworkClient_ListDhcpOptions(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListDhcpOptionsRequest{} - r, err := c.ListDhcpOptions(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListDrgAttachments(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListDrgAttachmentsRequest{} - r, err := c.ListDrgAttachments(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListDrgs(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListDrgsRequest{} - r, err := c.ListDrgs(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListFastConnectProviderServices(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListFastConnectProviderServicesRequest{} - r, err := c.ListFastConnectProviderServices(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListFastConnectProviderVirtualCircuitBandwidthShapes(t *testing.T) { - r := listFastConnectProviderVirtualCircuitBandwidthShapes(t) - assert.NotEmpty(t, r, fmt.Sprint(r)) - return -} - -func TestVirtualNetworkClient_ListIPSecConnections(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListIPSecConnectionsRequest{} - r, err := c.ListIPSecConnections(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListInternetGateways(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListInternetGatewaysRequest{} - r, err := c.ListInternetGateways(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListPrivateIps(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListPrivateIpsRequest{} - r, err := c.ListPrivateIps(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListRouteTables(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListRouteTablesRequest{} - r, err := c.ListRouteTables(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListSecurityLists(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListSecurityListsRequest{} - r, err := c.ListSecurityLists(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListSubnets(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListSubnetsRequest{} - r, err := c.ListSubnets(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListVcns(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListVcnsRequest{} - r, err := c.ListVcns(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_ListVirtualCircuitBandwidthShapes(t *testing.T) { - r := listVirtualCircuitBandwidthShapes(t) - assert.NotEmpty(t, r, fmt.Sprint(r)) - return -} - -func TestVirtualNetworkClient_ListVirtualCircuits(t *testing.T) { - t.Skip("Service return 500, service api bug") - // make sure the list operation at least return one item - createOrGetVirtualCircuit(t) - r := listVirtualCircuits(t) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NotEqual(t, len(r), 0) - return -} - -func TestVirtualNetworkClient_UpdateCpe(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateCpeRequest{} - r, err := c.UpdateCpe(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateCrossConnect(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateCrossConnectRequest{} - r, err := c.UpdateCrossConnect(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateCrossConnectGroup(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateCrossConnectGroupRequest{} - r, err := c.UpdateCrossConnectGroup(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateDhcpOptions(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateDhcpOptionsRequest{} - r, err := c.UpdateDhcpOptions(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateDrg(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateDrgRequest{} - r, err := c.UpdateDrg(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateDrgAttachment(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateDrgAttachmentRequest{} - r, err := c.UpdateDrgAttachment(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateIPSecConnection(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateIPSecConnectionRequest{} - r, err := c.UpdateIPSecConnection(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateInternetGateway(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateInternetGatewayRequest{} - r, err := c.UpdateInternetGateway(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdatePrivateIp(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdatePrivateIpRequest{} - r, err := c.UpdatePrivateIp(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateRouteTable(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateRouteTableRequest{} - r, err := c.UpdateRouteTable(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateSecurityList(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateSecurityListRequest{} - r, err := c.UpdateSecurityList(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateSubnet(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateSubnetRequest{} - r, err := c.UpdateSubnet(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateVcn(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateVcnRequest{} - r, err := c.UpdateVcn(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateVirtualCircuit(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateVirtualCircuitRequest{} - r, err := c.UpdateVirtualCircuit(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_UpdateVnic(t *testing.T) { - t.Skip("Not implemented") - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.UpdateVnicRequest{} - r, err := c.UpdateVnic(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestVirtualNetworkClient_GetLocalPeeringGateway(t *testing.T) { - t.Skip("Not in current version of service spec, update later") - /*createOrGetSubnet(t) - gateway := createOrGetLocalPeeringGateway(t) - assert.NotEmpty(t, gateway) - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.GetLocalPeeringGatewayRequest{ - LocalPeeringGatewayId: gateway.Id, - } - - r, err := c.GetLocalPeeringGateway(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err)*/ - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/integtest/database_client_integ_test.go b/vendor/github.com/oracle/oci-go-sdk/integtest/database_client_integ_test.go deleted file mode 100644 index 0b005cc33..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/integtest/database_client_integ_test.go +++ /dev/null @@ -1,466 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Database Service API -// -// The API for the Database Service. -// - -package integtest - -import ( - "context" - "fmt" - "testing" - - "github.com/oracle/oci-go-sdk/common" - "github.com/oracle/oci-go-sdk/database" - "github.com/stretchr/testify/assert" -) - -func TestDatabaseClient_CreateBackup(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.CreateBackupRequest{} - r, err := c.CreateBackup(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_CreateDataGuardAssociation(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.CreateDataGuardAssociationRequest{} - r, err := c.CreateDataGuardAssociation(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_CreateDbHome(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.CreateDbHomeRequest{} - r, err := c.CreateDbHome(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_DbNodeAction(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.DbNodeActionRequest{} - r, err := c.DbNodeAction(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_DeleteBackup(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.DeleteBackupRequest{} - _, err := c.DeleteBackup(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_DeleteDbHome(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.DeleteDbHomeRequest{} - _, err := c.DeleteDbHome(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_FailoverDataGuardAssociation(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.FailoverDataGuardAssociationRequest{} - r, err := c.FailoverDataGuardAssociation(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_GetBackup(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.GetBackupRequest{} - r, err := c.GetBackup(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_GetDataGuardAssociation(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.GetDataGuardAssociationRequest{} - r, err := c.GetDataGuardAssociation(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_GetDatabase(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.GetDatabaseRequest{} - r, err := c.GetDatabase(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_GetDbHome(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.GetDbHomeRequest{} - r, err := c.GetDbHome(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_GetDbHomePatch(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.GetDbHomePatchRequest{} - r, err := c.GetDbHomePatch(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_GetDbHomePatchHistoryEntry(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.GetDbHomePatchHistoryEntryRequest{} - r, err := c.GetDbHomePatchHistoryEntry(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_GetDbNode(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.GetDbNodeRequest{} - r, err := c.GetDbNode(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_GetDbSystem(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.GetDbSystemRequest{} - r, err := c.GetDbSystem(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_GetDbSystemPatch(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.GetDbSystemPatchRequest{} - r, err := c.GetDbSystemPatch(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_GetDbSystemPatchHistoryEntry(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.GetDbSystemPatchHistoryEntryRequest{} - r, err := c.GetDbSystemPatchHistoryEntry(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_LaunchDbSystem(t *testing.T) { - - if !getRunExpensiveTests() { - t.Skip("expensive test excluded") - return - } - - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := database.LaunchDbSystemRequest{} - request.AvailabilityDomain = common.String(validAD()) - request.CompartmentId = common.String(getCompartmentID()) - request.CpuCoreCount = common.Int(2) - request.DatabaseEdition = "STANDARD_EDITION" - request.DisplayName = common.String(dbSystemDisplayName) - request.Shape = common.String("BM.DenseIO1.36") // this shape will not get service limit error for now - - buffer, err := readTestPubKey() - failIfError(t, err) - request.SshPublicKeys = []string{string(buffer)} - - subnet := createOrGetSubnet(t) - request.SubnetId = subnet.Id - request.Hostname = common.String("test") - request.LicenseModel = "LICENSE_INCLUDED" - request.DiskRedundancy = "NORMAL" - - request.DbHome = &database.CreateDbHomeDetails{ - DbVersion: common.String("11.2.0.4"), - Database: &database.CreateDatabaseDetails{ - DbName: common.String("Name"), - AdminPassword: common.String("OraclE12--"), - DbWorkload: "OLTP", - }, - } - - r, err := c.LaunchDbSystem(context.Background(), request) - failIfError(t, err) - - // if we've successfully created a group during testing, make sure that we delete it - defer func() { - //Delete - rDel := database.TerminateDbSystemRequest{DbSystemId: r.DbSystem.Id} - resp, err := c.TerminateDbSystem(context.Background(), rDel) - failIfError(t, err) - assert.NotEmpty(t, resp.OpcRequestId) - }() - assert.NotEmpty(t, r) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListBackups(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListBackupsRequest{} - r, err := c.ListBackups(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListDataGuardAssociations(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListDataGuardAssociationsRequest{} - r, err := c.ListDataGuardAssociations(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListDatabases(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListDatabasesRequest{} - r, err := c.ListDatabases(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListDbHomePatchHistoryEntries(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListDbHomePatchHistoryEntriesRequest{} - r, err := c.ListDbHomePatchHistoryEntries(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListDbHomePatches(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListDbHomePatchesRequest{} - r, err := c.ListDbHomePatches(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListDbHomes(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListDbHomesRequest{} - r, err := c.ListDbHomes(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListDbNodes(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListDbNodesRequest{} - r, err := c.ListDbNodes(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListDbSystemPatchHistoryEntries(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListDbSystemPatchHistoryEntriesRequest{} - r, err := c.ListDbSystemPatchHistoryEntries(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListDbSystemPatches(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListDbSystemPatchesRequest{} - r, err := c.ListDbSystemPatches(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListDbSystemShapes(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListDbSystemShapesRequest{} - r, err := c.ListDbSystemShapes(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListDbSystems(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListDbSystemsRequest{} - r, err := c.ListDbSystems(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ListDbVersions(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ListDbVersionsRequest{} - r, err := c.ListDbVersions(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_ReinstateDataGuardAssociation(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.ReinstateDataGuardAssociationRequest{} - r, err := c.ReinstateDataGuardAssociation(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_RestoreDatabase(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.RestoreDatabaseRequest{} - r, err := c.RestoreDatabase(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_SwitchoverDataGuardAssociation(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.SwitchoverDataGuardAssociationRequest{} - r, err := c.SwitchoverDataGuardAssociation(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_TerminateDbSystem(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.TerminateDbSystemRequest{} - _, err := c.TerminateDbSystem(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_UpdateDatabase(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.UpdateDatabaseRequest{} - r, err := c.UpdateDatabase(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_UpdateDbHome(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.UpdateDbHomeRequest{} - r, err := c.UpdateDbHome(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestDatabaseClient_UpdateDbSystem(t *testing.T) { - t.Skip("Not implemented") - c, clerr := database.NewDatabaseClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := database.UpdateDbSystemRequest{} - r, err := c.UpdateDbSystem(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/integtest/identity_client_integ_test.go b/vendor/github.com/oracle/oci-go-sdk/integtest/identity_client_integ_test.go deleted file mode 100644 index 93472e44d..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/integtest/identity_client_integ_test.go +++ /dev/null @@ -1,929 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package integtest - -import ( - "context" - "fmt" - - "net/http" - "reflect" - "strings" - "testing" - "time" - - "github.com/oracle/oci-go-sdk/common" - "github.com/oracle/oci-go-sdk/identity" - "github.com/stretchr/testify/assert" -) - -// Group operations CRUD -func TestIdentityClient_GroupCRUD(t *testing.T) { - // test should not fail if a previous run failed to clean up - groupName := getUniqueName("Group_CRUD") - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.CreateGroupRequest{} - request.CompartmentId = common.String(getTenancyID()) - request.Name = common.String(groupName) - request.Description = common.String("GoSDK_someGroupDesc") - r, err := c.CreateGroup(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - failIfError(t, err) - - // if we've successfully created a group during testing, make sure that we delete it - defer func() { - //Delete - rDel := identity.DeleteGroupRequest{GroupId: r.Id} - _, err = c.DeleteGroup(context.Background(), rDel) - assert.NoError(t, err) - }() - - // validate group lifecycle state enum value after create - assert.Equal(t, identity.GroupLifecycleStateActive, r.Group.LifecycleState) - - //Get - rRead := identity.GetGroupRequest{GroupId: r.Id} - resRead, err := c.GetGroup(context.Background(), rRead) - assert.NotEmpty(t, r, fmt.Sprint(resRead.Id)) - failIfError(t, err) - - // validate group lifecycle state enum value after read - assert.Equal(t, identity.GroupLifecycleStateActive, resRead.LifecycleState) - - //Update - rUpdate := identity.UpdateGroupRequest{GroupId: r.Id} - rUpdate.Description = common.String("New description") - resUpdate, err := c.UpdateGroup(context.Background(), rUpdate) - failIfError(t, err) - assert.NotNil(t, resUpdate.Id) -} - -type fakeDispatcher struct { - Reg string - Valid bool -} - -func (f *fakeDispatcher) Do(r *http.Request) (*http.Response, error) { - f.Valid = strings.Contains(r.URL.Host, f.Reg) - return nil, fmt.Errorf("Fake dispatcher") -} - -func TestIdentityClient_OverrideRegion(t *testing.T) { - c, _ := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - region := "newRegion" - c.SetRegion(region) - f := fakeDispatcher{Reg: region} - // Avoid calling the service as we do no know if we have access to that region - c.HTTPClient = &f - rList := identity.ListGroupsRequest{CompartmentId: common.String(getTenancyID())} - c.ListGroups(context.Background(), rList) - assert.True(t, f.Valid) -} - -func TestIdentityClient_ListGroups(t *testing.T) { - - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.ListGroupsRequest{CompartmentId: common.String(getTenancyID())} - r, err := c.ListGroups(context.Background(), request) - failIfError(t, err) - - items := r.Items - - nextRequest := identity.ListGroupsRequest{CompartmentId: request.CompartmentId} - nextRequest.Page = r.OpcNextPage - - for nextRequest.Page != nil { - if r, err = c.ListGroups(context.Background(), nextRequest); err == nil { - items = append(items, r.Items...) - nextRequest.Page = r.OpcNextPage - } else { - failIfError(t, err) - break - } - } - - assert.NotEmpty(t, items) - - return -} - -// Compartment operations -//Can not delete compartments right now! Careful! - -func TestIdentityClient_CreateCompartment(t *testing.T) { - t.Skip("Compartment Creation cannot be undone. Remove Skip and manual execute test to verify") - c, cfgErr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, cfgErr) - - request := identity.CreateCompartmentRequest{CreateCompartmentDetails: identity.CreateCompartmentDetails{ - Name: common.String("Compartment_Test"), - Description: common.String("Go SDK Comparment Test"), - CompartmentId: common.String(getTenancyID()), - }} - - r, err := c.CreateCompartment(context.Background(), request) - verifyResponseIsValid(t, r, err) - assert.NotEmpty(t, r.Id) - assert.Equal(t, request.Name, r.Name) - assert.Equal(t, request.Description, r.Description) - return -} - -//Comparment RU -func TestIdentityClient_UpdateCompartment(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - //Update - request := identity.UpdateCompartmentRequest{UpdateCompartmentDetails: identity.UpdateCompartmentDetails{ - // cannot use same name to update compartment, generate a random one via this function - Name: common.String(GoSDK2_Test_Prefix + "UpdComp" + getRandomString(10)), - Description: common.String("GOSDK2 description2"), - }, - CompartmentId: common.String(getCompartmentID()), - } - r, err := c.UpdateCompartment(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r, fmt.Sprint(r)) - - rRead := identity.GetCompartmentRequest{CompartmentId: common.String(getTenancyID())} - resRead, err := c.GetCompartment(context.Background(), rRead) - failIfError(t, err) - assert.NotEmpty(t, r, fmt.Sprint(resRead)) - return -} - -//User Operations -func TestIdentityClient_ListUsers(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.ListUsersRequest{CompartmentId: common.String(getTenancyID())} - r, err := c.ListUsers(context.Background(), request) - failIfError(t, err) - - items := r.Items - - nextRequest := identity.ListUsersRequest{CompartmentId: request.CompartmentId} - nextRequest.Page = r.OpcNextPage - for nextRequest.Page != nil { - if r, err = c.ListUsers(context.Background(), nextRequest); err == nil { - items = append(items, r.Items...) - nextRequest.Page = r.OpcNextPage - } else { - failIfError(t, err) - break - } - } - - // Add verification for items array - assert.NotEmpty(t, items) - - return -} - -func TestIdentityClient_UserCRUD(t *testing.T) { - // test should not fail if a previous run failed to clean up - userName := getUniqueName("User_") - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.CreateUserRequest{} - request.CompartmentId = common.String(getTenancyID()) - request.Name = common.String(userName) - request.Description = common.String("Test user for golang sdk2") - resCreate, err := c.CreateUser(context.Background(), request) - fmt.Println(resCreate) - assert.NotEmpty(t, resCreate, fmt.Sprint(resCreate)) - assert.NoError(t, err) - - // if we've successfully created a user during testing, make sure that we delete it - defer func() { - //remove - rDelete := identity.DeleteUserRequest{} - rDelete.UserId = resCreate.Id - resDelete, err := c.DeleteUser(context.Background(), rDelete) - assert.NotEmpty(t, resDelete.OpcRequestId) - assert.NoError(t, err) - }() - - // validate user lifecycle state enum value after read - assert.Equal(t, identity.UserLifecycleStateActive, resCreate.LifecycleState) - - //Read - rRead := identity.GetUserRequest{UserId: resCreate.Id} - resRead, err := c.GetUser(context.Background(), rRead) - assert.NotEmpty(t, resRead, fmt.Sprint(resRead)) - assert.NoError(t, err) - - // validate user lifecycle state enum value after read - assert.Equal(t, identity.UserLifecycleStateActive, resRead.LifecycleState) - - //Update - rUpdate := identity.UpdateUserRequest{} - rUpdate.UserId = resCreate.Id - rUpdate.Description = common.String("This is a new description") - resUpdate, err := c.UpdateUser(context.Background(), rUpdate) - assert.NotEmpty(t, resUpdate, fmt.Sprint(resUpdate)) - assert.NoError(t, err) - - return -} - -//User-Group operations -func TestIdentityClient_AddUserToGroup(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - // for robustness, create a user and group to use for this test. delete it at the end - reqAddUser := identity.CreateUserRequest{} - reqAddUser.CompartmentId = common.String(getTenancyID()) - reqAddUser.Name = common.String(getUniqueName("AUTG_User")) - reqAddUser.Description = common.String("AddUserToGroup Test User") - rspAddUser, err1 := c.CreateUser(context.Background(), reqAddUser) - - failIfError(t, err1) - - defer func() { - // Delete the user - reqUserDelete := identity.DeleteUserRequest{UserId: rspAddUser.Id} - _, delUserErr := c.DeleteUser(context.Background(), reqUserDelete) - assert.NoError(t, delUserErr) - }() - - reqAddGroup := identity.CreateGroupRequest{} - reqAddGroup.CompartmentId = common.String(getTenancyID()) - reqAddGroup.Name = common.String(getUniqueName("AUTG_Group_")) - reqAddGroup.Description = common.String("AddUserToGroup Test Group") - rspAddGroup, err2 := c.CreateGroup(context.Background(), reqAddGroup) - - failIfError(t, err2) - - defer func() { - // Delete the group - reqGroupDelete := identity.DeleteGroupRequest{GroupId: rspAddGroup.Id} - delRes, delGrpErr := c.DeleteGroup(context.Background(), reqGroupDelete) - assert.NoError(t, delGrpErr) - assert.NotEmpty(t, delRes.OpcRequestId) - }() - - //add - reqAdd := identity.AddUserToGroupRequest{} - reqAdd.UserId = rspAddUser.Id - reqAdd.GroupId = rspAddGroup.Id - rspAdd, err := c.AddUserToGroup(context.Background(), reqAdd) - failIfError(t, err) - assert.NotEmpty(t, rspAdd, fmt.Sprint(rspAdd)) - - defer func() { - //remove - requestRemove := identity.RemoveUserFromGroupRequest{UserGroupMembershipId: rspAdd.UserGroupMembership.Id} - _, err = c.RemoveUserFromGroup(context.Background(), requestRemove) - failIfError(t, err) - }() - - // validate user membership lifecycle state enum value after create - assert.Equal(t, identity.UserGroupMembershipLifecycleStateActive, rspAdd.LifecycleState) - - // Read - reqRead := identity.GetUserGroupMembershipRequest{} - reqRead.UserGroupMembershipId = rspAdd.Id - rspRead, readErr := c.GetUserGroupMembership(context.Background(), reqRead) - verifyResponseIsValid(t, rspRead, readErr) - assert.Equal(t, rspAdd.Id, rspRead.Id) - return - -} - -func TestIdentityClient_ListUserGroupMemberships(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.ListUserGroupMembershipsRequest{} - request.UserId = common.String(getUserID()) - request.CompartmentId = common.String(getTenancyID()) - r, err := c.ListUserGroupMemberships(context.Background(), request) - failIfError(t, err) - - items := r.Items - - nextRequest := identity.ListUserGroupMembershipsRequest{CompartmentId: request.CompartmentId, UserId: request.UserId} - nextRequest.Page = r.OpcNextPage - - for nextRequest.Page != nil { - if r, err := c.ListUserGroupMemberships(context.Background(), nextRequest); err == nil { - items = append(items, r.Items...) - nextRequest.Page = r.OpcNextPage - } else { - failIfError(t, err) - break - } - } - - assert.NotEmpty(t, items) - - return -} - -func TestIdentityClient_CreateOrResetUIPassword(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - //create the user - u, err := createTestUser(c) - failIfError(t, err) - defer func() { - failIfError(t, deleteTestUser(c, u.Id)) - }() - - request := identity.CreateOrResetUIPasswordRequest{} - request.UserId = u.Id - rspCreate, err := c.CreateOrResetUIPassword(context.Background(), request) - failIfError(t, err) - verifyResponseIsValid(t, rspCreate, err) - - assert.NotEmpty(t, rspCreate.OpcRequestId) - assert.Equal(t, u.Id, rspCreate.UserId) - assert.NotEmpty(t, rspCreate.Password) - assert.Equal(t, identity.UiPasswordLifecycleStateActive, rspCreate.LifecycleState) - - // make the request again and ensure that we get a different password - rspReset, err := c.CreateOrResetUIPassword(context.Background(), request) - failIfError(t, err) - verifyResponseIsValid(t, rspReset, err) - - assert.Equal(t, rspCreate.UserId, rspReset.UserId) - assert.NotEqual(t, rspCreate.Password, rspReset.Password) - assert.Equal(t, identity.UiPasswordLifecycleStateActive, rspCreate.LifecycleState) - - return -} - -func TestIdentityClient_SwiftPasswordCRUD(t *testing.T) { - - createDesc := "Go SDK Test Swift Password - CREATED" - updateDesc := "Go SDK Test Swift Password - UPDATED" - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - usr, usrErr := createTestUser(c) - failIfError(t, usrErr) - - defer deleteTestUser(c, usr.Id) - - // Create Swift Password - addReq := identity.CreateSwiftPasswordRequest{UserId: usr.Id} - addReq.Description = &createDesc - rspPwd, err := c.CreateSwiftPassword(context.Background(), addReq) - verifyResponseIsValid(t, rspPwd, err) - - //Delete Swift Password - defer func() { - delReq := identity.DeleteSwiftPasswordRequest{} - delReq.UserId = usr.Id - delReq.SwiftPasswordId = rspPwd.Id - }() - - assert.NotEmpty(t, rspPwd.Id) - assert.Equal(t, usr.Id, rspPwd.UserId) - assert.NotEmpty(t, rspPwd.Password) - assert.Equal(t, identity.SwiftPasswordLifecycleStateActive, rspPwd.LifecycleState) - assert.Equal(t, createDesc, *rspPwd.Description) - - // Update Swift Password - updReq := identity.UpdateSwiftPasswordRequest{UserId: usr.Id} - updReq.SwiftPasswordId = rspPwd.Id - updReq.Description = &updateDesc - updRsp, err := c.UpdateSwiftPassword(context.Background(), updReq) - verifyResponseIsValid(t, updRsp, err) - - assert.NotEqual(t, rspPwd.Password, updRsp.Password) - assert.Equal(t, identity.SwiftPasswordLifecycleStateActive, updRsp.LifecycleState) - assert.Equal(t, updateDesc, *updRsp.Description) - - //assert.NotEmpty(t, updRsp.ExpiresOn) - - return -} - -func TestIdentityClient_ListSwiftPasswords(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - usr, usrErr := createTestUser(c) - failIfError(t, usrErr) - defer deleteTestUser(c, usr.Id) - - pwdReq := identity.CreateSwiftPasswordRequest{UserId: usr.Id} - pwdReq.Description = common.String("Test Swift Password 1") - pwdRsp1, err := c.CreateSwiftPassword(context.Background(), pwdReq) - verifyResponseIsValid(t, pwdRsp1, err) - - pwdReq.Description = common.String("Test Swift Password 2") - pwdRsp2, err := c.CreateSwiftPassword(context.Background(), pwdReq) - verifyResponseIsValid(t, pwdRsp2, err) - - request := identity.ListSwiftPasswordsRequest{UserId: usr.Id} - r, err := c.ListSwiftPasswords(context.Background(), request) - verifyResponseIsValid(t, r, err) - - assert.Equal(t, 2, len(r.Items)) - assert.NotEqual(t, r.Items[0].Id, r.Items[1].Id) - assert.NotEqual(t, r.Items[0].Description, r.Items[1].Description) - - return -} - -//Policy Operations see DEX-1945 -func TestIdentityClient_PolicyCRUD(t *testing.T) { - t.Skip("Policy Operations issue. See DEX-1945 ") - - //Create - //client := identity.NewIdentityClientForRegion(getRegion()) - client, cfgErr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, cfgErr) - - createRequest := identity.CreatePolicyRequest{} - createRequest.CompartmentId = common.String(getTenancyID()) - createRequest.Name = common.String("goSDK2Policy2") - createRequest.Description = common.String("some policy") - createRequest.Statements = []string{"Allow group goSDK2CreateGroup read all-resources on compartment egineztest"} - createRequest.VersionDate = &common.SDKTime{time.Now()} - createResponse, err := client.CreatePolicy(context.Background(), createRequest) - verifyResponseIsValid(t, createResponse, err) - - defer func() { - // Delete - request := identity.DeletePolicyRequest{PolicyId: createResponse.Id} - delRes, err := client.DeletePolicy(context.Background(), request) - assert.NoError(t, err) - assert.NotEmpty(t, delRes.OpcRequestId) - }() - - //Read - readRequest := identity.GetPolicyRequest{} - readRequest.PolicyId = createResponse.Id - readResponse, err := client.GetPolicy(context.Background(), readRequest) - verifyResponseIsValid(t, readResponse, err) - - //Update - - updateRequest := identity.UpdatePolicyRequest{} - updateRequest.PolicyId = createResponse.Id - updateRequest.Description = common.String("new description") - updateResponse, err := client.UpdatePolicy(context.Background(), updateRequest) - assert.NotEmpty(t, updateResponse, fmt.Sprint(updateResponse)) - assert.NoError(t, err) - - return -} - -func TestIdentityClient_ListPolicies(t *testing.T) { - c, cfgErr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, cfgErr) - listRequest := identity.ListPoliciesRequest{} - listRequest.CompartmentId = common.String(getTenancyID()) - listResponse, err := c.ListPolicies(context.Background(), listRequest) - failIfError(t, err) - - items := listResponse.Items - - nextRequest := identity.ListPoliciesRequest{CompartmentId: listRequest.CompartmentId} - nextRequest.Page = listResponse.OpcNextPage - - for nextRequest.Page != nil { - if r, err := c.ListPolicies(context.Background(), nextRequest); err == nil { - items = append(items, r.Items...) - nextRequest.Page = r.OpcNextPage - } else { - failIfError(t, err) - } - } - - assert.NotEmpty(t, items) - - return -} - -//SecretKey operations -func TestIdentityClient_SecretKeyCRUD(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.CreateCustomerSecretKeyRequest{} - request.UserId = common.String(getUserID()) - request.DisplayName = common.String("GolangSDK2TestSecretKey") - resCreate, err := c.CreateCustomerSecretKey(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resCreate, fmt.Sprint(resCreate)) - assert.NoError(t, err) - - defer func() { - //remove - rDelete := identity.DeleteCustomerSecretKeyRequest{} - rDelete.CustomerSecretKeyId = resCreate.Id - rDelete.UserId = common.String(getUserID()) - delRes, err := c.DeleteCustomerSecretKey(context.Background(), rDelete) - failIfError(t, err) - assert.NotEmpty(t, delRes.OpcRequestId) - }() - - // validate user membership lifecycle state enum value after create - assert.Equal(t, identity.CustomerSecretKeyLifecycleStateActive, resCreate.LifecycleState) - - //Update - rUpdate := identity.UpdateCustomerSecretKeyRequest{} - rUpdate.CustomerSecretKeyId = resCreate.Id - rUpdate.UserId = common.String(getUserID()) - rUpdate.DisplayName = common.String("This is a new description") - resUpdate, err := c.UpdateCustomerSecretKey(context.Background(), rUpdate) - assert.NotEmpty(t, resUpdate, fmt.Sprint(resUpdate)) - failIfError(t, err) - - return -} - -func TestIdentityClient_ListCustomerSecretKeys(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.ListCustomerSecretKeysRequest{} - request.UserId = common.String(getUserID()) - r, err := c.ListCustomerSecretKeys(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - failIfError(t, err) - return -} - -//Apikeys -func TestIdentityClient_ApiKeyCRUD(t *testing.T) { - userId := "" - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.UploadApiKeyRequest{} - request.UserId = common.String(userId) - request.Key = common.String("some key") - resCreate, err := c.UploadApiKey(context.Background(), request) - assert.Error(t, err) - ser, ok := common.IsServiceError(err) - assert.True(t, ok) - assert.NotEmpty(t, ser.GetMessage()) - - defer func() { - //remove - rDelete := identity.DeleteApiKeyRequest{} - rDelete.Fingerprint = resCreate.Fingerprint - rDelete.UserId = common.String(userId) - _, err := c.DeleteApiKey(context.Background(), rDelete) - ser, ok = common.IsServiceError(err) - assert.False(t, ok) - assert.NotEmpty(t, err.Error()) - }() - - // TODO: [2017-Nov-07::shalka] presently LifecycleState isn't being set on ApiKey struct in the Response => merits - // further investigation - // validate api key lifecycle state enum value after create - // assert.Equal(t, identity.API_KEY_LIFECYCLE_STATE_ACTIVE, resCreate.LifecycleState) - - return -} -func TestIdentityClient_ListApiKeys(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.ListApiKeysRequest{} - request.UserId = common.String(getUserID()) - r, err := c.ListApiKeys(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - failIfError(t, err) - return -} - -func TestIdentityClient_IdentityProviderCRUD(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - // Create the Identity Provider Request - rCreate := identity.CreateIdentityProviderRequest{} - details := identity.CreateSaml2IdentityProviderDetails{} - details.CompartmentId = common.String(getTenancyID()) - details.Name = common.String(getUniqueName("Ident_Provider_")) - details.Description = common.String("CRUD Test Identity Provider") - details.ProductType = identity.CreateIdentityProviderDetailsProductTypeAdfs - details.Metadata = common.String(readSampleFederationMetadata(t)) - rCreate.CreateIdentityProviderDetails = details - - // Create - rspCreate, createErr := c.CreateIdentityProvider(context.Background(), rCreate) - - failIfError(t, createErr) - verifyResponseIsValid(t, rspCreate, createErr) - - defer func() { - //remove - fmt.Println("Deleting Identity Provider") - if rspCreate.GetId() != nil { - rDelete := identity.DeleteIdentityProviderRequest{} - rDelete.IdentityProviderId = rspCreate.GetId() - delRes, err := c.DeleteIdentityProvider(context.Background(), rDelete) - failIfError(t, err) - assert.NotEmpty(t, delRes.OpcRequestId) - } - }() - - // Verify requested values are correct - assert.NotEmpty(t, rspCreate.GetId()) - assert.NotEmpty(t, rspCreate.OpcRequestId) - assert.Equal(t, *rCreate.GetCompartmentId(), *rspCreate.GetCompartmentId()) - assert.NotEmpty(t, *rspCreate.GetName()) - - // Read - rRead := identity.GetIdentityProviderRequest{} - rRead.IdentityProviderId = rspCreate.GetId() - rspRead, readErr := c.GetIdentityProvider(context.Background(), rRead) - failIfError(t, readErr) - verifyResponseIsValid(t, rspRead, readErr) - assert.Equal(t, *rRead.IdentityProviderId, *rspRead.GetId()) - - // Update - rUpdate := identity.UpdateIdentityProviderRequest{} - updateDetails := identity.UpdateSaml2IdentityProviderDetails{} - updateDetails.Description = common.String("New description") - rUpdate.IdentityProviderId = rspCreate.GetId() - rUpdate.UpdateIdentityProviderDetails = updateDetails - rspUpdate, updErr := c.UpdateIdentityProvider(context.Background(), rUpdate) - - failIfError(t, updErr) - verifyResponseIsValid(t, rspUpdate, updErr) - assert.Equal(t, *rspCreate.GetId(), *rspUpdate.GetId()) - assert.Equal(t, "New description", *rspUpdate.GetDescription()) - - // Create the group mapping - u, uErr := createTestUser(c) - failIfError(t, uErr) - defer deleteTestUser(c, u.Id) - - g, gErr := createTestGroup(c) - failIfError(t, gErr) - defer deleteTestGroup(c, g.Id) - - reqCreateMapping := identity.CreateIdpGroupMappingRequest{} - reqCreateMapping.IdentityProviderId = rspCreate.GetId() - reqCreateMapping.GroupId = g.Id - idpGrpName := *rspCreate.GetName() - groupName := *g.Name - reqCreateMapping.IdpGroupName = common.String(idpGrpName + "_TO_" + groupName) - - rspCreateMapping, createMapErr := c.CreateIdpGroupMapping(context.Background(), reqCreateMapping) - failIfError(t, createMapErr) - - // Delete mapping - defer func() { - fmt.Println("Deleting Identity Provider Group Mapping") - reqDelete := identity.DeleteIdpGroupMappingRequest{MappingId: rspCreateMapping.Id, IdentityProviderId: rspCreateMapping.IdpId} - _, delErr := c.DeleteIdpGroupMapping(context.Background(), reqDelete) - failIfError(t, delErr) - }() - - verifyResponseIsValid(t, rspCreateMapping, createMapErr) - - assert.NotEmpty(t, *rspCreateMapping.Id) - assert.NotEmpty(t, *rspCreateMapping.GroupId) - assert.NotEmpty(t, *rspCreateMapping.OpcRequestId) - assert.NotEmpty(t, *rspCreateMapping.IdpGroupName) - assert.Equal(t, *rspCreate.GetId(), *rspCreateMapping.IdpId) - assert.NotEmpty(t, rspCreateMapping.TimeCreated) - assert.Equal(t, identity.IdpGroupMappingLifecycleStateActive, rspCreateMapping.LifecycleState) - - //Read group mapping - reqReadMapping := identity.GetIdpGroupMappingRequest{IdentityProviderId: rspCreateMapping.IdpId, MappingId: rspCreateMapping.Id} - rspReadMapping, readMapErr := c.GetIdpGroupMapping(context.Background(), reqReadMapping) - verifyResponseIsValid(t, rspReadMapping, readMapErr) - - assert.Equal(t, rspCreateMapping.Id, rspReadMapping.Id) - assert.Equal(t, rspCreateMapping.IdpId, rspReadMapping.IdpId) - assert.Equal(t, identity.IdpGroupMappingLifecycleStateActive, rspReadMapping.LifecycleState) - - //update group mapping - reqUpdMapping := identity.UpdateIdpGroupMappingRequest{} - reqUpdMapping.MappingId = rspReadMapping.Id - reqUpdMapping.IdentityProviderId = rspReadMapping.IdpId - reqUpdMapping.GroupId = rspReadMapping.GroupId - updatedName := *rspReadMapping.IdpGroupName + " - Updated" - reqUpdMapping.IdpGroupName = common.String(updatedName) - rspUpdMapping, updMapErr := c.UpdateIdpGroupMapping(context.Background(), reqUpdMapping) - verifyResponseIsValid(t, rspUpdMapping, updMapErr) - - assert.NotEmpty(t, *rspUpdMapping.Id) - assert.NotEmpty(t, *rspUpdMapping.GroupId) - assert.NotEmpty(t, *rspUpdMapping.OpcRequestId) - assert.Equal(t, *rspReadMapping.Id, *rspUpdMapping.Id) - assert.Equal(t, *rspReadMapping.IdpId, *rspUpdMapping.IdpId) - assert.NotEqual(t, *rspReadMapping.IdpGroupName, *rspUpdMapping.IdpGroupName) - assert.NotEmpty(t, rspUpdMapping.TimeCreated) - assert.Equal(t, identity.IdpGroupMappingLifecycleStateActive, rspUpdMapping.LifecycleState) - - return -} - -func TestIdentityClient_ListIdentityProviders(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - //Create the Identity Provider Request - rCreate := identity.CreateIdentityProviderRequest{} - details := identity.CreateSaml2IdentityProviderDetails{} - details.CompartmentId = common.String(getTenancyID()) - details.Name = common.String(getUniqueName("Ident_Provider_")) - details.Description = common.String("CRUD Test Identity Provider") - details.ProductType = identity.CreateIdentityProviderDetailsProductTypeIdcs - details.Metadata = common.String(readSampleFederationMetadata(t)) - rCreate.CreateIdentityProviderDetails = details - - //Create - rspCreate, createErr := c.CreateIdentityProvider(context.Background(), rCreate) - failIfError(t, createErr) - verifyResponseIsValid(t, rspCreate, createErr) - - //Delete - deleteFn := func() { - if rspCreate.GetId() != nil { - rDelete := identity.DeleteIdentityProviderRequest{} - rDelete.IdentityProviderId = rspCreate.GetId() - _, err := c.DeleteIdentityProvider(context.Background(), rDelete) - failIfError(t, err) - } - } - defer deleteFn() - - rRead := identity.GetIdentityProviderRequest{} - rRead.IdentityProviderId = rspCreate.GetId() - rspRead, readErr := c.GetIdentityProvider(context.Background(), rRead) - failIfError(t, readErr) - verifyResponseIsValid(t, rspRead, readErr) - assert.Equal(t, *rRead.IdentityProviderId, *rspRead.GetId()) - - //Listing - request := identity.ListIdentityProvidersRequest{} - request.CompartmentId = common.String(getTenancyID()) - request.Protocol = identity.ListIdentityProvidersProtocolSaml2 - response, err := c.ListIdentityProviders(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, response.Items) - presentAndEqual := false - for _, val := range response.Items { - if *val.GetId() == *rspCreate.GetId() { - presentAndEqual = reflect.TypeOf(identity.Saml2IdentityProvider{}) == reflect.TypeOf(val) - } - } - assert.True(t, presentAndEqual) - - items := response.Items - - nextRequest := identity.ListIdentityProvidersRequest{CompartmentId: request.CompartmentId, - Protocol: identity.ListIdentityProvidersProtocolSaml2} - nextRequest.Page = response.OpcNextPage - - for nextRequest.Page != nil { - if r, err := c.ListIdentityProviders(context.Background(), nextRequest); err == nil { - items = append(items, r.Items...) - nextRequest.Page = r.OpcNextPage - } else { - failIfError(t, err) - break - } - } - - return -} - -func TestIdentityClient_GetTenancy(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.GetTenancyRequest{TenancyId: common.String(getTenancyID())} - r, err := c.GetTenancy(context.Background(), request) - verifyResponseIsValid(t, r, err) - - assert.Equal(t, request.TenancyId, r.Id) - assert.NotEmpty(t, r.OpcRequestId) - - return -} - -func TestIdentityClient_ListAvailabilityDomains(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.ListAvailabilityDomainsRequest{CompartmentId: common.String(getCompartmentID())} - r, err := c.ListAvailabilityDomains(context.Background(), request) - failIfError(t, err) - - items := r.Items - - assert.NotEmpty(t, items) - - return -} - -func TestIdentityClient_ListCompartments(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.ListCompartmentsRequest{CompartmentId: common.String(getTenancyID())} - r, err := c.ListCompartments(context.Background(), request) - failIfError(t, err) - - items := r.Items - - nextRequest := identity.ListCompartmentsRequest{CompartmentId: request.CompartmentId} - nextRequest.Page = r.OpcNextPage - - for nextRequest.Page != nil { - if r, err := c.ListCompartments(context.Background(), nextRequest); err == nil { - items = append(items, r.Items...) - nextRequest.Page = r.OpcNextPage - } else { - failIfError(t, err) - break - } - } - - assert.NotEmpty(t, items) - - return -} - -func TestIdentityClient_ListRegions(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - r, err := c.ListRegions(context.Background()) - verifyResponseIsValid(t, r, err) - assert.NotEmpty(t, r.Items) - return -} - -func TestIdentityClient_UpdateUserState(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - usr, usrErr := createTestUser(c) - failIfError(t, usrErr) - defer deleteTestUser(c, usr.Id) - - request := identity.UpdateUserStateRequest{} - request.UserId = usr.Id - request.Blocked = common.Bool(false) - - r, err := c.UpdateUserState(context.Background(), request) - verifyResponseIsValid(t, r, err) - - assert.Equal(t, identity.UserLifecycleStateActive, r.LifecycleState) - return -} - -// This test can only realistically be run once since once a region is subscribed to, there is no -// mechanism to unsubscribe to it. For now we will skip -func TestIdentityClient_CreateRegionSubscription(t *testing.T) { - t.Skip("SKIPPING: Region Subscriptions cannot be undone.") - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.CreateRegionSubscriptionRequest{} - request.TenancyId = common.String(getTenancyID()) - request.RegionKey = common.String("FRA") - r, err := c.CreateRegionSubscription(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestIdentityClient_ListRegionSubscriptions(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := identity.ListRegionSubscriptionsRequest{TenancyId: common.String(getTenancyID())} - r, err := c.ListRegionSubscriptions(context.Background(), request) - failIfError(t, err) - items := r.Items - assert.NotEmpty(t, items) - return -} - -func TestIdentityClient_ListFaultDomains(t *testing.T) { - c, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - availabilityDomain := validAD() - request := identity.ListFaultDomainsRequest{ - CompartmentId: common.String(getTenancyID()), - AvailabilityDomain: &availabilityDomain, - } - - r, err := c.ListFaultDomains(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r.Items) - return -} - -func TestBadHost(t *testing.T) { - client, clerr := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - client.Host = "badhostname" - response, err := client.ListRegions(context.Background()) - assert.Nil(t, response.RawResponse) - assert.Error(t, err) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/integtest/loadbalancer_client_integ_test.go b/vendor/github.com/oracle/oci-go-sdk/integtest/loadbalancer_client_integ_test.go deleted file mode 100644 index d56d84467..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/integtest/loadbalancer_client_integ_test.go +++ /dev/null @@ -1,353 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Load Balancing Service API -// -// API for the Load Balancing Service -// - -package integtest - -import ( - "context" - "fmt" - "testing" - - "github.com/oracle/oci-go-sdk/common" - "github.com/oracle/oci-go-sdk/loadbalancer" - "github.com/stretchr/testify/assert" -) - -func TestLoadBalancerClient_CreateBackend(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.CreateBackendRequest{} - _, err := c.CreateBackend(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_CreateBackendSet(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.CreateBackendSetRequest{} - _, err := c.CreateBackendSet(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_CreateCertificate(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.CreateCertificateRequest{} - _, err := c.CreateCertificate(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_CreateListener(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.CreateListenerRequest{} - _, err := c.CreateListener(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_CreateLoadBalancer(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.CreateLoadBalancerRequest{} - _, err := c.CreateLoadBalancer(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_DeleteBackend(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.DeleteBackendRequest{} - _, err := c.DeleteBackend(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_DeleteBackendSet(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.DeleteBackendSetRequest{} - _, err := c.DeleteBackendSet(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_DeleteCertificate(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.DeleteCertificateRequest{} - _, err := c.DeleteCertificate(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_DeleteListener(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.DeleteListenerRequest{} - _, err := c.DeleteListener(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_DeleteLoadBalancer(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.DeleteLoadBalancerRequest{} - _, err := c.DeleteLoadBalancer(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_GetBackend(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.GetBackendRequest{} - r, err := c.GetBackend(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_GetBackendHealth(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.GetBackendHealthRequest{} - r, err := c.GetBackendHealth(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_GetBackendSet(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.GetBackendSetRequest{} - r, err := c.GetBackendSet(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_GetBackendSetHealth(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.GetBackendSetHealthRequest{} - r, err := c.GetBackendSetHealth(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_GetHealthChecker(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.GetHealthCheckerRequest{} - r, err := c.GetHealthChecker(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_GetLoadBalancer(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.GetLoadBalancerRequest{} - r, err := c.GetLoadBalancer(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_GetLoadBalancerHealth(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.GetLoadBalancerHealthRequest{} - r, err := c.GetLoadBalancerHealth(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_GetWorkRequest(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.GetWorkRequestRequest{} - r, err := c.GetWorkRequest(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_ListBackendSets(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.ListBackendSetsRequest{} - r, err := c.ListBackendSets(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_ListBackends(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.ListBackendsRequest{} - r, err := c.ListBackends(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_ListCertificates(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.ListCertificatesRequest{} - r, err := c.ListCertificates(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_ListLoadBalancerHealths(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.ListLoadBalancerHealthsRequest{} - r, err := c.ListLoadBalancerHealths(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_ListLoadBalancers(t *testing.T) { - // make sure the list API will return at least one item - createOrGetLoadBalancer(t) - loadbalancers := listActiveLoadBalancers(t) - assert.NotEmpty(t, loadbalancers, fmt.Sprint(loadbalancers)) - return -} - -func TestLoadBalancerClient_ListPolicies(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.ListPoliciesRequest{} - r, err := c.ListPolicies(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_ListProtocols(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.ListProtocolsRequest{} - r, err := c.ListProtocols(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_ListShapes(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.ListShapesRequest{} - r, err := c.ListShapes(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_ListWorkRequests(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.ListWorkRequestsRequest{} - r, err := c.ListWorkRequests(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_UpdateBackend(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.UpdateBackendRequest{} - _, err := c.UpdateBackend(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_UpdateBackendSet(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.UpdateBackendSetRequest{} - _, err := c.UpdateBackendSet(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_UpdateHealthChecker(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.UpdateHealthCheckerRequest{} - _, err := c.UpdateHealthChecker(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_UpdateListener(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.UpdateListenerRequest{} - _, err := c.UpdateListener(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestLoadBalancerClient_UpdateLoadBalancer(t *testing.T) { - t.Skip("Not implemented") - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.UpdateLoadBalancerRequest{} - _, err := c.UpdateLoadBalancer(context.Background(), request) - assert.NoError(t, err) - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/integtest/objectstorage_client_integ_test.go b/vendor/github.com/oracle/oci-go-sdk/integtest/objectstorage_client_integ_test.go deleted file mode 100644 index 9329f1590..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/integtest/objectstorage_client_integ_test.go +++ /dev/null @@ -1,401 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Object Storage Service API -// -// APIs for managing buckets and objects. -// - -package integtest - -import ( - "github.com/oracle/oci-go-sdk/common" - "github.com/oracle/oci-go-sdk/objectstorage" - "context" - "fmt" - "github.com/stretchr/testify/assert" - "testing" - "io/ioutil" - "io" - "os" - "path" - "crypto/sha256" - "encoding/hex" - "compress/gzip" - "bytes" - "time" -) - - -func getNamespace(t *testing.T) string { - c, err := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - request := objectstorage.GetNamespaceRequest{} - r, err := c.GetNamespace(context.Background(), request) - failIfError(t, err) - return *r.Value -} - -func getObject(t *testing.T, namespace, bucketname, objectname string) (objectstorage.GetObjectResponse, error){ - c, _ := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - request := objectstorage.GetObjectRequest{ - NamespaceName: &namespace, - BucketName: &bucketname, - ObjectName: &objectname, - } - - return c.GetObject(context.Background(), request) -} - -func putObject(t *testing.T, namespace, bucketname, objectname string, contentLen int, content io.ReadCloser, metadata map[string]string) error { - c, _ := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - request := objectstorage.PutObjectRequest{ - NamespaceName: &namespace, - BucketName: &bucketname, - ObjectName: &objectname, - ContentLength:&contentLen, - PutObjectBody:content, - OpcMeta:metadata, - } - _, err := c.PutObject(context.Background(), request) - return err -} - -func createBucket(t *testing.T, namespace, compartment, name string){ - c, _ := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - request := objectstorage.CreateBucketRequest{ - NamespaceName:&namespace, - - } - request.CompartmentId = &compartment - request.Name = &name - request.Metadata = make(map[string]string) - request.PublicAccessType = objectstorage.CreateBucketDetailsPublicAccessTypeNopublicaccess - _, err := c.CreateBucket(context.Background(), request) - failIfError(t, err) - return -} - -func deleteBucket(t *testing.T, namespace, name string)(err error){ - c, _ := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - request := objectstorage.DeleteBucketRequest{ - NamespaceName:&namespace, - BucketName:&name, - } - _, err = c.DeleteBucket(context.Background(), request) - failIfError(t, err) - return -} - -func deleteObject(t *testing.T, namespace, bucketname, objectname string)(err error){ - c,_ := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - request := objectstorage.DeleteObjectRequest{ - NamespaceName:&namespace, - BucketName: &bucketname, - ObjectName:&objectname, - } - _, err = c.DeleteObject(context.Background(), request) - failIfError(t, err) - return -} - -func TestObjectStorageClient_GetNamespace(t *testing.T) { - namespace := getNamespace(t) - assert.NotEmpty(t, namespace) - return -} - - -func TestObjectStorageClient_BigFile(t *testing.T) { - bname := getUniqueName("largeBucket") - namespace := getNamespace(t) - - createBucket(t, getNamespace(t), getTenancyID(), bname) - defer deleteBucket(t, namespace, bname) - - contentlen := 1024 * 10000 - filepath, filesize, expectedHash := writeTempFileOfSize(int64(contentlen)) - filename := path.Base(filepath) - fmt.Println("uploading ", filepath) - defer removeFileFn(filepath) - file, e := os.Open(filepath) - defer file.Close() - failIfError(t, e) - - e = putObject(t, namespace , bname, filename, int(filesize), file, nil) - failIfError(t, e) - fmt.Println(expectedHash) - rGet, e := getObject(t, namespace, bname, filename) - failIfError(t, e) - defer deleteObject(t, namespace, bname, filename) - - h := sha256.New() - _, e = io.Copy(h, rGet.Content) - rGet.Content.Close() - actualHash := hex.EncodeToString(h.Sum(nil)) - assert.NoError(t, e) - assert.Equal(t, filesize, int64(*rGet.ContentLength)) - assert.Equal(t, "application/octet-stream", *rGet.ContentType) - assert.Equal(t, expectedHash, actualHash) -} - -func TestObjectStorage_GzipFileEncoding(t *testing.T) { - bname := getUniqueName("BucketWithZip") - objname := getUniqueName("gzippedcontent") - namespace := getNamespace(t) - - createBucket(t, getNamespace(t), getTenancyID(), bname) - defer deleteBucket(t, namespace, bname) - - - message := " some random content that will get gzipped" - zBytes := bytes.Buffer{} - gz := gzip.NewWriter(&zBytes) - gz.Write([]byte(message)) - gz.Close() - c, _ := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - request := objectstorage.PutObjectRequest{ - NamespaceName: &namespace, - BucketName: &bname, - ObjectName: &objname, - ContentLength:common.Int(zBytes.Len()), - PutObjectBody:ioutil.NopCloser(&zBytes), - ContentType:common.String("text/plain"), - ContentEncoding:common.String("gzip"), - } - _, e := c.PutObject(context.Background(), request) - defer deleteObject(t, namespace, bname, objname) - failIfError(t, e) - - response, e := getObject(t, namespace, bname, objname) - failIfError(t, e) - - //The file is served back by its Content-Type, thus it should not be gzipped anymore - content, e := ioutil.ReadAll(response.Content) - failIfError(t, e) - assert.Equal(t, message, string(content)) -} - -func TestObjectStorageClient_Object(t *testing.T) { - bname := getUniqueName("bucket") - data := "some temp data" - namespace := getNamespace(t) - - createBucket(t, getNamespace(t), getTenancyID(), bname) - defer deleteBucket(t, namespace, bname) - - contentlen := len([]byte(data)) - filepath := writeTempFile(data) - filename := path.Base(filepath) - defer removeFileFn(filepath) - file, e := os.Open(filepath) - defer file.Close() - failIfError(t, e) - metadata := make(map[string]string) - metadata["Test-VERSION"] = "TestOne" - e = putObject(t, namespace , bname, filename, contentlen, file, metadata) - failIfError(t, e) - - r, e := getObject(t, namespace, bname, filename) - - failIfError(t, e) - assert.Equal(t, "TestOne", r.OpcMeta["test-version"]) - defer deleteObject(t, namespace, bname, filename) - defer r.Content.Close() - bytes, e := ioutil.ReadAll(r.Content) - failIfError(t, e) - assert.Equal(t, contentlen, *r.ContentLength) - assert.Equal(t, data, string(bytes)) - return -} - - -func TestObjectStorageClient_AbortUpload(t *testing.T) { - bname := getUniqueName("abortUpload") - namespace := getNamespace(t) - - createBucket(t, getNamespace(t), getTenancyID(), bname) - defer deleteBucket(t, namespace, bname) - - contentlen := 1024 * 100 - filepath, filesize, _ := writeTempFileOfSize(int64(contentlen)) - filename := path.Base(filepath) - defer removeFileFn(filepath) - file, e := os.Open(filepath) - defer file.Close() - failIfError(t, e) - - c, _ := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - request := objectstorage.PutObjectRequest{ - NamespaceName: &namespace, - BucketName: &bname, - ObjectName: &filename, - ContentLength:common.Int(int(filesize)), - PutObjectBody:file, - } - ctx, cancelFn := context.WithTimeout(context.Background(), 10*time.Millisecond) - defer cancelFn() - _, e = c.PutObject(ctx, request) - assert.Error(t, e) -} - -func TestObjectStorageClient_AbortMultipartUpload(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.AbortMultipartUploadRequest{} - _, err := c.AbortMultipartUpload(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestObjectStorageClient_CommitMultipartUpload(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.CommitMultipartUploadRequest{} - _, err := c.CommitMultipartUpload(context.Background(), request) - assert.NoError(t, err) - return -} - - -func TestObjectStorageClient_CreateMultipartUpload(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.CreateMultipartUploadRequest{} - r, err := c.CreateMultipartUpload(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestObjectStorageClient_CreatePreauthenticatedRequest(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.CreatePreauthenticatedRequestRequest{} - r, err := c.CreatePreauthenticatedRequest(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestObjectStorageClient_DeletePreauthenticatedRequest(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.DeletePreauthenticatedRequestRequest{} - _, err := c.DeletePreauthenticatedRequest(context.Background(), request) - assert.NoError(t, err) - return -} - - -func TestObjectStorageClient_GetPreauthenticatedRequest(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.GetPreauthenticatedRequestRequest{} - r, err := c.GetPreauthenticatedRequest(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestObjectStorageClient_HeadBucket(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.HeadBucketRequest{} - _, err := c.HeadBucket(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestObjectStorageClient_HeadObject(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.HeadObjectRequest{} - _, err := c.HeadObject(context.Background(), request) - assert.NoError(t, err) - return -} - -func TestObjectStorageClient_ListBuckets(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.ListBucketsRequest{} - r, err := c.ListBuckets(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestObjectStorageClient_ListMultipartUploadParts(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.ListMultipartUploadPartsRequest{} - r, err := c.ListMultipartUploadParts(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestObjectStorageClient_ListMultipartUploads(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.ListMultipartUploadsRequest{} - r, err := c.ListMultipartUploads(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestObjectStorageClient_ListObjects(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.ListObjectsRequest{} - r, err := c.ListObjects(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestObjectStorageClient_ListPreauthenticatedRequests(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.ListPreauthenticatedRequestsRequest{} - r, err := c.ListPreauthenticatedRequests(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - - -func TestObjectStorageClient_UpdateBucket(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.UpdateBucketRequest{} - r, err := c.UpdateBucket(context.Background(), request) - assert.NotEmpty(t, r, fmt.Sprint(r)) - assert.NoError(t, err) - return -} - -func TestObjectStorageClient_UploadPart(t *testing.T) { - t.Skip("Not implemented") - c, e := objectstorage.NewObjectStorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, e) - request := objectstorage.UploadPartRequest{} - _, err := c.UploadPart(context.Background(), request) - assert.NoError(t, err) - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/integtest/resources/test_rsa.pub b/vendor/github.com/oracle/oci-go-sdk/integtest/resources/test_rsa.pub deleted file mode 100644 index 07334098f..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/integtest/resources/test_rsa.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPHqHMUO2EsFxe4DueKFFs8ljZ8W3gt8we+yNCNoGAbBk4xaGffPhW4ZovPtfpVQCwNC71rKik9mIsMUEc2llsSQOCaceq8HYJHa6iifhW+F5S4EYwCZj5lLVFmCjUWcDahs726cwSSSfEdqlq2PTFuOAFumuGH0UVVIvw7gYANHbYvFPb1JR4BArLX5gKQd3Wm3Hg0kIoazoJRNl6p6BouzM3bcQunmaVEKmPdMhI+BZ5138tqdwvrQl+TH/GFOqFtyapKnDcewM1dsL5QxKozCr3xZe+aQov//0JTD4tgQd5I59vBZIz7Z1aH6brvDLOUCvXJdeU87eDuWvjMVjD test@machine \ No newline at end of file diff --git a/vendor/github.com/oracle/oci-go-sdk/integtest/sampleFederationMetadata.xml b/vendor/github.com/oracle/oci-go-sdk/integtest/sampleFederationMetadata.xml deleted file mode 100644 index f0bc88563..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/integtest/sampleFederationMetadata.xml +++ /dev/null @@ -1 +0,0 @@ -Nnoch3KDkotDXLYqR3idq2aQPV8kcJKxU/+NgxjXfHM=k83j5cRMsFXFY2IqE93hvDofZ0CWA8WFig1pBU+QCxyqP5vzOGs2GL8wUtLInVOM7MaIwddEvLv1NBl0114/7rAuf7XOXYTIdBcgQL18WC9ZXi3+dXIo8P+VNSzZEZ2LLBewkokQVAZ8zsUkjSYmbgJjH6PrnfHFnCtBi85zn9qOicyfbvUwTbHLKd5De0lF81Ii3g3FArMxULdVnGJhnn51OQtUWLyKzIeEAW1VkrcRU1XVDWes1cWw7KsFblc/qATcVavZsxX2ysWuRojVx4VeYrQKmVsesdxxmv5XeT8XAdN4nsrus7sILt6E/KMjBmCGA0raMTTuXikL5lEbkQ==MIIC+DCCAeCgAwIBAgIQeUOjpIiIk4JPGEtb4dg/UDANBgkqhkiG9w0BAQsFADA4MTYwNAYDVQQDEy1BREZTIFNpZ25pbmcgLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wHhcNMTcwNjAxMTQ0NDQyWhcNMTgwNjAxMTQ0NDQyWjA4MTYwNAYDVQQDEy1BREZTIFNpZ25pbmcgLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtImPvgswqcpcJuaCnSMAKQre9617pcG0DZR8I2+MUDy/WUmOUi/fWxTk3/NBL4MWHrwffR4TtcyCCDwk3phtIP+uoMVgWDwerq7O0zlv25PycYGexp5zum0InXABtNZhvNgBG/NCsczJrI9CpUGQPv9XVAijvwen2puYtft1tTYcUO5zYariwaiQOXSGIlUVFWO4YfT+QA/BL7EgzHzsiyVAbvIPtT3xM0JkyPIb0GFpzhoV1nSevcJNL7eXks9TC+c3vEfes9hrtYI/T+UrtYqNLjfWw3Lg1+CVI10xTYglNi1ukHFcNlQf3aoRol1SLOhlITbAnzvOhW0ruScC1AgMBAAEwDQYJKoZIhvcNAQELBQADggEBAFQuQhoXo5mfTH/IytRyomOQOghUkadk9KohOLkdNXr4yXaNXOEFUg4k/TYw9uEW9XINfcaxDnaidGo8UiB4+BKW7fo2fxhybjor+AK+q+hnlHrWiHiCODxlCdwyFF+Barn3u0mjvSIf2/HtOaIlc1y2luU2cnW5vVOq+nbzbUyhca72RAqu/obPgm6m98de+CwenDmuJvr8Yh0KNtfYmZm86nqH4yK2gbRN9xk5pX2HAG9gm9q3M06W5C8yhAb+6zhIQXV3sUpegCUdfZA9+OQnkEGD8vu/XBLnbv0VAylN+++xjBByVGUeIjIz4er2oSOe1R1VBPPre3kD0FA8vzY=MIIC/jCCAeagAwIBAgIQZSZ9V9byhqFAjtjz7ZKkAjANBgkqhkiG9w0BAQsFADA7MTkwNwYDVQQDEzBBREZTIEVuY3J5cHRpb24gLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wHhcNMTcwNjAxMTQ0NDQyWhcNMTgwNjAxMTQ0NDQyWjA7MTkwNwYDVQQDEzBBREZTIEVuY3J5cHRpb24gLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQD6SQAYaGwTC94iMFX7lp6ymAoZzlFGfUpdOwbJOFkWl5QV1E5au2kTAI82F1fof1T36+VaP11aq3gqp0XmVQOR7XH4vatFdnUWMC9U0s4GtNgJYTLwkuiLCTm5dBaOFZGgUrA10RcTIOgStJj9lGnMY/o7TWl1J9cDZiXKLOz1YchILRvFJ2uZEfFSnMEqcZY7Z1wxCUKabd7jKlpyZG7aTiYHZTHFjPa5cnveO+TpGgRKojqLM4A1wKIQufAFEInqC/byvns3MblToxfm9zhVWd/L7WMkT6jUjINcHLw4+ju6KMJIaFcF0NYZPdSZCJvRMJNg+dJ2BiE1II82YPHTAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAMAXUDWgPY990W3sP+2uAbOpOxR/lqHk6PKLsrpK47tfcMakn0uPiV5oQcUQbdBhqmMA4aetpi+VjJ/YnCumFWfDort6BerS971Fu60YduzxPYNw/OhXTJjVtQ86ORKat2DioVZsHlHG+MedR01p4yhYvDm8ZkcvSqfmT+EUym9Ywfe4dxmb3BClG0Qs8kSoMBjm7CavIRiG5cK3gaVLanaizh+pe35Mhgd0wxAa5mr9f5j82bdP3/6okfdogr5QTZmk46bYiDiOJ7QRjvFPMmJg353/RP195pd5WqKZ+pOzUtVIUYziBjjOE5eS9qYTQn8cRoSMvnt3m/BokRSgUdo=E-Mail AddressThe e-mail address of the userGiven NameThe given name of the userNameThe unique name of the userUPNThe user principal name (UPN) of the userCommon NameThe common name of the userAD FS 1.x E-Mail AddressThe e-mail address of the user when interoperating with AD FS 1.1 or AD FS 1.0GroupA group that the user is a member ofAD FS 1.x UPNThe UPN of the user when interoperating with AD FS 1.1 or AD FS 1.0RoleA role that the user hasSurnameThe surname of the userPPIDThe private identifier of the userName IDThe SAML name identifier of the userAuthentication time stampUsed to display the time and date that the user was authenticatedAuthentication methodThe method used to authenticate the userDeny only group SIDThe deny-only group SID of the userDeny only primary SIDThe deny-only primary SID of the userDeny only primary group SIDThe deny-only primary group SID of the userGroup SIDThe group SID of the userPrimary group SIDThe primary group SID of the userPrimary SIDThe primary SID of the userWindows account nameThe domain account name of the user in the form of domain\userIs Registered UserUser is registered to use this deviceDevice IdentifierIdentifier of the deviceDevice Registration IdentifierIdentifier for Device RegistrationDevice Registration DisplayNameDisplay name of Device RegistrationDevice OS typeOS type of the deviceDevice OS VersionOS version of the deviceIs Managed DeviceDevice is managed by a management serviceForwarded Client IPIP address of the userClient ApplicationType of the Client ApplicationClient User AgentDevice type the client is using to access the applicationClient IPIP address of the clientEndpoint PathAbsolute Endpoint path which can be used to determine active versus passive clientsProxyDNS name of the federation server proxy that passed the requestApplication IdentifierIdentifier for the Relying PartyApplication policiesApplication policies of the certificateAuthority Key IdentifierThe Authority Key Identifier extension of the certificate that signed an issued certificateBasic ConstraintOne of the basic constraints of the certificateEnhanced Key UsageDescribes one of the enhanced key usages of the certificateIssuerThe name of the certificate authority that issued the X.509 certificateIssuer NameThe distinguished name of the certificate issuerKey UsageOne of the key usages of the certificateNot AfterDate in local time after which a certificate is no longer validNot BeforeThe date in local time on which a certificate becomes validCertificate PoliciesThe policies under which the certificate has been issuedPublic KeyPublic Key of the certificateCertificate Raw DataThe raw data of the certificateSubject Alternative NameOne of the alternative names of the certificateSerial NumberThe serial number of a certificateSignature AlgorithmThe algorithm used to create the signature of a certificateSubjectThe subject from the certificateSubject Key IdentifierDescribes the subject key identifier of the certificateSubject NameThe subject distinguished name from a certificateV2 Template NameThe name of the version 2 certificate template used when issuing or renewing a certificate. The extension is Microsoft specific.V1 Template NameThe name of the version 1 certificate template used when issuing or renewing a certificate. The extension is Microsoft specific.ThumbprintThumbprint of the certificateX.509 VersionThe X.509 format version of a certificateInside Corporate NetworkUsed to indicate if a request originated inside corporate networkPassword Expiration TimeUsed to display the time when the password expiresPassword Expiration DaysUsed to display the number of days to password expiryUpdate Password URLUsed to display the web address of update password serviceAuthentication Methods ReferencesUsed to indicate all authentication methods used to authenticate the userClient Request IDIdentifier for a user sessionAlternate Login IDAlternate login ID of the user
https://instance2017053.oracletest.com/adfs/services/trust/2005/issuedtokenmixedasymmetricbasic256
https://instance2017053.oracletest.com/adfs/services/trust/2005/issuedtokenmixedsymmetricbasic256
https://instance2017053.oracletest.com/adfs/services/trust/13/issuedtokenmixedasymmetricbasic256
https://instance2017053.oracletest.com/adfs/services/trust/13/issuedtokenmixedsymmetricbasic256
https://instance2017053.oracletest.com/adfs/ls/
http://instance2017053.oracletest.com/adfs/services/trust
https://instance2017053.oracletest.com/adfs/services/trust/2005/issuedtokenmixedasymmetricbasic256
https://instance2017053.oracletest.com/adfs/ls/
MIIC+DCCAeCgAwIBAgIQeUOjpIiIk4JPGEtb4dg/UDANBgkqhkiG9w0BAQsFADA4MTYwNAYDVQQDEy1BREZTIFNpZ25pbmcgLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wHhcNMTcwNjAxMTQ0NDQyWhcNMTgwNjAxMTQ0NDQyWjA4MTYwNAYDVQQDEy1BREZTIFNpZ25pbmcgLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtImPvgswqcpcJuaCnSMAKQre9617pcG0DZR8I2+MUDy/WUmOUi/fWxTk3/NBL4MWHrwffR4TtcyCCDwk3phtIP+uoMVgWDwerq7O0zlv25PycYGexp5zum0InXABtNZhvNgBG/NCsczJrI9CpUGQPv9XVAijvwen2puYtft1tTYcUO5zYariwaiQOXSGIlUVFWO4YfT+QA/BL7EgzHzsiyVAbvIPtT3xM0JkyPIb0GFpzhoV1nSevcJNL7eXks9TC+c3vEfes9hrtYI/T+UrtYqNLjfWw3Lg1+CVI10xTYglNi1ukHFcNlQf3aoRol1SLOhlITbAnzvOhW0ruScC1AgMBAAEwDQYJKoZIhvcNAQELBQADggEBAFQuQhoXo5mfTH/IytRyomOQOghUkadk9KohOLkdNXr4yXaNXOEFUg4k/TYw9uEW9XINfcaxDnaidGo8UiB4+BKW7fo2fxhybjor+AK+q+hnlHrWiHiCODxlCdwyFF+Barn3u0mjvSIf2/HtOaIlc1y2luU2cnW5vVOq+nbzbUyhca72RAqu/obPgm6m98de+CwenDmuJvr8Yh0KNtfYmZm86nqH4yK2gbRN9xk5pX2HAG9gm9q3M06W5C8yhAb+6zhIQXV3sUpegCUdfZA9+OQnkEGD8vu/XBLnbv0VAylN+++xjBByVGUeIjIz4er2oSOe1R1VBPPre3kD0FA8vzY=E-Mail AddressThe e-mail address of the userGiven NameThe given name of the userNameThe unique name of the userUPNThe user principal name (UPN) of the userCommon NameThe common name of the userAD FS 1.x E-Mail AddressThe e-mail address of the user when interoperating with AD FS 1.1 or AD FS 1.0GroupA group that the user is a member ofAD FS 1.x UPNThe UPN of the user when interoperating with AD FS 1.1 or AD FS 1.0RoleA role that the user hasSurnameThe surname of the userPPIDThe private identifier of the userName IDThe SAML name identifier of the userAuthentication time stampUsed to display the time and date that the user was authenticatedAuthentication methodThe method used to authenticate the userDeny only group SIDThe deny-only group SID of the userDeny only primary SIDThe deny-only primary SID of the userDeny only primary group SIDThe deny-only primary group SID of the userGroup SIDThe group SID of the userPrimary group SIDThe primary group SID of the userPrimary SIDThe primary SID of the userWindows account nameThe domain account name of the user in the form of domain\userIs Registered UserUser is registered to use this deviceDevice IdentifierIdentifier of the deviceDevice Registration IdentifierIdentifier for Device RegistrationDevice Registration DisplayNameDisplay name of Device RegistrationDevice OS typeOS type of the deviceDevice OS VersionOS version of the deviceIs Managed DeviceDevice is managed by a management serviceForwarded Client IPIP address of the userClient ApplicationType of the Client ApplicationClient User AgentDevice type the client is using to access the applicationClient IPIP address of the clientEndpoint PathAbsolute Endpoint path which can be used to determine active versus passive clientsProxyDNS name of the federation server proxy that passed the requestApplication IdentifierIdentifier for the Relying PartyApplication policiesApplication policies of the certificateAuthority Key IdentifierThe Authority Key Identifier extension of the certificate that signed an issued certificateBasic ConstraintOne of the basic constraints of the certificateEnhanced Key UsageDescribes one of the enhanced key usages of the certificateIssuerThe name of the certificate authority that issued the X.509 certificateIssuer NameThe distinguished name of the certificate issuerKey UsageOne of the key usages of the certificateNot AfterDate in local time after which a certificate is no longer validNot BeforeThe date in local time on which a certificate becomes validCertificate PoliciesThe policies under which the certificate has been issuedPublic KeyPublic Key of the certificateCertificate Raw DataThe raw data of the certificateSubject Alternative NameOne of the alternative names of the certificateSerial NumberThe serial number of a certificateSignature AlgorithmThe algorithm used to create the signature of a certificateSubjectThe subject from the certificateSubject Key IdentifierDescribes the subject key identifier of the certificateSubject NameThe subject distinguished name from a certificateV2 Template NameThe name of the version 2 certificate template used when issuing or renewing a certificate. The extension is Microsoft specific.V1 Template NameThe name of the version 1 certificate template used when issuing or renewing a certificate. The extension is Microsoft specific.ThumbprintThumbprint of the certificateX.509 VersionThe X.509 format version of a certificateInside Corporate NetworkUsed to indicate if a request originated inside corporate networkPassword Expiration TimeUsed to display the time when the password expiresPassword Expiration DaysUsed to display the number of days to password expiryUpdate Password URLUsed to display the web address of update password serviceAuthentication Methods ReferencesUsed to indicate all authentication methods used to authenticate the userClient Request IDIdentifier for a user sessionAlternate Login IDAlternate login ID of the user
https://instance2017053.oracletest.com/adfs/services/trust/2005/certificatemixed
https://instance2017053.oracletest.com/adfs/services/trust/mex
https://instance2017053.oracletest.com/adfs/ls/
MIIC/jCCAeagAwIBAgIQZSZ9V9byhqFAjtjz7ZKkAjANBgkqhkiG9w0BAQsFADA7MTkwNwYDVQQDEzBBREZTIEVuY3J5cHRpb24gLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wHhcNMTcwNjAxMTQ0NDQyWhcNMTgwNjAxMTQ0NDQyWjA7MTkwNwYDVQQDEzBBREZTIEVuY3J5cHRpb24gLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQD6SQAYaGwTC94iMFX7lp6ymAoZzlFGfUpdOwbJOFkWl5QV1E5au2kTAI82F1fof1T36+VaP11aq3gqp0XmVQOR7XH4vatFdnUWMC9U0s4GtNgJYTLwkuiLCTm5dBaOFZGgUrA10RcTIOgStJj9lGnMY/o7TWl1J9cDZiXKLOz1YchILRvFJ2uZEfFSnMEqcZY7Z1wxCUKabd7jKlpyZG7aTiYHZTHFjPa5cnveO+TpGgRKojqLM4A1wKIQufAFEInqC/byvns3MblToxfm9zhVWd/L7WMkT6jUjINcHLw4+ju6KMJIaFcF0NYZPdSZCJvRMJNg+dJ2BiE1II82YPHTAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAMAXUDWgPY990W3sP+2uAbOpOxR/lqHk6PKLsrpK47tfcMakn0uPiV5oQcUQbdBhqmMA4aetpi+VjJ/YnCumFWfDort6BerS971Fu60YduzxPYNw/OhXTJjVtQ86ORKat2DioVZsHlHG+MedR01p4yhYvDm8ZkcvSqfmT+EUym9Ywfe4dxmb3BClG0Qs8kSoMBjm7CavIRiG5cK3gaVLanaizh+pe35Mhgd0wxAa5mr9f5j82bdP3/6okfdogr5QTZmk46bYiDiOJ7QRjvFPMmJg353/RP195pd5WqKZ+pOzUtVIUYziBjjOE5eS9qYTQn8cRoSMvnt3m/BokRSgUdo=MIIC+DCCAeCgAwIBAgIQeUOjpIiIk4JPGEtb4dg/UDANBgkqhkiG9w0BAQsFADA4MTYwNAYDVQQDEy1BREZTIFNpZ25pbmcgLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wHhcNMTcwNjAxMTQ0NDQyWhcNMTgwNjAxMTQ0NDQyWjA4MTYwNAYDVQQDEy1BREZTIFNpZ25pbmcgLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtImPvgswqcpcJuaCnSMAKQre9617pcG0DZR8I2+MUDy/WUmOUi/fWxTk3/NBL4MWHrwffR4TtcyCCDwk3phtIP+uoMVgWDwerq7O0zlv25PycYGexp5zum0InXABtNZhvNgBG/NCsczJrI9CpUGQPv9XVAijvwen2puYtft1tTYcUO5zYariwaiQOXSGIlUVFWO4YfT+QA/BL7EgzHzsiyVAbvIPtT3xM0JkyPIb0GFpzhoV1nSevcJNL7eXks9TC+c3vEfes9hrtYI/T+UrtYqNLjfWw3Lg1+CVI10xTYglNi1ukHFcNlQf3aoRol1SLOhlITbAnzvOhW0ruScC1AgMBAAEwDQYJKoZIhvcNAQELBQADggEBAFQuQhoXo5mfTH/IytRyomOQOghUkadk9KohOLkdNXr4yXaNXOEFUg4k/TYw9uEW9XINfcaxDnaidGo8UiB4+BKW7fo2fxhybjor+AK+q+hnlHrWiHiCODxlCdwyFF+Barn3u0mjvSIf2/HtOaIlc1y2luU2cnW5vVOq+nbzbUyhca72RAqu/obPgm6m98de+CwenDmuJvr8Yh0KNtfYmZm86nqH4yK2gbRN9xk5pX2HAG9gm9q3M06W5C8yhAb+6zhIQXV3sUpegCUdfZA9+OQnkEGD8vu/XBLnbv0VAylN+++xjBByVGUeIjIz4er2oSOe1R1VBPPre3kD0FA8vzY=urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddressurn:oasis:names:tc:SAML:2.0:nameid-format:persistenturn:oasis:names:tc:SAML:2.0:nameid-format:transientMIIC/jCCAeagAwIBAgIQZSZ9V9byhqFAjtjz7ZKkAjANBgkqhkiG9w0BAQsFADA7MTkwNwYDVQQDEzBBREZTIEVuY3J5cHRpb24gLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wHhcNMTcwNjAxMTQ0NDQyWhcNMTgwNjAxMTQ0NDQyWjA7MTkwNwYDVQQDEzBBREZTIEVuY3J5cHRpb24gLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQD6SQAYaGwTC94iMFX7lp6ymAoZzlFGfUpdOwbJOFkWl5QV1E5au2kTAI82F1fof1T36+VaP11aq3gqp0XmVQOR7XH4vatFdnUWMC9U0s4GtNgJYTLwkuiLCTm5dBaOFZGgUrA10RcTIOgStJj9lGnMY/o7TWl1J9cDZiXKLOz1YchILRvFJ2uZEfFSnMEqcZY7Z1wxCUKabd7jKlpyZG7aTiYHZTHFjPa5cnveO+TpGgRKojqLM4A1wKIQufAFEInqC/byvns3MblToxfm9zhVWd/L7WMkT6jUjINcHLw4+ju6KMJIaFcF0NYZPdSZCJvRMJNg+dJ2BiE1II82YPHTAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAMAXUDWgPY990W3sP+2uAbOpOxR/lqHk6PKLsrpK47tfcMakn0uPiV5oQcUQbdBhqmMA4aetpi+VjJ/YnCumFWfDort6BerS971Fu60YduzxPYNw/OhXTJjVtQ86ORKat2DioVZsHlHG+MedR01p4yhYvDm8ZkcvSqfmT+EUym9Ywfe4dxmb3BClG0Qs8kSoMBjm7CavIRiG5cK3gaVLanaizh+pe35Mhgd0wxAa5mr9f5j82bdP3/6okfdogr5QTZmk46bYiDiOJ7QRjvFPMmJg353/RP195pd5WqKZ+pOzUtVIUYziBjjOE5eS9qYTQn8cRoSMvnt3m/BokRSgUdo=MIIC+DCCAeCgAwIBAgIQeUOjpIiIk4JPGEtb4dg/UDANBgkqhkiG9w0BAQsFADA4MTYwNAYDVQQDEy1BREZTIFNpZ25pbmcgLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wHhcNMTcwNjAxMTQ0NDQyWhcNMTgwNjAxMTQ0NDQyWjA4MTYwNAYDVQQDEy1BREZTIFNpZ25pbmcgLSBpbnN0YW5jZTIwMTcwNTMub3JhY2xldGVzdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtImPvgswqcpcJuaCnSMAKQre9617pcG0DZR8I2+MUDy/WUmOUi/fWxTk3/NBL4MWHrwffR4TtcyCCDwk3phtIP+uoMVgWDwerq7O0zlv25PycYGexp5zum0InXABtNZhvNgBG/NCsczJrI9CpUGQPv9XVAijvwen2puYtft1tTYcUO5zYariwaiQOXSGIlUVFWO4YfT+QA/BL7EgzHzsiyVAbvIPtT3xM0JkyPIb0GFpzhoV1nSevcJNL7eXks9TC+c3vEfes9hrtYI/T+UrtYqNLjfWw3Lg1+CVI10xTYglNi1ukHFcNlQf3aoRol1SLOhlITbAnzvOhW0ruScC1AgMBAAEwDQYJKoZIhvcNAQELBQADggEBAFQuQhoXo5mfTH/IytRyomOQOghUkadk9KohOLkdNXr4yXaNXOEFUg4k/TYw9uEW9XINfcaxDnaidGo8UiB4+BKW7fo2fxhybjor+AK+q+hnlHrWiHiCODxlCdwyFF+Barn3u0mjvSIf2/HtOaIlc1y2luU2cnW5vVOq+nbzbUyhca72RAqu/obPgm6m98de+CwenDmuJvr8Yh0KNtfYmZm86nqH4yK2gbRN9xk5pX2HAG9gm9q3M06W5C8yhAb+6zhIQXV3sUpegCUdfZA9+OQnkEGD8vu/XBLnbv0VAylN+++xjBByVGUeIjIz4er2oSOe1R1VBPPre3kD0FA8vzY=urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddressurn:oasis:names:tc:SAML:2.0:nameid-format:persistenturn:oasis:names:tc:SAML:2.0:nameid-format:transient
\ No newline at end of file diff --git a/vendor/github.com/oracle/oci-go-sdk/integtest/test_helpers.go b/vendor/github.com/oracle/oci-go-sdk/integtest/test_helpers.go deleted file mode 100644 index 3a0ab47fa..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/integtest/test_helpers.go +++ /dev/null @@ -1,304 +0,0 @@ -package integtest - -import ( - "context" - "crypto/sha256" - "encoding/hex" - "fmt" - "io" - "io/ioutil" - "math/rand" - "os" - "os/exec" - "reflect" - "strconv" - "strings" - "testing" - "time" - - "github.com/oracle/oci-go-sdk/common" - "github.com/oracle/oci-go-sdk/identity" - "github.com/stretchr/testify/assert" -) - -const ( - GoSDK2_Test_Prefix = "GOSDK2_Test_" - ENV_TENANCY_OCID = "tenancy_ocid" - ENV_USER_OCID = "user_ocid" - ENV_COMPARTMENT_OCID = "compartment_ocid" - ENV_GROUP_OCID = "group_ocid" - ENV_REGION = "region" - ENV_RUN_EXPENSIVE_TESTS = "gosdk_run_expensive_tests" - - DEF_ROOT_COMPARTMENT_ID = "ocidv1:tenancy:oc1:phx:1460406592660:aaaaaaaab4faofrfkxecohhjuivjq262pu" - DEF_USER_ID = "ocid1.user.oc1..aaaaaaaav6gsclr6pd4yjqengmriylyck55lvon5ujjnhkok5gyxii34lvra" - DEF_COMPARTMENT_ID = "ocid1.compartment.oc1..aaaaaaaa5dvrjzvfn3rub24nczhih3zb3a673b6tmbvpng3j5apobtxshlma" - DEF_GROUP_ID = "ocid1.group.oc1..aaaaaaaayvxomawkk23wkp32cgdufufgqvx62qanmbn6vs3lv65xuc42r5sq" - DEF_REGION = common.RegionPHX - DEF_RUN_EXPENSIVE_TESTS = "false" -) - -func getEnvSetting(s string, defaultValue string) string { - val := os.Getenv("TF_VAR_" + s) - if val != "" { - return val - } - val = os.Getenv("OCI_" + s) - if val != "" { - return val - } - val = os.Getenv(s) - if val != "" { - return val - } - return defaultValue -} - -// For now we will just use the default value if the env var is not set -// Eventually, certain values (TenancyID, UserID, etc.) may be required -//func getRequiredEnvSetting(s string) string { -// val := getEnvSetting(s, "") -// if val == "" { -// panic(fmt.Sprintf("Required env setting %s is missing", s)) -// } -// return v -//} - -func getTenancyID() string { - return getEnvSetting(ENV_TENANCY_OCID, DEF_ROOT_COMPARTMENT_ID) -} - -func getUserID() string { - return getEnvSetting(ENV_USER_OCID, DEF_USER_ID) -} - -func getCompartmentID() string { - return getEnvSetting(ENV_COMPARTMENT_OCID, DEF_COMPARTMENT_ID) -} - -func getGroupID() string { - return getEnvSetting(ENV_GROUP_OCID, DEF_GROUP_ID) -} - -func getRegion() common.Region { - region := getEnvSetting(ENV_REGION, "") - - if region != "" { - return common.StringToRegion(region) - } - - return DEF_REGION -} - -// if return true, make test command will include all tests (including the expensive ones. i.e. launch database) -func getRunExpensiveTests() bool { - config := getEnvSetting(ENV_RUN_EXPENSIVE_TESTS, DEF_RUN_EXPENSIVE_TESTS) - includeExpensiveTests, err := strconv.ParseBool(config) - - if err != nil { - return false - } - - return includeExpensiveTests -} - -//Panics on error -func panicIfError(t *testing.T, err error) { - if err != nil { - t.Fail() - panic(err) - } -} - -//Fails the test on error -func failIfError(t *testing.T, e error) { - if e != nil { - t.Error(e) - t.FailNow() - } -} - -// Retries a function until the predicate is true or it reaches a timeout. -// The operation is retried at the give frequency -func retryUntilTrueOrError(operation func() (interface{}, error), predicate func(interface{}) (bool, error), frequency, timeout <-chan time.Time) error { - for { - select { - case <-timeout: - return fmt.Errorf("timeout reached") - case <-frequency: - result, err := operation() - if err != nil { - return err - } - - isTrue, err := predicate(result) - if err != nil { - return err - } - - if isTrue { - return nil - } - } - } -} - -//Finds lifecycle value inside the struct based on reflection -func findLifecycleFieldValue(request interface{}) (string, error) { - val := reflect.ValueOf(request) - if val.Kind() == reflect.Ptr { - if val.IsNil() { - return "", fmt.Errorf("can not unmarshal to response a pointer to nil structure") - } - val = val.Elem() - } - - var err error - typ := val.Type() - for i := 0; i < typ.NumField(); i++ { - if err != nil { - return "", err - } - - sf := typ.Field(i) - - //unexported - if sf.PkgPath != "" { - continue - } - - sv := val.Field(i) - - if sv.Kind() == reflect.Struct { - lif, err := findLifecycleFieldValue(sv.Interface()) - if err == nil { - return lif, nil - } - } - if !strings.Contains(strings.ToLower(sf.Name), "lifecycle") { - continue - } - return sv.String(), nil - } - return "", fmt.Errorf("request does not have a lifecycle field") -} - -//Returns a function that checks for that a struct has the given lifecycle -func checkLifecycleState(lifecycleState string) func(interface{}) (bool, error) { - return func(request interface{}) (bool, error) { - fieldLifecycle, err := findLifecycleFieldValue(request) - if err != nil { - return false, err - } - isEqual := fieldLifecycle == lifecycleState - return isEqual, nil - } -} - -func removeFileFn(filename string) func() { - return func() { - os.Remove(filename) - } -} - -func writeTempFile(data string) (filename string) { - f, _ := ioutil.TempFile("", "gosdkTestintegtest") - defer f.Close() - f.WriteString(data) - filename = f.Name() - return -} - -func writeTempFileOfSize(filesize int64) (fileName string, fileSize int64, contentHash string) { - hash := sha256.New() - f, _ := ioutil.TempFile("", "gosdkTestintegtest") - ra := rand.New(rand.NewSource(time.Now().UnixNano())) - defer f.Close() - writer := io.MultiWriter(f, hash) - written, _ := io.CopyN(writer, ra, filesize) - fileName = f.Name() - fileSize = written - contentHash = hex.EncodeToString(hash.Sum(nil)) - return -} - -func getUuid() string { - output, err := exec.Command("uuidgen").Output() - if err != nil { - panic(err) - } - trimmed := strings.TrimSuffix(string(output), "\n") - return trimmed -} - -func getUniqueName(base string) string { - return fmt.Sprintf("%s%s%s", GoSDK2_Test_Prefix, base, getUuid()) -} - -func verifyResponseIsValid(t *testing.T, response interface{}, err error) { - assert.NotEmpty(t, response, fmt.Sprint(response)) - assert.NoError(t, err) -} - -func createTestUser(client identity.IdentityClient) (identity.User, error) { - req := identity.CreateUserRequest{} - req.CompartmentId = common.String(getTenancyID()) - req.Name = common.String(getUniqueName("AUTG_User_")) - req.Description = common.String("GoSDK Test User") - rsp, err := client.CreateUser(context.Background(), req) - return rsp.User, err -} - -func deleteTestUser(client identity.IdentityClient, userID *string) error { - req := identity.DeleteUserRequest{UserId: userID} - _, err := client.DeleteUser(context.Background(), req) - return err -} - -func validAD() string { - c, _ := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - req := identity.ListAvailabilityDomainsRequest{} - req.CompartmentId = common.String(getCompartmentID()) - response, _ := c.ListAvailabilityDomains(context.Background(), req) - return *response.Items[0].Name -} - -func readSampleFederationMetadata(t *testing.T) string { - bytes, e := ioutil.ReadFile("sampleFederationMetadata.xml") - failIfError(t, e) - return string(bytes) -} - -func createTestGroup(client identity.IdentityClient) (identity.Group, error) { - req := identity.CreateGroupRequest{} - req.CompartmentId = common.String(getTenancyID()) - req.Name = common.String(getUniqueName("Test_Group_")) - req.Description = common.String("Go SDK Test Group") - rsp, err := client.CreateGroup(context.Background(), req) - return rsp.Group, err -} - -func deleteTestGroup(client identity.IdentityClient, groupId *string) error { - req := identity.DeleteGroupRequest{GroupId: groupId} - _, err := client.DeleteGroup(context.Background(), req) - return err -} - -func readTestPubKey() ([]byte, error) { - pwd, err := os.Getwd() - if err != nil { - return nil, err - } - - return ioutil.ReadFile(pwd + "/resources/test_rsa.pub") -} - -func getRandomString(n int) string { - letters := []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") - - b := make([]rune, n) - for i := range b { - b[i] = letters[rand.Intn(len(letters))] - } - return string(b) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/integtest/test_service_deps_helpers.go b/vendor/github.com/oracle/oci-go-sdk/integtest/test_service_deps_helpers.go deleted file mode 100644 index 2fe2318e0..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/integtest/test_service_deps_helpers.go +++ /dev/null @@ -1,942 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// APIs for Networking Service, Compute Service, and Block Volume Service. -// - -package integtest - -import ( - "context" - "fmt" - "testing" - "time" - - "github.com/stretchr/testify/assert" - - "github.com/oracle/oci-go-sdk/common" - "github.com/oracle/oci-go-sdk/core" - "github.com/oracle/oci-go-sdk/identity" - "github.com/oracle/oci-go-sdk/loadbalancer" -) - -const ( - vcnDisplayName = "GOSDK2_Test_Deps_VCN" - subnetDisplayName1 = "GOSDK2_Test_Deps_Subnet1" - subnetDisplayName2 = "GOSDK2_Test_Deps_Subnet2" - instanceDisplayName = "GOSDK2_Test_Deps_Instance" - consoleHistoryDisplayName = "GOSDK2_Test_Deps_ConsoleHistory" - crossConnectDisplayName = "GOSDK2_Test_Deps_CrossConnect" - crossConnectGroupDisplayName = "GOSDK2_Test_Deps_CrossConnectGroup" - peeringGatewaysDisplayName = "GOSDK2_Test_Deps_LocalPeeringGateway" - virtualCircuitDisplayName = "GOSDK2_Test_Deps_VirtualCircuits" - dbSystemDisplayName = "GOSDK2_Test_Deps_DatabaseSystem" - dbHomeDisplayName = "GOSDK2_Test_Deps_DatabaseHome" - loadbalancerDisplayName = "GOSDK2_Test_Deps_Loadbalancer" - volumeDisplayName = "GOSDK2_Test_Deps_Volume" -) - -// a helper method to either create a new vcn or get the one already exist -// this will be used by the test cases which depends on vcn -func createOrGetVcn(t *testing.T) core.Vcn { - vcnItems := listVcns(t) - - for _, element := range vcnItems { - if *element.DisplayName == vcnDisplayName { - assert.NotEmpty(t, element.Id) - - // VCN already created, return it - return element - } - } - - // create a new VCN - // Notes: here will not destroy it. so for test cases depends on VCN can reuse it in next run - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.CreateVcnRequest{} - request.CidrBlock = common.String("10.0.0.0/16") - request.CompartmentId = common.String(getCompartmentID()) - request.DisplayName = common.String(vcnDisplayName) - request.DnsLabel = common.String("vcndns") - - r, err := c.CreateVcn(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r.Vcn) - return r.Vcn -} - -func listVcns(t *testing.T) []core.Vcn { - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListVcnsRequest{ - CompartmentId: common.String(getCompartmentID()), - } - - r, err := c.ListVcns(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r) - return r.Items -} - -func createOrGetSubnet(t *testing.T) core.Subnet { - return createOrGetSubnetWithDetails( - t, - common.String(subnetDisplayName1), - common.String("10.0.0.0/24"), - common.String("subnetdns1"), - common.String(validAD())) -} - -func createOrGetSubnetWithDetails(t *testing.T, displayName *string, cidrBlock *string, dnsLabel *string, availableDomain *string) core.Subnet { - subnets := listSubnets(t) - - if displayName == nil { - displayName = common.String(subnetDisplayName1) - } - - // check if the subnet has already been created - for _, element := range subnets { - if *element.DisplayName == *displayName { - // find the subnet, return it - assert.NotEmpty(t, element) - return element - } - } - - // create a new subnet - vcn := createOrGetVcn(t) - request := core.CreateSubnetRequest{} - request.AvailabilityDomain = availableDomain - request.CompartmentId = common.String(getCompartmentID()) - request.CidrBlock = cidrBlock - request.VcnId = vcn.Id - request.DisplayName = displayName - request.DnsLabel = dnsLabel - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - r, err := c.CreateSubnet(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r) - assert.NotEmpty(t, r.Subnet) - - getSubnet := func() (interface{}, error) { - getReq := core.GetSubnetRequest{ - SubnetId: r.Id, - } - - getResp, err := c.GetSubnet(context.Background(), getReq) - - if err != nil { - return nil, err - } - - return getResp, nil - } - - // wait for lifecyle become running - failIfError( - t, - retryUntilTrueOrError( - getSubnet, - checkLifecycleState(string(core.SubnetLifecycleStateAvailable)), - time.Tick(10*time.Second), - time.After((5*time.Minute)))) - - return r.Subnet -} - -func listSubnets(t *testing.T) []core.Subnet { - vcn := createOrGetVcn(t) - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListSubnetsRequest{ - CompartmentId: common.String(getCompartmentID()), - VcnId: vcn.Id, - } - - r, err := c.ListSubnets(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r) - return r.Items -} - -// list the available images in the test compartment -func listImages(t *testing.T) []core.Image { - return listImagesByDisplayName(t, nil) -} - -func listImagesByDisplayName(t *testing.T, displayName *string) []core.Image { - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListImagesRequest{ - CompartmentId: common.String(getCompartmentID()), - } - - if displayName != nil { - request.DisplayName = displayName - } - - r, err := c.ListImages(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r) - assert.NotEmpty(t, r.Items) - - return r.Items -} - -// list the boot volumes in the specified compartment and Availability Domain. -func listBootVolumes(t *testing.T) []core.BootVolume { - // this line make sure boot volumes is created - createOrGetInstance(t) - - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListBootVolumesRequest{ - AvailabilityDomain: common.String(validAD()), - CompartmentId: common.String(getCompartmentID()), - } - - r, err := c.ListBootVolumes(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r) - assert.NotEmpty(t, r.Items) - return r.Items -} - -func listBootVolumeAttachments(t *testing.T) []core.BootVolumeAttachment { - // this line make sure boot volumes is created - createOrGetInstance(t) - - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.ListBootVolumeAttachmentsRequest{ - AvailabilityDomain: common.String(validAD()), - CompartmentId: common.String(getCompartmentID()), - } - - r, err := c.ListBootVolumeAttachments(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r.Items) - return r.Items -} - -func listShapes(t *testing.T) []core.Shape { - return listShapesForImage(t, nil) -} - -func listShapesForImage(t *testing.T, imageID *string) []core.Shape { - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - if imageID == nil { - images := listImages(t) - - assert.NotEmpty(t, images) - assert.NotEqual(t, len(images), 0) - imageID = images[0].Id - } - - request := core.ListShapesRequest{ - CompartmentId: common.String(getCompartmentID()), - ImageId: imageID, - } - - r, err := c.ListShapes(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r) - assert.NotEmpty(t, r.Items) - return r.Items -} - -func createOrGetInstance(t *testing.T) core.Instance { - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - listRequest := core.ListInstancesRequest{} - listRequest.CompartmentId = common.String(getCompartmentID()) - listRequest.AvailabilityDomain = common.String(validAD()) - listRequest.LifecycleState = core.InstanceLifecycleStateRunning - - listResp, err := c.ListInstances(context.Background(), listRequest) - failIfError(t, err) - assert.NotEmpty(t, listResp) - - // check if instance exists or not - for _, element := range listResp.Items { - if *element.DisplayName == instanceDisplayName { - return element - } - } - - // create a new instance - createRequest := core.LaunchInstanceRequest{} - createRequest.CompartmentId = common.String(getCompartmentID()) - createRequest.DisplayName = common.String(instanceDisplayName) - createRequest.AvailabilityDomain = common.String(validAD()) - createRequest.SubnetId = createOrGetSubnet(t).Id - - // search image by display name to make integration test running more relaible - // i.e. ServiceLimitExeceed error etc... - images := listImagesByDisplayName(t, common.String("Oracle-Linux-7.4-2018.01.20-0")) - assert.NotEmpty(t, images) - createRequest.ImageId = images[0].Id - - shapes := listShapesForImage(t, createRequest.ImageId) - assert.NotEmpty(t, shapes) - createRequest.Shape = shapes[0].Shape - - createResp, err := c.LaunchInstance(context.Background(), createRequest) - assert.NotEmpty(t, createResp, fmt.Sprint(createResp)) - failIfError(t, err) - - // get new created instance - getInstance := func() (interface{}, error) { - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - if clerr != nil { - return nil, clerr - } - - request := core.GetInstanceRequest{ - InstanceId: createResp.Instance.Id, - } - - readResp, err := c.GetInstance(context.Background(), request) - - if err != nil { - return nil, clerr - } - - return readResp, err - } - - // wait for instance lifecyle become running - failIfError( - t, - retryUntilTrueOrError( - getInstance, - checkLifecycleState(string(core.InstanceLifecycleStateRunning)), - time.Tick(10*time.Second), - time.After((5*time.Minute)))) - - return createResp.Instance -} - -func createOrGetCrossConnectGroup(t *testing.T) core.CrossConnectGroup { - crossConnectGrpups := listCrossConnectGroups(t) - - // if connect group exist, return it - for _, element := range crossConnectGrpups { - if *element.DisplayName == crossConnectGroupDisplayName { - return element - } - } - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - // create a new one - createRequest := core.CreateCrossConnectGroupRequest{} - createRequest.CompartmentId = common.String(getCompartmentID()) - createRequest.DisplayName = common.String(crossConnectGroupDisplayName) - - createResp, err := c.CreateCrossConnectGroup(context.Background(), createRequest) - failIfError(t, err) - - assert.NotEmpty(t, createResp) - return createResp.CrossConnectGroup -} - -func listCrossConnectGroups(t *testing.T) []core.CrossConnectGroup { - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.ListCrossConnectGroupsRequest{} - request.CompartmentId = common.String(getCompartmentID()) - request.DisplayName = common.String(crossConnectGroupDisplayName) - - r, err := c.ListCrossConnectGroups(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r) - return r.Items -} - -func createOrGetCrossConnect(t *testing.T) core.CrossConnect { - crossConnects := listCrossConnects(t) - - // if connect group exist, return it - for _, element := range crossConnects { - if *element.DisplayName == crossConnectDisplayName { - return element - } - } - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - // create a new one - request := core.CreateCrossConnectRequest{} - request.CompartmentId = common.String(getCompartmentID()) - - crossConnectGroup := createOrGetCrossConnectGroup(t) - request.CrossConnectGroupId = crossConnectGroup.Id - request.DisplayName = common.String(crossConnectDisplayName) - - locations := listCrossConnectLocations(t) - assert.NotEmpty(t, locations) - request.LocationName = locations[0].Name - request.PortSpeedShapeName = common.String("10 Gbps") - - resp, err := c.CreateCrossConnect(context.Background(), request) - failIfError(t, err) - - assert.NotEmpty(t, resp) - return resp.CrossConnect -} - -func listCrossConnects(t *testing.T) []core.CrossConnect { - crossConnectGroup := createOrGetCrossConnectGroup(t) - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.ListCrossConnectsRequest{} - request.CompartmentId = common.String(getCompartmentID()) - request.DisplayName = common.String(crossConnectDisplayName) - request.CrossConnectGroupId = crossConnectGroup.Id - - resp, err := c.ListCrossConnects(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - return resp.Items -} - -func listCrossConnectLocations(t *testing.T) []core.CrossConnectLocation { - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.ListCrossConnectLocationsRequest{} - request.CompartmentId = common.String(getCompartmentID()) - - resp, err := c.ListCrossConnectLocations(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - return resp.Items -} - -func getCrossConnectStatus(t *testing.T) core.CrossConnectStatus { - crossConnect := createOrGetCrossConnect(t) - assert.NotEmpty(t, crossConnect) - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.GetCrossConnectStatusRequest{} - request.CrossConnectId = crossConnect.Id - - resp, err := c.GetCrossConnectStatus(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - return resp.CrossConnectStatus -} - -func listCrossConnectPortSpeedShapes(t *testing.T) []core.CrossConnectPortSpeedShape { - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.ListCrossconnectPortSpeedShapesRequest{} - request.CompartmentId = common.String(getCompartmentID()) - - resp, err := c.ListCrossconnectPortSpeedShapes(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - return resp.Items -} - -func getCrossConnectLetterOfAuthority(t *testing.T) core.LetterOfAuthority { - crossConnect := createOrGetCrossConnect(t) - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.GetCrossConnectLetterOfAuthorityRequest{} - request.CrossConnectId = crossConnect.Id - - resp, err := c.GetCrossConnectLetterOfAuthority(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - return resp.LetterOfAuthority -} - -func getFastConnectProviderServices(t *testing.T) core.FastConnectProviderService { - prividerServices := listFastConnectProviderServices(t) - assert.NotEqual(t, len(prividerServices), 0) - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.GetFastConnectProviderServiceRequest{} - request.ProviderServiceId = prividerServices[0].Id - - resp, err := c.GetFastConnectProviderService(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - return resp.FastConnectProviderService -} - -func listFastConnectProviderServices(t *testing.T) []core.FastConnectProviderService { - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.ListFastConnectProviderServicesRequest{} - request.CompartmentId = common.String(getCompartmentID()) - - resp, err := c.ListFastConnectProviderServices(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - assert.NotEmpty(t, resp.Items) - return resp.Items -} - -func listFastConnectProviderVirtualCircuitBandwidthShapes(t *testing.T) []core.VirtualCircuitBandwidthShape { - providerService := getFastConnectProviderServices(t) - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.ListFastConnectProviderVirtualCircuitBandwidthShapesRequest{} - request.ProviderServiceId = providerService.Id - - resp, err := c.ListFastConnectProviderVirtualCircuitBandwidthShapes(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - assert.NotEmpty(t, resp.Items) - return resp.Items -} - -func listVirtualCircuitBandwidthShapes(t *testing.T) []core.VirtualCircuitBandwidthShape { - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.ListVirtualCircuitBandwidthShapesRequest{} - request.CompartmentId = common.String(getCompartmentID()) - - resp, err := c.ListVirtualCircuitBandwidthShapes(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - assert.NotEmpty(t, resp.Items) - return resp.Items -} - -func createOrGetInstanceConsoleConnection(t *testing.T) core.InstanceConsoleConnection { - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - instance := createOrGetInstance(t) - - listRequest := core.ListInstanceConsoleConnectionsRequest{} - listRequest.CompartmentId = common.String(getCompartmentID()) - listRequest.InstanceId = instance.Id - - listResp, err := c.ListInstanceConsoleConnections(context.Background(), listRequest) - failIfError(t, err) - assert.NotEmpty(t, listResp) - - if listResp.Items != nil && len(listResp.Items) != 0 { - if listResp.Items[0].LifecycleState == core.InstanceConsoleConnectionLifecycleStateActive { - return listResp.Items[0] - } - } - - // create a new one - createRequest := core.CreateInstanceConsoleConnectionRequest{} - createRequest.InstanceId = instance.Id - - // get the public key - buffer, err := readTestPubKey() - failIfError(t, err) - createRequest.PublicKey = common.String(string(buffer)) - - createResp, err := c.CreateInstanceConsoleConnection(context.Background(), createRequest) - failIfError(t, err) - assert.NotEmpty(t, createResp) - - getInstanceConsoleConnection := func() (interface{}, error) { - getReq := core.GetInstanceConsoleConnectionRequest{ - InstanceConsoleConnectionId: createResp.Id, - } - - getResp, err := c.GetInstanceConsoleConnection(context.Background(), getReq) - - if err != nil { - return nil, err - } - - return getResp, nil - } - - // wait for instance lifecyle become running - failIfError( - t, - retryUntilTrueOrError( - getInstanceConsoleConnection, - checkLifecycleState(string(core.InstanceConsoleConnectionLifecycleStateActive)), - time.Tick(10*time.Second), - time.After((5*time.Minute)))) - - return createResp.InstanceConsoleConnection -} - -func getConsoleHistory(t *testing.T, historyID *string) core.ConsoleHistory { - assert.NotEmpty(t, historyID) - - // create a new console history - request := core.GetConsoleHistoryRequest{ - InstanceConsoleHistoryId: historyID, - } - - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - resp, err := c.GetConsoleHistory(context.Background(), request) - failIfError(t, err) - - assert.NotEmpty(t, resp) - assert.NotEmpty(t, resp.ConsoleHistory) - return resp.ConsoleHistory -} - -func captureOrGetConsoleHistory(t *testing.T) core.ConsoleHistory { - consoleHistories := listConsoleHistories(t) - - for _, element := range consoleHistories { - assert.NotEmpty(t, element) - if *element.DisplayName == consoleHistoryDisplayName && - element.LifecycleState == core.ConsoleHistoryLifecycleStateSucceeded { - // find it, return - return element - } - } - - // create a new console history - instance := createOrGetInstance(t) - request := core.CaptureConsoleHistoryRequest{} - request.InstanceId = instance.Id - request.DisplayName = common.String(consoleHistoryDisplayName) - - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - resp, err := c.CaptureConsoleHistory(context.Background(), request) - failIfError(t, err) - - getConsoleHistory := func() (interface{}, error) { - getReq := core.GetConsoleHistoryRequest{ - InstanceConsoleHistoryId: resp.Id, - } - - getResp, err := c.GetConsoleHistory(context.Background(), getReq) - - if err != nil { - return nil, err - } - - return getResp, nil - } - - // wait for instance lifecyle become running - failIfError( - t, - retryUntilTrueOrError( - getConsoleHistory, - checkLifecycleState(string(core.ConsoleHistoryLifecycleStateSucceeded)), - time.Tick(10*time.Second), - time.After((5*time.Minute)))) - - assert.NotEmpty(t, resp) - assert.NotEmpty(t, resp.ConsoleHistory) - return resp.ConsoleHistory -} - -func listConsoleHistories(t *testing.T) []core.ConsoleHistory { - instance := createOrGetInstance(t) - - request := core.ListConsoleHistoriesRequest{ - CompartmentId: common.String(getCompartmentID()), - AvailabilityDomain: common.String(validAD()), - InstanceId: instance.Id, - } - - c, clerr := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - resp, err := c.ListConsoleHistories(context.Background(), request) - failIfError(t, err) - - assert.NotEmpty(t, resp) - return resp.Items -} - -func createOrGetLocalPeeringGateway(t *testing.T) core.LocalPeeringGateway { - gateways := listLocalPeeringGateways(t) - - for _, element := range gateways { - assert.NotEmpty(t, element) - if *element.DisplayName == peeringGatewaysDisplayName { - return element - } - } - - // create a new one - vcn := createOrGetVcn(t) - assert.NotEmpty(t, vcn) - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.CreateLocalPeeringGatewayRequest{} - request.CompartmentId = common.String(getCompartmentID()) - request.DisplayName = common.String(peeringGatewaysDisplayName) - request.VcnId = vcn.Id - - resp, err := c.CreateLocalPeeringGateway(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - return resp.LocalPeeringGateway -} - -func listLocalPeeringGateways(t *testing.T) []core.LocalPeeringGateway { - vnc := createOrGetVcn(t) - assert.NotEmpty(t, vnc) - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.ListLocalPeeringGatewaysRequest{ - CompartmentId: common.String(getCompartmentID()), - VcnId: vnc.Id, - } - - resp, err := c.ListLocalPeeringGateways(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - return resp.Items -} - -func createOrGetVirtualCircuit(t *testing.T) core.VirtualCircuit { - virtualCircuits := listVirtualCircuits(t) - - for _, element := range virtualCircuits { - assert.NotEmpty(t, element) - if *element.DisplayName == virtualCircuitDisplayName { - return element - } - } - - // create a new one - request := core.CreateVirtualCircuitRequest{} - request.CompartmentId = common.String(getCompartmentID()) - request.DisplayName = common.String(virtualCircuitDisplayName) - request.Type = "PRIVATE" - - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - resp, err := c.CreateVirtualCircuit(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - return resp.VirtualCircuit -} - -func listVirtualCircuits(t *testing.T) []core.VirtualCircuit { - c, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.ListVirtualCircuitsRequest{ - CompartmentId: common.String(getCompartmentID()), - DisplayName: common.String(virtualCircuitDisplayName), - } - - resp, err := c.ListVirtualCircuits(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp) - return resp.Items -} - -func createOrGetLoadBalancer(t *testing.T) *string { - loadbalancers := listActiveLoadBalancers(t) - - for _, element := range loadbalancers { - assert.NotEmpty(t, element) - if *element.DisplayName == loadbalancerDisplayName { - // found it, return - return element.Id - } - } - - // create new load balancer - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.CreateLoadBalancerRequest{} - request.CompartmentId = common.String(getCompartmentID()) - request.DisplayName = common.String(loadbalancerDisplayName) - - subnet1 := createOrGetSubnet(t) - - identityClient, err := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, err) - req := identity.ListAvailabilityDomainsRequest{} - req.CompartmentId = common.String(getCompartmentID()) - response, err := identityClient.ListAvailabilityDomains(context.Background(), req) - failIfError(t, err) - availableDomain := response.Items[1].Name - - subnet2 := createOrGetSubnetWithDetails(t, common.String(subnetDisplayName2), common.String("10.0.1.0/24"), common.String("subnetdns2"), availableDomain) - request.SubnetIds = []string{*subnet1.Id, *subnet2.Id} - - shapes := listLoadBalancerShapes(t) - request.ShapeName = shapes[0].Name - - resp, err := c.CreateLoadBalancer(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, resp.OpcRequestId) - - // get new created loadbalancer - getTestLoadBalancer := func() *loadbalancer.LoadBalancer { - loadbalancers = listActiveLoadBalancers(t) - for _, element := range loadbalancers { - assert.NotEmpty(t, element) - if *element.DisplayName == loadbalancerDisplayName { - // found it, return - return &element - } - } - - return nil - } - - // use to check the lifecycle of new load balancer - getLoadBalancerCheck := func() (interface{}, error) { - testLoadBalancer := getTestLoadBalancer() - if testLoadBalancer != nil { - return testLoadBalancer, nil - } - - return loadbalancer.LoadBalancer{}, nil - } - - // wait for instance lifecyle become running - failIfError( - t, - retryUntilTrueOrError( - getLoadBalancerCheck, - checkLifecycleState(string(loadbalancer.LoadBalancerLifecycleStateActive)), - time.Tick(10*time.Second), - time.After((5*time.Minute)))) - - newCreatedLoadBalancer := getTestLoadBalancer() - assert.NotEmpty(t, newCreatedLoadBalancer) - assert.NotEmpty(t, newCreatedLoadBalancer.Id) - return newCreatedLoadBalancer.Id -} - -func listActiveLoadBalancers(t *testing.T) []loadbalancer.LoadBalancer { - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := loadbalancer.ListLoadBalancersRequest{ - CompartmentId: common.String(getCompartmentID()), - DisplayName: common.String(loadbalancerDisplayName), - LifecycleState: loadbalancer.LoadBalancerLifecycleStateActive, - } - - r, err := c.ListLoadBalancers(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r) - return r.Items -} - -func listLoadBalancerShapes(t *testing.T) []loadbalancer.LoadBalancerShape { - c, clerr := loadbalancer.NewLoadBalancerClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := loadbalancer.ListShapesRequest{ - CompartmentId: common.String(getCompartmentID()), - } - - r, err := c.ListShapes(context.Background(), request) - failIfError(t, err) - assert.NotEmpty(t, r) - assert.NotEmpty(t, r.Items) - assert.NotEqual(t, len(r.Items), 0) - return r.Items -} - -func createOrGetVolume(t *testing.T) core.Volume { - volumes := listVolumes(t) - - for _, element := range volumes { - assert.NotEmpty(t, element) - if *element.DisplayName == volumeDisplayName && - element.LifecycleState == core.VolumeLifecycleStateAvailable { - // found it, return - return element - } - } - - // create a new one - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - request := core.CreateVolumeRequest{} - request.AvailabilityDomain = common.String(validAD()) - request.CompartmentId = common.String(getCompartmentID()) - request.DisplayName = common.String(volumeDisplayName) - - r, err := c.CreateVolume(context.Background(), request) - failIfError(t, err) - - assert.NotEmpty(t, r) - assert.NotEmpty(t, r.Volume) - - getVolume := func() (interface{}, error) { - getReq := core.GetVolumeRequest{ - VolumeId: r.Volume.Id, - } - - getResp, err := c.GetVolume(context.Background(), getReq) - - if err != nil { - return nil, err - } - - return getResp, nil - } - - // wait for lifecyle become running - failIfError( - t, - retryUntilTrueOrError( - getVolume, - checkLifecycleState(string(core.VolumeLifecycleStateAvailable)), - time.Tick(10*time.Second), - time.After((5*time.Minute)))) - - return r.Volume -} - -func listVolumes(t *testing.T) []core.Volume { - c, clerr := core.NewBlockstorageClientWithConfigurationProvider(common.DefaultConfigProvider()) - failIfError(t, clerr) - - request := core.ListVolumesRequest{ - CompartmentId: common.String(getCompartmentID()), - } - - r, err := c.ListVolumes(context.Background(), request) - failIfError(t, err) - - assert.NotEmpty(t, r) - return r.Items -} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend.go index 76dcb180a..ecca968c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,56 +9,49 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Backend The configuration of a backend server that is a member of a load balancer backend set. - // For more information, see [Managing Backend Servers]({{DOC_SERVER_URL}}/Content/Balance/Tasks/managingbackendservers.htm). +// Backend The configuration of a backend server that is a member of a load balancer backend set. +// For more information, see Managing Backend Servers (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingbackendservers.htm). type Backend struct { - - // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. - // Example: `true` - Backup *bool `mandatory:"true" json:"backup"` - - // Whether the load balancer should drain this server. Servers marked "drain" receive no new - // incoming traffic. - // Example: `true` - Drain *bool `mandatory:"true" json:"drain"` - - // The IP address of the backend server. - // Example: `10.10.10.4` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // A read-only field showing the IP address and port that uniquely identify this backend server in the backend set. - // Example: `10.10.10.4:8080` - Name *string `mandatory:"true" json:"name"` - - // Whether the load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `true` - Offline *bool `mandatory:"true" json:"offline"` - - // The communication port for the backend server. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections - // as a server weighted '1'. - // For more information on load balancing policies, see - // [How Load Balancing Policies Work]({{DOC_SERVER_URL}}/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"true" json:"weight"` + + // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. + // Example: `true` + Backup *bool `mandatory:"true" json:"backup"` + + // Whether the load balancer should drain this server. Servers marked "drain" receive no new + // incoming traffic. + // Example: `true` + Drain *bool `mandatory:"true" json:"drain"` + + // The IP address of the backend server. + // Example: `10.10.10.4` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // A read-only field showing the IP address and port that uniquely identify this backend server in the backend set. + // Example: `10.10.10.4:8080` + Name *string `mandatory:"true" json:"name"` + + // Whether the load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `true` + Offline *bool `mandatory:"true" json:"offline"` + + // The communication port for the backend server. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections + // as a server weighted '1'. + // For more information on load balancing policies, see + // How Load Balancing Policies Work (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"true" json:"weight"` } func (m Backend) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_details.go index 6e4b452d9..a65e538e3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,51 +9,44 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // BackendDetails The load balancing configuration details of a backend server. +// BackendDetails The load balancing configuration details of a backend server. type BackendDetails struct { - - // The IP address of the backend server. - // Example: `10.10.10.4` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // The communication port for the backend server. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. - // Example: `true` - Backup *bool `mandatory:"false" json:"backup"` - - // Whether the load balancer should drain this server. Servers marked "drain" receive no new - // incoming traffic. - // Example: `true` - Drain *bool `mandatory:"false" json:"drain"` - - // Whether the load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `true` - Offline *bool `mandatory:"false" json:"offline"` - - // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections - // as a server weighted '1'. - // For more information on load balancing policies, see - // [How Load Balancing Policies Work]({{DOC_SERVER_URL}}/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"false" json:"weight"` + + // The IP address of the backend server. + // Example: `10.10.10.4` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // The communication port for the backend server. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. + // Example: `true` + Backup *bool `mandatory:"false" json:"backup"` + + // Whether the load balancer should drain this server. Servers marked "drain" receive no new + // incoming traffic. + // Example: `true` + Drain *bool `mandatory:"false" json:"drain"` + + // Whether the load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `true` + Offline *bool `mandatory:"false" json:"offline"` + + // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections + // as a server weighted '1'. + // For more information on load balancing policies, see + // How Load Balancing Policies Work (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"false" json:"weight"` } func (m BackendDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_health.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_health.go index c79c4cf29..ca8cbc42c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_health.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_health.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,58 +9,50 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // BackendHealth The health status of the specified backend server as reported by the primary and standby load balancers. +// BackendHealth The health status of the specified backend server as reported by the primary and standby load balancers. type BackendHealth struct { - - // A list of the most recent health check results returned for the specified backend server. - HealthCheckResults []HealthCheckResult `mandatory:"true" json:"healthCheckResults"` - - // The general health status of the specified backend server as reported by the primary and standby load balancers. - // * **OK:** Both health checks returned `OK`. - // * **WARNING:** One health check returned `OK` and one did not. - // * **CRITICAL:** Neither health check returned `OK`. - // * **UNKNOWN:** One or both health checks returned `UNKNOWN`, or the system was unable to retrieve metrics at this time. - Status BackendHealthStatusEnum `mandatory:"true" json:"status"` + + // A list of the most recent health check results returned for the specified backend server. + HealthCheckResults []HealthCheckResult `mandatory:"true" json:"healthCheckResults"` + + // The general health status of the specified backend server as reported by the primary and standby load balancers. + // * **OK:** Both health checks returned `OK`. + // * **WARNING:** One health check returned `OK` and one did not. + // * **CRITICAL:** Neither health check returned `OK`. + // * **UNKNOWN:** One or both health checks returned `UNKNOWN`, or the system was unable to retrieve metrics at this time. + Status BackendHealthStatusEnum `mandatory:"true" json:"status"` } func (m BackendHealth) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // BackendHealthStatusEnum Enum with underlying type: string type BackendHealthStatusEnum string // Set of constants representing the allowable values for BackendHealthStatus const ( - BackendHealthStatusOk BackendHealthStatusEnum = "OK" - BackendHealthStatusWarning BackendHealthStatusEnum = "WARNING" - BackendHealthStatusCritical BackendHealthStatusEnum = "CRITICAL" - BackendHealthStatusUnknown BackendHealthStatusEnum = "UNKNOWN" - + BackendHealthStatusOk BackendHealthStatusEnum = "OK" + BackendHealthStatusWarning BackendHealthStatusEnum = "WARNING" + BackendHealthStatusCritical BackendHealthStatusEnum = "CRITICAL" + BackendHealthStatusUnknown BackendHealthStatusEnum = "UNKNOWN" ) -var mappingBackendHealthStatus = map[string]BackendHealthStatusEnum { - "OK": BackendHealthStatusOk, - "WARNING": BackendHealthStatusWarning, - "CRITICAL": BackendHealthStatusCritical, - "UNKNOWN": BackendHealthStatusUnknown, - +var mappingBackendHealthStatus = map[string]BackendHealthStatusEnum{ + "OK": BackendHealthStatusOk, + "WARNING": BackendHealthStatusWarning, + "CRITICAL": BackendHealthStatusCritical, + "UNKNOWN": BackendHealthStatusUnknown, } // GetBackendHealthStatusEnumValues Enumerates the set of values for BackendHealthStatus func GetBackendHealthStatusEnumValues() []BackendHealthStatusEnum { - values := make([]BackendHealthStatusEnum, 0) - for _, v := range mappingBackendHealthStatus { - values = append(values, v) - } - return values + values := make([]BackendHealthStatusEnum, 0) + for _, v := range mappingBackendHealthStatus { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set.go index 3f89e8a86..c47097c7a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,41 +9,33 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // BackendSet The configuration of a load balancer backend set. - // For more information on backend set configuration, see - // [Managing Backend Sets]({{DOC_SERVER_URL}}/Content/Balance/tasks/managingbackendsets.htm). +// BackendSet The configuration of a load balancer backend set. +// For more information on backend set configuration, see +// Managing Backend Sets (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/tasks/managingbackendsets.htm). type BackendSet struct { - - Backends []Backend `mandatory:"true" json:"backends"` - - HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` - - // A friendly name for the backend set. It must be unique and it cannot be changed. - // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot - // contain spaces. Avoid entering confidential information. - // Example: `My_backend_set` - Name *string `mandatory:"true" json:"name"` - - // The load balancer policy for the backend set. To get a list of available policies, use the - // ListPolicies operation. - // Example: `LEAST_CONNECTIONS` - Policy *string `mandatory:"true" json:"policy"` - - SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` - - SslConfiguration *SslConfiguration `mandatory:"false" json:"sslConfiguration"` -} + Backends []Backend `mandatory:"true" json:"backends"` -func (m BackendSet) String() string { - return common.PointerString(m) -} + HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` + // A friendly name for the backend set. It must be unique and it cannot be changed. + // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot + // contain spaces. Avoid entering confidential information. + // Example: `My_backend_set` + Name *string `mandatory:"true" json:"name"` + // The load balancer policy for the backend set. To get a list of available policies, use the + // ListPolicies operation. + // Example: `LEAST_CONNECTIONS` + Policy *string `mandatory:"true" json:"policy"` + SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` + SslConfiguration *SslConfiguration `mandatory:"false" json:"sslConfiguration"` +} +func (m BackendSet) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set_details.go index 01843a9b9..dad4d6591 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,35 +9,27 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // BackendSetDetails The configuration details for a load balancer backend set. - // For more information on backend set configuration, see - // [Managing Backend Sets]({{DOC_SERVER_URL}}/Content/Balance/tasks/managingbackendsets.htm). +// BackendSetDetails The configuration details for a load balancer backend set. +// For more information on backend set configuration, see +// Managing Backend Sets (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/tasks/managingbackendsets.htm). type BackendSetDetails struct { - - HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` - - // The load balancer policy for the backend set. To get a list of available policies, use the - // ListPolicies operation. - // Example: `LEAST_CONNECTIONS` - Policy *string `mandatory:"true" json:"policy"` - - Backends []BackendDetails `mandatory:"false" json:"backends"` - - SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` -} - -func (m BackendSetDetails) String() string { - return common.PointerString(m) -} + HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` + // The load balancer policy for the backend set. To get a list of available policies, use the + // ListPolicies operation. + // Example: `LEAST_CONNECTIONS` + Policy *string `mandatory:"true" json:"policy"` + Backends []BackendDetails `mandatory:"false" json:"backends"` + SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` +} +func (m BackendSetDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set_health.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set_health.go index 427093da2..1ef062996 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set_health.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend_set_health.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,78 +9,70 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // BackendSetHealth The health status details for a backend set. - // This object does not explicitly enumerate backend servers with a status of `OK`. However, they are included in the - // `totalBackendCount` sum. +// BackendSetHealth The health status details for a backend set. +// This object does not explicitly enumerate backend servers with a status of `OK`. However, they are included in the +// `totalBackendCount` sum. type BackendSetHealth struct { - - // A list of backend servers that are currently in the `CRITICAL` health state. The list identifies each backend server by - // IP address and port. - // Example: `1.1.1.1:80` - CriticalStateBackendNames []string `mandatory:"true" json:"criticalStateBackendNames"` - - // Overall health status of the backend set. - // * **OK:** All backend servers in the backend set return a status of `OK`. - // * **WARNING:** Half or more of the backend set's backend servers return a status of `OK` and at least one backend - // server returns a status of `WARNING`, `CRITICAL`, or `UNKNOWN`. - // * **CRITICAL:** Fewer than half of the backend set's backend servers return a status of `OK`. - // * **UNKNOWN:** More than half of the backend set's backend servers return a status of `UNKNOWN`, the system was - // unable to retrieve metrics, or the backend set does not have a listener attached. - Status BackendSetHealthStatusEnum `mandatory:"true" json:"status"` - - // The total number of backend servers in this backend set. - // Example: `5` - TotalBackendCount *int `mandatory:"true" json:"totalBackendCount"` - - // A list of backend servers that are currently in the `UNKNOWN` health state. The list identifies each backend server by - // IP address and port. - // Example: `1.1.1.5:80` - UnknownStateBackendNames []string `mandatory:"true" json:"unknownStateBackendNames"` - - // A list of backend servers that are currently in the `WARNING` health state. The list identifies each backend server by - // IP address and port. - // Example: `1.1.1.7:42` - WarningStateBackendNames []string `mandatory:"true" json:"warningStateBackendNames"` + + // A list of backend servers that are currently in the `CRITICAL` health state. The list identifies each backend server by + // IP address and port. + // Example: `1.1.1.1:80` + CriticalStateBackendNames []string `mandatory:"true" json:"criticalStateBackendNames"` + + // Overall health status of the backend set. + // * **OK:** All backend servers in the backend set return a status of `OK`. + // * **WARNING:** Half or more of the backend set's backend servers return a status of `OK` and at least one backend + // server returns a status of `WARNING`, `CRITICAL`, or `UNKNOWN`. + // * **CRITICAL:** Fewer than half of the backend set's backend servers return a status of `OK`. + // * **UNKNOWN:** More than half of the backend set's backend servers return a status of `UNKNOWN`, the system was + // unable to retrieve metrics, or the backend set does not have a listener attached. + Status BackendSetHealthStatusEnum `mandatory:"true" json:"status"` + + // The total number of backend servers in this backend set. + // Example: `5` + TotalBackendCount *int `mandatory:"true" json:"totalBackendCount"` + + // A list of backend servers that are currently in the `UNKNOWN` health state. The list identifies each backend server by + // IP address and port. + // Example: `1.1.1.5:80` + UnknownStateBackendNames []string `mandatory:"true" json:"unknownStateBackendNames"` + + // A list of backend servers that are currently in the `WARNING` health state. The list identifies each backend server by + // IP address and port. + // Example: `1.1.1.7:42` + WarningStateBackendNames []string `mandatory:"true" json:"warningStateBackendNames"` } func (m BackendSetHealth) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // BackendSetHealthStatusEnum Enum with underlying type: string type BackendSetHealthStatusEnum string // Set of constants representing the allowable values for BackendSetHealthStatus const ( - BackendSetHealthStatusOk BackendSetHealthStatusEnum = "OK" - BackendSetHealthStatusWarning BackendSetHealthStatusEnum = "WARNING" - BackendSetHealthStatusCritical BackendSetHealthStatusEnum = "CRITICAL" - BackendSetHealthStatusUnknown BackendSetHealthStatusEnum = "UNKNOWN" - + BackendSetHealthStatusOk BackendSetHealthStatusEnum = "OK" + BackendSetHealthStatusWarning BackendSetHealthStatusEnum = "WARNING" + BackendSetHealthStatusCritical BackendSetHealthStatusEnum = "CRITICAL" + BackendSetHealthStatusUnknown BackendSetHealthStatusEnum = "UNKNOWN" ) -var mappingBackendSetHealthStatus = map[string]BackendSetHealthStatusEnum { - "OK": BackendSetHealthStatusOk, - "WARNING": BackendSetHealthStatusWarning, - "CRITICAL": BackendSetHealthStatusCritical, - "UNKNOWN": BackendSetHealthStatusUnknown, - +var mappingBackendSetHealthStatus = map[string]BackendSetHealthStatusEnum{ + "OK": BackendSetHealthStatusOk, + "WARNING": BackendSetHealthStatusWarning, + "CRITICAL": BackendSetHealthStatusCritical, + "UNKNOWN": BackendSetHealthStatusUnknown, } // GetBackendSetHealthStatusEnumValues Enumerates the set of values for BackendSetHealthStatus func GetBackendSetHealthStatusEnumValues() []BackendSetHealthStatusEnum { - values := make([]BackendSetHealthStatusEnum, 0) - for _, v := range mappingBackendSetHealthStatus { - values = append(values, v) - } - return values + values := make([]BackendSetHealthStatusEnum, 0) + for _, v := range mappingBackendSetHealthStatus { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/certificate.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/certificate.go index c4760ea5e..e2d038de7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/certificate.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/certificate.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,50 +9,43 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Certificate The configuration details of a listener certificate bundle. - // For more information on SSL certficate configuration, see - // [Managing SSL Certificates]({{DOC_SERVER_URL}}/Content/Balance/Tasks/managingcertificates.htm). +// Certificate The configuration details of a listener certificate bundle. +// For more information on SSL certficate configuration, see +// Managing SSL Certificates (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingcertificates.htm). type Certificate struct { - - // The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider. - // Example: - // -----BEGIN CERTIFICATE----- - // MIIEczCCA1ugAwIBAgIBADANBgkqhkiG9w0BAQQFAD..AkGA1UEBhMCR0Ix - // EzARBgNVBAgTClNvbWUtU3RhdGUxFDASBgNVBAoTC0..0EgTHRkMTcwNQYD - // VQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcn..XRpb24gQXV0aG9y - // aXR5MRQwEgYDVQQDEwtCZXN0IENBIEx0ZDAeFw0wMD..TUwMTZaFw0wMTAy - // ... - // -----END CERTIFICATE----- - CaCertificate *string `mandatory:"true" json:"caCertificate"` - - // A friendly name for the certificate bundle. It must be unique and it cannot be changed. - // Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. - // Certificate bundle names cannot contain spaces. Avoid entering confidential information. - // Example: `My_certificate_bundle` - CertificateName *string `mandatory:"true" json:"certificateName"` - - // The public certificate, in PEM format, that you received from your SSL certificate provider. - // Example: - // -----BEGIN CERTIFICATE----- - // MIIC2jCCAkMCAg38MA0GCSqGSIb3DQEBBQUAMIGbMQswCQYDVQQGEwJKUDEOMAwG - // A1UECBMFVG9reW8xEDAOBgNVBAcTB0NodW8ta3UxETAPBgNVBAoTCEZyYW5rNERE - // MRgwFgYDVQQLEw9XZWJDZXJ0IFN1cHBvcnQxGDAWBgNVBAMTD0ZyYW5rNEREIFdl - // YiBDQTEjMCEGCSqGSIb3DQEJARYUc3VwcG9ydEBmcmFuazRkZC5jb20wHhcNMTIw - // ... - // -----END CERTIFICATE----- - PublicCertificate *string `mandatory:"true" json:"publicCertificate"` + + // The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider. + // Example: + // -----BEGIN CERTIFICATE----- + // MIIEczCCA1ugAwIBAgIBADANBgkqhkiG9w0BAQQFAD..AkGA1UEBhMCR0Ix + // EzARBgNVBAgTClNvbWUtU3RhdGUxFDASBgNVBAoTC0..0EgTHRkMTcwNQYD + // VQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcn..XRpb24gQXV0aG9y + // aXR5MRQwEgYDVQQDEwtCZXN0IENBIEx0ZDAeFw0wMD..TUwMTZaFw0wMTAy + // ... + // -----END CERTIFICATE----- + CaCertificate *string `mandatory:"true" json:"caCertificate"` + + // A friendly name for the certificate bundle. It must be unique and it cannot be changed. + // Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. + // Certificate bundle names cannot contain spaces. Avoid entering confidential information. + // Example: `My_certificate_bundle` + CertificateName *string `mandatory:"true" json:"certificateName"` + + // The public certificate, in PEM format, that you received from your SSL certificate provider. + // Example: + // -----BEGIN CERTIFICATE----- + // MIIC2jCCAkMCAg38MA0GCSqGSIb3DQEBBQUAMIGbMQswCQYDVQQGEwJKUDEOMAwG + // A1UECBMFVG9reW8xEDAOBgNVBAcTB0NodW8ta3UxETAPBgNVBAoTCEZyYW5rNERE + // MRgwFgYDVQQLEw9XZWJDZXJ0IFN1cHBvcnQxGDAWBgNVBAMTD0ZyYW5rNEREIFdl + // YiBDQTEjMCEGCSqGSIb3DQEJARYUc3VwcG9ydEBmcmFuazRkZC5jb20wHhcNMTIw + // ... + // -----END CERTIFICATE----- + PublicCertificate *string `mandatory:"true" json:"publicCertificate"` } func (m Certificate) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/certificate_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/certificate_details.go index 74e4784b1..d63af94d9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/certificate_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/certificate_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,65 +9,58 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CertificateDetails The configuration details for a listener certificate bundle. - // For more information on SSL certficate configuration, see - // [Managing SSL Certificates]({{DOC_SERVER_URL}}/Content/Balance/Tasks/managingcertificates.htm). +// CertificateDetails The configuration details for a listener certificate bundle. +// For more information on SSL certficate configuration, see +// Managing SSL Certificates (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingcertificates.htm). type CertificateDetails struct { - - // A friendly name for the certificate bundle. It must be unique and it cannot be changed. - // Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. - // Certificate bundle names cannot contain spaces. Avoid entering confidential information. - // Example: `My_certificate_bundle` - CertificateName *string `mandatory:"true" json:"certificateName"` - - // The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider. - // Example: - // -----BEGIN CERTIFICATE----- - // MIIEczCCA1ugAwIBAgIBADANBgkqhkiG9w0BAQQFAD..AkGA1UEBhMCR0Ix - // EzARBgNVBAgTClNvbWUtU3RhdGUxFDASBgNVBAoTC0..0EgTHRkMTcwNQYD - // VQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcn..XRpb24gQXV0aG9y - // aXR5MRQwEgYDVQQDEwtCZXN0IENBIEx0ZDAeFw0wMD..TUwMTZaFw0wMTAy - // ... - // -----END CERTIFICATE----- - CaCertificate *string `mandatory:"false" json:"caCertificate"` - - // A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase. - // Example: `Mysecretunlockingcode42!1!` - Passphrase *string `mandatory:"false" json:"passphrase"` - - // The SSL private key for your certificate, in PEM format. - // Example: - // -----BEGIN RSA PRIVATE KEY----- - // jO1O1v2ftXMsawM90tnXwc6xhOAT1gDBC9S8DKeca..JZNUgYYwNS0dP2UK - // tmyN+XqVcAKw4HqVmChXy5b5msu8eIq3uc2NqNVtR..2ksSLukP8pxXcHyb - // +sEwvM4uf8qbnHAqwnOnP9+KV9vds6BaH1eRA4CHz..n+NVZlzBsTxTlS16 - // /Umr7wJzVrMqK5sDiSu4WuaaBdqMGfL5hLsTjcBFD..Da2iyQmSKuVD4lIZ - // ... - // -----END RSA PRIVATE KEY----- - PrivateKey *string `mandatory:"false" json:"privateKey"` - - // The public certificate, in PEM format, that you received from your SSL certificate provider. - // Example: - // -----BEGIN CERTIFICATE----- - // MIIC2jCCAkMCAg38MA0GCSqGSIb3DQEBBQUAMIGbMQswCQYDVQQGEwJKUDEOMAwG - // A1UECBMFVG9reW8xEDAOBgNVBAcTB0NodW8ta3UxETAPBgNVBAoTCEZyYW5rNERE - // MRgwFgYDVQQLEw9XZWJDZXJ0IFN1cHBvcnQxGDAWBgNVBAMTD0ZyYW5rNEREIFdl - // YiBDQTEjMCEGCSqGSIb3DQEJARYUc3VwcG9ydEBmcmFuazRkZC5jb20wHhcNMTIw - // ... - // -----END CERTIFICATE----- - PublicCertificate *string `mandatory:"false" json:"publicCertificate"` -} -func (m CertificateDetails) String() string { - return common.PointerString(m) -} + // A friendly name for the certificate bundle. It must be unique and it cannot be changed. + // Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. + // Certificate bundle names cannot contain spaces. Avoid entering confidential information. + // Example: `My_certificate_bundle` + CertificateName *string `mandatory:"true" json:"certificateName"` + // The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider. + // Example: + // -----BEGIN CERTIFICATE----- + // MIIEczCCA1ugAwIBAgIBADANBgkqhkiG9w0BAQQFAD..AkGA1UEBhMCR0Ix + // EzARBgNVBAgTClNvbWUtU3RhdGUxFDASBgNVBAoTC0..0EgTHRkMTcwNQYD + // VQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcn..XRpb24gQXV0aG9y + // aXR5MRQwEgYDVQQDEwtCZXN0IENBIEx0ZDAeFw0wMD..TUwMTZaFw0wMTAy + // ... + // -----END CERTIFICATE----- + CaCertificate *string `mandatory:"false" json:"caCertificate"` + // A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase. + // Example: `Mysecretunlockingcode42!1!` + Passphrase *string `mandatory:"false" json:"passphrase"` + // The SSL private key for your certificate, in PEM format. + // Example: + // -----BEGIN RSA PRIVATE KEY----- + // jO1O1v2ftXMsawM90tnXwc6xhOAT1gDBC9S8DKeca..JZNUgYYwNS0dP2UK + // tmyN+XqVcAKw4HqVmChXy5b5msu8eIq3uc2NqNVtR..2ksSLukP8pxXcHyb + // +sEwvM4uf8qbnHAqwnOnP9+KV9vds6BaH1eRA4CHz..n+NVZlzBsTxTlS16 + // /Umr7wJzVrMqK5sDiSu4WuaaBdqMGfL5hLsTjcBFD..Da2iyQmSKuVD4lIZ + // ... + // -----END RSA PRIVATE KEY----- + PrivateKey *string `mandatory:"false" json:"privateKey"` + // The public certificate, in PEM format, that you received from your SSL certificate provider. + // Example: + // -----BEGIN CERTIFICATE----- + // MIIC2jCCAkMCAg38MA0GCSqGSIb3DQEBBQUAMIGbMQswCQYDVQQGEwJKUDEOMAwG + // A1UECBMFVG9reW8xEDAOBgNVBAcTB0NodW8ta3UxETAPBgNVBAoTCEZyYW5rNERE + // MRgwFgYDVQQLEw9XZWJDZXJ0IFN1cHBvcnQxGDAWBgNVBAMTD0ZyYW5rNEREIFdl + // YiBDQTEjMCEGCSqGSIb3DQEJARYUc3VwcG9ydEBmcmFuazRkZC5jb20wHhcNMTIw + // ... + // -----END CERTIFICATE----- + PublicCertificate *string `mandatory:"false" json:"publicCertificate"` +} +func (m CertificateDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_details.go index b1a7189f2..b47a042c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,53 +9,46 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateBackendDetails The configuration details for creating a backend server in a backend set. - // For more information on backend server configuration, see - // [Managing Backend Servers]({{DOC_SERVER_URL}}/Content/Balance/tasks/managingbackendservers.htm). +// CreateBackendDetails The configuration details for creating a backend server in a backend set. +// For more information on backend server configuration, see +// Managing Backend Servers (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/tasks/managingbackendservers.htm). type CreateBackendDetails struct { - - // The IP address of the backend server. - // Example: `10.10.10.4` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // The communication port for the backend server. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. - // Example: `true` - Backup *bool `mandatory:"false" json:"backup"` - - // Whether the load balancer should drain this server. Servers marked "drain" receive no new - // incoming traffic. - // Example: `true` - Drain *bool `mandatory:"false" json:"drain"` - - // Whether the load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `true` - Offline *bool `mandatory:"false" json:"offline"` - - // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections - // as a server weighted '1'. - // For more information on load balancing policies, see - // [How Load Balancing Policies Work]({{DOC_SERVER_URL}}/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"false" json:"weight"` + + // The IP address of the backend server. + // Example: `10.10.10.4` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // The communication port for the backend server. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. + // Example: `true` + Backup *bool `mandatory:"false" json:"backup"` + + // Whether the load balancer should drain this server. Servers marked "drain" receive no new + // incoming traffic. + // Example: `true` + Drain *bool `mandatory:"false" json:"drain"` + + // Whether the load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `true` + Offline *bool `mandatory:"false" json:"offline"` + + // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections + // as a server weighted '1'. + // For more information on load balancing policies, see + // How Load Balancing Policies Work (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"false" json:"weight"` } func (m CreateBackendDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_request_response.go index eac6ed086..3d14273ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_request_response.go @@ -1,60 +1,56 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateBackendRequest wrapper for the CreateBackend operation type CreateBackendRequest struct { - - // The details to add a backend server to a backend set. - CreateBackendDetails `contributesTo:"body"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set to add the backend server to. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The details to add a backend server to a backend set. + CreateBackendDetails `contributesTo:"body"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set to add the backend server to. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateBackendRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateBackendResponse wrapper for the CreateBackend operation type CreateBackendResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response CreateBackendResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_set_details.go index f8a3c6e9d..2bf3acb40 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_set_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_set_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,41 +9,33 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateBackendSetDetails The configuration details for creating a backend set in a load balancer. - // For more information on backend set configuration, see - // [Managing Backend Sets]({{DOC_SERVER_URL}}/Content/Balance/tasks/managingbackendsets.htm). +// CreateBackendSetDetails The configuration details for creating a backend set in a load balancer. +// For more information on backend set configuration, see +// Managing Backend Sets (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/tasks/managingbackendsets.htm). type CreateBackendSetDetails struct { - - HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` - - // A friendly name for the backend set. It must be unique and it cannot be changed. - // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot - // contain spaces. Avoid entering confidential information. - // Example: `My_backend_set` - Name *string `mandatory:"true" json:"name"` - - // The load balancer policy for the backend set. To get a list of available policies, use the - // ListPolicies operation. - // Example: `LEAST_CONNECTIONS` - Policy *string `mandatory:"true" json:"policy"` - - Backends []BackendDetails `mandatory:"false" json:"backends"` - - SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` -} + HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` -func (m CreateBackendSetDetails) String() string { - return common.PointerString(m) -} + // A friendly name for the backend set. It must be unique and it cannot be changed. + // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot + // contain spaces. Avoid entering confidential information. + // Example: `My_backend_set` + Name *string `mandatory:"true" json:"name"` + // The load balancer policy for the backend set. To get a list of available policies, use the + // ListPolicies operation. + // Example: `LEAST_CONNECTIONS` + Policy *string `mandatory:"true" json:"policy"` + Backends []BackendDetails `mandatory:"false" json:"backends"` + SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` +} +func (m CreateBackendSetDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_set_request_response.go index f713f8ed7..7617987a4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_backend_set_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateBackendSetRequest wrapper for the CreateBackendSet operation type CreateBackendSetRequest struct { - - // The details for adding a backend set. - CreateBackendSetDetails `contributesTo:"body"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a backend set. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The details for adding a backend set. + CreateBackendSetDetails `contributesTo:"body"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a backend set. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateBackendSetRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateBackendSetResponse wrapper for the CreateBackendSet operation type CreateBackendSetResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response CreateBackendSetResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_certificate_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_certificate_details.go index c9e252900..c7f4789bf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_certificate_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_certificate_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,65 +9,58 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateCertificateDetails The configuration details for adding a certificate bundle to a listener. - // For more information on SSL certficate configuration, see - // [Managing SSL Certificates]({{DOC_SERVER_URL}}/Content/Balance/Tasks/managingcertificates.htm). +// CreateCertificateDetails The configuration details for adding a certificate bundle to a listener. +// For more information on SSL certficate configuration, see +// Managing SSL Certificates (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingcertificates.htm). type CreateCertificateDetails struct { - - // A friendly name for the certificate bundle. It must be unique and it cannot be changed. - // Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. - // Certificate bundle names cannot contain spaces. Avoid entering confidential information. - // Example: `My_certificate_bundle` - CertificateName *string `mandatory:"true" json:"certificateName"` - - // The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider. - // Example: - // -----BEGIN CERTIFICATE----- - // MIIEczCCA1ugAwIBAgIBADANBgkqhkiG9w0BAQQFAD..AkGA1UEBhMCR0Ix - // EzARBgNVBAgTClNvbWUtU3RhdGUxFDASBgNVBAoTC0..0EgTHRkMTcwNQYD - // VQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcn..XRpb24gQXV0aG9y - // aXR5MRQwEgYDVQQDEwtCZXN0IENBIEx0ZDAeFw0wMD..TUwMTZaFw0wMTAy - // ... - // -----END CERTIFICATE----- - CaCertificate *string `mandatory:"false" json:"caCertificate"` - - // A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase. - // Example: `Mysecretunlockingcode42!1!` - Passphrase *string `mandatory:"false" json:"passphrase"` - - // The SSL private key for your certificate, in PEM format. - // Example: - // -----BEGIN RSA PRIVATE KEY----- - // jO1O1v2ftXMsawM90tnXwc6xhOAT1gDBC9S8DKeca..JZNUgYYwNS0dP2UK - // tmyN+XqVcAKw4HqVmChXy5b5msu8eIq3uc2NqNVtR..2ksSLukP8pxXcHyb - // +sEwvM4uf8qbnHAqwnOnP9+KV9vds6BaH1eRA4CHz..n+NVZlzBsTxTlS16 - // /Umr7wJzVrMqK5sDiSu4WuaaBdqMGfL5hLsTjcBFD..Da2iyQmSKuVD4lIZ - // ... - // -----END RSA PRIVATE KEY----- - PrivateKey *string `mandatory:"false" json:"privateKey"` - - // The public certificate, in PEM format, that you received from your SSL certificate provider. - // Example: - // -----BEGIN CERTIFICATE----- - // MIIC2jCCAkMCAg38MA0GCSqGSIb3DQEBBQUAMIGbMQswCQYDVQQGEwJKUDEOMAwG - // A1UECBMFVG9reW8xEDAOBgNVBAcTB0NodW8ta3UxETAPBgNVBAoTCEZyYW5rNERE - // MRgwFgYDVQQLEw9XZWJDZXJ0IFN1cHBvcnQxGDAWBgNVBAMTD0ZyYW5rNEREIFdl - // YiBDQTEjMCEGCSqGSIb3DQEJARYUc3VwcG9ydEBmcmFuazRkZC5jb20wHhcNMTIw - // ... - // -----END CERTIFICATE----- - PublicCertificate *string `mandatory:"false" json:"publicCertificate"` -} -func (m CreateCertificateDetails) String() string { - return common.PointerString(m) -} + // A friendly name for the certificate bundle. It must be unique and it cannot be changed. + // Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. + // Certificate bundle names cannot contain spaces. Avoid entering confidential information. + // Example: `My_certificate_bundle` + CertificateName *string `mandatory:"true" json:"certificateName"` + // The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider. + // Example: + // -----BEGIN CERTIFICATE----- + // MIIEczCCA1ugAwIBAgIBADANBgkqhkiG9w0BAQQFAD..AkGA1UEBhMCR0Ix + // EzARBgNVBAgTClNvbWUtU3RhdGUxFDASBgNVBAoTC0..0EgTHRkMTcwNQYD + // VQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcn..XRpb24gQXV0aG9y + // aXR5MRQwEgYDVQQDEwtCZXN0IENBIEx0ZDAeFw0wMD..TUwMTZaFw0wMTAy + // ... + // -----END CERTIFICATE----- + CaCertificate *string `mandatory:"false" json:"caCertificate"` + // A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase. + // Example: `Mysecretunlockingcode42!1!` + Passphrase *string `mandatory:"false" json:"passphrase"` + // The SSL private key for your certificate, in PEM format. + // Example: + // -----BEGIN RSA PRIVATE KEY----- + // jO1O1v2ftXMsawM90tnXwc6xhOAT1gDBC9S8DKeca..JZNUgYYwNS0dP2UK + // tmyN+XqVcAKw4HqVmChXy5b5msu8eIq3uc2NqNVtR..2ksSLukP8pxXcHyb + // +sEwvM4uf8qbnHAqwnOnP9+KV9vds6BaH1eRA4CHz..n+NVZlzBsTxTlS16 + // /Umr7wJzVrMqK5sDiSu4WuaaBdqMGfL5hLsTjcBFD..Da2iyQmSKuVD4lIZ + // ... + // -----END RSA PRIVATE KEY----- + PrivateKey *string `mandatory:"false" json:"privateKey"` + // The public certificate, in PEM format, that you received from your SSL certificate provider. + // Example: + // -----BEGIN CERTIFICATE----- + // MIIC2jCCAkMCAg38MA0GCSqGSIb3DQEBBQUAMIGbMQswCQYDVQQGEwJKUDEOMAwG + // A1UECBMFVG9reW8xEDAOBgNVBAcTB0NodW8ta3UxETAPBgNVBAoTCEZyYW5rNERE + // MRgwFgYDVQQLEw9XZWJDZXJ0IFN1cHBvcnQxGDAWBgNVBAMTD0ZyYW5rNEREIFdl + // YiBDQTEjMCEGCSqGSIb3DQEJARYUc3VwcG9ydEBmcmFuazRkZC5jb20wHhcNMTIw + // ... + // -----END CERTIFICATE----- + PublicCertificate *string `mandatory:"false" json:"publicCertificate"` +} +func (m CreateCertificateDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_certificate_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_certificate_request_response.go index 526d8782d..f92bd347e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_certificate_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_certificate_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateCertificateRequest wrapper for the CreateCertificate operation type CreateCertificateRequest struct { - - // The details of the certificate to add. - CreateCertificateDetails `contributesTo:"body"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer on which to add the certificate. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The details of the certificate to add. + CreateCertificateDetails `contributesTo:"body"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add the certificate. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateCertificateRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateCertificateResponse wrapper for the CreateCertificate operation type CreateCertificateResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response CreateCertificateResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_listener_details.go index 2f83dd489..58e7b30d6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_listener_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_listener_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,49 +9,35 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateListenerDetails The configuration details for adding a listener to a backend set. - // For more information on listener configuration, see - // [Managing Load Balancer Listeners]({{DOC_SERVER_URL}}/Content/Balance/tasks/managinglisteners.htm). +// CreateListenerDetails The configuration details for adding a listener to a backend set. +// For more information on listener configuration, see +// Managing Load Balancer Listeners (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/tasks/managinglisteners.htm). type CreateListenerDetails struct { - - // The name of the associated backend set. - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // A friendly name for the listener. It must be unique and it cannot be changed. - // Avoid entering confidential information. - // Example: `My listener` - Name *string `mandatory:"true" json:"name"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // To get a list of valid protocols, use the ListProtocols - // operation. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // The name of the associated path-based routes applied to this listener's traffic. - PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` - - // A HTTP hostname for this listener. TODO: This description needs work. - // Example: `app.example.com` - ServerName *string `mandatory:"false" json:"serverName"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` -} -func (m CreateListenerDetails) String() string { - return common.PointerString(m) -} + // The name of the associated backend set. + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + // A friendly name for the listener. It must be unique and it cannot be changed. + // Avoid entering confidential information. + // Example: `My listener` + Name *string `mandatory:"true" json:"name"` + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` +} +func (m CreateListenerDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_listener_request_response.go index 326a27b83..9c9c9f570 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_listener_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_listener_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateListenerRequest wrapper for the CreateListener operation type CreateListenerRequest struct { - - // Details to add a listener. - CreateListenerDetails `contributesTo:"body"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a listener. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details to add a listener. + CreateListenerDetails `contributesTo:"body"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a listener. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateListenerRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateListenerResponse wrapper for the CreateListener operation type CreateListenerResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response CreateListenerResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_details.go index c9d4238aa..5b08bf52a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,59 +9,49 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateLoadBalancerDetails The configuration details for creating a load balancer. +// CreateLoadBalancerDetails The configuration details for creating a load balancer. type CreateLoadBalancerDetails struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the compartment in which to create the load balancer. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My load balancer` - DisplayName *string `mandatory:"true" json:"displayName"` - - // A template that determines the total pre-provisioned bandwidth (ingress plus egress). - // To get a list of available shapes, use the ListShapes - // operation. - // Example: `100Mbps` - ShapeName *string `mandatory:"true" json:"shapeName"` - - // An array of subnet [OCIDs]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - SubnetIds []string `mandatory:"true" json:"subnetIds"` - - BackendSets map[string]BackendSetDetails `mandatory:"false" json:"backendSets"` - - Certificates map[string]CertificateDetails `mandatory:"false" json:"certificates"` - - // Whether the load balancer has a VCN-local (private) IP address. - // If "true", the service assigns a private IP address to the load balancer. The load balancer requires only one subnet - // to host both the primary and secondary load balancers. The private IP address is local to the subnet. The load balancer - // is accessible only from within the VCN that contains the associated subnet, or as further restricted by your security - // list rules. The load balancer can route traffic to any backend server that is reachable from the VCN. - // For a private load balancer, both the primary and secondary load balancer hosts are within the same Availability Domain. - // If "false", the service assigns a public IP address to the load balancer. A load balancer with a public IP address - // requires two subnets, each in a different Availability Domain. One subnet hosts the primary load balancer and the other - // hosts the secondary (standby) load balancer. A public load balancer is accessible from the internet, depending on your - // VCN's [security list rules]({{DOC_SERVER_URL}}/Content/Network/Concepts/securitylists.htm). - // Example: `false` - IsPrivate *bool `mandatory:"false" json:"isPrivate"` - - Listeners map[string]ListenerDetails `mandatory:"false" json:"listeners"` - - // An mapping of strings to PathRouteSetDetails. - PathRouteSets map[string]PathRouteSetDetails `mandatory:"false" json:"pathRouteSets"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment in which to create the load balancer. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My load balancer` + DisplayName *string `mandatory:"true" json:"displayName"` + + // A template that determines the total pre-provisioned bandwidth (ingress plus egress). + // To get a list of available shapes, use the ListShapes + // operation. + // Example: `100Mbps` + ShapeName *string `mandatory:"true" json:"shapeName"` + + // An array of subnet OCIDs (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + SubnetIds []string `mandatory:"true" json:"subnetIds"` + + BackendSets map[string]BackendSetDetails `mandatory:"false" json:"backendSets"` + + Certificates map[string]CertificateDetails `mandatory:"false" json:"certificates"` + + // Whether the load balancer has a VCN-local (private) IP address. + // If "true", the service assigns a private IP address to the load balancer. The load balancer requires only one subnet + // to host both the primary and secondary load balancers. The private IP address is local to the subnet. The load balancer + // is accessible only from within the VCN that contains the associated subnet, or as further restricted by your security + // list rules. The load balancer can route traffic to any backend server that is reachable from the VCN. + // For a private load balancer, both the primary and secondary load balancer hosts are within the same Availability Domain. + // If "false", the service assigns a public IP address to the load balancer. A load balancer with a public IP address + // requires two subnets, each in a different Availability Domain. One subnet hosts the primary load balancer and the other + // hosts the secondary (standby) load balancer. A public load balancer is accessible from the internet, depending on your + // VCN's security list rules (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/securitylists.htm). + // Example: `false` + IsPrivate *bool `mandatory:"false" json:"isPrivate"` + + Listeners map[string]ListenerDetails `mandatory:"false" json:"listeners"` } func (m CreateLoadBalancerDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_request_response.go index 623e3233e..0ff053e4e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateLoadBalancerRequest wrapper for the CreateLoadBalancer operation type CreateLoadBalancerRequest struct { - - // The configuration details for creating a load balancer. - CreateLoadBalancerDetails `contributesTo:"body"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The configuration details for creating a load balancer. + CreateLoadBalancerDetails `contributesTo:"body"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request CreateLoadBalancerRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateLoadBalancerResponse wrapper for the CreateLoadBalancer operation type CreateLoadBalancerResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response CreateLoadBalancerResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_details.go deleted file mode 100644 index d159959cb..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_details.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Load Balancing Service API -// -// API for the Load Balancing Service -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // CreatePathRouteSetDetails The representation of CreatePathRouteSetDetails -type CreatePathRouteSetDetails struct { - - // A unique name for this set of path routes. - // Example: `path-route-set-001` - Name *string `mandatory:"true" json:"name"` - - PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` -} - -func (m CreatePathRouteSetDetails) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_request_response.go deleted file mode 100644 index 661902cd0..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_request_response.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// CreatePathRouteSetRequest wrapper for the CreatePathRouteSet operation -type CreatePathRouteSetRequest struct { - - // Details to add a path route set. - CreatePathRouteSetDetails `contributesTo:"body"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a path route set. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` -} - -func (request CreatePathRouteSetRequest) String() string { - return common.PointerString(request) -} - -// CreatePathRouteSetResponse wrapper for the CreatePathRouteSet operation -type CreatePathRouteSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - -} - -func (response CreatePathRouteSetResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_backend_request_response.go index 81df2a60f..acc746c90 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_backend_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_backend_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteBackendRequest wrapper for the DeleteBackend operation type DeleteBackendRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the backend server. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The IP address and port of the backend server to remove. - // Example: `1.1.1.7:42` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the backend server. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The IP address and port of the backend server to remove. + // Example: `1.1.1.7:42` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request DeleteBackendRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteBackendResponse wrapper for the DeleteBackend operation type DeleteBackendResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response DeleteBackendResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_backend_set_request_response.go index feece9ffb..6a73967a2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_backend_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_backend_set_request_response.go @@ -1,50 +1,46 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteBackendSetRequest wrapper for the DeleteBackendSet operation type DeleteBackendSetRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set to delete. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set to delete. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request DeleteBackendSetRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteBackendSetResponse wrapper for the DeleteBackendSet operation type DeleteBackendSetResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response DeleteBackendSetResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_certificate_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_certificate_request_response.go index e49f7a036..db86b0637 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_certificate_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_certificate_request_response.go @@ -1,50 +1,46 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteCertificateRequest wrapper for the DeleteCertificate operation type DeleteCertificateRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate to be deleted. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the certificate to delete. - // Example: `My_certificate_bundle` - CertificateName *string `mandatory:"true" contributesTo:"path" name:"certificateName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate to be deleted. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the certificate to delete. + // Example: `My_certificate_bundle` + CertificateName *string `mandatory:"true" contributesTo:"path" name:"certificateName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request DeleteCertificateRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteCertificateResponse wrapper for the DeleteCertificate operation type DeleteCertificateResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response DeleteCertificateResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_listener_request_response.go index e3168db2e..b5496e029 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_listener_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_listener_request_response.go @@ -1,50 +1,46 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteListenerRequest wrapper for the DeleteListener operation type DeleteListenerRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to delete. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the listener to delete. - // Example: `My listener` - ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to delete. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the listener to delete. + // Example: `My listener` + ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request DeleteListenerRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteListenerResponse wrapper for the DeleteListener operation type DeleteListenerResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response DeleteListenerResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_load_balancer_request_response.go index 81a215ae1..3e39b143c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_load_balancer_request_response.go @@ -1,46 +1,42 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteLoadBalancerRequest wrapper for the DeleteLoadBalancer operation type DeleteLoadBalancerRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer to delete. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to delete. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request DeleteLoadBalancerRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteLoadBalancerResponse wrapper for the DeleteLoadBalancer operation type DeleteLoadBalancerResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response DeleteLoadBalancerResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_path_route_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_path_route_set_request_response.go deleted file mode 100644 index a0d6c96fa..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_path_route_set_request_response.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// DeletePathRouteSetRequest wrapper for the DeletePathRouteSet operation -type DeletePathRouteSetRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the path route set to delete. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the path route set to update. - // Example: `path-route-set-001` - PathRouteSetName *string `mandatory:"true" contributesTo:"path" name:"pathRouteSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` -} - -func (request DeletePathRouteSetRequest) String() string { - return common.PointerString(request) -} - -// DeletePathRouteSetResponse wrapper for the DeletePathRouteSet operation -type DeletePathRouteSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - -} - -func (response DeletePathRouteSetResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_health_request_response.go index 9f5a72836..6216d7aa9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_health_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_health_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetBackendHealthRequest wrapper for the GetBackendHealth operation type GetBackendHealthRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend server health status to be retrieved. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the backend server to retrieve the health status for. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The IP address and port of the backend server to retrieve the health status for. - // Example: `1.1.1.7:42` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend server health status to be retrieved. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the backend server to retrieve the health status for. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The IP address and port of the backend server to retrieve the health status for. + // Example: `1.1.1.7:42` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request GetBackendHealthRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetBackendHealthResponse wrapper for the GetBackendHealth operation type GetBackendHealthResponse struct { - // The underlying http response - RawResponse *http.Response - - // The BackendHealth instance - BackendHealth `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The BackendHealth instance + BackendHealth `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetBackendHealthResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_request_response.go index 6a8afa05b..b795f0a4f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_request_response.go @@ -1,54 +1,50 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetBackendRequest wrapper for the GetBackend operation type GetBackendRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set that includes the backend server. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The IP address and port of the backend server to retrieve. - // Example: `1.1.1.7:42` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set that includes the backend server. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The IP address and port of the backend server to retrieve. + // Example: `1.1.1.7:42` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request GetBackendRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetBackendResponse wrapper for the GetBackend operation type GetBackendResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Backend instance - Backend `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The Backend instance + Backend `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetBackendResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_set_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_set_health_request_response.go index 5079157a2..9c1952f17 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_set_health_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_set_health_request_response.go @@ -1,50 +1,46 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetBackendSetHealthRequest wrapper for the GetBackendSetHealth operation type GetBackendSetHealthRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set health status to be retrieved. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set to retrieve the health status for. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set health status to be retrieved. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set to retrieve the health status for. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request GetBackendSetHealthRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetBackendSetHealthResponse wrapper for the GetBackendSetHealth operation type GetBackendSetHealthResponse struct { - // The underlying http response - RawResponse *http.Response - - // The BackendSetHealth instance - BackendSetHealth `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The BackendSetHealth instance + BackendSetHealth `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetBackendSetHealthResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_set_request_response.go index 7b9b6430f..19b461368 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_backend_set_request_response.go @@ -1,50 +1,46 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetBackendSetRequest wrapper for the GetBackendSet operation type GetBackendSetRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set to retrieve. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set to retrieve. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request GetBackendSetRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetBackendSetResponse wrapper for the GetBackendSet operation type GetBackendSetResponse struct { - // The underlying http response - RawResponse *http.Response - - // The BackendSet instance - BackendSet `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The BackendSet instance + BackendSet `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetBackendSetResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_health_checker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_health_checker_request_response.go index a3d50dfdd..70cfdc6f6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_health_checker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_health_checker_request_response.go @@ -1,50 +1,46 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetHealthCheckerRequest wrapper for the GetHealthChecker operation type GetHealthCheckerRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be retrieved. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the health check policy to be retrieved. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be retrieved. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the health check policy to be retrieved. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request GetHealthCheckerRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetHealthCheckerResponse wrapper for the GetHealthChecker operation type GetHealthCheckerResponse struct { - // The underlying http response - RawResponse *http.Response - - // The HealthChecker instance - HealthChecker `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The HealthChecker instance + HealthChecker `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetHealthCheckerResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_load_balancer_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_load_balancer_health_request_response.go index 610486d90..03783ea3a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_load_balancer_health_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_load_balancer_health_request_response.go @@ -1,46 +1,42 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetLoadBalancerHealthRequest wrapper for the GetLoadBalancerHealth operation type GetLoadBalancerHealthRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer to return health status for. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to return health status for. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request GetLoadBalancerHealthRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetLoadBalancerHealthResponse wrapper for the GetLoadBalancerHealth operation type GetLoadBalancerHealthResponse struct { - // The underlying http response - RawResponse *http.Response - - // The LoadBalancerHealth instance - LoadBalancerHealth `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The LoadBalancerHealth instance + LoadBalancerHealth `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetLoadBalancerHealthResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_load_balancer_request_response.go index 35fc6671a..4f6347794 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_load_balancer_request_response.go @@ -1,46 +1,42 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetLoadBalancerRequest wrapper for the GetLoadBalancer operation type GetLoadBalancerRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer to retrieve. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to retrieve. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request GetLoadBalancerRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetLoadBalancerResponse wrapper for the GetLoadBalancer operation type GetLoadBalancerResponse struct { - // The underlying http response - RawResponse *http.Response - - // The LoadBalancer instance - LoadBalancer `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The LoadBalancer instance + LoadBalancer `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetLoadBalancerResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_path_route_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_path_route_set_request_response.go deleted file mode 100644 index e043ee161..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_path_route_set_request_response.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// GetPathRouteSetRequest wrapper for the GetPathRouteSet operation -type GetPathRouteSetRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the path route set to retrieve. - // Example: `website1_path_route_set` - PathRouteSetName *string `mandatory:"true" contributesTo:"path" name:"pathRouteSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` -} - -func (request GetPathRouteSetRequest) String() string { - return common.PointerString(request) -} - -// GetPathRouteSetResponse wrapper for the GetPathRouteSet operation -type GetPathRouteSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The PathRouteSet instance - PathRouteSet `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response GetPathRouteSetResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_work_request_request_response.go index 1475cd88d..5159bf9c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_work_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_work_request_request_response.go @@ -1,46 +1,42 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetWorkRequestRequest wrapper for the GetWorkRequest operation type GetWorkRequestRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request to retrieve. - WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request to retrieve. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request GetWorkRequestRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetWorkRequestResponse wrapper for the GetWorkRequest operation type GetWorkRequestResponse struct { - // The underlying http response - RawResponse *http.Response - - // The WorkRequest instance - WorkRequest `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The WorkRequest instance + WorkRequest `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetWorkRequestResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_check_result.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_check_result.go index 0a3b5ac29..8c7a04152 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_check_result.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_check_result.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,71 +9,63 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // HealthCheckResult Information about a single backend server health check result reported by a load balancer. +// HealthCheckResult Information about a single backend server health check result reported by a load balancer. type HealthCheckResult struct { - - // The result of the most recent health check. - HealthCheckStatus HealthCheckResultHealthCheckStatusEnum `mandatory:"true" json:"healthCheckStatus"` - - // The IP address of the health check status report provider. This identifier helps you differentiate same-subnet - // (private) load balancers that report health check status. - // Example: `10.2.0.1` - SourceIpAddress *string `mandatory:"true" json:"sourceIpAddress"` - - // The OCID of the subnet hosting the load balancer that reported this health check status. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The date and time the data was retrieved, in the format defined by RFC3339. - // Example: `2017-06-02T18:28:11+00:00` - Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` + + // The result of the most recent health check. + HealthCheckStatus HealthCheckResultHealthCheckStatusEnum `mandatory:"true" json:"healthCheckStatus"` + + // The IP address of the health check status report provider. This identifier helps you differentiate same-subnet + // (private) load balancers that report health check status. + // Example: `10.2.0.1` + SourceIpAddress *string `mandatory:"true" json:"sourceIpAddress"` + + // The OCID of the subnet hosting the load balancer that reported this health check status. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The date and time the data was retrieved, in the format defined by RFC3339. + // Example: `2017-06-02T18:28:11+00:00` + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` } func (m HealthCheckResult) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // HealthCheckResultHealthCheckStatusEnum Enum with underlying type: string type HealthCheckResultHealthCheckStatusEnum string // Set of constants representing the allowable values for HealthCheckResultHealthCheckStatus const ( - HealthCheckResultHealthCheckStatusOk HealthCheckResultHealthCheckStatusEnum = "OK" - HealthCheckResultHealthCheckStatusInvalidStatusCode HealthCheckResultHealthCheckStatusEnum = "INVALID_STATUS_CODE" - HealthCheckResultHealthCheckStatusTimedOut HealthCheckResultHealthCheckStatusEnum = "TIMED_OUT" - HealthCheckResultHealthCheckStatusRegexMismatch HealthCheckResultHealthCheckStatusEnum = "REGEX_MISMATCH" - HealthCheckResultHealthCheckStatusConnectFailed HealthCheckResultHealthCheckStatusEnum = "CONNECT_FAILED" - HealthCheckResultHealthCheckStatusIoError HealthCheckResultHealthCheckStatusEnum = "IO_ERROR" - HealthCheckResultHealthCheckStatusOffline HealthCheckResultHealthCheckStatusEnum = "OFFLINE" - HealthCheckResultHealthCheckStatusUnknown HealthCheckResultHealthCheckStatusEnum = "UNKNOWN" - + HealthCheckResultHealthCheckStatusOk HealthCheckResultHealthCheckStatusEnum = "OK" + HealthCheckResultHealthCheckStatusInvalidStatusCode HealthCheckResultHealthCheckStatusEnum = "INVALID_STATUS_CODE" + HealthCheckResultHealthCheckStatusTimedOut HealthCheckResultHealthCheckStatusEnum = "TIMED_OUT" + HealthCheckResultHealthCheckStatusRegexMismatch HealthCheckResultHealthCheckStatusEnum = "REGEX_MISMATCH" + HealthCheckResultHealthCheckStatusConnectFailed HealthCheckResultHealthCheckStatusEnum = "CONNECT_FAILED" + HealthCheckResultHealthCheckStatusIoError HealthCheckResultHealthCheckStatusEnum = "IO_ERROR" + HealthCheckResultHealthCheckStatusOffline HealthCheckResultHealthCheckStatusEnum = "OFFLINE" + HealthCheckResultHealthCheckStatusUnknown HealthCheckResultHealthCheckStatusEnum = "UNKNOWN" ) -var mappingHealthCheckResultHealthCheckStatus = map[string]HealthCheckResultHealthCheckStatusEnum { - "OK": HealthCheckResultHealthCheckStatusOk, - "INVALID_STATUS_CODE": HealthCheckResultHealthCheckStatusInvalidStatusCode, - "TIMED_OUT": HealthCheckResultHealthCheckStatusTimedOut, - "REGEX_MISMATCH": HealthCheckResultHealthCheckStatusRegexMismatch, - "CONNECT_FAILED": HealthCheckResultHealthCheckStatusConnectFailed, - "IO_ERROR": HealthCheckResultHealthCheckStatusIoError, - "OFFLINE": HealthCheckResultHealthCheckStatusOffline, - "UNKNOWN": HealthCheckResultHealthCheckStatusUnknown, - +var mappingHealthCheckResultHealthCheckStatus = map[string]HealthCheckResultHealthCheckStatusEnum{ + "OK": HealthCheckResultHealthCheckStatusOk, + "INVALID_STATUS_CODE": HealthCheckResultHealthCheckStatusInvalidStatusCode, + "TIMED_OUT": HealthCheckResultHealthCheckStatusTimedOut, + "REGEX_MISMATCH": HealthCheckResultHealthCheckStatusRegexMismatch, + "CONNECT_FAILED": HealthCheckResultHealthCheckStatusConnectFailed, + "IO_ERROR": HealthCheckResultHealthCheckStatusIoError, + "OFFLINE": HealthCheckResultHealthCheckStatusOffline, + "UNKNOWN": HealthCheckResultHealthCheckStatusUnknown, } // GetHealthCheckResultHealthCheckStatusEnumValues Enumerates the set of values for HealthCheckResultHealthCheckStatus func GetHealthCheckResultHealthCheckStatusEnumValues() []HealthCheckResultHealthCheckStatusEnum { - values := make([]HealthCheckResultHealthCheckStatusEnum, 0) - for _, v := range mappingHealthCheckResultHealthCheckStatus { - values = append(values, v) - } - return values + values := make([]HealthCheckResultHealthCheckStatusEnum, 0) + for _, v := range mappingHealthCheckResultHealthCheckStatus { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_checker.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_checker.go index 6fbedd13c..5f5150076 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_checker.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_checker.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,56 +9,49 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // HealthChecker The health check policy configuration. - // For more information, see [Editing Health Check Policies]({{DOC_SERVER_URL}}/Content/Balance/Tasks/editinghealthcheck.htm). +// HealthChecker The health check policy configuration. +// For more information, see Editing Health Check Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/editinghealthcheck.htm). type HealthChecker struct { - - // The backend server port against which to run the health check. If the port is not specified, the load balancer uses the - // port information from the `Backend` object. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // The protocol the health check must use; either HTTP or TCP. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // A regular expression for parsing the response body from the backend server. - // Example: `^(500|40[1348])$` - ResponseBodyRegex *string `mandatory:"true" json:"responseBodyRegex"` - - // The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol, - // you can use common HTTP status codes such as "200". - // Example: `200` - ReturnCode *int `mandatory:"true" json:"returnCode"` - - // The interval between health checks, in milliseconds. The default is 10000 (10 seconds). - // Example: `30000` - IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` - - // The number of retries to attempt before a backend server is considered "unhealthy". Defaults to 3. - // Example: `3` - Retries *int `mandatory:"false" json:"retries"` - - // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply - // returns within this timeout period. Defaults to 3000 (3 seconds). - // Example: `6000` - TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` - - // The path against which to run the health check. - // Example: `/healthcheck` - UrlPath *string `mandatory:"false" json:"urlPath"` -} -func (m HealthChecker) String() string { - return common.PointerString(m) -} + // The backend server port against which to run the health check. If the port is not specified, the load balancer uses the + // port information from the `Backend` object. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // The protocol the health check must use; either HTTP or TCP. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + // A regular expression for parsing the response body from the backend server. + // Example: `^(500|40[1348])$` + ResponseBodyRegex *string `mandatory:"true" json:"responseBodyRegex"` + // The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol, + // you can use common HTTP status codes such as "200". + // Example: `200` + ReturnCode *int `mandatory:"true" json:"returnCode"` + // The interval between health checks, in milliseconds. The default is 10000 (10 seconds). + // Example: `30000` + IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` + // The number of retries to attempt before a backend server is considered "unhealthy". Defaults to 3. + // Example: `3` + Retries *int `mandatory:"false" json:"retries"` + // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply + // returns within this timeout period. Defaults to 3000 (3 seconds). + // Example: `6000` + TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` + + // The path against which to run the health check. + // Example: `/healthcheck` + UrlPath *string `mandatory:"false" json:"urlPath"` +} + +func (m HealthChecker) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_checker_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_checker_details.go index 670ada17c..29f9a90c8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_checker_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/health_checker_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,54 +9,47 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // HealthCheckerDetails The health check policy's configuration details. +// HealthCheckerDetails The health check policy's configuration details. type HealthCheckerDetails struct { - - // The protocol the health check must use; either HTTP or TCP. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // The interval between health checks, in milliseconds. - // Example: `30000` - IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` - - // The backend server port against which to run the health check. If the port is not specified, the load balancer uses the - // port information from the `Backend` object. - // Example: `8080` - Port *int `mandatory:"false" json:"port"` - - // A regular expression for parsing the response body from the backend server. - // Example: `^(500|40[1348])$` - ResponseBodyRegex *string `mandatory:"false" json:"responseBodyRegex"` - - // The number of retries to attempt before a backend server is considered "unhealthy". - // Example: `3` - Retries *int `mandatory:"false" json:"retries"` - - // The status code a healthy backend server should return. - // Example: `200` - ReturnCode *int `mandatory:"false" json:"returnCode"` - - // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply - // returns within this timeout period. - // Example: `6000` - TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` - - // The path against which to run the health check. - // Example: `/healthcheck` - UrlPath *string `mandatory:"false" json:"urlPath"` -} -func (m HealthCheckerDetails) String() string { - return common.PointerString(m) -} + // The protocol the health check must use; either HTTP or TCP. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + + // The interval between health checks, in milliseconds. + // Example: `30000` + IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` + // The backend server port against which to run the health check. If the port is not specified, the load balancer uses the + // port information from the `Backend` object. + // Example: `8080` + Port *int `mandatory:"false" json:"port"` + // A regular expression for parsing the response body from the backend server. + // Example: `^(500|40[1348])$` + ResponseBodyRegex *string `mandatory:"false" json:"responseBodyRegex"` + // The number of retries to attempt before a backend server is considered "unhealthy". + // Example: `3` + Retries *int `mandatory:"false" json:"retries"` + // The status code a healthy backend server should return. + // Example: `200` + ReturnCode *int `mandatory:"false" json:"returnCode"` + // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply + // returns within this timeout period. + // Example: `6000` + TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` + + // The path against which to run the health check. + // Example: `/healthcheck` + UrlPath *string `mandatory:"false" json:"urlPath"` +} + +func (m HealthCheckerDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ip_address.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ip_address.go index 8a59e292f..04892809e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ip_address.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ip_address.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,29 +9,22 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // IpAddress A load balancer IP address. +// IpAddress A load balancer IP address. type IpAddress struct { - - // An IP address. - // Example: `128.148.10.20` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // Whether the IP address is public or private. - // If "true", the IP address is public and accessible from the internet. - // If "false", the IP address is private and accessible only from within the associated VCN. - IsPublic *bool `mandatory:"false" json:"isPublic"` + + // An IP address. + // Example: `128.148.10.20` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // Whether the IP address is public or private. + // If "true", the IP address is public and accessible from the internet. + // If "false", the IP address is private and accessible only from within the associated VCN. + IsPublic *bool `mandatory:"false" json:"isPublic"` } func (m IpAddress) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_backend_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_backend_sets_request_response.go index 1b6d27b9e..240a49811 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_backend_sets_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_backend_sets_request_response.go @@ -1,46 +1,42 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListBackendSetsRequest wrapper for the ListBackendSets operation type ListBackendSetsRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend sets to retrieve. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend sets to retrieve. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request ListBackendSetsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListBackendSetsResponse wrapper for the ListBackendSets operation type ListBackendSetsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []BackendSet instance - Items []BackendSet `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The []BackendSet instance + Items []BackendSet `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListBackendSetsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_backends_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_backends_request_response.go index 20420b9b0..dd68c498a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_backends_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_backends_request_response.go @@ -1,50 +1,46 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListBackendsRequest wrapper for the ListBackends operation type ListBackendsRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the backend servers. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the backend servers. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request ListBackendsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListBackendsResponse wrapper for the ListBackends operation type ListBackendsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Backend instance - Items []Backend `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The []Backend instance + Items []Backend `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListBackendsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_certificates_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_certificates_request_response.go index 928efa896..b5e62bc07 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_certificates_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_certificates_request_response.go @@ -1,46 +1,42 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListCertificatesRequest wrapper for the ListCertificates operation type ListCertificatesRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificates to be listed. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificates to be listed. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` } func (request ListCertificatesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListCertificatesResponse wrapper for the ListCertificates operation type ListCertificatesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []Certificate instance - Items []Certificate `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // The []Certificate instance + Items []Certificate `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListCertificatesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancer_healths_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancer_healths_request_response.go index 3016adb93..959153da0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancer_healths_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancer_healths_request_response.go @@ -1,59 +1,55 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListLoadBalancerHealthsRequest wrapper for the ListLoadBalancerHealths operation type ListLoadBalancerHealthsRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to return health status information for. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - // Example: `3` - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to return health status information for. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + // Example: `3` + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListLoadBalancerHealthsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListLoadBalancerHealthsResponse wrapper for the ListLoadBalancerHealths operation type ListLoadBalancerHealthsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []LoadBalancerHealthSummary instance - Items []LoadBalancerHealthSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []LoadBalancerHealthSummary instance + Items []LoadBalancerHealthSummary `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListLoadBalancerHealthsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancers_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancers_request_response.go index 1843b4614..608697685 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancers_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancers_request_response.go @@ -1,76 +1,73 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListLoadBalancersRequest wrapper for the ListLoadBalancers operation type ListLoadBalancersRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - // Example: `3` - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The level of detail to return for each result. Can be `full` or `simple`. - // Example: `full` - Detail *string `mandatory:"false" contributesTo:"query" name:"detail"` - - // The field to sort by. Only one sort order may be provided. Time created is default ordered as descending. Display name is default ordered as ascending. - SortBy ListLoadBalancersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc' - SortOrder ListLoadBalancersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // A filter to only return resources that match the given lifecycle state. - LifecycleState LoadBalancerLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + // Example: `3` + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The level of detail to return for each result. Can be `full` or `simple`. + // Example: `full` + Detail *string `mandatory:"false" contributesTo:"query" name:"detail"` + + // The field to sort by. Only one sort order may be provided. Time created is default ordered as descending. Display name is default ordered as ascending. + SortBy ListLoadBalancersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc' + SortOrder ListLoadBalancersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A filter to only return resources that match the given lifecycle state. + LifecycleState LoadBalancerLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } func (request ListLoadBalancersRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListLoadBalancersResponse wrapper for the ListLoadBalancers operation type ListLoadBalancersResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []LoadBalancer instance - Items []LoadBalancer `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []LoadBalancer instance + Items []LoadBalancer `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListLoadBalancersResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } // ListLoadBalancersSortByEnum Enum with underlying type: string @@ -78,26 +75,22 @@ type ListLoadBalancersSortByEnum string // Set of constants representing the allowable values for ListLoadBalancersSortBy const ( - ListLoadBalancersSortByTimecreated ListLoadBalancersSortByEnum = "TIMECREATED" - ListLoadBalancersSortByDisplayname ListLoadBalancersSortByEnum = "DISPLAYNAME" - ListLoadBalancersSortByUnknown ListLoadBalancersSortByEnum = "UNKNOWN" + ListLoadBalancersSortByTimecreated ListLoadBalancersSortByEnum = "TIMECREATED" + ListLoadBalancersSortByDisplayname ListLoadBalancersSortByEnum = "DISPLAYNAME" ) -var mappingListLoadBalancersSortBy = map[string]ListLoadBalancersSortByEnum { - "TIMECREATED": ListLoadBalancersSortByTimecreated, - "DISPLAYNAME": ListLoadBalancersSortByDisplayname, - "UNKNOWN": ListLoadBalancersSortByUnknown, +var mappingListLoadBalancersSortBy = map[string]ListLoadBalancersSortByEnum{ + "TIMECREATED": ListLoadBalancersSortByTimecreated, + "DISPLAYNAME": ListLoadBalancersSortByDisplayname, } // GetListLoadBalancersSortByEnumValues Enumerates the set of values for ListLoadBalancersSortBy func GetListLoadBalancersSortByEnumValues() []ListLoadBalancersSortByEnum { - values := make([]ListLoadBalancersSortByEnum, 0) - for _, v := range mappingListLoadBalancersSortBy { - if v != ListLoadBalancersSortByUnknown { - values = append(values, v) - } - } - return values + values := make([]ListLoadBalancersSortByEnum, 0) + for _, v := range mappingListLoadBalancersSortBy { + values = append(values, v) + } + return values } // ListLoadBalancersSortOrderEnum Enum with underlying type: string @@ -105,25 +98,20 @@ type ListLoadBalancersSortOrderEnum string // Set of constants representing the allowable values for ListLoadBalancersSortOrder const ( - ListLoadBalancersSortOrderAsc ListLoadBalancersSortOrderEnum = "ASC" - ListLoadBalancersSortOrderDesc ListLoadBalancersSortOrderEnum = "DESC" - ListLoadBalancersSortOrderUnknown ListLoadBalancersSortOrderEnum = "UNKNOWN" + ListLoadBalancersSortOrderAsc ListLoadBalancersSortOrderEnum = "ASC" + ListLoadBalancersSortOrderDesc ListLoadBalancersSortOrderEnum = "DESC" ) -var mappingListLoadBalancersSortOrder = map[string]ListLoadBalancersSortOrderEnum { - "ASC": ListLoadBalancersSortOrderAsc, - "DESC": ListLoadBalancersSortOrderDesc, - "UNKNOWN": ListLoadBalancersSortOrderUnknown, +var mappingListLoadBalancersSortOrder = map[string]ListLoadBalancersSortOrderEnum{ + "ASC": ListLoadBalancersSortOrderAsc, + "DESC": ListLoadBalancersSortOrderDesc, } // GetListLoadBalancersSortOrderEnumValues Enumerates the set of values for ListLoadBalancersSortOrder func GetListLoadBalancersSortOrderEnumValues() []ListLoadBalancersSortOrderEnum { - values := make([]ListLoadBalancersSortOrderEnum, 0) - for _, v := range mappingListLoadBalancersSortOrder { - if v != ListLoadBalancersSortOrderUnknown { - values = append(values, v) - } - } - return values + values := make([]ListLoadBalancersSortOrderEnum, 0) + for _, v := range mappingListLoadBalancersSortOrder { + values = append(values, v) + } + return values } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_path_route_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_path_route_sets_request_response.go deleted file mode 100644 index 253587daa..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_path_route_sets_request_response.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// ListPathRouteSetsRequest wrapper for the ListPathRouteSets operation -type ListPathRouteSetsRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend sets to retrieve. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` -} - -func (request ListPathRouteSetsRequest) String() string { - return common.PointerString(request) -} - -// ListPathRouteSetsResponse wrapper for the ListPathRouteSets operation -type ListPathRouteSetsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []PathRouteSet instance - Items []PathRouteSet `presentIn:"body"` - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - -} - -func (response ListPathRouteSetsResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_policies_request_response.go index a12c164d6..197f32e5a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_policies_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_policies_request_response.go @@ -1,59 +1,55 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListPoliciesRequest wrapper for the ListPolicies operation type ListPoliciesRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer policies to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - // Example: `3` - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer policies to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + // Example: `3` + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListPoliciesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListPoliciesResponse wrapper for the ListPolicies operation type ListPoliciesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []LoadBalancerPolicy instance - Items []LoadBalancerPolicy `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []LoadBalancerPolicy instance + Items []LoadBalancerPolicy `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListPoliciesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_protocols_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_protocols_request_response.go index b3776222a..d6e9c4e30 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_protocols_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_protocols_request_response.go @@ -1,59 +1,55 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListProtocolsRequest wrapper for the ListProtocols operation type ListProtocolsRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer protocols to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - // Example: `3` - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer protocols to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + // Example: `3` + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListProtocolsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListProtocolsResponse wrapper for the ListProtocols operation type ListProtocolsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []LoadBalancerProtocol instance - Items []LoadBalancerProtocol `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []LoadBalancerProtocol instance + Items []LoadBalancerProtocol `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListProtocolsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_shapes_request_response.go index 0905d2713..0db13f617 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_shapes_request_response.go @@ -1,59 +1,55 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListShapesRequest wrapper for the ListShapes operation type ListShapesRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer shapes to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - // Example: `3` - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer shapes to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + // Example: `3` + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListShapesRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListShapesResponse wrapper for the ListShapes operation type ListShapesResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []LoadBalancerShape instance - Items []LoadBalancerShape `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []LoadBalancerShape instance + Items []LoadBalancerShape `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListShapesResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_work_requests_request_response.go index 00b722f5e..13018c150 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_work_requests_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_work_requests_request_response.go @@ -1,59 +1,55 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListWorkRequestsRequest wrapper for the ListWorkRequests operation type ListWorkRequestsRequest struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the work requests to retrieve. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The maximum number of items to return in a paginated "List" call. - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - // Example: `3` - Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the work requests to retrieve. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The maximum number of items to return in a paginated "List" call. + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + // Example: `3` + Page *string `mandatory:"false" contributesTo:"query" name:"page"` } func (request ListWorkRequestsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListWorkRequestsResponse wrapper for the ListWorkRequests operation type ListWorkRequestsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []WorkRequest instance - Items []WorkRequest `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The []WorkRequest instance + Items []WorkRequest `presentIn:"body"` + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListWorkRequestsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/listener.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/listener.go index e26064501..31110fd5e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/listener.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/listener.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,48 +9,34 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Listener The listener's configuration. - // For more information on backend set configuration, see - // [Managing Load Balancer Listeners]({{DOC_SERVER_URL}}/Content/Balance/tasks/managinglisteners.htm). +// Listener The listener's configuration. +// For more information on backend set configuration, see +// Managing Load Balancer Listeners (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/tasks/managinglisteners.htm). type Listener struct { - - // The name of the associated backend set. - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // A friendly name for the listener. It must be unique and it cannot be changed. - // Example: `My listener` - Name *string `mandatory:"true" json:"name"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // To get a list of valid protocols, use the ListProtocols - // operation. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // The name of the associated path-based routes applied to this listener's traffic. - PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` - - // A HTTP hostname for this listener. TODO: This description needs work. - // Example: `app.example.com` - ServerName *string `mandatory:"false" json:"serverName"` - - SslConfiguration *SslConfiguration `mandatory:"false" json:"sslConfiguration"` -} -func (m Listener) String() string { - return common.PointerString(m) -} + // The name of the associated backend set. + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + // A friendly name for the listener. It must be unique and it cannot be changed. + // Example: `My listener` + Name *string `mandatory:"true" json:"name"` + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + SslConfiguration *SslConfiguration `mandatory:"false" json:"sslConfiguration"` +} +func (m Listener) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/listener_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/listener_details.go index 398a2336a..15b4e5d9a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/listener_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/listener_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,42 +9,28 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // ListenerDetails The listener's configuration details. +// ListenerDetails The listener's configuration details. type ListenerDetails struct { - - // The name of the associated backend set. - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // To get a list of valid protocols, use the ListProtocols - // operation. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // The name of the associated path-based routes applied to this listener's traffic. - PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` - - // A HTTP hostname for this listener. TODO: This description needs work. - // Example: `app.example.com` - ServerName *string `mandatory:"false" json:"serverName"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` -} - -func (m ListenerDetails) String() string { - return common.PointerString(m) -} + // The name of the associated backend set. + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` +} +func (m ListenerDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer.go index 200ebd072..bf621e4a9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,108 +9,96 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // LoadBalancer The properties that define a load balancer. For more information, see - // [Managing a Load Balancer]({{DOC_SERVER_URL}}/Content/Balance/Tasks/managingloadbalancer.htm). - // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). - // For information about endpoints and signing API requests, see - // [About the API]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see - // [SDKS and Other Tools]({{DOC_SERVER_URL}}/Content/API/Concepts/sdks.htm). +// LoadBalancer The properties that define a load balancer. For more information, see +// Managing a Load Balancer (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingloadbalancer.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// For information about endpoints and signing API requests, see +// About the API (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see +// SDKS and Other Tools (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/sdks.htm). type LoadBalancer struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Example: `My load balancer` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer. - Id *string `mandatory:"true" json:"id"` - - // The current state of the load balancer. - LifecycleState LoadBalancerLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A template that determines the total pre-provisioned bandwidth (ingress plus egress). - // To get a list of available shapes, use the ListShapes - // operation. - // Example: `100Mbps` - ShapeName *string `mandatory:"true" json:"shapeName"` - - // The date and time the load balancer was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - BackendSets map[string]BackendSet `mandatory:"false" json:"backendSets"` - - Certificates map[string]Certificate `mandatory:"false" json:"certificates"` - - // An array of IP addresses. - IpAddresses []IpAddress `mandatory:"false" json:"ipAddresses"` - - // Whether the load balancer has a VCN-local (private) IP address. - // If "true", the service assigns a private IP address to the load balancer. The load balancer requires only one subnet - // to host both the primary and secondary load balancers. The private IP address is local to the subnet. The load balancer - // is accessible only from within the VCN that contains the associated subnet, or as further restricted by your security - // list rules. The load balancer can route traffic to any backend server that is reachable from the VCN. - // For a private load balancer, both the primary and secondary load balancer hosts are within the same Availability Domain. - // If "false", the service assigns a public IP address to the load balancer. A load balancer with a public IP address - // requires two subnets, each in a different Availability Domain. One subnet hosts the primary load balancer and the other - // hosts the secondary (standby) load balancer. A public load balancer is accessible from the internet, depending on your - // VCN's [security list rules]({{DOC_SERVER_URL}}/Content/Network/Concepts/securitylists.htm). - IsPrivate *bool `mandatory:"false" json:"isPrivate"` - - Listeners map[string]Listener `mandatory:"false" json:"listeners"` - - PathRouteSets map[string]PathRouteSet `mandatory:"false" json:"pathRouteSets"` - - // An array of subnet [OCIDs]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - SubnetIds []string `mandatory:"false" json:"subnetIds"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Example: `My load balancer` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer. + Id *string `mandatory:"true" json:"id"` + + // The current state of the load balancer. + LifecycleState LoadBalancerLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A template that determines the total pre-provisioned bandwidth (ingress plus egress). + // To get a list of available shapes, use the ListShapes + // operation. + // Example: `100Mbps` + ShapeName *string `mandatory:"true" json:"shapeName"` + + // The date and time the load balancer was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + BackendSets map[string]BackendSet `mandatory:"false" json:"backendSets"` + + Certificates map[string]Certificate `mandatory:"false" json:"certificates"` + + // An array of IP addresses. + IpAddresses []IpAddress `mandatory:"false" json:"ipAddresses"` + + // Whether the load balancer has a VCN-local (private) IP address. + // If "true", the service assigns a private IP address to the load balancer. The load balancer requires only one subnet + // to host both the primary and secondary load balancers. The private IP address is local to the subnet. The load balancer + // is accessible only from within the VCN that contains the associated subnet, or as further restricted by your security + // list rules. The load balancer can route traffic to any backend server that is reachable from the VCN. + // For a private load balancer, both the primary and secondary load balancer hosts are within the same Availability Domain. + // If "false", the service assigns a public IP address to the load balancer. A load balancer with a public IP address + // requires two subnets, each in a different Availability Domain. One subnet hosts the primary load balancer and the other + // hosts the secondary (standby) load balancer. A public load balancer is accessible from the internet, depending on your + // VCN's security list rules (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/securitylists.htm). + IsPrivate *bool `mandatory:"false" json:"isPrivate"` + + Listeners map[string]Listener `mandatory:"false" json:"listeners"` + + // An array of subnet OCIDs (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + SubnetIds []string `mandatory:"false" json:"subnetIds"` } func (m LoadBalancer) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // LoadBalancerLifecycleStateEnum Enum with underlying type: string type LoadBalancerLifecycleStateEnum string // Set of constants representing the allowable values for LoadBalancerLifecycleState const ( - LoadBalancerLifecycleStateCreating LoadBalancerLifecycleStateEnum = "CREATING" - LoadBalancerLifecycleStateFailed LoadBalancerLifecycleStateEnum = "FAILED" - LoadBalancerLifecycleStateActive LoadBalancerLifecycleStateEnum = "ACTIVE" - LoadBalancerLifecycleStateDeleting LoadBalancerLifecycleStateEnum = "DELETING" - LoadBalancerLifecycleStateDeleted LoadBalancerLifecycleStateEnum = "DELETED" - LoadBalancerLifecycleStateUnknown LoadBalancerLifecycleStateEnum = "UNKNOWN" + LoadBalancerLifecycleStateCreating LoadBalancerLifecycleStateEnum = "CREATING" + LoadBalancerLifecycleStateFailed LoadBalancerLifecycleStateEnum = "FAILED" + LoadBalancerLifecycleStateActive LoadBalancerLifecycleStateEnum = "ACTIVE" + LoadBalancerLifecycleStateDeleting LoadBalancerLifecycleStateEnum = "DELETING" + LoadBalancerLifecycleStateDeleted LoadBalancerLifecycleStateEnum = "DELETED" ) -var mappingLoadBalancerLifecycleState = map[string]LoadBalancerLifecycleStateEnum { - "CREATING": LoadBalancerLifecycleStateCreating, - "FAILED": LoadBalancerLifecycleStateFailed, - "ACTIVE": LoadBalancerLifecycleStateActive, - "DELETING": LoadBalancerLifecycleStateDeleting, - "DELETED": LoadBalancerLifecycleStateDeleted, - "UNKNOWN": LoadBalancerLifecycleStateUnknown, +var mappingLoadBalancerLifecycleState = map[string]LoadBalancerLifecycleStateEnum{ + "CREATING": LoadBalancerLifecycleStateCreating, + "FAILED": LoadBalancerLifecycleStateFailed, + "ACTIVE": LoadBalancerLifecycleStateActive, + "DELETING": LoadBalancerLifecycleStateDeleting, + "DELETED": LoadBalancerLifecycleStateDeleted, } // GetLoadBalancerLifecycleStateEnumValues Enumerates the set of values for LoadBalancerLifecycleState func GetLoadBalancerLifecycleStateEnumValues() []LoadBalancerLifecycleStateEnum { - values := make([]LoadBalancerLifecycleStateEnum, 0) - for _, v := range mappingLoadBalancerLifecycleState { - if v != LoadBalancerLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]LoadBalancerLifecycleStateEnum, 0) + for _, v := range mappingLoadBalancerLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_health.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_health.go index 0fb6a2aa2..ab7de4a9d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_health.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_health.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,82 +9,74 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // LoadBalancerHealth The health status details for the specified load balancer. - // This object does not explicitly enumerate backend sets with a status of `OK`. However, they are included in the - // `totalBackendSetCount` sum. +// LoadBalancerHealth The health status details for the specified load balancer. +// This object does not explicitly enumerate backend sets with a status of `OK`. However, they are included in the +// `totalBackendSetCount` sum. type LoadBalancerHealth struct { - - // A list of backend sets that are currently in the `CRITICAL` health state. The list identifies each backend set by the - // friendly name you assigned when you created it. - // Example: `My_backend_set` - CriticalStateBackendSetNames []string `mandatory:"true" json:"criticalStateBackendSetNames"` - - // The overall health status of the load balancer. - // * **OK:** All backend sets associated with the load balancer return a status of `OK`. - // * **WARNING:** At least one of the backend sets associated with the load balancer returns a status of `WARNING`, - // no backend sets return a status of `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. - // * **CRITICAL:** One or more of the backend sets associated with the load balancer return a status of `CRITICAL`. - // * **UNKNOWN:** If any one of the following conditions is true: - // * The load balancer life cycle state is not `ACTIVE`. - // * No backend sets are defined for the load balancer. - // * More than half of the backend sets associated with the load balancer return a status of `UNKNOWN`, none of the backend - // sets return a status of `WARNING` or `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. - // * The system could not retrieve metrics for any reason. - Status LoadBalancerHealthStatusEnum `mandatory:"true" json:"status"` - - // The total number of backend sets associated with this load balancer. - // Example: `4` - TotalBackendSetCount *int `mandatory:"true" json:"totalBackendSetCount"` - - // A list of backend sets that are currently in the `UNKNOWN` health state. The list identifies each backend set by the - // friendly name you assigned when you created it. - // Example: `Backend_set2` - UnknownStateBackendSetNames []string `mandatory:"true" json:"unknownStateBackendSetNames"` - - // A list of backend sets that are currently in the `WARNING` health state. The list identifies each backend set by the - // friendly name you assigned when you created it. - // Example: `Backend_set3` - WarningStateBackendSetNames []string `mandatory:"true" json:"warningStateBackendSetNames"` + + // A list of backend sets that are currently in the `CRITICAL` health state. The list identifies each backend set by the + // friendly name you assigned when you created it. + // Example: `My_backend_set` + CriticalStateBackendSetNames []string `mandatory:"true" json:"criticalStateBackendSetNames"` + + // The overall health status of the load balancer. + // * **OK:** All backend sets associated with the load balancer return a status of `OK`. + // * **WARNING:** At least one of the backend sets associated with the load balancer returns a status of `WARNING`, + // no backend sets return a status of `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. + // * **CRITICAL:** One or more of the backend sets associated with the load balancer return a status of `CRITICAL`. + // * **UNKNOWN:** If any one of the following conditions is true: + // * The load balancer life cycle state is not `ACTIVE`. + // * No backend sets are defined for the load balancer. + // * More than half of the backend sets associated with the load balancer return a status of `UNKNOWN`, none of the backend + // sets return a status of `WARNING` or `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. + // * The system could not retrieve metrics for any reason. + Status LoadBalancerHealthStatusEnum `mandatory:"true" json:"status"` + + // The total number of backend sets associated with this load balancer. + // Example: `4` + TotalBackendSetCount *int `mandatory:"true" json:"totalBackendSetCount"` + + // A list of backend sets that are currently in the `UNKNOWN` health state. The list identifies each backend set by the + // friendly name you assigned when you created it. + // Example: `Backend_set2` + UnknownStateBackendSetNames []string `mandatory:"true" json:"unknownStateBackendSetNames"` + + // A list of backend sets that are currently in the `WARNING` health state. The list identifies each backend set by the + // friendly name you assigned when you created it. + // Example: `Backend_set3` + WarningStateBackendSetNames []string `mandatory:"true" json:"warningStateBackendSetNames"` } func (m LoadBalancerHealth) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // LoadBalancerHealthStatusEnum Enum with underlying type: string type LoadBalancerHealthStatusEnum string // Set of constants representing the allowable values for LoadBalancerHealthStatus const ( - LoadBalancerHealthStatusOk LoadBalancerHealthStatusEnum = "OK" - LoadBalancerHealthStatusWarning LoadBalancerHealthStatusEnum = "WARNING" - LoadBalancerHealthStatusCritical LoadBalancerHealthStatusEnum = "CRITICAL" - LoadBalancerHealthStatusUnknown LoadBalancerHealthStatusEnum = "UNKNOWN" - + LoadBalancerHealthStatusOk LoadBalancerHealthStatusEnum = "OK" + LoadBalancerHealthStatusWarning LoadBalancerHealthStatusEnum = "WARNING" + LoadBalancerHealthStatusCritical LoadBalancerHealthStatusEnum = "CRITICAL" + LoadBalancerHealthStatusUnknown LoadBalancerHealthStatusEnum = "UNKNOWN" ) -var mappingLoadBalancerHealthStatus = map[string]LoadBalancerHealthStatusEnum { - "OK": LoadBalancerHealthStatusOk, - "WARNING": LoadBalancerHealthStatusWarning, - "CRITICAL": LoadBalancerHealthStatusCritical, - "UNKNOWN": LoadBalancerHealthStatusUnknown, - +var mappingLoadBalancerHealthStatus = map[string]LoadBalancerHealthStatusEnum{ + "OK": LoadBalancerHealthStatusOk, + "WARNING": LoadBalancerHealthStatusWarning, + "CRITICAL": LoadBalancerHealthStatusCritical, + "UNKNOWN": LoadBalancerHealthStatusUnknown, } // GetLoadBalancerHealthStatusEnumValues Enumerates the set of values for LoadBalancerHealthStatus func GetLoadBalancerHealthStatusEnumValues() []LoadBalancerHealthStatusEnum { - values := make([]LoadBalancerHealthStatusEnum, 0) - for _, v := range mappingLoadBalancerHealthStatus { - values = append(values, v) - } - return values + values := make([]LoadBalancerHealthStatusEnum, 0) + for _, v := range mappingLoadBalancerHealthStatus { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_health_summary.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_health_summary.go index 164409a1b..0ff51e894 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_health_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_health_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,64 +9,56 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // LoadBalancerHealthSummary A health status summary for the specified load balancer. +// LoadBalancerHealthSummary A health status summary for the specified load balancer. type LoadBalancerHealthSummary struct { - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer the health status is associated with. - LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` - - // The overall health status of the load balancer. - // * **OK:** All backend sets associated with the load balancer return a status of `OK`. - // * **WARNING:** At least one of the backend sets associated with the load balancer returns a status of `WARNING`, - // no backend sets return a status of `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. - // * **CRITICAL:** One or more of the backend sets associated with the load balancer return a status of `CRITICAL`. - // * **UNKNOWN:** If any one of the following conditions is true: - // * The load balancer life cycle state is not `ACTIVE`. - // * No backend sets are defined for the load balancer. - // * More than half of the backend sets associated with the load balancer return a status of `UNKNOWN`, none of the backend - // sets return a status of `WARNING` or `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. - // * The system could not retrieve metrics for any reason. - Status LoadBalancerHealthSummaryStatusEnum `mandatory:"true" json:"status"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer the health status is associated with. + LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` + + // The overall health status of the load balancer. + // * **OK:** All backend sets associated with the load balancer return a status of `OK`. + // * **WARNING:** At least one of the backend sets associated with the load balancer returns a status of `WARNING`, + // no backend sets return a status of `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. + // * **CRITICAL:** One or more of the backend sets associated with the load balancer return a status of `CRITICAL`. + // * **UNKNOWN:** If any one of the following conditions is true: + // * The load balancer life cycle state is not `ACTIVE`. + // * No backend sets are defined for the load balancer. + // * More than half of the backend sets associated with the load balancer return a status of `UNKNOWN`, none of the backend + // sets return a status of `WARNING` or `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. + // * The system could not retrieve metrics for any reason. + Status LoadBalancerHealthSummaryStatusEnum `mandatory:"true" json:"status"` } func (m LoadBalancerHealthSummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // LoadBalancerHealthSummaryStatusEnum Enum with underlying type: string type LoadBalancerHealthSummaryStatusEnum string // Set of constants representing the allowable values for LoadBalancerHealthSummaryStatus const ( - LoadBalancerHealthSummaryStatusOk LoadBalancerHealthSummaryStatusEnum = "OK" - LoadBalancerHealthSummaryStatusWarning LoadBalancerHealthSummaryStatusEnum = "WARNING" - LoadBalancerHealthSummaryStatusCritical LoadBalancerHealthSummaryStatusEnum = "CRITICAL" - LoadBalancerHealthSummaryStatusUnknown LoadBalancerHealthSummaryStatusEnum = "UNKNOWN" - + LoadBalancerHealthSummaryStatusOk LoadBalancerHealthSummaryStatusEnum = "OK" + LoadBalancerHealthSummaryStatusWarning LoadBalancerHealthSummaryStatusEnum = "WARNING" + LoadBalancerHealthSummaryStatusCritical LoadBalancerHealthSummaryStatusEnum = "CRITICAL" + LoadBalancerHealthSummaryStatusUnknown LoadBalancerHealthSummaryStatusEnum = "UNKNOWN" ) -var mappingLoadBalancerHealthSummaryStatus = map[string]LoadBalancerHealthSummaryStatusEnum { - "OK": LoadBalancerHealthSummaryStatusOk, - "WARNING": LoadBalancerHealthSummaryStatusWarning, - "CRITICAL": LoadBalancerHealthSummaryStatusCritical, - "UNKNOWN": LoadBalancerHealthSummaryStatusUnknown, - +var mappingLoadBalancerHealthSummaryStatus = map[string]LoadBalancerHealthSummaryStatusEnum{ + "OK": LoadBalancerHealthSummaryStatusOk, + "WARNING": LoadBalancerHealthSummaryStatusWarning, + "CRITICAL": LoadBalancerHealthSummaryStatusCritical, + "UNKNOWN": LoadBalancerHealthSummaryStatusUnknown, } // GetLoadBalancerHealthSummaryStatusEnumValues Enumerates the set of values for LoadBalancerHealthSummaryStatus func GetLoadBalancerHealthSummaryStatusEnumValues() []LoadBalancerHealthSummaryStatusEnum { - values := make([]LoadBalancerHealthSummaryStatusEnum, 0) - for _, v := range mappingLoadBalancerHealthSummaryStatus { - values = append(values, v) - } - return values + values := make([]LoadBalancerHealthSummaryStatusEnum, 0) + for _, v := range mappingLoadBalancerHealthSummaryStatus { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_policy.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_policy.go index 600558dd5..610a970b8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_policy.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,25 +9,18 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // LoadBalancerPolicy A policy that determines how traffic is distributed among backend servers. - // For more information on load balancing policies, see - // [How Load Balancing Policies Work]({{DOC_SERVER_URL}}/Content/Balance/Reference/lbpolicies.htm). +// LoadBalancerPolicy A policy that determines how traffic is distributed among backend servers. +// For more information on load balancing policies, see +// How Load Balancing Policies Work (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/lbpolicies.htm). type LoadBalancerPolicy struct { - - // The name of the load balancing policy. - Name *string `mandatory:"true" json:"name"` + + // The name of the load balancing policy. + Name *string `mandatory:"true" json:"name"` } func (m LoadBalancerPolicy) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_protocol.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_protocol.go index 794a82973..91be70bb7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_protocol.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_protocol.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,23 +9,16 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // LoadBalancerProtocol The protocol that defines the type of traffic accepted by a listener. +// LoadBalancerProtocol The protocol that defines the type of traffic accepted by a listener. type LoadBalancerProtocol struct { - - // The name of the protocol. - Name *string `mandatory:"true" json:"name"` + + // The name of the protocol. + Name *string `mandatory:"true" json:"name"` } func (m LoadBalancerProtocol) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_shape.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_shape.go index d481673ec..de82ebb47 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_shape.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer_shape.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,26 +9,19 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // LoadBalancerShape A shape is a template that determines the total pre-provisioned bandwidth (ingress plus egress) for the - // load balancer. - // Note that the pre-provisioned maximum capacity applies to aggregated connections, not to a single client - // attempting to use the full bandwidth. +// LoadBalancerShape A shape is a template that determines the total pre-provisioned bandwidth (ingress plus egress) for the +// load balancer. +// Note that the pre-provisioned maximum capacity applies to aggregated connections, not to a single client +// attempting to use the full bandwidth. type LoadBalancerShape struct { - - // The name of the shape. - Name *string `mandatory:"true" json:"name"` + + // The name of the shape. + Name *string `mandatory:"true" json:"name"` } func (m LoadBalancerShape) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/loadbalancer_client.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/loadbalancer_client.go index d9a16e548..cb408565e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/loadbalancer_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/loadbalancer_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -8,892 +8,649 @@ package loadbalancer -import( - "github.com/oracle/oci-go-sdk/common" - "context" - "fmt" - "net/http" +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) //LoadBalancerClient a client for LoadBalancer type LoadBalancerClient struct { - common.BaseClient - config *common.ConfigurationProvider + common.BaseClient + config *common.ConfigurationProvider } - // NewLoadBalancerClientWithConfigurationProvider Creates a new default LoadBalancer client with the given configuration provider. // the configuration provider will be used for the default signer as well as reading the region -func NewLoadBalancerClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client LoadBalancerClient, err error){ - baseClient, err := common.NewClientWithConfig(configProvider) - if err != nil { - return - } +func NewLoadBalancerClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client LoadBalancerClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } - client = LoadBalancerClient{BaseClient: baseClient} - client.BasePath = "20170115" - err = client.setConfigurationProvider(configProvider) - return + client = LoadBalancerClient{BaseClient: baseClient} + client.BasePath = "20170115" + err = client.setConfigurationProvider(configProvider) + return } // SetRegion overrides the region of this client. -func (client *LoadBalancerClient) SetRegion(region string) { - client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "iaas", region) +func (client *LoadBalancerClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "iaas", region) } - // SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid func (client *LoadBalancerClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } - // Error has been checked already - region, _ := configProvider.Region() - client.config = &configProvider - client.SetRegion(region) - return nil + // Error has been checked already + region, _ := configProvider.Region() + client.config = &configProvider + client.SetRegion(region) + return nil } // ConfigurationProvider the ConfigurationProvider used in this client, or null if none set func (client *LoadBalancerClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - - - - - - - // CreateBackend Adds a backend server to a backend set. -func(client LoadBalancerClient) CreateBackend(ctx context.Context, request CreateBackendRequest) (response CreateBackendResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateBackendSet Adds a backend set to a load balancer. -func(client LoadBalancerClient) CreateBackendSet(ctx context.Context, request CreateBackendSetRequest) (response CreateBackendSetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/loadBalancers/{loadBalancerId}/backendSets", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateCertificate Creates an asynchronous request to add an SSL certificate. -func(client LoadBalancerClient) CreateCertificate(ctx context.Context, request CreateCertificateRequest) (response CreateCertificateResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/loadBalancers/{loadBalancerId}/certificates", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateListener Adds a listener to a load balancer. -func(client LoadBalancerClient) CreateListener(ctx context.Context, request CreateListenerRequest) (response CreateListenerResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/loadBalancers/{loadBalancerId}/listeners", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreateLoadBalancer Creates a new load balancer in the specified compartment. For general information about load balancers, - // see [Overview of the Load Balancing Service]({{DOC_SERVER_URL}}/Content/Balance/Concepts/balanceoverview.htm). - // For the purposes of access control, you must provide the OCID of the compartment where you want - // the load balancer to reside. Notice that the load balancer doesn't have to be in the same compartment as the VCN - // or backend set. If you're not sure which compartment to use, put the load balancer in the same compartment as the VCN. - // For information about access control and compartments, see - // [Overview of the IAM Service]({{DOC_SERVER_URL}}/Content/Identity/Concepts/overview.htm). - // You must specify a display name for the load balancer. It does not have to be unique, and you can change it. - // For information about Availability Domains, see - // [Regions and Availability Domains]({{DOC_SERVER_URL}}/Content/General/Concepts/regions.htm). - // To get a list of Availability Domains, use the `ListAvailabilityDomains` operation - // in the Identity and Access Management Service API. - // All Oracle Cloud Infrastructure resources, including load balancers, get an Oracle-assigned, - // unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID - // in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type, - // or by viewing the resource in the Console. Fore more information, see - // [Resource Identifiers]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm). - // After you send your request, the new object's state will temporarily be PROVISIONING. Before using the - // object, first make sure its state has changed to RUNNING. - // When you create a load balancer, the system assigns an IP address. - // To get the IP address, use the GetLoadBalancer operation. -func(client LoadBalancerClient) CreateLoadBalancer(ctx context.Context, request CreateLoadBalancerRequest) (response CreateLoadBalancerResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/loadBalancers", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // CreatePathRouteSet Adds a path route set on a load balancer. -func(client LoadBalancerClient) CreatePathRouteSet(ctx context.Context, request CreatePathRouteSetRequest) (response CreatePathRouteSetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/loadBalancers/{loadBalancerId}/pathRouteSets", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteBackend Removes a backend server from a given load balancer and backend set. -func(client LoadBalancerClient) DeleteBackend(ctx context.Context, request DeleteBackendRequest) (response DeleteBackendResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteBackendSet Deletes the specified backend set. Note that deleting a backend set removes its backend servers from the load balancer. - // Before you can delete a backend set, you must remove it from any active listeners. -func(client LoadBalancerClient) DeleteBackendSet(ctx context.Context, request DeleteBackendSetRequest) (response DeleteBackendSetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteCertificate Deletes an SSL certificate from a load balancer. -func(client LoadBalancerClient) DeleteCertificate(ctx context.Context, request DeleteCertificateRequest) (response DeleteCertificateResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/loadBalancers/{loadBalancerId}/certificates/{certificateName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return + return client.config +} + +// CreateBackend Adds a backend server to a backend set. +func (client LoadBalancerClient) CreateBackend(ctx context.Context, request CreateBackendRequest) (response CreateBackendResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateBackendSet Adds a backend set to a load balancer. +func (client LoadBalancerClient) CreateBackendSet(ctx context.Context, request CreateBackendSetRequest) (response CreateBackendSetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/loadBalancers/{loadBalancerId}/backendSets", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateCertificate Creates an asynchronous request to add an SSL certificate. +func (client LoadBalancerClient) CreateCertificate(ctx context.Context, request CreateCertificateRequest) (response CreateCertificateResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/loadBalancers/{loadBalancerId}/certificates", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateListener Adds a listener to a load balancer. +func (client LoadBalancerClient) CreateListener(ctx context.Context, request CreateListenerRequest) (response CreateListenerResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/loadBalancers/{loadBalancerId}/listeners", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateLoadBalancer Creates a new load balancer in the specified compartment. For general information about load balancers, +// see Overview of the Load Balancing Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Concepts/balanceoverview.htm). +// For the purposes of access control, you must provide the OCID of the compartment where you want +// the load balancer to reside. Notice that the load balancer doesn't have to be in the same compartment as the VCN +// or backend set. If you're not sure which compartment to use, put the load balancer in the same compartment as the VCN. +// For information about access control and compartments, see +// Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). +// You must specify a display name for the load balancer. It does not have to be unique, and you can change it. +// For information about Availability Domains, see +// Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). +// To get a list of Availability Domains, use the `ListAvailabilityDomains` operation +// in the Identity and Access Management Service API. +// All Oracle Cloud Infrastructure resources, including load balancers, get an Oracle-assigned, +// unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID +// in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type, +// or by viewing the resource in the Console. Fore more information, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). +// After you send your request, the new object's state will temporarily be PROVISIONING. Before using the +// object, first make sure its state has changed to RUNNING. +// When you create a load balancer, the system assigns an IP address. +// To get the IP address, use the GetLoadBalancer operation. +func (client LoadBalancerClient) CreateLoadBalancer(ctx context.Context, request CreateLoadBalancerRequest) (response CreateLoadBalancerResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/loadBalancers", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteBackend Removes a backend server from a given load balancer and backend set. +func (client LoadBalancerClient) DeleteBackend(ctx context.Context, request DeleteBackendRequest) (response DeleteBackendResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteBackendSet Deletes the specified backend set. Note that deleting a backend set removes its backend servers from the load balancer. +// Before you can delete a backend set, you must remove it from any active listeners. +func (client LoadBalancerClient) DeleteBackendSet(ctx context.Context, request DeleteBackendSetRequest) (response DeleteBackendSetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteCertificate Deletes an SSL certificate from a load balancer. +func (client LoadBalancerClient) DeleteCertificate(ctx context.Context, request DeleteCertificateRequest) (response DeleteCertificateResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/loadBalancers/{loadBalancerId}/certificates/{certificateName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteListener Deletes a listener from a load balancer. +func (client LoadBalancerClient) DeleteListener(ctx context.Context, request DeleteListenerRequest) (response DeleteListenerResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/loadBalancers/{loadBalancerId}/listeners/{listenerName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteLoadBalancer Stops a load balancer and removes it from service. +func (client LoadBalancerClient) DeleteLoadBalancer(ctx context.Context, request DeleteLoadBalancerRequest) (response DeleteLoadBalancerResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/loadBalancers/{loadBalancerId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetBackend Gets the specified backend server's configuration information. +func (client LoadBalancerClient) GetBackend(ctx context.Context, request GetBackendRequest) (response GetBackendResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetBackendHealth Gets the current health status of the specified backend server. +func (client LoadBalancerClient) GetBackendHealth(ctx context.Context, request GetBackendHealthRequest) (response GetBackendHealthResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}/health", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetBackendSet Gets the specified backend set's configuration information. +func (client LoadBalancerClient) GetBackendSet(ctx context.Context, request GetBackendSetRequest) (response GetBackendSetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetBackendSetHealth Gets the health status for the specified backend set. +func (client LoadBalancerClient) GetBackendSetHealth(ctx context.Context, request GetBackendSetHealthRequest) (response GetBackendSetHealthResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/health", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetHealthChecker Gets the health check policy information for a given load balancer and backend set. +func (client LoadBalancerClient) GetHealthChecker(ctx context.Context, request GetHealthCheckerRequest) (response GetHealthCheckerResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetLoadBalancer Gets the specified load balancer's configuration information. +func (client LoadBalancerClient) GetLoadBalancer(ctx context.Context, request GetLoadBalancerRequest) (response GetLoadBalancerResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetLoadBalancerHealth Gets the health status for the specified load balancer. +func (client LoadBalancerClient) GetLoadBalancerHealth(ctx context.Context, request GetLoadBalancerHealthRequest) (response GetLoadBalancerHealthResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/health", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetWorkRequest Gets the details of a work request. +func (client LoadBalancerClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancerWorkRequests/{workRequestId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListBackendSets Lists all backend sets associated with a given load balancer. +func (client LoadBalancerClient) ListBackendSets(ctx context.Context, request ListBackendSetsRequest) (response ListBackendSetsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListBackends Lists the backend servers for a given load balancer and backend set. +func (client LoadBalancerClient) ListBackends(ctx context.Context, request ListBackendsRequest) (response ListBackendsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListCertificates Lists all SSL certificates associated with a given load balancer. +func (client LoadBalancerClient) ListCertificates(ctx context.Context, request ListCertificatesRequest) (response ListCertificatesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/certificates", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListLoadBalancerHealths Lists the summary health statuses for all load balancers in the specified compartment. +func (client LoadBalancerClient) ListLoadBalancerHealths(ctx context.Context, request ListLoadBalancerHealthsRequest) (response ListLoadBalancerHealthsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancerHealths", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListLoadBalancers Lists all load balancers in the specified compartment. +func (client LoadBalancerClient) ListLoadBalancers(ctx context.Context, request ListLoadBalancersRequest) (response ListLoadBalancersResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListPolicies Lists the available load balancer policies. +func (client LoadBalancerClient) ListPolicies(ctx context.Context, request ListPoliciesRequest) (response ListPoliciesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancerPolicies", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListProtocols Lists all supported traffic protocols. +func (client LoadBalancerClient) ListProtocols(ctx context.Context, request ListProtocolsRequest) (response ListProtocolsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancerProtocols", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListShapes Lists the valid load balancer shapes. +func (client LoadBalancerClient) ListShapes(ctx context.Context, request ListShapesRequest) (response ListShapesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancerShapes", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListWorkRequests Lists the work requests for a given load balancer. +func (client LoadBalancerClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/workRequests", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateBackend Updates the configuration of a backend server within the specified backend set. +func (client LoadBalancerClient) UpdateBackend(ctx context.Context, request UpdateBackendRequest) (response UpdateBackendResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateBackendSet Updates a backend set. +func (client LoadBalancerClient) UpdateBackendSet(ctx context.Context, request UpdateBackendSetRequest) (response UpdateBackendSetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateHealthChecker Updates the health check policy for a given load balancer and backend set. +func (client LoadBalancerClient) UpdateHealthChecker(ctx context.Context, request UpdateHealthCheckerRequest) (response UpdateHealthCheckerResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateListener Updates a listener for a given load balancer. +func (client LoadBalancerClient) UpdateListener(ctx context.Context, request UpdateListenerRequest) (response UpdateListenerResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/loadBalancers/{loadBalancerId}/listeners/{listenerName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateLoadBalancer Updates a load balancer's configuration. +func (client LoadBalancerClient) UpdateLoadBalancer(ctx context.Context, request UpdateLoadBalancerRequest) (response UpdateLoadBalancerResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/loadBalancers/{loadBalancerId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - - // DeleteListener Deletes a listener from a load balancer. -func(client LoadBalancerClient) DeleteListener(ctx context.Context, request DeleteListenerRequest) (response DeleteListenerResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/loadBalancers/{loadBalancerId}/listeners/{listenerName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeleteLoadBalancer Stops a load balancer and removes it from service. -func(client LoadBalancerClient) DeleteLoadBalancer(ctx context.Context, request DeleteLoadBalancerRequest) (response DeleteLoadBalancerResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/loadBalancers/{loadBalancerId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // DeletePathRouteSet Deletes a Path Route Set from a Load Balancer. -func(client LoadBalancerClient) DeletePathRouteSet(ctx context.Context, request DeletePathRouteSetRequest) (response DeletePathRouteSetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetBackend Gets the specified backend server's configuration information. -func(client LoadBalancerClient) GetBackend(ctx context.Context, request GetBackendRequest) (response GetBackendResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetBackendHealth Gets the current health status of the specified backend server. -func(client LoadBalancerClient) GetBackendHealth(ctx context.Context, request GetBackendHealthRequest) (response GetBackendHealthResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}/health", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetBackendSet Gets the specified backend set's configuration information. -func(client LoadBalancerClient) GetBackendSet(ctx context.Context, request GetBackendSetRequest) (response GetBackendSetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetBackendSetHealth Gets the health status for the specified backend set. -func(client LoadBalancerClient) GetBackendSetHealth(ctx context.Context, request GetBackendSetHealthRequest) (response GetBackendSetHealthResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/health", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetHealthChecker Gets the health check policy information for a given load balancer and backend set. -func(client LoadBalancerClient) GetHealthChecker(ctx context.Context, request GetHealthCheckerRequest) (response GetHealthCheckerResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetLoadBalancer Gets the specified load balancer's configuration information. -func(client LoadBalancerClient) GetLoadBalancer(ctx context.Context, request GetLoadBalancerRequest) (response GetLoadBalancerResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetLoadBalancerHealth Gets the health status for the specified load balancer. -func(client LoadBalancerClient) GetLoadBalancerHealth(ctx context.Context, request GetLoadBalancerHealthRequest) (response GetLoadBalancerHealthResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/health", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetPathRouteSet Gets the specified path route set's configuration information. -func(client LoadBalancerClient) GetPathRouteSet(ctx context.Context, request GetPathRouteSetRequest) (response GetPathRouteSetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // GetWorkRequest Gets the details of a work request. -func(client LoadBalancerClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancerWorkRequests/{workRequestId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListBackendSets Lists all backend sets associated with a given load balancer. -func(client LoadBalancerClient) ListBackendSets(ctx context.Context, request ListBackendSetsRequest) (response ListBackendSetsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListBackends Lists the backend servers for a given load balancer and backend set. -func(client LoadBalancerClient) ListBackends(ctx context.Context, request ListBackendsRequest) (response ListBackendsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListCertificates Lists all SSL certificates associated with a given load balancer. -func(client LoadBalancerClient) ListCertificates(ctx context.Context, request ListCertificatesRequest) (response ListCertificatesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/certificates", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListLoadBalancerHealths Lists the summary health statuses for all load balancers in the specified compartment. -func(client LoadBalancerClient) ListLoadBalancerHealths(ctx context.Context, request ListLoadBalancerHealthsRequest) (response ListLoadBalancerHealthsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancerHealths", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListLoadBalancers Lists all load balancers in the specified compartment. -func(client LoadBalancerClient) ListLoadBalancers(ctx context.Context, request ListLoadBalancersRequest) (response ListLoadBalancersResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListPathRouteSets Lists all Path Route sets associated with a given load balancer. -func(client LoadBalancerClient) ListPathRouteSets(ctx context.Context, request ListPathRouteSetsRequest) (response ListPathRouteSetsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/pathRouteSets", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListPolicies Lists the available load balancer policies. -func(client LoadBalancerClient) ListPolicies(ctx context.Context, request ListPoliciesRequest) (response ListPoliciesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancerPolicies", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListProtocols Lists all supported traffic protocols. -func(client LoadBalancerClient) ListProtocols(ctx context.Context, request ListProtocolsRequest) (response ListProtocolsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancerProtocols", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListShapes Lists the valid load balancer shapes. -func(client LoadBalancerClient) ListShapes(ctx context.Context, request ListShapesRequest) (response ListShapesResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancerShapes", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // ListWorkRequests Lists the work requests for a given load balancer. -func(client LoadBalancerClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/loadBalancers/{loadBalancerId}/workRequests", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateBackend Updates the configuration of a backend server within the specified backend set. -func(client LoadBalancerClient) UpdateBackend(ctx context.Context, request UpdateBackendRequest) (response UpdateBackendResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateBackendSet Updates a backend set. -func(client LoadBalancerClient) UpdateBackendSet(ctx context.Context, request UpdateBackendSetRequest) (response UpdateBackendSetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateHealthChecker Updates the health check policy for a given load balancer and backend set. -func(client LoadBalancerClient) UpdateHealthChecker(ctx context.Context, request UpdateHealthCheckerRequest) (response UpdateHealthCheckerResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateListener Updates a listener for a given load balancer. -func(client LoadBalancerClient) UpdateListener(ctx context.Context, request UpdateListenerRequest) (response UpdateListenerResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/loadBalancers/{loadBalancerId}/listeners/{listenerName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdateLoadBalancer Updates a load balancer's configuration. -func(client LoadBalancerClient) UpdateLoadBalancer(ctx context.Context, request UpdateLoadBalancerRequest) (response UpdateLoadBalancerResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/loadBalancers/{loadBalancerId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - - - - - // UpdatePathRouteSet Updates and overwrite a path route set on a load balancer. -func(client LoadBalancerClient) UpdatePathRouteSet(ctx context.Context, request UpdatePathRouteSetRequest) (response UpdatePathRouteSetResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_match_type.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_match_type.go deleted file mode 100644 index 371fc300d..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_match_type.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Load Balancing Service API -// -// API for the Load Balancing Service -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // PathMatchType The representation of PathMatchType -type PathMatchType struct { - - // The type of matching for the associated path route. - MatchType PathMatchTypeMatchTypeEnum `mandatory:"true" json:"matchType"` -} - -func (m PathMatchType) String() string { - return common.PointerString(m) -} - - -// PathMatchTypeMatchTypeEnum Enum with underlying type: string -type PathMatchTypeMatchTypeEnum string - -// Set of constants representing the allowable values for PathMatchTypeMatchType -const ( - PathMatchTypeMatchTypeExactMatch PathMatchTypeMatchTypeEnum = "EXACT_MATCH" - PathMatchTypeMatchTypeForceLongestPrefixMatch PathMatchTypeMatchTypeEnum = "FORCE_LONGEST_PREFIX_MATCH" - PathMatchTypeMatchTypePrefixMatch PathMatchTypeMatchTypeEnum = "PREFIX_MATCH" - PathMatchTypeMatchTypeSuffixMatch PathMatchTypeMatchTypeEnum = "SUFFIX_MATCH" - PathMatchTypeMatchTypeUnknown PathMatchTypeMatchTypeEnum = "UNKNOWN" -) - -var mappingPathMatchTypeMatchType = map[string]PathMatchTypeMatchTypeEnum { - "EXACT_MATCH": PathMatchTypeMatchTypeExactMatch, - "FORCE_LONGEST_PREFIX_MATCH": PathMatchTypeMatchTypeForceLongestPrefixMatch, - "PREFIX_MATCH": PathMatchTypeMatchTypePrefixMatch, - "SUFFIX_MATCH": PathMatchTypeMatchTypeSuffixMatch, - "UNKNOWN": PathMatchTypeMatchTypeUnknown, -} - -// GetPathMatchTypeMatchTypeEnumValues Enumerates the set of values for PathMatchTypeMatchType -func GetPathMatchTypeMatchTypeEnumValues() []PathMatchTypeMatchTypeEnum { - values := make([]PathMatchTypeMatchTypeEnum, 0) - for _, v := range mappingPathMatchTypeMatchType { - if v != PathMatchTypeMatchTypeUnknown { - values = append(values, v) - } - } - return values -} - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route.go deleted file mode 100644 index 10ef863f3..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Load Balancing Service API -// -// API for the Load Balancing Service -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // PathRoute The representation of PathRoute -type PathRoute struct { - - // The name of the associated backend set. - BackendSetName *string `mandatory:"true" json:"backendSetName"` - - // The URI path on which to route requests. - // Example: `/foo/bar/123` - Path *string `mandatory:"true" json:"path"` - - PathMatchType *PathMatchType `mandatory:"true" json:"pathMatchType"` -} - -func (m PathRoute) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set.go deleted file mode 100644 index 52356c0ec..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Load Balancing Service API -// -// API for the Load Balancing Service -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // PathRouteSet The representation of PathRouteSet -type PathRouteSet struct { - - // A unique name for this set of path routes. - // Example: `path-route-set-001` - Name *string `mandatory:"true" json:"name"` - - PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` -} - -func (m PathRouteSet) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set_details.go deleted file mode 100644 index b29c3bc30..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Load Balancing Service API -// -// API for the Load Balancing Service -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // PathRouteSetDetails The representation of PathRouteSetDetails -type PathRouteSetDetails struct { - - PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` -} - -func (m PathRouteSetDetails) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/session_persistence_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/session_persistence_configuration_details.go index 860dfcb8c..a83e81d99 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/session_persistence_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/session_persistence_configuration_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,36 +9,29 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // SessionPersistenceConfigurationDetails The configuration details for implementing session persistence. Session persistence enables the Load Balancing - // Service to direct any number of requests that originate from a single logical client to a single backend web server. - // For more information, see [Session Persistence]({{DOC_SERVER_URL}}/Content/Balance/Reference/sessionpersistence.htm). - // To disable session persistence on a running load balancer, use the - // UpdateBackendSet operation and specify "null" for the - // `SessionPersistenceConfigurationDetails` object. - // Example: `SessionPersistenceConfigurationDetails: null` +// SessionPersistenceConfigurationDetails The configuration details for implementing session persistence. Session persistence enables the Load Balancing +// Service to direct any number of requests that originate from a single logical client to a single backend web server. +// For more information, see Session Persistence (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/sessionpersistence.htm). +// To disable session persistence on a running load balancer, use the +// UpdateBackendSet operation and specify "null" for the +// `SessionPersistenceConfigurationDetails` object. +// Example: `SessionPersistenceConfigurationDetails: null` type SessionPersistenceConfigurationDetails struct { - - // The name of the cookie used to detect a session initiated by the backend server. Use '*' to specify - // that any cookie set by the backend causes the session to persist. - // Example: `myCookieName` - CookieName *string `mandatory:"true" json:"cookieName"` - - // Whether the load balancer is prevented from directing traffic from a persistent session client to - // a different backend server if the original server is unavailable. Defaults to false. - // Example: `true` - DisableFallback *bool `mandatory:"false" json:"disableFallback"` + + // The name of the cookie used to detect a session initiated by the backend server. Use '*' to specify + // that any cookie set by the backend causes the session to persist. + // Example: `myCookieName` + CookieName *string `mandatory:"true" json:"cookieName"` + + // Whether the load balancer is prevented from directing traffic from a persistent session client to + // a different backend server if the original server is unavailable. Defaults to false. + // Example: `true` + DisableFallback *bool `mandatory:"false" json:"disableFallback"` } func (m SessionPersistenceConfigurationDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ssl_configuration.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ssl_configuration.go index a03066777..5f9c102dc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ssl_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ssl_configuration.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,35 +9,28 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // SslConfiguration A listener's SSL handling configuration. - // To use SSL, a listener must be associated with a Certificate. +// SslConfiguration A listener's SSL handling configuration. +// To use SSL, a listener must be associated with a Certificate. type SslConfiguration struct { - - // A friendly name for the certificate bundle. It must be unique and it cannot be changed. - // Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. - // Certificate bundle names cannot contain spaces. Avoid entering confidential information. - // Example: `My_certificate_bundle` - CertificateName *string `mandatory:"true" json:"certificateName"` - - // The maximum depth for peer certificate chain verification. - // Example: `3` - VerifyDepth *int `mandatory:"true" json:"verifyDepth"` - - // Whether the load balancer listener should verify peer certificates. - // Example: `true` - VerifyPeerCertificate *bool `mandatory:"true" json:"verifyPeerCertificate"` -} - -func (m SslConfiguration) String() string { - return common.PointerString(m) -} - + // A friendly name for the certificate bundle. It must be unique and it cannot be changed. + // Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. + // Certificate bundle names cannot contain spaces. Avoid entering confidential information. + // Example: `My_certificate_bundle` + CertificateName *string `mandatory:"true" json:"certificateName"` + // The maximum depth for peer certificate chain verification. + // Example: `3` + VerifyDepth *int `mandatory:"true" json:"verifyDepth"` + // Whether the load balancer listener should verify peer certificates. + // Example: `true` + VerifyPeerCertificate *bool `mandatory:"true" json:"verifyPeerCertificate"` +} +func (m SslConfiguration) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ssl_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ssl_configuration_details.go index 3f11edcba..7b083fcf7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ssl_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/ssl_configuration_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,34 +9,27 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // SslConfigurationDetails The load balancer's SSL handling configuration details. +// SslConfigurationDetails The load balancer's SSL handling configuration details. type SslConfigurationDetails struct { - - // A friendly name for the certificate bundle. It must be unique and it cannot be changed. - // Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. - // Certificate bundle names cannot contain spaces. Avoid entering confidential information. - // Example: `My_certificate_bundle` - CertificateName *string `mandatory:"true" json:"certificateName"` - - // The maximum depth for peer certificate chain verification. - // Example: `3` - VerifyDepth *int `mandatory:"false" json:"verifyDepth"` - - // Whether the load balancer listener should verify peer certificates. - // Example: `true` - VerifyPeerCertificate *bool `mandatory:"false" json:"verifyPeerCertificate"` -} - -func (m SslConfigurationDetails) String() string { - return common.PointerString(m) -} - + // A friendly name for the certificate bundle. It must be unique and it cannot be changed. + // Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. + // Certificate bundle names cannot contain spaces. Avoid entering confidential information. + // Example: `My_certificate_bundle` + CertificateName *string `mandatory:"true" json:"certificateName"` + // The maximum depth for peer certificate chain verification. + // Example: `3` + VerifyDepth *int `mandatory:"false" json:"verifyDepth"` + // Whether the load balancer listener should verify peer certificates. + // Example: `true` + VerifyPeerCertificate *bool `mandatory:"false" json:"verifyPeerCertificate"` +} +func (m SslConfigurationDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_details.go index 472921d3d..56efca6d9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,43 +9,36 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateBackendDetails The configuration details for updating a backend server. +// UpdateBackendDetails The configuration details for updating a backend server. type UpdateBackendDetails struct { - - // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. - // Example: `true` - Backup *bool `mandatory:"true" json:"backup"` - - // Whether the load balancer should drain this server. Servers marked "drain" receive no new - // incoming traffic. - // Example: `true` - Drain *bool `mandatory:"true" json:"drain"` - - // Whether the load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `true` - Offline *bool `mandatory:"true" json:"offline"` - - // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections - // as a server weighted '1'. - // For more information on load balancing policies, see - // [How Load Balancing Policies Work]({{DOC_SERVER_URL}}/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"true" json:"weight"` + + // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. + // Example: `true` + Backup *bool `mandatory:"true" json:"backup"` + + // Whether the load balancer should drain this server. Servers marked "drain" receive no new + // incoming traffic. + // Example: `true` + Drain *bool `mandatory:"true" json:"drain"` + + // Whether the load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `true` + Offline *bool `mandatory:"true" json:"offline"` + + // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections + // as a server weighted '1'. + // For more information on load balancing policies, see + // How Load Balancing Policies Work (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"true" json:"weight"` } func (m UpdateBackendDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_request_response.go index 349555bb9..0d9915a19 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_request_response.go @@ -1,64 +1,60 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateBackendRequest wrapper for the UpdateBackend operation type UpdateBackendRequest struct { - - // Details for updating a backend server. - UpdateBackendDetails `contributesTo:"body"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the backend server. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The IP address and port of the backend server to update. - // Example: `1.1.1.7:42` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details for updating a backend server. + UpdateBackendDetails `contributesTo:"body"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the backend server. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The IP address and port of the backend server to update. + // Example: `1.1.1.7:42` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request UpdateBackendRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateBackendResponse wrapper for the UpdateBackend operation type UpdateBackendResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response UpdateBackendResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_set_details.go index 6e8f34b8c..4da009e97 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_set_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_set_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,35 +9,27 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateBackendSetDetails The configuration details for updating a load balancer backend set. - // For more information on backend set configuration, see - // [Managing Backend Sets]({{DOC_SERVER_URL}}/Content/Balance/tasks/managingbackendsets.htm). +// UpdateBackendSetDetails The configuration details for updating a load balancer backend set. +// For more information on backend set configuration, see +// Managing Backend Sets (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/tasks/managingbackendsets.htm). type UpdateBackendSetDetails struct { - - Backends []BackendDetails `mandatory:"true" json:"backends"` - - HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` - - // The load balancer policy for the backend set. To get a list of available policies, use the - // ListPolicies operation. - // Example: `LEAST_CONNECTIONS` - Policy *string `mandatory:"true" json:"policy"` - - SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` -} - -func (m UpdateBackendSetDetails) String() string { - return common.PointerString(m) -} + Backends []BackendDetails `mandatory:"true" json:"backends"` + HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` + // The load balancer policy for the backend set. To get a list of available policies, use the + // ListPolicies operation. + // Example: `LEAST_CONNECTIONS` + Policy *string `mandatory:"true" json:"policy"` + SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` +} +func (m UpdateBackendSetDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_set_request_response.go index 44c8cf146..e099e1db4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_backend_set_request_response.go @@ -1,60 +1,56 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateBackendSetRequest wrapper for the UpdateBackendSet operation type UpdateBackendSetRequest struct { - - // The details to update a backend set. - UpdateBackendSetDetails `contributesTo:"body"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set to update. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The details to update a backend set. + UpdateBackendSetDetails `contributesTo:"body"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set to update. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request UpdateBackendSetRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateBackendSetResponse wrapper for the UpdateBackendSet operation type UpdateBackendSetResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response UpdateBackendSetResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_health_checker_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_health_checker_details.go index 623166a5b..5e2e8cda8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_health_checker_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_health_checker_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,53 +9,46 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateHealthCheckerDetails The health checker's configuration details. +// UpdateHealthCheckerDetails The health checker's configuration details. type UpdateHealthCheckerDetails struct { - - // The interval between health checks, in milliseconds. - // Example: `30000` - IntervalInMillis *int `mandatory:"true" json:"intervalInMillis"` - - // The backend server port against which to run the health check. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // The protocol the health check must use; either HTTP or TCP. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // A regular expression for parsing the response body from the backend server. - // Example: `^(500|40[1348])$` - ResponseBodyRegex *string `mandatory:"true" json:"responseBodyRegex"` - - // The number of retries to attempt before a backend server is considered "unhealthy". - // Example: `3` - Retries *int `mandatory:"true" json:"retries"` - - // The status code a healthy backend server should return. - // Example: `200` - ReturnCode *int `mandatory:"true" json:"returnCode"` - - // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply - // returns within this timeout period. - // Example: `6000` - TimeoutInMillis *int `mandatory:"true" json:"timeoutInMillis"` - - // The path against which to run the health check. - // Example: `/healthcheck` - UrlPath *string `mandatory:"false" json:"urlPath"` -} -func (m UpdateHealthCheckerDetails) String() string { - return common.PointerString(m) -} + // The interval between health checks, in milliseconds. + // Example: `30000` + IntervalInMillis *int `mandatory:"true" json:"intervalInMillis"` + + // The backend server port against which to run the health check. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + // The protocol the health check must use; either HTTP or TCP. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + // A regular expression for parsing the response body from the backend server. + // Example: `^(500|40[1348])$` + ResponseBodyRegex *string `mandatory:"true" json:"responseBodyRegex"` + // The number of retries to attempt before a backend server is considered "unhealthy". + // Example: `3` + Retries *int `mandatory:"true" json:"retries"` + // The status code a healthy backend server should return. + // Example: `200` + ReturnCode *int `mandatory:"true" json:"returnCode"` + // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply + // returns within this timeout period. + // Example: `6000` + TimeoutInMillis *int `mandatory:"true" json:"timeoutInMillis"` + + // The path against which to run the health check. + // Example: `/healthcheck` + UrlPath *string `mandatory:"false" json:"urlPath"` +} + +func (m UpdateHealthCheckerDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_health_checker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_health_checker_request_response.go index 7c3ad55a7..54ddccbbe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_health_checker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_health_checker_request_response.go @@ -1,60 +1,56 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateHealthCheckerRequest wrapper for the UpdateHealthChecker operation type UpdateHealthCheckerRequest struct { - - // The health check policy configuration details. - UpdateHealthCheckerDetails `contributesTo:"body"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be updated. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the health check policy to be retrieved. - // Example: `My_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The health check policy configuration details. + UpdateHealthCheckerDetails `contributesTo:"body"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be updated. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the health check policy to be retrieved. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request UpdateHealthCheckerRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateHealthCheckerResponse wrapper for the UpdateHealthChecker operation type UpdateHealthCheckerResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response UpdateHealthCheckerResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_listener_details.go index 451ca67f1..c935eac54 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_listener_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_listener_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,42 +9,28 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateListenerDetails The configuration details for updating a listener. +// UpdateListenerDetails The configuration details for updating a listener. type UpdateListenerDetails struct { - - // The name of the associated backend set. - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // To get a list of valid protocols, use the ListProtocols - // operation. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // The name of the associated path-based routes applied to this listener's traffic. - PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` - - // A HTTP hostname for this listener. TODO: This description needs work. - // Example: `app.example.com` - ServerName *string `mandatory:"false" json:"serverName"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` -} - -func (m UpdateListenerDetails) String() string { - return common.PointerString(m) -} + // The name of the associated backend set. + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` +} +func (m UpdateListenerDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_listener_request_response.go index 890234c2d..b07a7a250 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_listener_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_listener_request_response.go @@ -1,60 +1,56 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateListenerRequest wrapper for the UpdateListener operation type UpdateListenerRequest struct { - - // Details to update a listener. - UpdateListenerDetails `contributesTo:"body"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to update. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the listener to update. - // Example: `My listener` - ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Details to update a listener. + UpdateListenerDetails `contributesTo:"body"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to update. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the listener to update. + // Example: `My listener` + ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request UpdateListenerRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateListenerResponse wrapper for the UpdateListener operation type UpdateListenerResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response UpdateListenerResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_details.go index 70b0b18cd..8a66761f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,25 +9,18 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateLoadBalancerDetails Configuration details to update a load balancer. +// UpdateLoadBalancerDetails Configuration details to update a load balancer. type UpdateLoadBalancerDetails struct { - - // The user-friendly display name for the load balancer. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My load balancer` - DisplayName *string `mandatory:"true" json:"displayName"` + + // The user-friendly display name for the load balancer. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My load balancer` + DisplayName *string `mandatory:"true" json:"displayName"` } func (m UpdateLoadBalancerDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_request_response.go index 2c01db1f4..15101ba1c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateLoadBalancerRequest wrapper for the UpdateLoadBalancer operation type UpdateLoadBalancerRequest struct { - - // The details for updating a load balancer's configuration. - UpdateLoadBalancerDetails `contributesTo:"body"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer to update. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The details for updating a load balancer's configuration. + UpdateLoadBalancerDetails `contributesTo:"body"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to update. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } func (request UpdateLoadBalancerRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateLoadBalancerResponse wrapper for the UpdateLoadBalancer operation type UpdateLoadBalancerResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + // The underlying http response + RawResponse *http.Response + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } func (response UpdateLoadBalancerResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_details.go deleted file mode 100644 index 300dbd71e..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Load Balancing Service API -// -// API for the Load Balancing Service -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/common" -) - - - - // UpdatePathRouteSetDetails The representation of UpdatePathRouteSetDetails -type UpdatePathRouteSetDetails struct { - - PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` -} - -func (m UpdatePathRouteSetDetails) String() string { - return common.PointerString(m) -} - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_request_response.go deleted file mode 100644 index fa4e866a9..000000000 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_request_response.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" -) - -// UpdatePathRouteSetRequest wrapper for the UpdatePathRouteSet operation -type UpdatePathRouteSetRequest struct { - - // Details to update a Path Route Set. - UpdatePathRouteSetDetails `contributesTo:"body"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer associated with the path route set to update. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the path route set to update. - // Example: `path-route-set-001` - PathRouteSetName *string `mandatory:"true" contributesTo:"path" name:"pathRouteSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` -} - -func (request UpdatePathRouteSetRequest) String() string { - return common.PointerString(request) -} - -// UpdatePathRouteSetResponse wrapper for the UpdatePathRouteSet operation -type UpdatePathRouteSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - -} - -func (response UpdatePathRouteSetResponse) String() string { - return common.PointerString(response) -} - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/work_request.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/work_request.go index 856a762ca..0a8a007f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/work_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/work_request.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,85 +9,74 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // WorkRequest Many of the API requests you use to create and configure load balancing do not take effect immediately. - // In these cases, the request spawns an asynchronous work flow to fulfill the request. WorkRequest objects provide visibility - // for in-progress work flows. - // For more information about work requests, see [Viewing the State of a Work Request]({{DOC_SERVER_URL}}/Content/Balance/Tasks/viewingworkrequest.htm). +// WorkRequest Many of the API requests you use to create and configure load balancing do not take effect immediately. +// In these cases, the request spawns an asynchronous work flow to fulfill the request. WorkRequest objects provide visibility +// for in-progress work flows. +// For more information about work requests, see Viewing the State of a Work Request (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/viewingworkrequest.htm). type WorkRequest struct { - - ErrorDetails []WorkRequestError `mandatory:"true" json:"errorDetails"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the work request. - Id *string `mandatory:"true" json:"id"` - - // The current state of the work request. - LifecycleState WorkRequestLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The [OCID]({{DOC_SERVER_URL}}/Content/General/Concepts/identifiers.htm) of the load balancer with which the work request - // is associated. - LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` - - // A collection of data, related to the load balancer provisioning process, that helps with debugging in the event of failure. - // Possible data elements include: - // - workflow name - // - event ID - // - work request ID - // - load balancer ID - // - workflow completion message - Message *string `mandatory:"true" json:"message"` - - // The date and time the work request was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` - - // The type of action the work request represents. - Type *string `mandatory:"true" json:"type"` - - // The date and time the work request was completed, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` + ErrorDetails []WorkRequestError `mandatory:"true" json:"errorDetails"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request. + Id *string `mandatory:"true" json:"id"` + + // The current state of the work request. + LifecycleState WorkRequestLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer with which the work request + // is associated. + LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` + + // A collection of data, related to the load balancer provisioning process, that helps with debugging in the event of failure. + // Possible data elements include: + // - workflow name + // - event ID + // - work request ID + // - load balancer ID + // - workflow completion message + Message *string `mandatory:"true" json:"message"` + + // The date and time the work request was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` + + // The type of action the work request represents. + Type *string `mandatory:"true" json:"type"` + + // The date and time the work request was completed, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` } func (m WorkRequest) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // WorkRequestLifecycleStateEnum Enum with underlying type: string type WorkRequestLifecycleStateEnum string // Set of constants representing the allowable values for WorkRequestLifecycleState const ( - WorkRequestLifecycleStateAccepted WorkRequestLifecycleStateEnum = "ACCEPTED" - WorkRequestLifecycleStateInProgress WorkRequestLifecycleStateEnum = "IN_PROGRESS" - WorkRequestLifecycleStateFailed WorkRequestLifecycleStateEnum = "FAILED" - WorkRequestLifecycleStateSucceeded WorkRequestLifecycleStateEnum = "SUCCEEDED" - WorkRequestLifecycleStateUnknown WorkRequestLifecycleStateEnum = "UNKNOWN" + WorkRequestLifecycleStateAccepted WorkRequestLifecycleStateEnum = "ACCEPTED" + WorkRequestLifecycleStateInProgress WorkRequestLifecycleStateEnum = "IN_PROGRESS" + WorkRequestLifecycleStateFailed WorkRequestLifecycleStateEnum = "FAILED" + WorkRequestLifecycleStateSucceeded WorkRequestLifecycleStateEnum = "SUCCEEDED" ) -var mappingWorkRequestLifecycleState = map[string]WorkRequestLifecycleStateEnum { - "ACCEPTED": WorkRequestLifecycleStateAccepted, - "IN_PROGRESS": WorkRequestLifecycleStateInProgress, - "FAILED": WorkRequestLifecycleStateFailed, - "SUCCEEDED": WorkRequestLifecycleStateSucceeded, - "UNKNOWN": WorkRequestLifecycleStateUnknown, +var mappingWorkRequestLifecycleState = map[string]WorkRequestLifecycleStateEnum{ + "ACCEPTED": WorkRequestLifecycleStateAccepted, + "IN_PROGRESS": WorkRequestLifecycleStateInProgress, + "FAILED": WorkRequestLifecycleStateFailed, + "SUCCEEDED": WorkRequestLifecycleStateSucceeded, } // GetWorkRequestLifecycleStateEnumValues Enumerates the set of values for WorkRequestLifecycleState func GetWorkRequestLifecycleStateEnumValues() []WorkRequestLifecycleStateEnum { - values := make([]WorkRequestLifecycleStateEnum, 0) - for _, v := range mappingWorkRequestLifecycleState { - if v != WorkRequestLifecycleStateUnknown { - values = append(values, v) - } - } - return values + values := make([]WorkRequestLifecycleStateEnum, 0) + for _, v := range mappingWorkRequestLifecycleState { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/work_request_error.go index 3f3ace70c..6b755f4b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/work_request_error.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/work_request_error.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Load Balancing Service API @@ -9,51 +9,40 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // WorkRequestError An object returned in the event of a work request error. +// WorkRequestError An object returned in the event of a work request error. type WorkRequestError struct { - - ErrorCode WorkRequestErrorErrorCodeEnum `mandatory:"true" json:"errorCode"` - - // A human-readable error string. - Message *string `mandatory:"true" json:"message"` + ErrorCode WorkRequestErrorErrorCodeEnum `mandatory:"true" json:"errorCode"` + + // A human-readable error string. + Message *string `mandatory:"true" json:"message"` } func (m WorkRequestError) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // WorkRequestErrorErrorCodeEnum Enum with underlying type: string type WorkRequestErrorErrorCodeEnum string // Set of constants representing the allowable values for WorkRequestErrorErrorCode const ( - WorkRequestErrorErrorCodeBadInput WorkRequestErrorErrorCodeEnum = "BAD_INPUT" - WorkRequestErrorErrorCodeInternalError WorkRequestErrorErrorCodeEnum = "INTERNAL_ERROR" - WorkRequestErrorErrorCodeUnknown WorkRequestErrorErrorCodeEnum = "UNKNOWN" + WorkRequestErrorErrorCodeBadInput WorkRequestErrorErrorCodeEnum = "BAD_INPUT" + WorkRequestErrorErrorCodeInternalError WorkRequestErrorErrorCodeEnum = "INTERNAL_ERROR" ) -var mappingWorkRequestErrorErrorCode = map[string]WorkRequestErrorErrorCodeEnum { - "BAD_INPUT": WorkRequestErrorErrorCodeBadInput, - "INTERNAL_ERROR": WorkRequestErrorErrorCodeInternalError, - "UNKNOWN": WorkRequestErrorErrorCodeUnknown, +var mappingWorkRequestErrorErrorCode = map[string]WorkRequestErrorErrorCodeEnum{ + "BAD_INPUT": WorkRequestErrorErrorCodeBadInput, + "INTERNAL_ERROR": WorkRequestErrorErrorCodeInternalError, } // GetWorkRequestErrorErrorCodeEnumValues Enumerates the set of values for WorkRequestErrorErrorCode func GetWorkRequestErrorErrorCodeEnumValues() []WorkRequestErrorErrorCodeEnum { - values := make([]WorkRequestErrorErrorCodeEnum, 0) - for _, v := range mappingWorkRequestErrorErrorCode { - if v != WorkRequestErrorErrorCodeUnknown { - values = append(values, v) - } - } - return values + values := make([]WorkRequestErrorErrorCodeEnum, 0) + for _, v := range mappingWorkRequestErrorErrorCode { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/abort_multipart_upload_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/abort_multipart_upload_request_response.go index 8df2eb6c4..8858e1066 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/abort_multipart_upload_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/abort_multipart_upload_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // AbortMultipartUploadRequest wrapper for the AbortMultipartUpload operation type AbortMultipartUploadRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The name of the object. - // Example: `test/object1.log` - ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` - - // The upload ID for a multipart upload. - UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The name of the object. + // Example: `test/object1.log` + ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` + + // The upload ID for a multipart upload. + UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request AbortMultipartUploadRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // AbortMultipartUploadResponse wrapper for the AbortMultipartUpload operation type AbortMultipartUploadResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response AbortMultipartUploadResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket.go index b44633fcc..81462ba1a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,75 +9,65 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // Bucket To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// Bucket To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type Bucket struct { - - // The namespace in which the bucket lives. - Namespace *string `mandatory:"true" json:"namespace"` - - // The name of the bucket. - Name *string `mandatory:"true" json:"name"` - - // The compartment ID in which the bucket is authorized. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Arbitrary string keys and values for user-defined metadata. - Metadata map[string]string `mandatory:"true" json:"metadata"` - - // The OCID of the user who created the bucket. - CreatedBy *string `mandatory:"true" json:"createdBy"` - - // The date and time at which the bucket was created. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The entity tag for the bucket. - Etag *string `mandatory:"true" json:"etag"` - - // The type of public access available on this bucket. Allows authenticated caller to access the bucket or - // contents of this bucket. By default a bucket is set to NoPublicAccess. It is treated as NoPublicAccess - // when this value is not specified. When the type is NoPublicAccess the bucket does not allow any public access. - // When the type is ObjectRead the bucket allows public access to the GetObject, HeadObject, ListObjects. - PublicAccessType BucketPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` + + // The namespace in which the bucket lives. + Namespace *string `mandatory:"true" json:"namespace"` + + // The name of the bucket. + Name *string `mandatory:"true" json:"name"` + + // The compartment ID in which the bucket is authorized. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Arbitrary string keys and values for user-defined metadata. + Metadata map[string]string `mandatory:"true" json:"metadata"` + + // The OCID of the user who created the bucket. + CreatedBy *string `mandatory:"true" json:"createdBy"` + + // The date and time at which the bucket was created. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The entity tag for the bucket. + Etag *string `mandatory:"true" json:"etag"` + + // The type of public access available on this bucket. Allows authenticated caller to access the bucket or + // contents of this bucket. By default a bucket is set to NoPublicAccess. It is treated as NoPublicAccess + // when this value is not specified. When the type is NoPublicAccess the bucket does not allow any public access. + // When the type is ObjectRead the bucket allows public access to the GetObject, HeadObject, ListObjects. + PublicAccessType BucketPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` } func (m Bucket) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // BucketPublicAccessTypeEnum Enum with underlying type: string type BucketPublicAccessTypeEnum string // Set of constants representing the allowable values for BucketPublicAccessType const ( - BucketPublicAccessTypeNopublicaccess BucketPublicAccessTypeEnum = "NoPublicAccess" - BucketPublicAccessTypeObjectread BucketPublicAccessTypeEnum = "ObjectRead" - BucketPublicAccessTypeUnknown BucketPublicAccessTypeEnum = "UNKNOWN" + BucketPublicAccessTypeNopublicaccess BucketPublicAccessTypeEnum = "NoPublicAccess" + BucketPublicAccessTypeObjectread BucketPublicAccessTypeEnum = "ObjectRead" ) -var mappingBucketPublicAccessType = map[string]BucketPublicAccessTypeEnum { - "NoPublicAccess": BucketPublicAccessTypeNopublicaccess, - "ObjectRead": BucketPublicAccessTypeObjectread, - "UNKNOWN": BucketPublicAccessTypeUnknown, +var mappingBucketPublicAccessType = map[string]BucketPublicAccessTypeEnum{ + "NoPublicAccess": BucketPublicAccessTypeNopublicaccess, + "ObjectRead": BucketPublicAccessTypeObjectread, } // GetBucketPublicAccessTypeEnumValues Enumerates the set of values for BucketPublicAccessType func GetBucketPublicAccessTypeEnumValues() []BucketPublicAccessTypeEnum { - values := make([]BucketPublicAccessTypeEnum, 0) - for _, v := range mappingBucketPublicAccessType { - if v != BucketPublicAccessTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]BucketPublicAccessTypeEnum, 0) + for _, v := range mappingBucketPublicAccessType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket_summary.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket_summary.go index e4d0a2d9b..028177a52 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,40 +9,33 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // BucketSummary To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// BucketSummary To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type BucketSummary struct { - - // The namespace in which the bucket lives. - Namespace *string `mandatory:"true" json:"namespace"` - - // The name of the bucket. - Name *string `mandatory:"true" json:"name"` - - // The compartment ID in which the bucket is authorized. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the user who created the bucket. - CreatedBy *string `mandatory:"true" json:"createdBy"` - - // The date and time at which the bucket was created. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The entity tag for the bucket. - Etag *string `mandatory:"true" json:"etag"` -} -func (m BucketSummary) String() string { - return common.PointerString(m) -} + // The namespace in which the bucket lives. + Namespace *string `mandatory:"true" json:"namespace"` + // The name of the bucket. + Name *string `mandatory:"true" json:"name"` + // The compartment ID in which the bucket is authorized. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + // The OCID of the user who created the bucket. + CreatedBy *string `mandatory:"true" json:"createdBy"` + // The date and time at which the bucket was created. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + // The entity tag for the bucket. + Etag *string `mandatory:"true" json:"etag"` +} + +func (m BucketSummary) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_details.go index 68a473f27..c285f7383 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,29 +9,22 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CommitMultipartUploadDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// CommitMultipartUploadDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type CommitMultipartUploadDetails struct { - - // The part numbers and ETags for the parts to be committed. - PartsToCommit []CommitMultipartUploadPartDetails `mandatory:"true" json:"partsToCommit"` - - // The part numbers for the parts to be excluded from the completed object. - // Each part created for this upload must be in either partsToExclude or partsToCommit, but cannot be in both. - PartsToExclude []int `mandatory:"false" json:"partsToExclude"` + + // The part numbers and ETags for the parts to be committed. + PartsToCommit []CommitMultipartUploadPartDetails `mandatory:"true" json:"partsToCommit"` + + // The part numbers for the parts to be excluded from the completed object. + // Each part created for this upload must be in either partsToExclude or partsToCommit, but cannot be in both. + PartsToExclude []int `mandatory:"false" json:"partsToExclude"` } func (m CommitMultipartUploadDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_part_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_part_details.go index 98ba7285e..a4d053b37 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_part_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_part_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,28 +9,21 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CommitMultipartUploadPartDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// CommitMultipartUploadPartDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type CommitMultipartUploadPartDetails struct { - - // The part number for this part. - PartNum *int `mandatory:"true" json:"partNum"` - - // The ETag returned when this part was uploaded. - Etag *string `mandatory:"true" json:"etag"` + + // The part number for this part. + PartNum *int `mandatory:"true" json:"partNum"` + + // The ETag returned when this part was uploaded. + Etag *string `mandatory:"true" json:"etag"` } func (m CommitMultipartUploadPartDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - - - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_request_response.go index 3b1b1c7e0..101834254 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_request_response.go @@ -1,80 +1,76 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CommitMultipartUploadRequest wrapper for the CommitMultipartUpload operation type CommitMultipartUploadRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The name of the object. - // Example: `test/object1.log` - ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` - - // The upload ID for a multipart upload. - UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` - - // The part numbers and ETags for the parts you want to commit. - CommitMultipartUploadDetails `contributesTo:"body"` - - // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - // For uploading a part, this is the entity tag of the target part. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. - // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag - // of the target part. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The name of the object. + // Example: `test/object1.log` + ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` + + // The upload ID for a multipart upload. + UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` + + // The part numbers and ETags for the parts you want to commit. + CommitMultipartUploadDetails `contributesTo:"body"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag + // of the target part. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request CommitMultipartUploadRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CommitMultipartUploadResponse wrapper for the CommitMultipartUpload operation type CommitMultipartUploadResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // Base-64 representation of the multipart object hash. - // The multipart object hash is calculated by taking the MD5 hashes of the parts passed to this call, - // concatenating the binary representation of those hashes in order of their part numbers, - // and then calculating the MD5 hash of the concatenated values. - OpcMultipartMd5 *string `presentIn:"header" name:"opc-multipart-md5"` - - // The entity tag for the object. - ETag *string `presentIn:"header" name:"etag"` - - // The time the object was last modified, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.29. - LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` + // The underlying http response + RawResponse *http.Response + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // Base-64 representation of the multipart object hash. + // The multipart object hash is calculated by taking the MD5 hashes of the parts passed to this call, + // concatenating the binary representation of those hashes in order of their part numbers, + // and then calculating the MD5 hash of the concatenated values. + OpcMultipartMd5 *string `presentIn:"header" name:"opc-multipart-md5"` + + // The entity tag for the object. + ETag *string `presentIn:"header" name:"etag"` + + // The time the object was last modified, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. + LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` } func (response CommitMultipartUploadResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_details.go index 7ac2dbe54..b6be2982c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,64 +9,54 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateBucketDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// CreateBucketDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type CreateBucketDetails struct { - - // The name of the bucket. Valid characters are uppercase or lowercase letters, - // numbers, and dashes. Bucket names must be unique within the namespace. - Name *string `mandatory:"true" json:"name"` - - // The ID of the compartment in which to create the bucket. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Arbitrary string, up to 4KB, of keys and values for user-defined metadata. - Metadata map[string]string `mandatory:"false" json:"metadata"` - - // The type of public access available on this bucket. Allows authenticated caller to access the bucket or - // contents of this bucket. By default a bucket is set to NoPublicAccess. It is treated as NoPublicAccess - // when this value is not specified. When the type is NoPublicAccess the bucket does not allow any public access. - // When the type is ObjectRead the bucket allows public access to the GetObject, HeadObject, ListObjects. - PublicAccessType CreateBucketDetailsPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` + + // The name of the bucket. Valid characters are uppercase or lowercase letters, + // numbers, and dashes. Bucket names must be unique within the namespace. + Name *string `mandatory:"true" json:"name"` + + // The ID of the compartment in which to create the bucket. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Arbitrary string, up to 4KB, of keys and values for user-defined metadata. + Metadata map[string]string `mandatory:"false" json:"metadata"` + + // The type of public access available on this bucket. Allows authenticated caller to access the bucket or + // contents of this bucket. By default a bucket is set to NoPublicAccess. It is treated as NoPublicAccess + // when this value is not specified. When the type is NoPublicAccess the bucket does not allow any public access. + // When the type is ObjectRead the bucket allows public access to the GetObject, HeadObject, ListObjects. + PublicAccessType CreateBucketDetailsPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` } func (m CreateBucketDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // CreateBucketDetailsPublicAccessTypeEnum Enum with underlying type: string type CreateBucketDetailsPublicAccessTypeEnum string // Set of constants representing the allowable values for CreateBucketDetailsPublicAccessType const ( - CreateBucketDetailsPublicAccessTypeNopublicaccess CreateBucketDetailsPublicAccessTypeEnum = "NoPublicAccess" - CreateBucketDetailsPublicAccessTypeObjectread CreateBucketDetailsPublicAccessTypeEnum = "ObjectRead" - CreateBucketDetailsPublicAccessTypeUnknown CreateBucketDetailsPublicAccessTypeEnum = "UNKNOWN" + CreateBucketDetailsPublicAccessTypeNopublicaccess CreateBucketDetailsPublicAccessTypeEnum = "NoPublicAccess" + CreateBucketDetailsPublicAccessTypeObjectread CreateBucketDetailsPublicAccessTypeEnum = "ObjectRead" ) -var mappingCreateBucketDetailsPublicAccessType = map[string]CreateBucketDetailsPublicAccessTypeEnum { - "NoPublicAccess": CreateBucketDetailsPublicAccessTypeNopublicaccess, - "ObjectRead": CreateBucketDetailsPublicAccessTypeObjectread, - "UNKNOWN": CreateBucketDetailsPublicAccessTypeUnknown, +var mappingCreateBucketDetailsPublicAccessType = map[string]CreateBucketDetailsPublicAccessTypeEnum{ + "NoPublicAccess": CreateBucketDetailsPublicAccessTypeNopublicaccess, + "ObjectRead": CreateBucketDetailsPublicAccessTypeObjectread, } // GetCreateBucketDetailsPublicAccessTypeEnumValues Enumerates the set of values for CreateBucketDetailsPublicAccessType func GetCreateBucketDetailsPublicAccessTypeEnumValues() []CreateBucketDetailsPublicAccessTypeEnum { - values := make([]CreateBucketDetailsPublicAccessTypeEnum, 0) - for _, v := range mappingCreateBucketDetailsPublicAccessType { - if v != CreateBucketDetailsPublicAccessTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]CreateBucketDetailsPublicAccessTypeEnum, 0) + for _, v := range mappingCreateBucketDetailsPublicAccessType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_request_response.go index 2ee542587..00a7aa13c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_request_response.go @@ -1,57 +1,53 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateBucketRequest wrapper for the CreateBucket operation type CreateBucketRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // Request object for creating a bucket. - CreateBucketDetails `contributesTo:"body"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // Request object for creating a bucket. + CreateBucketDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request CreateBucketRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateBucketResponse wrapper for the CreateBucket operation type CreateBucketResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Bucket instance - Bucket `presentIn:"body"` - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The entity tag for the bucket that was created. - ETag *string `presentIn:"header" name:"etag"` - - // The full path to the bucket that was created. - Location *string `presentIn:"header" name:"location"` + // The underlying http response + RawResponse *http.Response + + // The Bucket instance + Bucket `presentIn:"body"` + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The entity tag for the bucket that was created. + ETag *string `presentIn:"header" name:"etag"` + + // The full path to the bucket that was created. + Location *string `presentIn:"header" name:"location"` } func (response CreateBucketResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_details.go index 13ddb9769..f21262d54 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,38 +9,31 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreateMultipartUploadDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// CreateMultipartUploadDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type CreateMultipartUploadDetails struct { - - // the name of the object to which this multi-part upload is targetted. - Object *string `mandatory:"true" json:"object"` - - // the content type of the object to upload. - ContentType *string `mandatory:"false" json:"contentType"` - - // the content language of the object to upload. - ContentLanguage *string `mandatory:"false" json:"contentLanguage"` - - // the content encoding of the object to upload. - ContentEncoding *string `mandatory:"false" json:"contentEncoding"` - - // Arbitrary string keys and values for the user-defined metadata for the object. - // Keys must be in "opc-meta-*" format. - Metadata map[string]string `mandatory:"false" json:"metadata"` -} -func (m CreateMultipartUploadDetails) String() string { - return common.PointerString(m) -} + // the name of the object to which this multi-part upload is targetted. + Object *string `mandatory:"true" json:"object"` + // the content type of the object to upload. + ContentType *string `mandatory:"false" json:"contentType"` + // the content language of the object to upload. + ContentLanguage *string `mandatory:"false" json:"contentLanguage"` + // the content encoding of the object to upload. + ContentEncoding *string `mandatory:"false" json:"contentEncoding"` + // Arbitrary string keys and values for the user-defined metadata for the object. + // Keys must be in "opc-meta-*" format. + Metadata map[string]string `mandatory:"false" json:"metadata"` +} +func (m CreateMultipartUploadDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_request_response.go index fd770e7cc..ca790ade0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_request_response.go @@ -1,67 +1,63 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreateMultipartUploadRequest wrapper for the CreateMultipartUpload operation type CreateMultipartUploadRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // Request object for creating a multi-part upload. - CreateMultipartUploadDetails `contributesTo:"body"` - - // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - // For uploading a part, this is the entity tag of the target part. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. - // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag - // of the target part. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // Request object for creating a multi-part upload. + CreateMultipartUploadDetails `contributesTo:"body"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag + // of the target part. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request CreateMultipartUploadRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreateMultipartUploadResponse wrapper for the CreateMultipartUpload operation type CreateMultipartUploadResponse struct { - // The underlying http response - RawResponse *http.Response - - // The MultipartUpload instance - MultipartUpload `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The full path to the new upload. - Location *string `presentIn:"header" name:"location"` + // The MultipartUpload instance + MultipartUpload `presentIn:"body"` + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The full path to the new upload. + Location *string `presentIn:"header" name:"location"` } func (response CreateMultipartUploadResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_details.go index dce358992..498dc6dd4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,63 +9,53 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // CreatePreauthenticatedRequestDetails The representation of CreatePreauthenticatedRequestDetails +// CreatePreauthenticatedRequestDetails The representation of CreatePreauthenticatedRequestDetails type CreatePreauthenticatedRequestDetails struct { - - // user specified name for pre-authenticated request. Helpful for management purposes. - Name *string `mandatory:"true" json:"name"` - - // the operation that can be performed on this resource e.g PUT or GET. - AccessType CreatePreauthenticatedRequestDetailsAccessTypeEnum `mandatory:"true" json:"accessType"` - - // The expiration date after which the pre-authenticated request will no longer be valid per spec - // [RFC 3339](https://tools.ietf.org/rfc/rfc3339) - TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` - - // Name of object that is being granted access to by the pre-authenticated request. This can be null and that would mean that the pre-authenticated request is granting access to the entire bucket - ObjectName *string `mandatory:"false" json:"objectName"` + + // user specified name for pre-authenticated request. Helpful for management purposes. + Name *string `mandatory:"true" json:"name"` + + // the operation that can be performed on this resource e.g PUT or GET. + AccessType CreatePreauthenticatedRequestDetailsAccessTypeEnum `mandatory:"true" json:"accessType"` + + // The expiration date after which the pre-authenticated request will no longer be valid per spec + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) + TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` + + // Name of object that is being granted access to by the pre-authenticated request. This can be null and that would mean that the pre-authenticated request is granting access to the entire bucket + ObjectName *string `mandatory:"false" json:"objectName"` } func (m CreatePreauthenticatedRequestDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // CreatePreauthenticatedRequestDetailsAccessTypeEnum Enum with underlying type: string type CreatePreauthenticatedRequestDetailsAccessTypeEnum string // Set of constants representing the allowable values for CreatePreauthenticatedRequestDetailsAccessType const ( - CreatePreauthenticatedRequestDetailsAccessTypeObjectread CreatePreauthenticatedRequestDetailsAccessTypeEnum = "ObjectRead" - CreatePreauthenticatedRequestDetailsAccessTypeObjectwrite CreatePreauthenticatedRequestDetailsAccessTypeEnum = "ObjectWrite" - CreatePreauthenticatedRequestDetailsAccessTypeObjectreadwrite CreatePreauthenticatedRequestDetailsAccessTypeEnum = "ObjectReadWrite" - CreatePreauthenticatedRequestDetailsAccessTypeAnyobjectwrite CreatePreauthenticatedRequestDetailsAccessTypeEnum = "AnyObjectWrite" - CreatePreauthenticatedRequestDetailsAccessTypeUnknown CreatePreauthenticatedRequestDetailsAccessTypeEnum = "UNKNOWN" + CreatePreauthenticatedRequestDetailsAccessTypeObjectread CreatePreauthenticatedRequestDetailsAccessTypeEnum = "ObjectRead" + CreatePreauthenticatedRequestDetailsAccessTypeObjectwrite CreatePreauthenticatedRequestDetailsAccessTypeEnum = "ObjectWrite" + CreatePreauthenticatedRequestDetailsAccessTypeObjectreadwrite CreatePreauthenticatedRequestDetailsAccessTypeEnum = "ObjectReadWrite" + CreatePreauthenticatedRequestDetailsAccessTypeAnyobjectwrite CreatePreauthenticatedRequestDetailsAccessTypeEnum = "AnyObjectWrite" ) -var mappingCreatePreauthenticatedRequestDetailsAccessType = map[string]CreatePreauthenticatedRequestDetailsAccessTypeEnum { - "ObjectRead": CreatePreauthenticatedRequestDetailsAccessTypeObjectread, - "ObjectWrite": CreatePreauthenticatedRequestDetailsAccessTypeObjectwrite, - "ObjectReadWrite": CreatePreauthenticatedRequestDetailsAccessTypeObjectreadwrite, - "AnyObjectWrite": CreatePreauthenticatedRequestDetailsAccessTypeAnyobjectwrite, - "UNKNOWN": CreatePreauthenticatedRequestDetailsAccessTypeUnknown, +var mappingCreatePreauthenticatedRequestDetailsAccessType = map[string]CreatePreauthenticatedRequestDetailsAccessTypeEnum{ + "ObjectRead": CreatePreauthenticatedRequestDetailsAccessTypeObjectread, + "ObjectWrite": CreatePreauthenticatedRequestDetailsAccessTypeObjectwrite, + "ObjectReadWrite": CreatePreauthenticatedRequestDetailsAccessTypeObjectreadwrite, + "AnyObjectWrite": CreatePreauthenticatedRequestDetailsAccessTypeAnyobjectwrite, } // GetCreatePreauthenticatedRequestDetailsAccessTypeEnumValues Enumerates the set of values for CreatePreauthenticatedRequestDetailsAccessType func GetCreatePreauthenticatedRequestDetailsAccessTypeEnumValues() []CreatePreauthenticatedRequestDetailsAccessTypeEnum { - values := make([]CreatePreauthenticatedRequestDetailsAccessTypeEnum, 0) - for _, v := range mappingCreatePreauthenticatedRequestDetailsAccessType { - if v != CreatePreauthenticatedRequestDetailsAccessTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]CreatePreauthenticatedRequestDetailsAccessTypeEnum, 0) + for _, v := range mappingCreatePreauthenticatedRequestDetailsAccessType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_request_response.go index 05af68071..f0580b6d1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_request_response.go @@ -1,55 +1,51 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // CreatePreauthenticatedRequestRequest wrapper for the CreatePreauthenticatedRequest operation type CreatePreauthenticatedRequestRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // details for creating the pre-authenticated request. - CreatePreauthenticatedRequestDetails `contributesTo:"body"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // details for creating the pre-authenticated request. + CreatePreauthenticatedRequestDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request CreatePreauthenticatedRequestRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // CreatePreauthenticatedRequestResponse wrapper for the CreatePreauthenticatedRequest operation type CreatePreauthenticatedRequestResponse struct { - // The underlying http response - RawResponse *http.Response - - // The PreauthenticatedRequest instance - PreauthenticatedRequest `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The PreauthenticatedRequest instance + PreauthenticatedRequest `presentIn:"body"` + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response CreatePreauthenticatedRequestResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_bucket_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_bucket_request_response.go index a88a1bbf6..71385a147 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_bucket_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_bucket_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteBucketRequest wrapper for the DeleteBucket operation type DeleteBucketRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - // For uploading a part, this is the entity tag of the target part. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request DeleteBucketRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteBucketResponse wrapper for the DeleteBucket operation type DeleteBucketResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeleteBucketResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_object_request_response.go index a45a96868..ae33f3a61 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_object_request_response.go @@ -1,60 +1,56 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeleteObjectRequest wrapper for the DeleteObject operation type DeleteObjectRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The name of the object. - // Example: `test/object1.log` - ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` - - // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - // For uploading a part, this is the entity tag of the target part. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The name of the object. + // Example: `test/object1.log` + ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request DeleteObjectRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeleteObjectResponse wrapper for the DeleteObject operation type DeleteObjectResponse struct { - // The underlying http response - RawResponse *http.Response + // The underlying http response + RawResponse *http.Response - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The time the object was deleted, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.29. - LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The time the object was deleted, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. + LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` } func (response DeleteObjectResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_preauthenticated_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_preauthenticated_request_request_response.go index 63e7d685d..675d24927 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_preauthenticated_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_preauthenticated_request_request_response.go @@ -1,53 +1,49 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // DeletePreauthenticatedRequestRequest wrapper for the DeletePreauthenticatedRequest operation type DeletePreauthenticatedRequestRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The unique identifier for the pre-authenticated request (PAR). This can be used to manage the PAR - // such as GET or DELETE the PAR - ParId *string `mandatory:"true" contributesTo:"path" name:"parId"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The unique identifier for the pre-authenticated request (PAR). This can be used to manage the PAR + // such as GET or DELETE the PAR + ParId *string `mandatory:"true" contributesTo:"path" name:"parId"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request DeletePreauthenticatedRequestRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // DeletePreauthenticatedRequestResponse wrapper for the DeletePreauthenticatedRequest operation type DeletePreauthenticatedRequestResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The underlying http response + RawResponse *http.Response + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response DeletePreauthenticatedRequestResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_bucket_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_bucket_request_response.go index 04779064f..4284a4a56 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_bucket_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_bucket_request_response.go @@ -1,69 +1,66 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetBucketRequest wrapper for the GetBucket operation type GetBucketRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - // For uploading a part, this is the entity tag of the target part. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. - // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag - // of the target part. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag + // of the target part. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request GetBucketRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetBucketResponse wrapper for the GetBucket operation type GetBucketResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Bucket instance - Bucket `presentIn:"body"` - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The current entity tag for the bucket. - ETag *string `presentIn:"header" name:"etag"` - - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool + // The underlying http response + RawResponse *http.Response + + // The Bucket instance + Bucket `presentIn:"body"` + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The current entity tag for the bucket. + ETag *string `presentIn:"header" name:"etag"` + + // Flag to indicate whether or not the object was modified. If this is true, + // the getter for the object itself will return null. Callers should check this + // if they specified one of the request params that might result in a conditional + // response (like 'if-match'/'if-none-match'). + IsNotModified bool } func (response GetBucketResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_namespace_request_response.go index 2e0190f63..043ae9c99 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_namespace_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_namespace_request_response.go @@ -1,38 +1,34 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetNamespaceRequest wrapper for the GetNamespace operation type GetNamespaceRequest struct { - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request GetNamespaceRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetNamespaceResponse wrapper for the GetNamespace operation type GetNamespaceResponse struct { - // The underlying http response - RawResponse *http.Response - - // The string instance - Value *string `presentIn:"body"` - - + // The underlying http response + RawResponse *http.Response + // The string instance + Value *string `presentIn:"body"` } func (response GetNamespaceResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_object_request_response.go index 3c9dc7170..f75e36b74 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_object_request_response.go @@ -1,110 +1,107 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" - "io" + "github.com/oracle/oci-go-sdk/common" + "io" + "net/http" ) // GetObjectRequest wrapper for the GetObject operation type GetObjectRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The name of the object. - // Example: `test/object1.log` - ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` - - // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - // For uploading a part, this is the entity tag of the target part. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. - // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag - // of the target part. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` - - // Optional byte range to fetch, as described in [RFC 7233](https://tools.ietf.org/rfc/rfc7233), section 2.1. - // Note, only a single range of bytes is supported. - Range *string `mandatory:"false" contributesTo:"header" name:"range"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The name of the object. + // Example: `test/object1.log` + ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag + // of the target part. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // Optional byte range to fetch, as described in RFC 7233 (https://tools.ietf.org/rfc/rfc7233), section 2.1. + // Note, only a single range of bytes is supported. + Range *string `mandatory:"false" contributesTo:"header" name:"range"` } func (request GetObjectRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetObjectResponse wrapper for the GetObject operation type GetObjectResponse struct { - // The underlying http response - RawResponse *http.Response - - // The io.ReadCloser instance - Content io.ReadCloser `presentIn:"body" encoding:"binary"` - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The entity tag for the object. - ETag *string `presentIn:"header" name:"etag"` - - // The user-defined metadata for the object. - OpcMeta map[string]string `presentIn:"header-collection" prefix:"opc-meta-"` - - // The object size in bytes. - ContentLength *int `presentIn:"header" name:"content-length"` - - // Content-Range header for range requests, per [RFC 7233](https://tools.ietf.org/rfc/rfc7233), section 4.2. - ContentRange *string `presentIn:"header" name:"content-range"` - - // Content-MD5 header, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.15. - // Unavailable for objects uploaded using multipart upload. - ContentMd5 *string `presentIn:"header" name:"content-md5"` - - // Only applicable to objects uploaded using multipart upload. - // Base-64 representation of the multipart object hash. - // The multipart object hash is calculated by taking the MD5 hashes of the parts, - // concatenating the binary representation of those hashes in order of their part numbers, - // and then calculating the MD5 hash of the concatenated values. - OpcMultipartMd5 *string `presentIn:"header" name:"opc-multipart-md5"` - - // Content-Type header, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.17. - ContentType *string `presentIn:"header" name:"content-type"` - - // Content-Language header, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.12. - ContentLanguage *string `presentIn:"header" name:"content-language"` - - // Content-Encoding header, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.11. - ContentEncoding *string `presentIn:"header" name:"content-encoding"` - - // The object modification time, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.29. - LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` - - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool + // The underlying http response + RawResponse *http.Response + + // The io.ReadCloser instance + Content io.ReadCloser `presentIn:"body" encoding:"binary"` + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The entity tag for the object. + ETag *string `presentIn:"header" name:"etag"` + + // The user-defined metadata for the object. + OpcMeta map[string]string `presentIn:"header-collection" prefix:"opc-meta-"` + + // The object size in bytes. + ContentLength *int `presentIn:"header" name:"content-length"` + + // Content-Range header for range requests, per RFC 7233 (https://tools.ietf.org/rfc/rfc7233), section 4.2. + ContentRange *string `presentIn:"header" name:"content-range"` + + // Content-MD5 header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.15. + // Unavailable for objects uploaded using multipart upload. + ContentMd5 *string `presentIn:"header" name:"content-md5"` + + // Only applicable to objects uploaded using multipart upload. + // Base-64 representation of the multipart object hash. + // The multipart object hash is calculated by taking the MD5 hashes of the parts, + // concatenating the binary representation of those hashes in order of their part numbers, + // and then calculating the MD5 hash of the concatenated values. + OpcMultipartMd5 *string `presentIn:"header" name:"opc-multipart-md5"` + + // Content-Type header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.17. + ContentType *string `presentIn:"header" name:"content-type"` + + // Content-Language header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.12. + ContentLanguage *string `presentIn:"header" name:"content-language"` + + // Content-Encoding header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.11. + ContentEncoding *string `presentIn:"header" name:"content-encoding"` + + // The object modification time, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. + LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` + + // Flag to indicate whether or not the object was modified. If this is true, + // the getter for the object itself will return null. Callers should check this + // if they specified one of the request params that might result in a conditional + // response (like 'if-match'/'if-none-match'). + IsNotModified bool } func (response GetObjectResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_preauthenticated_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_preauthenticated_request_request_response.go index 40876d95d..0e41fff80 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_preauthenticated_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_preauthenticated_request_request_response.go @@ -1,56 +1,52 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // GetPreauthenticatedRequestRequest wrapper for the GetPreauthenticatedRequest operation type GetPreauthenticatedRequestRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The unique identifier for the pre-authenticated request (PAR). This can be used to manage the PAR - // such as GET or DELETE the PAR - ParId *string `mandatory:"true" contributesTo:"path" name:"parId"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The unique identifier for the pre-authenticated request (PAR). This can be used to manage the PAR + // such as GET or DELETE the PAR + ParId *string `mandatory:"true" contributesTo:"path" name:"parId"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request GetPreauthenticatedRequestRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // GetPreauthenticatedRequestResponse wrapper for the GetPreauthenticatedRequest operation type GetPreauthenticatedRequestResponse struct { - // The underlying http response - RawResponse *http.Response - - // The PreauthenticatedRequestSummary instance - PreauthenticatedRequestSummary `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The PreauthenticatedRequestSummary instance + PreauthenticatedRequestSummary `presentIn:"body"` + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response GetPreauthenticatedRequestResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_bucket_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_bucket_request_response.go index 7300c2ef3..cca2efc72 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_bucket_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_bucket_request_response.go @@ -1,66 +1,63 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // HeadBucketRequest wrapper for the HeadBucket operation type HeadBucketRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - // For uploading a part, this is the entity tag of the target part. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. - // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag - // of the target part. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag + // of the target part. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request HeadBucketRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // HeadBucketResponse wrapper for the HeadBucket operation type HeadBucketResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The current entity tag for the bucket. - ETag *string `presentIn:"header" name:"etag"` - - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool + // The underlying http response + RawResponse *http.Response + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The current entity tag for the bucket. + ETag *string `presentIn:"header" name:"etag"` + + // Flag to indicate whether or not the object was modified. If this is true, + // the getter for the object itself will return null. Callers should check this + // if they specified one of the request params that might result in a conditional + // response (like 'if-match'/'if-none-match'). + IsNotModified bool } func (response HeadBucketResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_object_request_response.go index 73d3f51b9..b058a2d01 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_object_request_response.go @@ -1,99 +1,96 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // HeadObjectRequest wrapper for the HeadObject operation type HeadObjectRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The name of the object. - // Example: `test/object1.log` - ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` - - // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - // For uploading a part, this is the entity tag of the target part. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. - // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag - // of the target part. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The name of the object. + // Example: `test/object1.log` + ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag + // of the target part. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request HeadObjectRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // HeadObjectResponse wrapper for the HeadObject operation type HeadObjectResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The entity tag for the object. - ETag *string `presentIn:"header" name:"etag"` - - // The user-defined metadata for the object. - OpcMeta map[string]string `presentIn:"header-collection" prefix:"opc-meta-"` - - // The object size in bytes. - ContentLength *int `presentIn:"header" name:"content-length"` - - // Content-MD5 header, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.15. - // Unavailable for objects uploaded using multipart upload. - ContentMd5 *string `presentIn:"header" name:"content-md5"` - - // Only applicable to objects uploaded using multipart upload. - // Base-64 representation of the multipart object hash. - // The multipart object hash is calculated by taking the MD5 hashes of the parts, - // concatenating the binary representation of those hashes in order of their part numbers, - // and then calculating the MD5 hash of the concatenated values. - OpcMultipartMd5 *string `presentIn:"header" name:"opc-multipart-md5"` - - // Content-Type header, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.17. - ContentType *string `presentIn:"header" name:"content-type"` - - // Content-Language header, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.12. - ContentLanguage *string `presentIn:"header" name:"content-language"` - - // Content-Encoding header, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.11. - ContentEncoding *string `presentIn:"header" name:"content-encoding"` - - // The object modification time, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.29. - LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` - - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool + // The underlying http response + RawResponse *http.Response + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The entity tag for the object. + ETag *string `presentIn:"header" name:"etag"` + + // The user-defined metadata for the object. + OpcMeta map[string]string `presentIn:"header-collection" prefix:"opc-meta-"` + + // The object size in bytes. + ContentLength *int `presentIn:"header" name:"content-length"` + + // Content-MD5 header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.15. + // Unavailable for objects uploaded using multipart upload. + ContentMd5 *string `presentIn:"header" name:"content-md5"` + + // Only applicable to objects uploaded using multipart upload. + // Base-64 representation of the multipart object hash. + // The multipart object hash is calculated by taking the MD5 hashes of the parts, + // concatenating the binary representation of those hashes in order of their part numbers, + // and then calculating the MD5 hash of the concatenated values. + OpcMultipartMd5 *string `presentIn:"header" name:"opc-multipart-md5"` + + // Content-Type header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.17. + ContentType *string `presentIn:"header" name:"content-type"` + + // Content-Language header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.12. + ContentLanguage *string `presentIn:"header" name:"content-language"` + + // Content-Encoding header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.11. + ContentEncoding *string `presentIn:"header" name:"content-encoding"` + + // The object modification time, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. + LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` + + // Flag to indicate whether or not the object was modified. If this is true, + // the getter for the object itself will return null. Callers should check this + // if they specified one of the request params that might result in a conditional + // response (like 'if-match'/'if-none-match'). + IsNotModified bool } func (response HeadObjectResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_buckets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_buckets_request_response.go index bdc9939ec..09474ba93 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_buckets_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_buckets_request_response.go @@ -1,63 +1,59 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListBucketsRequest wrapper for the ListBuckets operation type ListBucketsRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The ID of the compartment in which to create the bucket. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page at which to start retrieving results. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The ID of the compartment in which to create the bucket. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page at which to start retrieving results. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request ListBucketsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListBucketsResponse wrapper for the ListBuckets operation type ListBucketsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []BucketSummary instance - Items []BucketSummary `presentIn:"body"` - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of `Bucket`s. If this header appears in the response, then this - // is a partial list of buckets. Include this value as the `page` parameter in a subsequent - // GET request to get the next batch of buckets. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The underlying http response + RawResponse *http.Response + + // The []BucketSummary instance + Items []BucketSummary `presentIn:"body"` + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of `Bucket`s. If this header appears in the response, then this + // is a partial list of buckets. Include this value as the `page` parameter in a subsequent + // GET request to get the next batch of buckets. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListBucketsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_multipart_upload_parts_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_multipart_upload_parts_request_response.go index ba296c8a0..367ea7af7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_multipart_upload_parts_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_multipart_upload_parts_request_response.go @@ -1,71 +1,67 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListMultipartUploadPartsRequest wrapper for the ListMultipartUploadParts operation type ListMultipartUploadPartsRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The name of the object. - // Example: `test/object1.log` - ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` - - // The upload ID for a multipart upload. - UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page at which to start retrieving results. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The name of the object. + // Example: `test/object1.log` + ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` + + // The upload ID for a multipart upload. + UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page at which to start retrieving results. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request ListMultipartUploadPartsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListMultipartUploadPartsResponse wrapper for the ListMultipartUploadParts operation type ListMultipartUploadPartsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []MultipartUploadPartSummary instance - Items []MultipartUploadPartSummary `presentIn:"body"` - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of `MultipartUploadPartSummary`s. If this header appears in the response, - // then this is a partial list of object parts. Include this value as the `page` parameter in a subsequent - // GET request to get the next batch of object parts. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The underlying http response + RawResponse *http.Response + + // The []MultipartUploadPartSummary instance + Items []MultipartUploadPartSummary `presentIn:"body"` + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of `MultipartUploadPartSummary`s. If this header appears in the response, + // then this is a partial list of object parts. Include this value as the `page` parameter in a subsequent + // GET request to get the next batch of object parts. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListMultipartUploadPartsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_multipart_uploads_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_multipart_uploads_request_response.go index 8f300610b..259e0630e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_multipart_uploads_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_multipart_uploads_request_response.go @@ -1,64 +1,60 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListMultipartUploadsRequest wrapper for the ListMultipartUploads operation type ListMultipartUploadsRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page at which to start retrieving results. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page at which to start retrieving results. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request ListMultipartUploadsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListMultipartUploadsResponse wrapper for the ListMultipartUploads operation type ListMultipartUploadsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []MultipartUpload instance - Items []MultipartUpload `presentIn:"body"` - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of `MultipartUpload`s. If this header appears in the response, then - // this is a partial list of multipart uploads. Include this value as the `page` parameter in a subsequent - // GET request. For information about pagination, see - // [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The underlying http response + RawResponse *http.Response + + // The []MultipartUpload instance + Items []MultipartUpload `presentIn:"body"` + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of `MultipartUpload`s. If this header appears in the response, then + // this is a partial list of multipart uploads. Include this value as the `page` parameter in a subsequent + // GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListMultipartUploadsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects.go index 3cb0b51e3..aa216e61d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,32 +9,25 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // ListObjects To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// ListObjects To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type ListObjects struct { - - // An array of object summaries. - Objects []ObjectSummary `mandatory:"true" json:"objects"` - - // Prefixes that are common to the results returned by the request if the request specified a delimiter. - Prefixes []string `mandatory:"false" json:"prefixes"` - - // The name of the object to use in the 'startWith' parameter to obtain the next page of - // a truncated ListObjects response. - NextStartWith *string `mandatory:"false" json:"nextStartWith"` -} - -func (m ListObjects) String() string { - return common.PointerString(m) -} - + // An array of object summaries. + Objects []ObjectSummary `mandatory:"true" json:"objects"` + // Prefixes that are common to the results returned by the request if the request specified a delimiter. + Prefixes []string `mandatory:"false" json:"prefixes"` + // The name of the object to use in the 'startWith' parameter to obtain the next page of + // a truncated ListObjects response. + NextStartWith *string `mandatory:"false" json:"nextStartWith"` +} +func (m ListObjects) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects_request_response.go index e3b34a949..0cca1b1c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects_request_response.go @@ -1,77 +1,73 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListObjectsRequest wrapper for the ListObjects operation type ListObjectsRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The string to use for matching against the start of object names in a list query. - Prefix *string `mandatory:"false" contributesTo:"query" name:"prefix"` - - // Object names returned by a list query must be greater or equal to this parameter. - Start *string `mandatory:"false" contributesTo:"query" name:"start"` - - // Object names returned by a list query must be strictly less than this parameter. - End *string `mandatory:"false" contributesTo:"query" name:"end"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // When this parameter is set, only objects whose names do not contain the delimiter character - // (after an optionally specified prefix) are returned. Scanned objects whose names contain the - // delimiter have part of their name up to the last occurrence of the delimiter (after the optional - // prefix) returned as a set of prefixes. Note that only '/' is a supported delimiter character at - // this time. - Delimiter *string `mandatory:"false" contributesTo:"query" name:"delimiter"` - - // Object summary in list of objects includes the 'name' field. This parameter can also include 'size' - // (object size in bytes), 'md5', and 'timeCreated' (object creation date and time) fields. - // Value of this parameter should be a comma-separated, case-insensitive list of those field names. - // For example 'name,timeCreated,md5'. - Fields *string `mandatory:"false" contributesTo:"query" name:"fields" omitEmpty:"true"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The string to use for matching against the start of object names in a list query. + Prefix *string `mandatory:"false" contributesTo:"query" name:"prefix"` + + // Object names returned by a list query must be greater or equal to this parameter. + Start *string `mandatory:"false" contributesTo:"query" name:"start"` + + // Object names returned by a list query must be strictly less than this parameter. + End *string `mandatory:"false" contributesTo:"query" name:"end"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // When this parameter is set, only objects whose names do not contain the delimiter character + // (after an optionally specified prefix) are returned. Scanned objects whose names contain the + // delimiter have part of their name up to the last occurrence of the delimiter (after the optional + // prefix) returned as a set of prefixes. Note that only '/' is a supported delimiter character at + // this time. + Delimiter *string `mandatory:"false" contributesTo:"query" name:"delimiter"` + + // Object summary in list of objects includes the 'name' field. This parameter can also include 'size' + // (object size in bytes), 'md5', and 'timeCreated' (object creation date and time) fields. + // Value of this parameter should be a comma-separated, case-insensitive list of those field names. + // For example 'name,timeCreated,md5'. + Fields *string `mandatory:"false" contributesTo:"query" name:"fields" omitEmpty:"true"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request ListObjectsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListObjectsResponse wrapper for the ListObjects operation type ListObjectsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The ListObjects instance - ListObjects `presentIn:"body"` + // The underlying http response + RawResponse *http.Response - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The ListObjects instance + ListObjects `presentIn:"body"` + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } func (response ListObjectsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_preauthenticated_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_preauthenticated_requests_request_response.go index 26fe8fc9d..4adcbe26a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_preauthenticated_requests_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_preauthenticated_requests_request_response.go @@ -1,67 +1,63 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // ListPreauthenticatedRequestsRequest wrapper for the ListPreauthenticatedRequests operation type ListPreauthenticatedRequestsRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // Pre-authenticated requests returned by the list must have object names starting with prefix - ObjectNamePrefix *string `mandatory:"false" contributesTo:"query" name:"objectNamePrefix"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page at which to start retrieving results. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // Pre-authenticated requests returned by the list must have object names starting with prefix + ObjectNamePrefix *string `mandatory:"false" contributesTo:"query" name:"objectNamePrefix"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page at which to start retrieving results. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request ListPreauthenticatedRequestsRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // ListPreauthenticatedRequestsResponse wrapper for the ListPreauthenticatedRequests operation type ListPreauthenticatedRequestsResponse struct { - // The underlying http response - RawResponse *http.Response - - // The []PreauthenticatedRequestSummary instance - Items []PreauthenticatedRequestSummary `presentIn:"body"` - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of pre-authenticated requests, if this header appears in the response, - // then this is a partial list. Include this value as the `page` parameter in a subsequent - // GET request to get the next batch of pre-authenticated requests. - // For information about pagination, see [List Pagination]({{DOC_SERVER_URL}}/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + // The underlying http response + RawResponse *http.Response + + // The []PreauthenticatedRequestSummary instance + Items []PreauthenticatedRequestSummary `presentIn:"body"` + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of pre-authenticated requests, if this header appears in the response, + // then this is a partial list. Include this value as the `page` parameter in a subsequent + // GET request to get the next batch of pre-authenticated requests. + // For information about pagination, see List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` } func (response ListPreauthenticatedRequestsResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload.go index 8a1de048f..00cad6055 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,37 +9,30 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // MultipartUpload To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// MultipartUpload To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type MultipartUpload struct { - - // The namespace in which the in-progress multipart upload is stored. - Namespace *string `mandatory:"true" json:"namespace"` - - // The bucket in which the in-progress multipart upload is stored. - Bucket *string `mandatory:"true" json:"bucket"` - - // The object name of the in-progress multipart upload. - Object *string `mandatory:"true" json:"object"` - - // The unique identifier for the in-progress multipart upload. - UploadId *string `mandatory:"true" json:"uploadId"` - - // The date and time when the upload was created. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` -} -func (m MultipartUpload) String() string { - return common.PointerString(m) -} + // The namespace in which the in-progress multipart upload is stored. + Namespace *string `mandatory:"true" json:"namespace"` + // The bucket in which the in-progress multipart upload is stored. + Bucket *string `mandatory:"true" json:"bucket"` + // The object name of the in-progress multipart upload. + Object *string `mandatory:"true" json:"object"` + // The unique identifier for the in-progress multipart upload. + UploadId *string `mandatory:"true" json:"uploadId"` + // The date and time when the upload was created. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` +} +func (m MultipartUpload) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload_part_summary.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload_part_summary.go index 076648062..05f9aff44 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload_part_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload_part_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,34 +9,27 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // MultipartUploadPartSummary To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// MultipartUploadPartSummary To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type MultipartUploadPartSummary struct { - - // the current entity tag for the part. - Etag *string `mandatory:"true" json:"etag"` - - // the MD5 hash of the bytes of the part. - Md5 *string `mandatory:"true" json:"md5"` - - // the size of the part in bytes. - Size *int `mandatory:"true" json:"size"` - - // the part number for this part. - PartNumber *int `mandatory:"true" json:"partNumber"` -} - -func (m MultipartUploadPartSummary) String() string { - return common.PointerString(m) -} + // the current entity tag for the part. + Etag *string `mandatory:"true" json:"etag"` + // the MD5 hash of the bytes of the part. + Md5 *string `mandatory:"true" json:"md5"` + // the size of the part in bytes. + Size *int `mandatory:"true" json:"size"` + // the part number for this part. + PartNumber *int `mandatory:"true" json:"partNumber"` +} +func (m MultipartUploadPartSummary) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_summary.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_summary.go index 45793e114..c1cf92ba8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,34 +9,27 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // ObjectSummary To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// ObjectSummary To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type ObjectSummary struct { - - // The name of the object. - Name *string `mandatory:"true" json:"name"` - - // Size of the object in bytes. - Size *int `mandatory:"false" json:"size"` - - // Base64-encoded MD5 hash of the object data. - Md5 *string `mandatory:"false" json:"md5"` - - // Date and time of object creation. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m ObjectSummary) String() string { - return common.PointerString(m) -} + // The name of the object. + Name *string `mandatory:"true" json:"name"` + // Size of the object in bytes. + Size *int `mandatory:"false" json:"size"` + // Base64-encoded MD5 hash of the object data. + Md5 *string `mandatory:"false" json:"md5"` + // Date and time of object creation. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} +func (m ObjectSummary) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/objectstorage_client.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/objectstorage_client.go index e8feb6f6e..eaf8bdfb6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/objectstorage_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/objectstorage_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -8,563 +8,471 @@ package objectstorage -import( - "github.com/oracle/oci-go-sdk/common" - "context" - "fmt" - "net/http" +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) //ObjectStorageClient a client for ObjectStorage type ObjectStorageClient struct { - common.BaseClient - config *common.ConfigurationProvider + common.BaseClient + config *common.ConfigurationProvider } - func buildSigner(configProvider common.ConfigurationProvider) common.HTTPRequestSigner { - objStorageHeaders := []string{"date", "(request-target)", "host"} - defaultBodyHeaders := []string{"content-length", "content-type", "x-content-sha256"} - shouldHashBody := func(r *http.Request) bool { - return r.Method == http.MethodPost - } - signer := common.RequestSignerWithBodyHashingPredicate(configProvider, objStorageHeaders, defaultBodyHeaders, shouldHashBody) - return signer +func buildSigner(configProvider common.ConfigurationProvider) common.HTTPRequestSigner { + objStorageHeaders := []string{"date", "(request-target)", "host"} + defaultBodyHeaders := []string{"content-length", "content-type", "x-content-sha256"} + shouldHashBody := func(r *http.Request) bool { + return r.Method == http.MethodPost + } + signer := common.RequestSignerWithBodyHashingPredicate(configProvider, objStorageHeaders, defaultBodyHeaders, shouldHashBody) + return signer } // NewObjectStorageClientWithConfigurationProvider Creates a new default ObjectStorage client with the given configuration provider. // the configuration provider will be used for the default signer as well as reading the region -func NewObjectStorageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ObjectStorageClient, err error){ - baseClient, err := common.NewClientWithConfig(configProvider) - if err != nil { - return - } - baseClient.Signer = buildSigner(configProvider) - - client = ObjectStorageClient{BaseClient: baseClient} - err = client.setConfigurationProvider(configProvider) - return +func NewObjectStorageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ObjectStorageClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } + baseClient.Signer = buildSigner(configProvider) + + client = ObjectStorageClient{BaseClient: baseClient} + err = client.setConfigurationProvider(configProvider) + return } // SetRegion overrides the region of this client. -func (client *ObjectStorageClient) SetRegion(region string) { - client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "objectstorage", region) +func (client *ObjectStorageClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "objectstorage", region) } - // SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid func (client *ObjectStorageClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } - - // Error has been checked already - region, _ := configProvider.Region() - client.config = &configProvider - client.SetRegion(region) - return nil + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.config = &configProvider + client.SetRegion(region) + return nil } // ConfigurationProvider the ConfigurationProvider used in this client, or null if none set func (client *ObjectStorageClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config + return client.config } - - - - - - // AbortMultipartUpload Aborts an in-progress multipart upload and deletes all parts that have been uploaded. -func(client ObjectStorageClient) AbortMultipartUpload(ctx context.Context, request AbortMultipartUploadRequest) (response AbortMultipartUploadResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/n/{namespaceName}/b/{bucketName}/u/{objectName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// AbortMultipartUpload Aborts an in-progress multipart upload and deletes all parts that have been uploaded. +func (client ObjectStorageClient) AbortMultipartUpload(ctx context.Context, request AbortMultipartUploadRequest) (response AbortMultipartUploadResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/n/{namespaceName}/b/{bucketName}/u/{objectName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CommitMultipartUpload Commits a multipart upload, which involves checking part numbers and ETags of the parts, to create an aggregate object. -func(client ObjectStorageClient) CommitMultipartUpload(ctx context.Context, request CommitMultipartUploadRequest) (response CommitMultipartUploadResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/{bucketName}/u/{objectName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CommitMultipartUpload Commits a multipart upload, which involves checking part numbers and ETags of the parts, to create an aggregate object. +func (client ObjectStorageClient) CommitMultipartUpload(ctx context.Context, request CommitMultipartUploadRequest) (response CommitMultipartUploadResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/{bucketName}/u/{objectName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreateBucket Creates a bucket in the given namespace with a bucket name and optional user-defined metadata. - // To use this and other API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). -func(client ObjectStorageClient) CreateBucket(ctx context.Context, request CreateBucketRequest) (response CreateBucketResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateBucket Creates a bucket in the given namespace with a bucket name and optional user-defined metadata. +// To use this and other API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +func (client ObjectStorageClient) CreateBucket(ctx context.Context, request CreateBucketRequest) (response CreateBucketResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreateMultipartUpload Starts a new multipart upload to a specific object in the given bucket in the given namespace. -func(client ObjectStorageClient) CreateMultipartUpload(ctx context.Context, request CreateMultipartUploadRequest) (response CreateMultipartUploadResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/{bucketName}/u", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreateMultipartUpload Starts a new multipart upload to a specific object in the given bucket in the given namespace. +func (client ObjectStorageClient) CreateMultipartUpload(ctx context.Context, request CreateMultipartUploadRequest) (response CreateMultipartUploadResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/{bucketName}/u", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // CreatePreauthenticatedRequest Create a pre-authenticated request specific to the bucket -func(client ObjectStorageClient) CreatePreauthenticatedRequest(ctx context.Context, request CreatePreauthenticatedRequestRequest) (response CreatePreauthenticatedRequestResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/{bucketName}/p/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// CreatePreauthenticatedRequest Create a pre-authenticated request specific to the bucket +func (client ObjectStorageClient) CreatePreauthenticatedRequest(ctx context.Context, request CreatePreauthenticatedRequestRequest) (response CreatePreauthenticatedRequestResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/{bucketName}/p/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteBucket Deletes a bucket if it is already empty. If the bucket is not empty, use DeleteObject first. -func(client ObjectStorageClient) DeleteBucket(ctx context.Context, request DeleteBucketRequest) (response DeleteBucketResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/n/{namespaceName}/b/{bucketName}/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteBucket Deletes a bucket if it is already empty. If the bucket is not empty, use DeleteObject first. +func (client ObjectStorageClient) DeleteBucket(ctx context.Context, request DeleteBucketRequest) (response DeleteBucketResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/n/{namespaceName}/b/{bucketName}/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeleteObject Deletes an object. -func(client ObjectStorageClient) DeleteObject(ctx context.Context, request DeleteObjectRequest) (response DeleteObjectResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/n/{namespaceName}/b/{bucketName}/o/{objectName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeleteObject Deletes an object. +func (client ObjectStorageClient) DeleteObject(ctx context.Context, request DeleteObjectRequest) (response DeleteObjectResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/n/{namespaceName}/b/{bucketName}/o/{objectName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // DeletePreauthenticatedRequest Deletes the bucket level pre-authenticateted request -func(client ObjectStorageClient) DeletePreauthenticatedRequest(ctx context.Context, request DeletePreauthenticatedRequestRequest) (response DeletePreauthenticatedRequestResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/n/{namespaceName}/b/{bucketName}/p/{parId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// DeletePreauthenticatedRequest Deletes the bucket level pre-authenticateted request +func (client ObjectStorageClient) DeletePreauthenticatedRequest(ctx context.Context, request DeletePreauthenticatedRequestRequest) (response DeletePreauthenticatedRequestResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/n/{namespaceName}/b/{bucketName}/p/{parId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetBucket Gets the current representation of the given bucket in the given namespace. -func(client ObjectStorageClient) GetBucket(ctx context.Context, request GetBucketRequest) (response GetBucketResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetBucket Gets the current representation of the given bucket in the given namespace. +func (client ObjectStorageClient) GetBucket(ctx context.Context, request GetBucketRequest) (response GetBucketResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetNamespace Gets the name of the namespace for the user making the request. An account name must be unique, must start with a - // letter, and can have up to 15 lowercase letters and numbers. You cannot use spaces or special characters. -func(client ObjectStorageClient) GetNamespace(ctx context.Context, request GetNamespaceRequest) (response GetNamespaceResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetNamespace Gets the name of the namespace for the user making the request. An account name must be unique, must start with a +// letter, and can have up to 15 lowercase letters and numbers. You cannot use spaces or special characters. +func (client ObjectStorageClient) GetNamespace(ctx context.Context, request GetNamespaceRequest) (response GetNamespaceResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetObject Gets the metadata and body of an object. -func(client ObjectStorageClient) GetObject(ctx context.Context, request GetObjectRequest) (response GetObjectResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/o/{objectName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetObject Gets the metadata and body of an object. +func (client ObjectStorageClient) GetObject(ctx context.Context, request GetObjectRequest) (response GetObjectResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/o/{objectName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // GetPreauthenticatedRequest Get the bucket level pre-authenticateted request -func(client ObjectStorageClient) GetPreauthenticatedRequest(ctx context.Context, request GetPreauthenticatedRequestRequest) (response GetPreauthenticatedRequestResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/p/{parId}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// GetPreauthenticatedRequest Get the bucket level pre-authenticateted request +func (client ObjectStorageClient) GetPreauthenticatedRequest(ctx context.Context, request GetPreauthenticatedRequestRequest) (response GetPreauthenticatedRequestResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/p/{parId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // HeadBucket Efficiently checks if a bucket exists and gets the current ETag for the bucket. -func(client ObjectStorageClient) HeadBucket(ctx context.Context, request HeadBucketRequest) (response HeadBucketResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodHead, "/n/{namespaceName}/b/{bucketName}/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// HeadBucket Efficiently checks if a bucket exists and gets the current ETag for the bucket. +func (client ObjectStorageClient) HeadBucket(ctx context.Context, request HeadBucketRequest) (response HeadBucketResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodHead, "/n/{namespaceName}/b/{bucketName}/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // HeadObject Gets the user-defined metadata and entity tag for an object. -func(client ObjectStorageClient) HeadObject(ctx context.Context, request HeadObjectRequest) (response HeadObjectResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodHead, "/n/{namespaceName}/b/{bucketName}/o/{objectName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// HeadObject Gets the user-defined metadata and entity tag for an object. +func (client ObjectStorageClient) HeadObject(ctx context.Context, request HeadObjectRequest) (response HeadObjectResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodHead, "/n/{namespaceName}/b/{bucketName}/o/{objectName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListBuckets Gets a list of all `BucketSummary`s in a compartment. A `BucketSummary` contains only summary fields for the bucket - // and does not contain fields like the user-defined metadata. - // To use this and other API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). -func(client ObjectStorageClient) ListBuckets(ctx context.Context, request ListBucketsRequest) (response ListBucketsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListBuckets Gets a list of all `BucketSummary`s in a compartment. A `BucketSummary` contains only summary fields for the bucket +// and does not contain fields like the user-defined metadata. +// To use this and other API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +func (client ObjectStorageClient) ListBuckets(ctx context.Context, request ListBucketsRequest) (response ListBucketsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListMultipartUploadParts Lists the parts of an in-progress multipart upload. -func(client ObjectStorageClient) ListMultipartUploadParts(ctx context.Context, request ListMultipartUploadPartsRequest) (response ListMultipartUploadPartsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/u/{objectName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListMultipartUploadParts Lists the parts of an in-progress multipart upload. +func (client ObjectStorageClient) ListMultipartUploadParts(ctx context.Context, request ListMultipartUploadPartsRequest) (response ListMultipartUploadPartsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/u/{objectName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListMultipartUploads Lists all in-progress multipart uploads for the given bucket in the given namespace. -func(client ObjectStorageClient) ListMultipartUploads(ctx context.Context, request ListMultipartUploadsRequest) (response ListMultipartUploadsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/u", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListMultipartUploads Lists all in-progress multipart uploads for the given bucket in the given namespace. +func (client ObjectStorageClient) ListMultipartUploads(ctx context.Context, request ListMultipartUploadsRequest) (response ListMultipartUploadsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/u", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListObjects Lists the objects in a bucket. - // To use this and other API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). -func(client ObjectStorageClient) ListObjects(ctx context.Context, request ListObjectsRequest) (response ListObjectsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/o", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListObjects Lists the objects in a bucket. +// To use this and other API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +func (client ObjectStorageClient) ListObjects(ctx context.Context, request ListObjectsRequest) (response ListObjectsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/o", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // ListPreauthenticatedRequests List pre-authenticated requests for the bucket -func(client ObjectStorageClient) ListPreauthenticatedRequests(ctx context.Context, request ListPreauthenticatedRequestsRequest) (response ListPreauthenticatedRequestsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/p/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// ListPreauthenticatedRequests List pre-authenticated requests for the bucket +func (client ObjectStorageClient) ListPreauthenticatedRequests(ctx context.Context, request ListPreauthenticatedRequestsRequest) (response ListPreauthenticatedRequestsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/p/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // PutObject Creates a new object or overwrites an existing one. - // To use this and other API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). -func(client ObjectStorageClient) PutObject(ctx context.Context, request PutObjectRequest) (response PutObjectResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/n/{namespaceName}/b/{bucketName}/o/{objectName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// PutObject Creates a new object or overwrites an existing one. +// To use this and other API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +func (client ObjectStorageClient) PutObject(ctx context.Context, request PutObjectRequest) (response PutObjectResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/n/{namespaceName}/b/{bucketName}/o/{objectName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UpdateBucket Performs a partial or full update of a bucket's user-defined metadata. -func(client ObjectStorageClient) UpdateBucket(ctx context.Context, request UpdateBucketRequest) (response UpdateBucketResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/{bucketName}/", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UpdateBucket Performs a partial or full update of a bucket's user-defined metadata. +func (client ObjectStorageClient) UpdateBucket(ctx context.Context, request UpdateBucketRequest) (response UpdateBucketResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/{bucketName}/", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - - - - // UploadPart Uploads a single part of a multipart upload. -func(client ObjectStorageClient) UploadPart(ctx context.Context, request UploadPartRequest) (response UploadPartResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/n/{namespaceName}/b/{bucketName}/u/{objectName}", request) - if err != nil { - return - } - - - httpResponse, err := client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return - } - - err = common.UnmarshalResponse(httpResponse, &response) - return +// UploadPart Uploads a single part of a multipart upload. +func (client ObjectStorageClient) UploadPart(ctx context.Context, request UploadPartRequest) (response UploadPartResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/n/{namespaceName}/b/{bucketName}/u/{objectName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request.go index 7b5edf5fb..54e4d2430 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,73 +9,63 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // PreauthenticatedRequest The representation of PreauthenticatedRequest +// PreauthenticatedRequest The representation of PreauthenticatedRequest type PreauthenticatedRequest struct { - - // the unique identifier to use when directly addressing the pre-authenticated request - Id *string `mandatory:"true" json:"id"` - - // the user supplied name of the pre-authenticated request. - Name *string `mandatory:"true" json:"name"` - - // the uri to embed in the url when using the pre-authenticated request. - AccessUri *string `mandatory:"true" json:"accessUri"` - - // the operation that can be performed on this resource e.g PUT or GET. - AccessType PreauthenticatedRequestAccessTypeEnum `mandatory:"true" json:"accessType"` - - // the expiration date after which the pre authenticated request will no longer be valid as per spec - // [RFC 3339](https://tools.ietf.org/rfc/rfc3339) - TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` - - // the date when the pre-authenticated request was created as per spec - // [RFC 3339](https://tools.ietf.org/rfc/rfc3339) - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Name of object that is being granted access to by the pre-authenticated request. This can be null and that would mean that the pre-authenticated request is granting access to the entire bucket - ObjectName *string `mandatory:"false" json:"objectName"` + + // the unique identifier to use when directly addressing the pre-authenticated request + Id *string `mandatory:"true" json:"id"` + + // the user supplied name of the pre-authenticated request. + Name *string `mandatory:"true" json:"name"` + + // the uri to embed in the url when using the pre-authenticated request. + AccessUri *string `mandatory:"true" json:"accessUri"` + + // the operation that can be performed on this resource e.g PUT or GET. + AccessType PreauthenticatedRequestAccessTypeEnum `mandatory:"true" json:"accessType"` + + // the expiration date after which the pre authenticated request will no longer be valid as per spec + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) + TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` + + // the date when the pre-authenticated request was created as per spec + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Name of object that is being granted access to by the pre-authenticated request. This can be null and that would mean that the pre-authenticated request is granting access to the entire bucket + ObjectName *string `mandatory:"false" json:"objectName"` } func (m PreauthenticatedRequest) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // PreauthenticatedRequestAccessTypeEnum Enum with underlying type: string type PreauthenticatedRequestAccessTypeEnum string // Set of constants representing the allowable values for PreauthenticatedRequestAccessType const ( - PreauthenticatedRequestAccessTypeObjectread PreauthenticatedRequestAccessTypeEnum = "ObjectRead" - PreauthenticatedRequestAccessTypeObjectwrite PreauthenticatedRequestAccessTypeEnum = "ObjectWrite" - PreauthenticatedRequestAccessTypeObjectreadwrite PreauthenticatedRequestAccessTypeEnum = "ObjectReadWrite" - PreauthenticatedRequestAccessTypeAnyobjectwrite PreauthenticatedRequestAccessTypeEnum = "AnyObjectWrite" - PreauthenticatedRequestAccessTypeUnknown PreauthenticatedRequestAccessTypeEnum = "UNKNOWN" + PreauthenticatedRequestAccessTypeObjectread PreauthenticatedRequestAccessTypeEnum = "ObjectRead" + PreauthenticatedRequestAccessTypeObjectwrite PreauthenticatedRequestAccessTypeEnum = "ObjectWrite" + PreauthenticatedRequestAccessTypeObjectreadwrite PreauthenticatedRequestAccessTypeEnum = "ObjectReadWrite" + PreauthenticatedRequestAccessTypeAnyobjectwrite PreauthenticatedRequestAccessTypeEnum = "AnyObjectWrite" ) -var mappingPreauthenticatedRequestAccessType = map[string]PreauthenticatedRequestAccessTypeEnum { - "ObjectRead": PreauthenticatedRequestAccessTypeObjectread, - "ObjectWrite": PreauthenticatedRequestAccessTypeObjectwrite, - "ObjectReadWrite": PreauthenticatedRequestAccessTypeObjectreadwrite, - "AnyObjectWrite": PreauthenticatedRequestAccessTypeAnyobjectwrite, - "UNKNOWN": PreauthenticatedRequestAccessTypeUnknown, +var mappingPreauthenticatedRequestAccessType = map[string]PreauthenticatedRequestAccessTypeEnum{ + "ObjectRead": PreauthenticatedRequestAccessTypeObjectread, + "ObjectWrite": PreauthenticatedRequestAccessTypeObjectwrite, + "ObjectReadWrite": PreauthenticatedRequestAccessTypeObjectreadwrite, + "AnyObjectWrite": PreauthenticatedRequestAccessTypeAnyobjectwrite, } // GetPreauthenticatedRequestAccessTypeEnumValues Enumerates the set of values for PreauthenticatedRequestAccessType func GetPreauthenticatedRequestAccessTypeEnumValues() []PreauthenticatedRequestAccessTypeEnum { - values := make([]PreauthenticatedRequestAccessTypeEnum, 0) - for _, v := range mappingPreauthenticatedRequestAccessType { - if v != PreauthenticatedRequestAccessTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]PreauthenticatedRequestAccessTypeEnum, 0) + for _, v := range mappingPreauthenticatedRequestAccessType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request_summary.go index b2f18324c..f293237bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,70 +9,60 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // PreauthenticatedRequestSummary The representation of PreauthenticatedRequestSummary +// PreauthenticatedRequestSummary The representation of PreauthenticatedRequestSummary type PreauthenticatedRequestSummary struct { - - // the unique identifier to use when directly addressing the pre-authenticated request - Id *string `mandatory:"true" json:"id"` - - // the user supplied name of the pre-authenticated request - Name *string `mandatory:"true" json:"name"` - - // the operation that can be performed on this resource e.g PUT or GET. - AccessType PreauthenticatedRequestSummaryAccessTypeEnum `mandatory:"true" json:"accessType"` - - // the expiration date after which the pre authenticated request will no longer be valid as per spec - // [RFC 3339](https://tools.ietf.org/rfc/rfc3339) - TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` - - // the date when the pre-authenticated request was created as per spec - // [RFC 3339](https://tools.ietf.org/rfc/rfc3339) - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Name of object that is being granted access to by the pre-authenticated request. This can be null and that would mean that the pre-authenticated request is granting access to the entire bucket - ObjectName *string `mandatory:"false" json:"objectName"` + + // the unique identifier to use when directly addressing the pre-authenticated request + Id *string `mandatory:"true" json:"id"` + + // the user supplied name of the pre-authenticated request + Name *string `mandatory:"true" json:"name"` + + // the operation that can be performed on this resource e.g PUT or GET. + AccessType PreauthenticatedRequestSummaryAccessTypeEnum `mandatory:"true" json:"accessType"` + + // the expiration date after which the pre authenticated request will no longer be valid as per spec + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) + TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` + + // the date when the pre-authenticated request was created as per spec + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Name of object that is being granted access to by the pre-authenticated request. This can be null and that would mean that the pre-authenticated request is granting access to the entire bucket + ObjectName *string `mandatory:"false" json:"objectName"` } func (m PreauthenticatedRequestSummary) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // PreauthenticatedRequestSummaryAccessTypeEnum Enum with underlying type: string type PreauthenticatedRequestSummaryAccessTypeEnum string // Set of constants representing the allowable values for PreauthenticatedRequestSummaryAccessType const ( - PreauthenticatedRequestSummaryAccessTypeObjectread PreauthenticatedRequestSummaryAccessTypeEnum = "ObjectRead" - PreauthenticatedRequestSummaryAccessTypeObjectwrite PreauthenticatedRequestSummaryAccessTypeEnum = "ObjectWrite" - PreauthenticatedRequestSummaryAccessTypeObjectreadwrite PreauthenticatedRequestSummaryAccessTypeEnum = "ObjectReadWrite" - PreauthenticatedRequestSummaryAccessTypeAnyobjectwrite PreauthenticatedRequestSummaryAccessTypeEnum = "AnyObjectWrite" - PreauthenticatedRequestSummaryAccessTypeUnknown PreauthenticatedRequestSummaryAccessTypeEnum = "UNKNOWN" + PreauthenticatedRequestSummaryAccessTypeObjectread PreauthenticatedRequestSummaryAccessTypeEnum = "ObjectRead" + PreauthenticatedRequestSummaryAccessTypeObjectwrite PreauthenticatedRequestSummaryAccessTypeEnum = "ObjectWrite" + PreauthenticatedRequestSummaryAccessTypeObjectreadwrite PreauthenticatedRequestSummaryAccessTypeEnum = "ObjectReadWrite" + PreauthenticatedRequestSummaryAccessTypeAnyobjectwrite PreauthenticatedRequestSummaryAccessTypeEnum = "AnyObjectWrite" ) -var mappingPreauthenticatedRequestSummaryAccessType = map[string]PreauthenticatedRequestSummaryAccessTypeEnum { - "ObjectRead": PreauthenticatedRequestSummaryAccessTypeObjectread, - "ObjectWrite": PreauthenticatedRequestSummaryAccessTypeObjectwrite, - "ObjectReadWrite": PreauthenticatedRequestSummaryAccessTypeObjectreadwrite, - "AnyObjectWrite": PreauthenticatedRequestSummaryAccessTypeAnyobjectwrite, - "UNKNOWN": PreauthenticatedRequestSummaryAccessTypeUnknown, +var mappingPreauthenticatedRequestSummaryAccessType = map[string]PreauthenticatedRequestSummaryAccessTypeEnum{ + "ObjectRead": PreauthenticatedRequestSummaryAccessTypeObjectread, + "ObjectWrite": PreauthenticatedRequestSummaryAccessTypeObjectwrite, + "ObjectReadWrite": PreauthenticatedRequestSummaryAccessTypeObjectreadwrite, + "AnyObjectWrite": PreauthenticatedRequestSummaryAccessTypeAnyobjectwrite, } // GetPreauthenticatedRequestSummaryAccessTypeEnumValues Enumerates the set of values for PreauthenticatedRequestSummaryAccessType func GetPreauthenticatedRequestSummaryAccessTypeEnumValues() []PreauthenticatedRequestSummaryAccessTypeEnum { - values := make([]PreauthenticatedRequestSummaryAccessTypeEnum, 0) - for _, v := range mappingPreauthenticatedRequestSummaryAccessType { - if v != PreauthenticatedRequestSummaryAccessTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]PreauthenticatedRequestSummaryAccessTypeEnum, 0) + for _, v := range mappingPreauthenticatedRequestSummaryAccessType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_request_response.go index 818b6fa28..3652da5fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_request_response.go @@ -1,96 +1,92 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" - "io" + "github.com/oracle/oci-go-sdk/common" + "io" + "net/http" ) // PutObjectRequest wrapper for the PutObject operation type PutObjectRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The name of the object. - // Example: `test/object1.log` - ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` - - // The content length of the body. - ContentLength *int `mandatory:"true" contributesTo:"header" name:"Content-Length"` - - // The object to upload to the object store. - PutObjectBody io.ReadCloser `mandatory:"true" contributesTo:"body" encoding:"binary"` - - // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - // For uploading a part, this is the entity tag of the target part. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. - // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag - // of the target part. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` - - // 100-continue - Expect *string `mandatory:"false" contributesTo:"header" name:"Expect"` - - // The base-64 encoded MD5 hash of the body. - ContentMD5 *string `mandatory:"false" contributesTo:"header" name:"Content-MD5"` - - // The content type of the object. Defaults to 'application/octet-stream' if not overridden during the PutObject call. - ContentType *string `mandatory:"false" contributesTo:"header" name:"Content-Type"` - - // The content language of the object. - ContentLanguage *string `mandatory:"false" contributesTo:"header" name:"Content-Language"` - - // The content encoding of the object. - ContentEncoding *string `mandatory:"false" contributesTo:"header" name:"Content-Encoding"` - - // Optional user-defined metadata key and value. - OpcMeta map[string]string `mandatory:"false" contributesTo:"header-collection" prefix:"opc-meta-"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The name of the object. + // Example: `test/object1.log` + ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` + + // The content length of the body. + ContentLength *int `mandatory:"true" contributesTo:"header" name:"Content-Length"` + + // The object to upload to the object store. + PutObjectBody io.ReadCloser `mandatory:"true" contributesTo:"body" encoding:"binary"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag + // of the target part. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // 100-continue + Expect *string `mandatory:"false" contributesTo:"header" name:"Expect"` + + // The base-64 encoded MD5 hash of the body. + ContentMD5 *string `mandatory:"false" contributesTo:"header" name:"Content-MD5"` + + // The content type of the object. Defaults to 'application/octet-stream' if not overridden during the PutObject call. + ContentType *string `mandatory:"false" contributesTo:"header" name:"Content-Type"` + + // The content language of the object. + ContentLanguage *string `mandatory:"false" contributesTo:"header" name:"Content-Language"` + + // The content encoding of the object. + ContentEncoding *string `mandatory:"false" contributesTo:"header" name:"Content-Encoding"` + + // Optional user-defined metadata key and value. + OpcMeta map[string]string `mandatory:"false" contributesTo:"header-collection" prefix:"opc-meta-"` } func (request PutObjectRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // PutObjectResponse wrapper for the PutObject operation type PutObjectResponse struct { - // The underlying http response - RawResponse *http.Response - - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The base-64 encoded MD5 hash of the request body as computed by the server. - OpcContentMd5 *string `presentIn:"header" name:"opc-content-md5"` - - // The entity tag for the object. - ETag *string `presentIn:"header" name:"etag"` - - // The time the object was modified, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.29. - LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` + // The underlying http response + RawResponse *http.Response + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The base-64 encoded MD5 hash of the request body as computed by the server. + OpcContentMd5 *string `presentIn:"header" name:"opc-content-md5"` + + // The entity tag for the object. + ETag *string `presentIn:"header" name:"etag"` + + // The time the object was modified, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. + LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` } func (response PutObjectResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_details.go index 59b072c74..a3cf083a5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Object Storage Service API @@ -9,63 +9,53 @@ package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common" ) - - - // UpdateBucketDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, - // talk to an administrator. If you're an administrator who needs to write policies to give users access, see - // [Getting Started with Policies]({{DOC_SERVER_URL}}/Content/Identity/Concepts/policygetstarted.htm). +// UpdateBucketDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type UpdateBucketDetails struct { - - // The namespace in which the bucket lives. - Namespace *string `mandatory:"false" json:"namespace"` - - // The name of the bucket. - Name *string `mandatory:"false" json:"name"` - - // Arbitrary string, up to 4KB, of keys and values for user-defined metadata. - Metadata map[string]string `mandatory:"false" json:"metadata"` - - // The type of public access available on this bucket. Allows authenticated caller to access the bucket or - // contents of this bucket. By default a bucket is set to NoPublicAccess. It is treated as NoPublicAccess - // when this value is not specified. When the type is NoPublicAccess the bucket does not allow any public access. - // When the type is ObjectRead the bucket allows public access to the GetObject, HeadObject, ListObjects. - PublicAccessType UpdateBucketDetailsPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` + + // The namespace in which the bucket lives. + Namespace *string `mandatory:"false" json:"namespace"` + + // The name of the bucket. + Name *string `mandatory:"false" json:"name"` + + // Arbitrary string, up to 4KB, of keys and values for user-defined metadata. + Metadata map[string]string `mandatory:"false" json:"metadata"` + + // The type of public access available on this bucket. Allows authenticated caller to access the bucket or + // contents of this bucket. By default a bucket is set to NoPublicAccess. It is treated as NoPublicAccess + // when this value is not specified. When the type is NoPublicAccess the bucket does not allow any public access. + // When the type is ObjectRead the bucket allows public access to the GetObject, HeadObject, ListObjects. + PublicAccessType UpdateBucketDetailsPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` } func (m UpdateBucketDetails) String() string { - return common.PointerString(m) + return common.PointerString(m) } - // UpdateBucketDetailsPublicAccessTypeEnum Enum with underlying type: string type UpdateBucketDetailsPublicAccessTypeEnum string // Set of constants representing the allowable values for UpdateBucketDetailsPublicAccessType const ( - UpdateBucketDetailsPublicAccessTypeNopublicaccess UpdateBucketDetailsPublicAccessTypeEnum = "NoPublicAccess" - UpdateBucketDetailsPublicAccessTypeObjectread UpdateBucketDetailsPublicAccessTypeEnum = "ObjectRead" - UpdateBucketDetailsPublicAccessTypeUnknown UpdateBucketDetailsPublicAccessTypeEnum = "UNKNOWN" + UpdateBucketDetailsPublicAccessTypeNopublicaccess UpdateBucketDetailsPublicAccessTypeEnum = "NoPublicAccess" + UpdateBucketDetailsPublicAccessTypeObjectread UpdateBucketDetailsPublicAccessTypeEnum = "ObjectRead" ) -var mappingUpdateBucketDetailsPublicAccessType = map[string]UpdateBucketDetailsPublicAccessTypeEnum { - "NoPublicAccess": UpdateBucketDetailsPublicAccessTypeNopublicaccess, - "ObjectRead": UpdateBucketDetailsPublicAccessTypeObjectread, - "UNKNOWN": UpdateBucketDetailsPublicAccessTypeUnknown, +var mappingUpdateBucketDetailsPublicAccessType = map[string]UpdateBucketDetailsPublicAccessTypeEnum{ + "NoPublicAccess": UpdateBucketDetailsPublicAccessTypeNopublicaccess, + "ObjectRead": UpdateBucketDetailsPublicAccessTypeObjectread, } // GetUpdateBucketDetailsPublicAccessTypeEnumValues Enumerates the set of values for UpdateBucketDetailsPublicAccessType func GetUpdateBucketDetailsPublicAccessTypeEnumValues() []UpdateBucketDetailsPublicAccessTypeEnum { - values := make([]UpdateBucketDetailsPublicAccessTypeEnum, 0) - for _, v := range mappingUpdateBucketDetailsPublicAccessType { - if v != UpdateBucketDetailsPublicAccessTypeUnknown { - values = append(values, v) - } - } - return values + values := make([]UpdateBucketDetailsPublicAccessTypeEnum, 0) + for _, v := range mappingUpdateBucketDetailsPublicAccessType { + values = append(values, v) + } + return values } - - - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_request_response.go index 32e09a9d7..a352d64fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_request_response.go @@ -1,62 +1,58 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" + "github.com/oracle/oci-go-sdk/common" + "net/http" ) // UpdateBucketRequest wrapper for the UpdateBucket operation type UpdateBucketRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // Request object for updating a bucket. - UpdateBucketDetails `contributesTo:"body"` - - // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - // For uploading a part, this is the entity tag of the target part. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // Request object for updating a bucket. + UpdateBucketDetails `contributesTo:"body"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } func (request UpdateBucketRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UpdateBucketResponse wrapper for the UpdateBucket operation type UpdateBucketResponse struct { - // The underlying http response - RawResponse *http.Response - - // The Bucket instance - Bucket `presentIn:"body"` + // The underlying http response + RawResponse *http.Response + + // The Bucket instance + Bucket `presentIn:"body"` - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The entity tag for the updated bucket. - ETag *string `presentIn:"header" name:"etag"` + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The entity tag for the updated bucket. + ETag *string `presentIn:"header" name:"etag"` } func (response UpdateBucketResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/upload_part_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/upload_part_request_response.go index c8aae0cad..9a48fa05c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/upload_part_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/upload_part_request_response.go @@ -1,87 +1,83 @@ -// Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( - "github.com/oracle/oci-go-sdk/common" - "net/http" - "io" + "github.com/oracle/oci-go-sdk/common" + "io" + "net/http" ) // UploadPartRequest wrapper for the UploadPart operation type UploadPartRequest struct { - - // The top-level namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The name of the bucket. - // Example: `my-new-bucket1` - BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - - // The name of the object. - // Example: `test/object1.log` - ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` - - // The upload ID for a multipart upload. - UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` - - // The part number that identifies the object part currently being uploaded. - UploadPartNum *int `mandatory:"true" contributesTo:"query" name:"uploadPartNum"` - - // The content length of the body. - ContentLength *int `mandatory:"true" contributesTo:"header" name:"Content-Length"` - - // The part being uploaded to the Object Storage Service. - UploadPartBody io.ReadCloser `mandatory:"true" contributesTo:"body" encoding:"binary"` - - // The client request ID for tracing. - OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` - - // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - // For uploading a part, this is the entity tag of the target part. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. - // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag - // of the target part. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // 100-continue - Expect *string `mandatory:"false" contributesTo:"header" name:"Expect"` - - // The base-64 encoded MD5 hash of the body. - ContentMD5 *string `mandatory:"false" contributesTo:"header" name:"Content-MD5"` + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The name of the object. + // Example: `test/object1.log` + ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` + + // The upload ID for a multipart upload. + UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` + + // The part number that identifies the object part currently being uploaded. + UploadPartNum *int `mandatory:"true" contributesTo:"query" name:"uploadPartNum"` + + // The content length of the body. + ContentLength *int `mandatory:"true" contributesTo:"header" name:"Content-Length"` + + // The part being uploaded to the Object Storage Service. + UploadPartBody io.ReadCloser `mandatory:"true" contributesTo:"body" encoding:"binary"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag + // of the target part. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // 100-continue + Expect *string `mandatory:"false" contributesTo:"header" name:"Expect"` + + // The base-64 encoded MD5 hash of the body. + ContentMD5 *string `mandatory:"false" contributesTo:"header" name:"Content-MD5"` } func (request UploadPartRequest) String() string { - return common.PointerString(request) + return common.PointerString(request) } // UploadPartResponse wrapper for the UploadPart operation type UploadPartResponse struct { - // The underlying http response - RawResponse *http.Response + // The underlying http response + RawResponse *http.Response + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. - OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular - // request, please provide this request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The base64-encoded MD5 hash of the request body, as computed by the server. - OpcContentMd5 *string `presentIn:"header" name:"opc-content-md5"` - - // The entity tag for the object. - ETag *string `presentIn:"header" name:"etag"` + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + // The base64-encoded MD5 hash of the request body, as computed by the server. + OpcContentMd5 *string `presentIn:"header" name:"opc-content-md5"` + // The entity tag for the object. + ETag *string `presentIn:"header" name:"etag"` } func (response UploadPartResponse) String() string { - return common.PointerString(response) + return common.PointerString(response) } - diff --git a/vendor/github.com/oracle/oci-go-sdk/oci.go b/vendor/github.com/oracle/oci-go-sdk/oci.go index 6189c1084..47fcef9c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/oci.go +++ b/vendor/github.com/oracle/oci-go-sdk/oci.go @@ -1,3 +1,232 @@ -package oci_go_sdk + +/* +This is the official Go SDK for Oracle Cloud Infrastructure + +Installation + +Refer to https://github.com/oracle/oci-go-sdk/blob/master/README.md#installing for installation instructions. + +Configuration + +Refer to https://github.com/oracle/oci-go-sdk/blob/master/README.md#configuring for configuration instructions. + +Quickstart + +The following example shows how to get started with the SDK. The example belows creates an identityClient +struct with the default configuration. It then utilizes the identityClient to list availability domains and prints +them out to stdout + + import ( + "context" + "fmt" + + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/identity" + ) + + func main() { + c, err := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) + if err != nil { + fmt.Println("Error:", err) + return + } + + // The OCID of the tenancy containing the compartment. + tenancyID, err := common.DefaultConfigProvider().TenancyOCID() + if err != nil { + fmt.Println("Error:", err) + return + } + + request := identity.ListAvailabilityDomainsRequest{ + CompartmentId: &tenancyID, + } + + r, err := c.ListAvailabilityDomains(context.Background(), request) + if err != nil { + fmt.Println("Error:", err) + return + } + + fmt.Printf("List of available domains: %v", r.Items) + return + } + +More examples can be found in the SDK Github repo: https://github.com/oracle/oci-go-sdk/tree/master/example + +Optional fields in the SDK + +Optional fields are represented with the `mandatory:"false"` tag on input structs. The SDK will omit all optional fields that are nil when making requests. +In the case of enum-type fields, the SDK will omit fields whose value is an empty string. + +Helper functions + +The SDK uses pointers for primitive types in many input structs. To aid in the construction of such structs, the SDK provides +functions that return a pointer for a given value. For example: + + // Given the struct + type CreateVcnDetails struct { + + // Example: `172.16.0.0/16` + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + DisplayName *string `mandatory:"false" json:"displayName"` + + } + + // We can use the helper functions to build the struct + details := core.CreateVcnDetails{ + CidrBlock: common.String("172.16.0.0/16"), + CompartmentId: common.String("someOcid"), + DisplayName: common.String("myVcn"), + } + + +Signing custom requests + +The SDK exposes a stand-alone signer that can be used to signing custom requests. Related code can be found here: +https://github.com/oracle/oci-go-sdk/blob/master/common/http_signer.go. + +The example below shows how to create a default signer. + + client := http.Client{} + var request http.Request + request = ... // some custom request + + // Set the Date header + request.Header.Set("Date", time.Now().UTC().Format(http.TimeFormat)) + + // And a provider of cryptographic keys + provider := common.DefaultConfigProvider() + + // Build the signer + signer := common.DefaultSigner(provider) + + // Sign the request + signer.Sign(&request) + + // Execute the request + client.Do(request) + + + +The signer also allows more granular control on the headers used for signing. For example: + + client := http.Client{} + var request http.Request + request = ... // some custom request + + // Set the Date header + request.Header.Set("Date", time.Now().UTC().Format(http.TimeFormat)) + + // Mandatory headers to be used in the sign process + defaultGenericHeaders = []string{"date", "(request-target)", "host"} + + // Optional headers + optionalHeaders = []string{"content-length", "content-type", "x-content-sha256"} + + // A predicate that specifies when to use the optional signing headers + optionalHeadersPredicate := func (r *http.Request) bool { + return r.Method == http.MethodPost + } + + // And a provider of cryptographic keys + provider := common.DefaultConfigProvider() + + // Build the signer + signer := common.RequestSigner(provider, defaultGenericHeaders, optionalHeaders, optionalHeadersPredicate) + + // Sign the request + signer.Sign(&request) + + // Execute the request + c.Do(request) + +For more information on the signing algorithm refer to: https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/signingrequests.htm + +Polymorphic json requests and responses + +Some operations accept or return polymorphic json objects. The SDK models such objects as interfaces. Further the SDK provides +structs that implement such interfaces. Thus, for all operations that expect interfaces as input, pass the struct in the SDK that satisfies +such interface. For example: + + c, err := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) + if err != nil { + panic(err) + } + + // The CreateIdentityProviderRequest takes a CreateIdentityProviderDetails interface as input + rCreate := identity.CreateIdentityProviderRequest{} + + // The CreateSaml2IdentityProviderDetails struct implements the CreateIdentityProviderDetails interface + details := identity.CreateSaml2IdentityProviderDetails{} + details.CompartmentId = common.String(getTenancyID()) + details.Name = common.String("someName") + //... more setup if needed + // Use the above struct + rCreate.CreateIdentityProviderDetails = details + + // Make the call + rspCreate, createErr := c.CreateIdentityProvider(context.Background(), rCreate) + +In the case of a polymorphic response you can type assert the interface to the expected type. For example: + + rRead := identity.GetIdentityProviderRequest{} + rRead.IdentityProviderId = common.String("aValidId") + response, err := c.GetIdentityProvider(context.Background(), rRead) + + provider := response.IdentityProvider.(identity.Saml2IdentityProvider) + +An example of polymorphic json request handling can be found here: https://github.com/oracle/oci-go-sdk/blob/master/example/example_core_test.go#L63 + + +Pagination + +When calling a list operation, the operation will retrieve a page of results. To retrieve more data, call the list operation again, +passing in the value of the most recent response's OpcNextPage as the value of Page in the next list operation call. +When there is no more data the OpcNextPage field will be nil. An example of pagination using this logic can be found here: https://github.com/oracle/oci-go-sdk/blob/master/example/example_core_test.go#L86 + +Logging and Debugging + +The SDK has a built-in logging mechanism used internally. The internal logging logic is used to record the raw http +requests, responses and potential errors when (un)marshalling request and responses. + +To expose debugging logs, set the environment variable "OCI_GO_SDK_DEBUG" to "1", or some other non empty string. + + +Forward Compatibility + +Some response fields are enum-typed. In the future, individual services may return values not covered by existing enums +for that field. To address this possibility, every enum-type response field is a modeled as a type that supports any string. +Thus if a service returns a value that is not recognized by your version of the SDK, then the response field will be set to this value. + +When individual services return a polymorphic json response not available as a concrete struct, the SDK will return an implementation that only satisfies +the interface modeling the polymorphic json response. + + +Contributions + +Got a fix for a bug, or a new feature you'd like to contribute? The SDK is open source and accepting pull requests on GitHub +https://github.com/oracle/oci-go-sdk + +License + +Licensing information available at: https://github.com/oracle/oci-go-sdk/blob/master/LICENSE.txt + +Notifications + +To be notified when a new version of the Go SDK is released, subscribe to the following feed: https://github.com/oracle/oci-go-sdk/releases.atom + +Questions or Feedback + +Please refer to this link: https://github.com/oracle/oci-go-sdk#help + + + + + */ +package oci //go:generate go run cmd/genver/main.go cmd/genver/version_template.go --output common/version.go