From 30ba21ef0db57c2754b1cbc61c1b9793d00f83e2 Mon Sep 17 00:00:00 2001 From: Josh Horwitz Date: Mon, 9 Apr 2018 20:29:19 -0400 Subject: [PATCH 1/4] Fixes #134 add support for idle connection timeout --- pkg/oci/load_balancer.go | 4 +++ pkg/oci/load_balancer_spec.go | 39 +++++++++++++++++--- pkg/oci/load_balancer_spec_test.go | 57 ++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+), 4 deletions(-) diff --git a/pkg/oci/load_balancer.go b/pkg/oci/load_balancer.go index b7394653d1..2d5facfe15 100644 --- a/pkg/oci/load_balancer.go +++ b/pkg/oci/load_balancer.go @@ -62,6 +62,10 @@ const ( // have SSL enabled. // See: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls ServiceAnnotationLoadBalancerTLSSecret = "service.beta.kubernetes.io/oci-load-balancer-tls-secret" + + // ServiceAnnotationLoadBalancerConnectionIdleTimeout is the annotation used + // on the service to specify the idle connection timeout. + ServiceAnnotationLoadBalancerConnectionIdleTimeout = "service.beta.kubernetes.io/oci-load-balancer-connection-idle-timeout" ) // DefaultLoadBalancerPolicy defines the default traffic policy for load diff --git a/pkg/oci/load_balancer_spec.go b/pkg/oci/load_balancer_spec.go index ba5a44be87..b3a0bf33ed 100644 --- a/pkg/oci/load_balancer_spec.go +++ b/pkg/oci/load_balancer_spec.go @@ -16,6 +16,7 @@ package oci import ( "fmt" + "strconv" "github.com/oracle/oci-go-sdk/common" "github.com/oracle/oci-go-sdk/loadbalancer" @@ -120,12 +121,17 @@ func NewLBSpec(svc *v1.Service, nodes []*v1.Node, defaultSubnets []string, sslCf subnets = subnets[:1] } + listeners, err := getListeners(svc, sslCfg) + if err != nil { + return nil, err + } + return &LBSpec{ Name: GetLoadBalancerName(svc), Shape: shape, Internal: internal, Subnets: subnets, - Listeners: getListeners(svc, sslCfg), + Listeners: listeners, BackendSets: getBackendSets(svc, nodes), Ports: getPorts(svc), @@ -268,19 +274,44 @@ func getSSLConfiguration(cfg *SSLConfig, port int) *loadbalancer.SslConfiguratio } } -func getListeners(svc *v1.Service, sslCfg *SSLConfig) map[string]loadbalancer.ListenerDetails { +func getListeners(svc *v1.Service, sslCfg *SSLConfig) (map[string]loadbalancer.ListenerDetails, error) { + // Determine if connection idle timeout has been specified + var connectionIdleTimeout int + connectionIdleTimeoutAnnotation := svc.Annotations[ServiceAnnotationLoadBalancerConnectionIdleTimeout] + if connectionIdleTimeoutAnnotation != "" { + timeout, err := strconv.ParseInt(connectionIdleTimeoutAnnotation, 10, 64) + if err != nil { + return nil, fmt.Errorf("error parsing service annotation: %s=%s", + ServiceAnnotationLoadBalancerConnectionIdleTimeout, + connectionIdleTimeoutAnnotation, + ) + } + + connectionIdleTimeout = int(timeout) + } + listeners := make(map[string]loadbalancer.ListenerDetails) for _, servicePort := range svc.Spec.Ports { protocol := string(servicePort.Protocol) port := int(servicePort.Port) sslConfiguration := getSSLConfiguration(sslCfg, port) name := getListenerName(protocol, port, sslConfiguration) - listeners[name] = loadbalancer.ListenerDetails{ + + listener := loadbalancer.ListenerDetails{ DefaultBackendSetName: common.String(getBackendSetName(string(servicePort.Protocol), int(servicePort.Port))), Protocol: &protocol, Port: &port, SslConfiguration: sslConfiguration, } + + if connectionIdleTimeout > 0 { + listener.ConnectionConfiguration = &loadbalancer.ConnectionConfiguration{ + IdleTimeout: common.Int(int(connectionIdleTimeout)), + } + } + + listeners[name] = listener } - return listeners + + return listeners, nil } diff --git a/pkg/oci/load_balancer_spec_test.go b/pkg/oci/load_balancer_spec_test.go index ea180556ef..05be63813b 100644 --- a/pkg/oci/load_balancer_spec_test.go +++ b/pkg/oci/load_balancer_spec_test.go @@ -248,6 +248,63 @@ func TestNewLBSpecSuccess(t *testing.T) { }, }, }, + "custom idle connection timeout": { + defaultSubnetOne: "one", + defaultSubnetTwo: "two", + service: &v1.Service{ + ObjectMeta: metav1.ObjectMeta{ + Namespace: "kube-system", + Name: "testservice", + UID: "test-uid", + Annotations: map[string]string{ + ServiceAnnotationLoadBalancerConnectionIdleTimeout: "404", + }, + }, + Spec: v1.ServiceSpec{ + SessionAffinity: v1.ServiceAffinityNone, + Ports: []v1.ServicePort{ + v1.ServicePort{ + Protocol: v1.ProtocolTCP, + Port: int32(80), + }, + }, + }, + }, + expected: &LBSpec{ + Name: "test-uid", + Shape: "100Mbps", + Internal: false, + Subnets: []string{"one", "two"}, + Listeners: map[string]loadbalancer.ListenerDetails{ + "TCP-80": loadbalancer.ListenerDetails{ + DefaultBackendSetName: common.String("TCP-80"), + Port: common.Int(80), + Protocol: common.String("TCP"), + ConnectionConfiguration: &loadbalancer.ConnectionConfiguration{ + IdleTimeout: common.Int(404), + }, + }, + }, + BackendSets: map[string]loadbalancer.BackendSetDetails{ + "TCP-80": loadbalancer.BackendSetDetails{ + Backends: []loadbalancer.BackendDetails{}, + HealthChecker: &loadbalancer.HealthCheckerDetails{ + Protocol: common.String("HTTP"), + Port: common.Int(10256), + UrlPath: common.String("/healthz"), + }, + Policy: common.String("ROUND_ROBIN"), + }, + }, + SourceCIDRs: []string{"0.0.0.0/0"}, + Ports: map[string]portSpec{ + "TCP-80": portSpec{ + ListenerPort: 80, + HealthCheckerPort: 10256, + }, + }, + }, + }, } for name, tc := range testCases { From 0b96dd08fa2fc087ff9a5e56085ac06d05c2909c Mon Sep 17 00:00:00 2001 From: Josh Horwitz Date: Mon, 9 Apr 2018 20:29:29 -0400 Subject: [PATCH 2/4] Upgrade oci-go-sdk to v1.2.0 --- Gopkg.lock | 6 +- Gopkg.toml | 2 +- .../common/auth/certificate_retriever.go | 4 + .../common/auth/certificate_retriever_test.go | 13 + .../oci-go-sdk/common/auth/configuration.go | 2 +- .../auth/instance_principal_key_provider.go | 8 +- .../oracle/oci-go-sdk/common/common.go | 4 + .../oracle/oci-go-sdk/common/configuration.go | 26 +- .../oci-go-sdk/common/configuration_test.go | 208 ++++++++ .../oracle/oci-go-sdk/common/http.go | 32 +- .../oracle/oci-go-sdk/common/http_test.go | 96 +++- .../oracle/oci-go-sdk/common/version.go | 2 +- .../core/attach_i_scsi_volume_details.go | 8 + .../attach_paravirtualized_volume_details.go | 68 +++ .../oci-go-sdk/core/attach_volume_details.go | 14 + .../core/capture_console_history_details.go | 11 + ...nect_remote_peering_connections_details.go | 28 + ...te_peering_connections_request_response.go | 38 ++ .../oracle/oci-go-sdk/core/console_history.go | 11 + .../core/core_blockstorage_client.go | 112 ++++ .../oci-go-sdk/core/core_compute_client.go | 8 +- .../core/core_virtualnetwork_client.go | 341 ++++++++++++ .../oci-go-sdk/core/create_dhcp_details.go | 23 +- .../oci-go-sdk/core/create_image_details.go | 58 ++- ...ate_instance_console_connection_details.go | 11 + .../core/create_private_ip_details.go | 11 + .../core/create_public_ip_details.go | 65 +++ .../core/create_public_ip_request_response.go | 48 ++ ...reate_remote_peering_connection_details.go | 31 ++ ...ote_peering_connection_request_response.go | 48 ++ .../core/create_route_table_details.go | 11 + .../core/create_security_list_details.go | 11 + .../oci-go-sdk/core/create_subnet_details.go | 11 + .../oci-go-sdk/core/create_vcn_details.go | 11 + .../oci-go-sdk/core/create_vnic_details.go | 9 +- .../core/create_volume_backup_details.go | 37 ++ ...volume_backup_policy_assignment_details.go | 27 + ...ckup_policy_assignment_request_response.go | 41 ++ .../oci-go-sdk/core/create_volume_details.go | 37 +- .../delete_private_ip_request_response.go | 2 +- .../core/delete_public_ip_request_response.go | 40 ++ ...ote_peering_connection_request_response.go | 40 ++ ...ckup_policy_assignment_request_response.go | 40 ++ .../oracle/oci-go-sdk/core/dhcp_options.go | 29 +- .../core/get_private_ip_request_response.go | 2 +- .../get_public_ip_by_ip_address_details.go | 25 + ...ublic_ip_by_ip_address_request_response.go | 41 ++ .../get_public_ip_by_private_ip_id_details.go | 24 + ...ic_ip_by_private_ip_id_request_response.go | 41 ++ .../core/get_public_ip_request_response.go | 41 ++ ...ote_peering_connection_request_response.go | 41 ++ ...olicy_asset_assignment_request_response.go | 50 ++ ...ckup_policy_assignment_request_response.go | 41 ++ ...t_volume_backup_policy_request_response.go | 41 ++ .../core/i_scsi_volume_attachment.go | 8 + .../oracle/oci-go-sdk/core/image.go | 48 ++ .../oci-go-sdk/core/image_source_details.go | 38 +- ...source_via_object_storage_tuple_details.go | 9 + ...e_source_via_object_storage_uri_details.go | 9 + .../oracle/oci-go-sdk/core/instance.go | 80 ++- .../core/instance_console_connection.go | 15 + .../core/instance_source_via_image_details.go | 3 + .../core/launch_instance_details.go | 46 +- .../oracle/oci-go-sdk/core/launch_options.go | 151 ++++++ ...ons_for_remote_peering_request_response.go | 35 ++ .../core/list_images_request_response.go | 3 + .../core/list_private_ips_request_response.go | 2 +- .../core/list_public_ips_request_response.go | 85 +++ ...te_peering_connections_request_response.go | 51 ++ ...volume_backup_policies_request_response.go | 47 ++ .../core/paravirtualized_volume_attachment.go | 112 ++++ .../core/peer_region_for_remote_peering.go | 25 + .../oracle/oci-go-sdk/core/private_ip.go | 11 + .../oracle/oci-go-sdk/core/public_ip.go | 160 ++++++ .../core/remote_peering_connection.go | 123 +++++ .../oracle/oci-go-sdk/core/route_table.go | 11 + .../oracle/oci-go-sdk/core/security_list.go | 11 + .../oracle/oci-go-sdk/core/subnet.go | 11 + .../core/update_console_history_details.go | 11 + .../oci-go-sdk/core/update_dhcp_details.go | 19 +- .../oci-go-sdk/core/update_image_details.go | 11 + .../core/update_instance_details.go | 11 + .../core/update_private_ip_details.go | 11 + .../update_private_ip_request_response.go | 2 +- .../core/update_public_ip_details.go | 32 ++ .../core/update_public_ip_request_response.go | 49 ++ ...pdate_remote_peering_connection_details.go | 25 + ...ote_peering_connection_request_response.go | 49 ++ .../core/update_route_table_details.go | 11 + .../core/update_security_list_details.go | 11 + .../oci-go-sdk/core/update_subnet_details.go | 11 + .../oci-go-sdk/core/update_vcn_details.go | 11 + .../core/update_volume_backup_details.go | 11 + .../oci-go-sdk/core/update_volume_details.go | 11 + .../github.com/oracle/oci-go-sdk/core/vcn.go | 11 + .../oracle/oci-go-sdk/core/volume.go | 37 +- .../oci-go-sdk/core/volume_attachment.go | 14 + .../oracle/oci-go-sdk/core/volume_backup.go | 70 +++ .../oci-go-sdk/core/volume_backup_policy.go | 34 ++ .../core/volume_backup_policy_assignment.go | 33 ++ .../oci-go-sdk/core/volume_backup_schedule.go | 85 +++ .../oci-go-sdk/database/database_client.go | 6 +- .../oracle/oci-go-sdk/database/db_system.go | 2 +- .../database/db_system_shape_summary.go | 14 +- .../oci-go-sdk/database/db_system_summary.go | 2 +- .../list_db_systems_request_response.go | 3 + .../oci-go-sdk/dns/create_zone_details.go | 56 ++ .../dns/create_zone_request_response.go | 46 ++ .../delete_domain_records_request_response.go | 56 ++ .../dns/delete_r_r_set_request_response.go | 59 +++ .../dns/delete_zone_request_response.go | 53 ++ .../oracle/oci-go-sdk/dns/dns_client.go | 371 +++++++++++++ .../oracle/oci-go-sdk/dns/external_master.go | 29 ++ .../get_domain_records_request_response.go | 136 +++++ .../dns/get_r_r_set_request_response.go | 83 +++ .../dns/get_zone_records_request_response.go | 143 +++++ .../dns/get_zone_request_response.go | 58 +++ .../dns/list_zones_request_response.go | 183 +++++++ .../dns/patch_domain_records_details.go | 22 + .../patch_domain_records_request_response.go | 76 +++ .../dns/patch_r_r_set_request_response.go | 79 +++ .../oci-go-sdk/dns/patch_rr_set_details.go | 22 + .../dns/patch_zone_records_details.go | 22 + .../patch_zone_records_request_response.go | 73 +++ .../oracle/oci-go-sdk/dns/record.go | 46 ++ .../oci-go-sdk/dns/record_collection.go | 22 + .../oracle/oci-go-sdk/dns/record_details.go | 46 ++ .../oracle/oci-go-sdk/dns/record_operation.go | 89 ++++ .../oracle/oci-go-sdk/dns/rr_set.go | 23 + .../oracle/oci-go-sdk/dns/sort_order.go | 21 + .../github.com/oracle/oci-go-sdk/dns/tsig.go | 32 ++ .../dns/update_domain_records_details.go | 22 + .../update_domain_records_request_response.go | 76 +++ .../dns/update_r_r_set_request_response.go | 79 +++ .../oci-go-sdk/dns/update_rr_set_details.go | 22 + .../oci-go-sdk/dns/update_zone_details.go | 24 + .../dns/update_zone_records_details.go | 22 + .../update_zone_records_request_response.go | 73 +++ .../dns/update_zone_request_response.go | 63 +++ .../github.com/oracle/oci-go-sdk/dns/zone.go | 107 ++++ .../oracle/oci-go-sdk/dns/zone_summary.go | 72 +++ .../oci-go-sdk/email/create_sender_details.go | 27 + .../email/create_sender_request_response.go | 39 ++ .../email/create_suppression_details.go | 29 ++ .../create_suppression_request_response.go | 37 ++ .../email/delete_sender_request_response.go | 36 ++ .../delete_suppression_request_response.go | 36 ++ .../oracle/oci-go-sdk/email/email_client.go | 208 ++++++++ .../email/get_sender_request_response.go | 39 ++ .../email/get_suppression_request_response.go | 37 ++ .../email/list_senders_request_response.go | 117 +++++ .../list_suppressions_request_response.go | 128 +++++ .../oracle/oci-go-sdk/email/sender.go | 65 +++ .../oracle/oci-go-sdk/email/sender_summary.go | 61 +++ .../oracle/oci-go-sdk/email/suppression.go | 65 +++ .../oci-go-sdk/email/suppression_summary.go | 66 +++ .../oci-go-sdk/example/example_email_test.go | 77 +++ .../example_instance_principals_test.go | 41 ++ .../example/example_tagging_test.go | 247 +++++++++ .../oracle/oci-go-sdk/example/example_test.go | 11 +- .../oracle/oci-go-sdk/example/helpers/args.go | 9 +- .../filestorage/create_export_details.go | 32 ++ .../create_export_request_response.go | 49 ++ .../filestorage/create_file_system_details.go | 33 ++ .../create_file_system_request_response.go | 49 ++ .../create_mount_target_details.go | 54 ++ .../create_mount_target_request_response.go | 49 ++ .../filestorage/create_snapshot_details.go | 31 ++ .../create_snapshot_request_response.go | 49 ++ .../delete_export_request_response.go | 43 ++ .../delete_file_system_request_response.go | 43 ++ .../delete_mount_target_request_response.go | 43 ++ .../delete_snapshot_request_response.go | 43 ++ .../oracle/oci-go-sdk/filestorage/export.go | 91 ++++ .../oci-go-sdk/filestorage/export_set.go | 98 ++++ .../filestorage/export_set_summary.go | 75 +++ .../oci-go-sdk/filestorage/export_summary.go | 70 +++ .../oci-go-sdk/filestorage/file_system.go | 86 +++ .../filestorage/file_system_summary.go | 79 +++ .../filestorage/filestorage_client.go | 492 ++++++++++++++++++ .../get_export_request_response.go | 42 ++ .../get_export_set_request_response.go | 42 ++ .../get_file_system_request_response.go | 42 ++ .../get_mount_target_request_response.go | 42 ++ .../get_snapshot_request_response.go | 42 ++ .../list_export_sets_request_response.go | 154 ++++++ .../list_exports_request_response.go | 152 ++++++ .../list_file_systems_request_response.go | 154 ++++++ .../list_mount_targets_request_response.go | 157 ++++++ .../list_snapshots_request_response.go | 117 +++++ .../oci-go-sdk/filestorage/mount_target.go | 90 ++++ .../filestorage/mount_target_summary.go | 85 +++ .../oracle/oci-go-sdk/filestorage/snapshot.go | 68 +++ .../filestorage/snapshot_summary.go | 68 +++ .../filestorage/update_export_set_details.go | 48 ++ .../update_export_set_request_response.go | 52 ++ .../filestorage/update_file_system_details.go | 26 + .../update_file_system_request_response.go | 52 ++ .../update_mount_target_details.go | 26 + .../update_mount_target_request_response.go | 52 ++ .../oracle/oci-go-sdk/identity/compartment.go | 13 +- .../identity/create_compartment_details.go | 12 +- .../identity/create_dynamic_group_details.go | 35 ++ .../create_dynamic_group_request_response.go | 48 ++ .../identity/create_group_details.go | 10 + .../create_identity_provider_details.go | 24 + .../identity/create_policy_details.go | 10 + .../create_region_subscription_details.go | 1 + .../create_saml2_identity_provider_details.go | 20 + .../create_smtp_credential_details.go | 24 + ...create_smtp_credential_request_response.go | 51 ++ .../oci-go-sdk/identity/create_tag_details.go | 37 ++ .../identity/create_tag_namespace_details.go | 40 ++ .../create_tag_namespace_request_response.go | 45 ++ .../identity/create_tag_request_response.go | 48 ++ .../identity/create_user_details.go | 10 + .../delete_dynamic_group_request_response.go | 40 ++ ...delete_smtp_credential_request_response.go | 43 ++ .../oci-go-sdk/identity/dynamic_group.go | 85 +++ .../oci-go-sdk/identity/fault_domain.go | 32 -- .../get_dynamic_group_request_response.go | 41 ++ .../get_tag_namespace_request_response.go | 38 ++ .../identity/get_tag_request_response.go | 41 ++ .../oracle/oci-go-sdk/identity/group.go | 10 + .../oci-go-sdk/identity/identity_client.go | 340 +++++++++++- .../oci-go-sdk/identity/identity_provider.go | 24 + .../list_dynamic_groups_request_response.go | 49 ++ .../list_fault_domains_request_response.go | 41 -- .../list_smtp_credentials_request_response.go | 43 ++ .../list_tag_namespaces_request_response.go | 53 ++ .../identity/list_tags_request_response.go | 49 ++ .../oracle/oci-go-sdk/identity/policy.go | 10 + .../oracle/oci-go-sdk/identity/region.go | 2 + .../identity/region_subscription.go | 2 + .../identity/saml2_identity_provider.go | 20 + .../oci-go-sdk/identity/smtp_credential.go | 86 +++ .../identity/smtp_credential_summary.go | 80 +++ .../oracle/oci-go-sdk/identity/tag.go | 59 +++ .../oci-go-sdk/identity/tag_namespace.go | 52 ++ .../identity/tag_namespace_summary.go | 51 ++ .../oracle/oci-go-sdk/identity/tag_summary.go | 51 ++ .../oracle/oci-go-sdk/identity/tenancy.go | 14 +- .../identity/update_compartment_details.go | 11 + .../identity/update_dynamic_group_details.go | 28 + .../update_dynamic_group_request_response.go | 49 ++ .../identity/update_group_details.go | 10 + .../update_identity_provider_details.go | 30 +- .../identity/update_policy_details.go | 10 + .../update_saml2_identity_provider_details.go | 20 + .../update_smtp_credential_details.go | 24 + ...update_smtp_credential_request_response.go | 52 ++ .../oci-go-sdk/identity/update_tag_details.go | 38 ++ .../identity/update_tag_namespace_details.go | 38 ++ .../update_tag_namespace_request_response.go | 41 ++ .../identity/update_tag_request_response.go | 44 ++ .../identity/update_user_details.go | 10 + .../oracle/oci-go-sdk/identity/user.go | 10 + .../loadbalancer/connection_configuration.go | 45 ++ .../loadbalancer/create_listener_details.go | 8 + .../create_load_balancer_details.go | 2 + .../create_path_route_set_details.go | 29 ++ .../create_path_route_set_request_response.go | 52 ++ .../delete_path_route_set_request_response.go | 46 ++ .../get_path_route_set_request_response.go | 46 ++ .../list_load_balancers_request_response.go | 9 +- .../list_path_route_sets_request_response.go | 43 ++ .../oci-go-sdk/loadbalancer/listener.go | 8 + .../loadbalancer/listener_details.go | 8 + .../oci-go-sdk/loadbalancer/load_balancer.go | 2 + .../loadbalancer/loadbalancer_client.go | 97 ++++ .../loadbalancer/path_match_type.go | 59 +++ .../oci-go-sdk/loadbalancer/path_route.go | 36 ++ .../oci-go-sdk/loadbalancer/path_route_set.go | 29 ++ .../loadbalancer/path_route_set_details.go | 24 + .../loadbalancer/update_listener_details.go | 8 + .../update_path_route_set_details.go | 24 + .../update_path_route_set_request_response.go | 56 ++ ...abort_multipart_upload_request_response.go | 6 +- .../oracle/oci-go-sdk/objectstorage/bucket.go | 70 ++- .../objectstorage/bucket_summary.go | 17 +- .../commit_multipart_upload_details.go | 2 +- .../commit_multipart_upload_part_details.go | 2 +- ...ommit_multipart_upload_request_response.go | 12 +- .../objectstorage/create_bucket_details.go | 63 ++- .../create_bucket_request_response.go | 2 +- .../create_multipart_upload_details.go | 13 +- ...reate_multipart_upload_request_response.go | 7 +- ...create_preauthenticated_request_details.go | 11 +- ...eauthenticated_request_request_response.go | 6 +- .../delete_bucket_request_response.go | 4 +- .../delete_object_request_response.go | 6 +- ...eauthenticated_request_request_response.go | 8 +- .../get_bucket_request_response.go | 7 +- ...get_namespace_metadata_request_response.go | 44 ++ .../get_object_request_response.go | 44 +- ...eauthenticated_request_request_response.go | 8 +- .../head_bucket_request_response.go | 7 +- .../head_object_request_response.go | 42 +- .../list_buckets_request_response.go | 30 +- ...multipart_upload_parts_request_response.go | 6 +- ...list_multipart_uploads_request_response.go | 7 +- .../oci-go-sdk/objectstorage/list_objects.go | 5 +- .../list_objects_request_response.go | 12 +- ...authenticated_requests_request_response.go | 6 +- .../objectstorage/multipart_upload.go | 11 +- .../multipart_upload_part_summary.go | 17 +- .../objectstorage/namespace_metadata.go | 30 ++ .../objectstorage/object_summary.go | 7 +- .../objectstorage/objectstorage_client.go | 101 +++- .../objectstorage/preauthenticated_request.go | 27 +- .../preauthenticated_request_summary.go | 18 +- .../put_object_request_response.go | 9 +- .../objectstorage/rename_object_details.go | 38 ++ .../rename_object_request_response.go | 54 ++ .../objectstorage/restore_objects_details.go | 28 + .../restore_objects_request_response.go | 48 ++ .../objectstorage/update_bucket_details.go | 36 +- .../update_bucket_request_response.go | 4 +- .../update_namespace_metadata_details.go | 28 + ...ate_namespace_metadata_request_response.go | 47 ++ .../upload_part_request_response.go | 9 +- vendor/github.com/oracle/oci-go-sdk/oci.go | 25 +- 322 files changed, 13955 insertions(+), 381 deletions(-) create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/attach_paravirtualized_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/connect_remote_peering_connections_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/connect_remote_peering_connections_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/create_public_ip_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/create_public_ip_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/create_remote_peering_connection_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/create_remote_peering_connection_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_policy_assignment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_policy_assignment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/delete_public_ip_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/delete_remote_peering_connection_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/delete_volume_backup_policy_assignment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_ip_address_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_ip_address_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_private_ip_id_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_private_ip_id_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/get_remote_peering_connection_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_asset_assignment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_assignment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/launch_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/list_allowed_peer_regions_for_remote_peering_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/list_public_ips_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/list_remote_peering_connections_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/list_volume_backup_policies_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/paravirtualized_volume_attachment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/peer_region_for_remote_peering.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/public_ip.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/remote_peering_connection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/update_public_ip_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/update_public_ip_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/update_remote_peering_connection_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/update_remote_peering_connection_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy_assignment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/core/volume_backup_schedule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/create_zone_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/create_zone_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/delete_domain_records_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/delete_r_r_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/delete_zone_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/dns_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/external_master.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/get_domain_records_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/get_r_r_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/get_zone_records_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/get_zone_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/list_zones_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/patch_domain_records_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/patch_domain_records_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/patch_r_r_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/patch_rr_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/patch_zone_records_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/patch_zone_records_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/record.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/record_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/record_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/record_operation.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/rr_set.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/sort_order.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/tsig.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/update_domain_records_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/update_domain_records_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/update_r_r_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/update_rr_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/update_zone_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/update_zone_records_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/update_zone_records_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/update_zone_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/zone.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/dns/zone_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/create_sender_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/create_sender_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/create_suppression_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/create_suppression_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/delete_sender_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/delete_suppression_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/email_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/get_sender_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/get_suppression_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/list_senders_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/list_suppressions_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/sender.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/sender_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/suppression.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/email/suppression_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/example_email_test.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/example_instance_principals_test.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/example/example_tagging_test.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/create_export_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/create_export_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/create_file_system_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/create_file_system_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/create_mount_target_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/create_mount_target_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/create_snapshot_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/create_snapshot_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/delete_export_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/delete_file_system_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/delete_mount_target_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/delete_snapshot_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/export.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/export_set.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/export_set_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/export_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/file_system.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/file_system_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/filestorage_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/get_export_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/get_export_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/get_file_system_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/get_mount_target_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/get_snapshot_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/list_export_sets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/list_exports_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/list_file_systems_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/list_mount_targets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/list_snapshots_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/mount_target.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/mount_target_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/snapshot.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/snapshot_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/update_file_system_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/update_file_system_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/update_mount_target_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/filestorage/update_mount_target_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/create_dynamic_group_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/create_dynamic_group_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/create_smtp_credential_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/create_smtp_credential_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/create_tag_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/create_tag_namespace_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/create_tag_namespace_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/create_tag_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/delete_dynamic_group_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/delete_smtp_credential_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/dynamic_group.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/fault_domain.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/get_dynamic_group_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/get_tag_namespace_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/get_tag_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/list_dynamic_groups_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/list_fault_domains_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/list_smtp_credentials_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/list_tag_namespaces_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/list_tags_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/tag.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/tag_namespace.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/tag_namespace_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/tag_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/update_dynamic_group_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/update_dynamic_group_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/update_smtp_credential_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/update_smtp_credential_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/update_tag_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/update_tag_namespace_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/update_tag_namespace_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/identity/update_tag_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/connection_configuration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_path_route_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_path_route_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_path_route_sets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_match_type.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/objectstorage/get_namespace_metadata_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/objectstorage/namespace_metadata.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_request_response.go diff --git a/Gopkg.lock b/Gopkg.lock index 75e71e4b2d..ec30abd1b4 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -382,8 +382,8 @@ "core", "loadbalancer" ] - revision = "8090aeb474ad994446b2db294725e3d6c0d95327" - version = "v1.0.0" + revision = "ad5c34ed0cf8169d6817e2a37ec3e4521f856368" + version = "v1.2.0" [[projects]] name = "github.com/pborman/uuid" @@ -1149,6 +1149,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "fc2abdeaa6b5144c51b422320c020f0fa91293c09c3b012785acbee1705ab3ac" + inputs-digest = "a546f4ff19df2e0294f113d7011a8b83f0023d42057906eb1e37a654998a31a2" solver-name = "gps-cdcl" solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml index 7e590f91af..b32e613c75 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -74,7 +74,7 @@ [[constraint]] name = "github.com/oracle/oci-go-sdk" - version = "1.0.0" + version = "1.2.0" [prune] non-go = true 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 e2e04ee7a8..dcd452da17 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 @@ -82,6 +82,10 @@ func (r *urlBasedX509CertificateRetriever) renewCertificate(url string) (certifi certificatePemRaw = body.Bytes() var block *pem.Block block, _ = pem.Decode(certificatePemRaw) + if block == nil { + return nil, nil, fmt.Errorf("failed to parse the new certificate, not valid pem data") + } + if certificate, err = x509.ParseCertificate(block.Bytes); err != nil { return nil, nil, fmt.Errorf("failed to parse the new certificate: %s", err.Error()) } 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 42dea43ed3..f0639d811b 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 @@ -17,6 +17,19 @@ import ( "time" ) +func TestUrlBasedX509CertificateRetriever_BadCertificate(t *testing.T) { + expectedCert := make([]byte, 100) + rand.Read(expectedCert) + certServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + fmt.Fprint(w, string(expectedCert)) + })) + defer certServer.Close() + + retriever := newURLBasedX509CertificateRetriever(certServer.URL, "", "") + err := retriever.Refresh() + + assert.Error(t, err) +} func TestUrlBasedX509CertificateRetriever_RefreshWithoutPrivateKeyUrl(t *testing.T) { _, expectedCert := generateRandomCertificate() certServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 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 b0f455e9b3..32be795747 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 @@ -42,7 +42,7 @@ func (p instancePrincipalConfigurationProvider) KeyID() (string, error) { } func (p instancePrincipalConfigurationProvider) TenancyOCID() (string, error) { - return "", nil + return p.keyProvider.TenancyOCID() } func (p instancePrincipalConfigurationProvider) UserOCID() (string, error) { 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 ecf14b072b..8efc0d1c3e 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 @@ -27,6 +27,7 @@ const ( type instancePrincipalKeyProvider struct { regionForFederationClient common.Region federationClient federationClient + tenancyID string } // newInstancePrincipalKeyProvider creates and returns an instancePrincipalKeyProvider instance based on @@ -61,7 +62,7 @@ func newInstancePrincipalKeyProvider() (provider *instancePrincipalKeyProvider, federationClient := newX509FederationClient( region, tenancyID, leafCertificateRetriever, intermediateCertificateRetrievers) - provider = &instancePrincipalKeyProvider{regionForFederationClient: region, federationClient: federationClient} + provider = &instancePrincipalKeyProvider{regionForFederationClient: region, federationClient: federationClient, tenancyID: tenancyID} return } @@ -93,3 +94,8 @@ func (p *instancePrincipalKeyProvider) KeyID() (string, error) { } return fmt.Sprintf("ST$%s", securityToken), nil } + + +func (p *instancePrincipalKeyProvider) TenancyOCID() (string, error) { + return p.tenancyID, nil +} \ No newline at end of file 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 9164562b40..c284f93718 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/common.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/common.go @@ -18,6 +18,8 @@ const ( RegionIAD Region = "us-ashburn-1" //RegionFRA region FRA RegionFRA Region = "eu-frankfurt-1" + //RegionLHR region LHR + RegionLHR Region = "uk-london-1" ) //StringToRegion convert a string to Region type @@ -31,6 +33,8 @@ func StringToRegion(stringRegion string) (r Region) { r = RegionIAD case "fra", "eu-frankfurt-1": r = RegionFRA + case "lhr", "uk-london-1": + r = RegionLHR default: r = Region(stringRegion) Debugf("region named: %s, is not recognized", stringRegion) 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 d2292bb9d8..b13561167f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/configuration.go @@ -95,7 +95,7 @@ func (p rawConfigurationProvider) Region() (string, error) { } // environmentConfigurationProvider reads configuration from environment variables -type environmentConfigurationProvider struct { // TODO: Support Instance Principal +type environmentConfigurationProvider struct { PrivateKeyPassword string EnvironmentVariablePrefix string } @@ -186,7 +186,7 @@ func (p environmentConfigurationProvider) Region() (value string, err error) { } // fileConfigurationProvider. reads configuration information from a file -type fileConfigurationProvider struct { // TODO: Support Instance Principal +type fileConfigurationProvider struct { //The path to the configuration file ConfigPath string @@ -227,8 +227,8 @@ func ConfigurationProviderFromFileWithProfile(configFilePath, profile, privateKe } type configFileInfo struct { - UserOcid, Fingerprint, KeyFilePath, TenancyOcid, Region string - PresentConfiguration byte + UserOcid, Fingerprint, KeyFilePath, TenancyOcid, Region, Passphrase string + PresentConfiguration byte } const ( @@ -237,6 +237,7 @@ const ( hasFingerprint hasRegion hasKeyFile + hasPassphrase none ) @@ -277,6 +278,9 @@ func parseConfigAtLine(start int, content []string) (info *configFileInfo, err e splits := strings.Split(line, "=") switch key, value := strings.TrimSpace(splits[0]), strings.TrimSpace(splits[1]); strings.ToLower(key) { + case "passphrase": + configurationPresent = configurationPresent | hasPassphrase + info.Passphrase = value case "user": configurationPresent = configurationPresent | hasUser info.UserOcid = value @@ -397,7 +401,13 @@ func (p fileConfigurationProvider) PrivateRSAKey() (key *rsa.PrivateKey, err err return } - key, err = PrivateKeyFromBytes(pemFileContent, &p.PrivateKeyPassword) + password := p.PrivateKeyPassword + + if password == "" && ((info.PresentConfiguration & hasPassphrase) == hasPassphrase) { + password = info.Passphrase + } + + key, err = PrivateKeyFromBytes(pemFileContent, &password) return } @@ -424,6 +434,12 @@ func ComposingConfigurationProvider(providers []ConfigurationProvider) (Configur if len(providers) == 0 { return nil, fmt.Errorf("providers can not be an empty slice") } + + for i, p := range providers { + if p == nil { + return nil, fmt.Errorf("provider in position: %d is nil. ComposingConfiurationProvider does not support nil values", i) + } + } return composingConfigurationProvider{Providers: providers}, nil } 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 53c18f785a..c4101686d9 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 @@ -32,6 +32,37 @@ gIT7aFOYBFwGgQAQkWNKLvySgKbAZRTeLBacpHMuQdl1DfdntvAyqpAZ0lY0RKmW G6aFKaqQfOXKCyWoUiVknQJAXrlgySFci/2ueKlIE1QqIiLSZ8V8OlpFLRnb1pzI 7U1yQXnTAEFYM560yJlzUpOb1V4cScGd365tiSMvxLOvTA== -----END RSA PRIVATE KEY-----` + testEncryptedPrivateKeyConf = `-----BEGIN RSA PRIVATE KEY----- +Proc-Type: 4,ENCRYPTED +DEK-Info: DES-EDE3-CBC,05B7ACED45203763 + +bKbv8X2oyfxwp55w3MVKj1bfWnhvQgyqJ/1dER53STao3qRS26epRoBc0BoLtrNj +L+Wfa3NeuEinetDYKRwWGHZqvbs/3PD5OKIXW1y/EAlg1vr6JWX8KxhQ0PzGJOdQ +KPcB2duDtlNJ4awoGEsSp/qYyJLKOKpcz893OWTe3Oi9aQpzuL+kgH6VboCUdwdl +Ub7YyTMFBkGzzjOXV/iSJDaxvVUIZt7CQS/DkBq4IHXX8iFUDzh6L297/BuRp3Q8 +hDL4yQacl2F2yCWpUoNNkbPpe6oOmL8JHrxXxo+u0pSJELXx0sjWMn7bSRfgFFIE +k08y4wXZeoxHiQDhHmQI+YTikgqnxEWtDYhHYvWudVQY6Wcf1Fdypa1v4I3gv4S9 +QwjDRbRcrnPxMkxWmQEM6xGCwWBj8wmFyIQoEA5MJuQZxWdyptEKVtwwI1TB9etn +SlXPUl125dYYBu2ynmR96nBVEZd6BWl+iFeeZnqxDHABOB0AvpI61vt/6c7tIimC +YciZs74XZH/ERs55p0Ng/G23XNu+UGQQptrr2kyRR5JrS0UGKVjivydIK5Lus4c4 +NTaKyEJNMbvSUGY5SLfxyp6HZnlbr4aCDAk62+2ZUotr+sVXplCpuxoSc2Qlw0en +y+plCvd2RdQ/EzIFkpi9V/snIvbMvH3Sp/HqFDG8GehFTRvwpCIVqWC+BZYeaERX +n2P4jODz2M8Ns7txv1nB4CyxWgu19398Zit0K0QmG24kCJtLg9spEOmKtoIuVTnU +9ydxmHQjNNtyH+RceZFn07IkWvPveo2BXpK4K9DXE39Z/g1nQzwTqgN8diXxwRuN +Ge97lBWup4vP1TV8nyHW2AppgFVuPynO+XWfZUuCUzxNseB+XOyeqitoM4uvSNax +DQmokjIf4qXC/46EnJ/fd9Ydz4GVQ4TYyxwNCBJK39RdUOcUtyI+A3IbZ+vt2HIV +eiIN2BhdnwbvNTbPs9nc9McM2NtACqDGQsIzRdXcQ8SFDP2DnTVjGu5E8H9dnVrd +FcuUnA9TIbfBkRHOS7yoDHOo4j28g6xePDV5tK0L5C2yyDh+bwWnO5AIg/gdpnuH +wxIZUxFwkD4GvOVtj5Y4W5L+Uy3c94stMPbHE+zGN75DdQRy5aVbDjWqXRB9AEQN ++NSb526oqhv0JyYlZmCqz2ydBxkT4FsShZv/34pkRr3qL5FSTAQTXQAZdiQQbMTe +H3zKyu4GbEUV9WsyriqSq27ptMwFfIqN1NdsWeVWN1mXf2KZDn61EgleeQXmdSZu +XM4Z1n98xjYDwdCkF738j+oRAlSUThBeU/hYbH6Ysff6ON9MPBAAKy3ZxM5tF86e +l0x20lpND2QLLDZbsg/LrCrE6ZzpWkXn4w4PG4lWMAqph0BebSkFqXvUvuds3c39 +yptNH3FsyqeyM9kDwbDpBQAvpsDIQJfwAbQPLAiQJhpbixZyG9lqhkKOhYTZhU3l +ufFtnLEj/5G9a8A//MFrXsXePUeBDEzjtEcjPGNxe0ZkuOgYx11Zc0R4oLI7LoHO +07vtw4qCH4hztCJ5+JOUac6sGcILFRc4vSQQ15Cg5QEdBiSbQ/yo1P0hbNtSvnwO +-----END RSA PRIVATE KEY-----` + testKeyPassphrase = "goisfun" ) func removeFileFn(filename string) func() { @@ -443,3 +474,180 @@ func TestComposingConfigurationProvider_MultipleFilesNoConf(t *testing.T) { assert.Error(t, e) } } + +func TestComposingConfigurationProvider_FirstConfigWrong(t *testing.T) { + dataTpl0 := `` + dataTpl := `[DEFAULT] +user=someuser +fingerprint=somefingerprint +key_file=%s +tenancy=sometenancy +compartment = somecompartment +region=someregion +` + + keyFile := writeTempFile(testPrivateKeyConf) + data := fmt.Sprintf(dataTpl, keyFile) + tmpConfFile0 := writeTempFile(dataTpl0) + tmpConfFile := writeTempFile(data) + + defer removeFileFn(tmpConfFile) + defer removeFileFn(tmpConfFile0) + defer removeFileFn(keyFile) + + c0, _ := ConfigurationProviderFromFile(tmpConfFile0, "") + c1, _ := ConfigurationProviderFromFile("/dev/nowhere", "") + p0 := ConfigurationProviderEnvironmentVariables("OCI", os.Getenv("BLAH")) + c, _ := ConfigurationProviderFromFile(tmpConfFile, "") + + provider, ec := ComposingConfigurationProvider([]ConfigurationProvider{p0, c0, c1, c}) + assert.NoError(t, ec) + ok, err := IsConfigurationProviderValid(provider) + assert.NoError(t, err) + assert.True(t, ok) + + fns := []func() (string, error){provider.TenancyOCID, provider.UserOCID, provider.KeyFingerprint} + + for _, fn := range fns { + val, e := fn() + assert.NoError(t, e) + assert.NotEmpty(t, val) + } + key, _ := provider.PrivateRSAKey() + assert.NotNil(t, key) +} + +func TestComposingConfigurationProvider_NilConfiguration(t *testing.T) { + dataTpl := `[DEFAULT] +user=someuser +fingerprint=somefingerprint +key_file=%s +tenancy=sometenancy +compartment = somecompartment +region=someregion +` + + keyFile := writeTempFile(testPrivateKeyConf) + data := fmt.Sprintf(dataTpl, keyFile) + tmpConfFile := writeTempFile(data) + + defer removeFileFn(tmpConfFile) + defer removeFileFn(keyFile) + + c1, _ := ConfigurationProviderFromFile("/dev/nowhere", "") + p0 := ConfigurationProviderEnvironmentVariables("OCI", os.Getenv("BLAH")) + c, _ := ConfigurationProviderFromFile(tmpConfFile, "") + + _, ec := ComposingConfigurationProvider([]ConfigurationProvider{p0, nil, c1, c}) + assert.Error(t, ec) +} + +func TestComposingConfigurationProvider_WithEncryptedKeyPassphraseInConfig(t *testing.T) { + dataTpl := `[DEFAULT] +user=someuser +fingerprint=somefingerprint +key_file=%s +tenancy=sometenancy +compartment = somecompartment +region=someregion +passphrase=%s +` + + keyFile := writeTempFile(testEncryptedPrivateKeyConf) + data := fmt.Sprintf(dataTpl, keyFile, testKeyPassphrase) + tmpConfFile := writeTempFile(data) + + defer removeFileFn(tmpConfFile) + defer removeFileFn(keyFile) + + provider, err := ConfigurationProviderFromFile(tmpConfFile, "") + assert.NoError(t, err) + ok, err := IsConfigurationProviderValid(provider) + assert.NoError(t, err) + assert.True(t, ok) + + fns := []func() (string, error){provider.TenancyOCID, provider.UserOCID, provider.KeyFingerprint} + + for _, fn := range fns { + val, e := fn() + assert.NoError(t, e) + assert.NotEmpty(t, val) + } + + key, err := provider.PrivateRSAKey() + assert.NoError(t, err) + assert.NotNil(t, key) +} + +func TestComposingConfigurationProvider_WithEncryptedKeyOverridePassphrase(t *testing.T) { + dataTpl := `[DEFAULT] +user=someuser +fingerprint=somefingerprint +key_file=%s +tenancy=sometenancy +compartment = somecompartment +region=someregion +passphrase=%s +` + + keyFile := writeTempFile(testEncryptedPrivateKeyConf) + data := fmt.Sprintf(dataTpl, keyFile, "thewrongpassphrase") + tmpConfFile := writeTempFile(data) + + defer removeFileFn(tmpConfFile) + defer removeFileFn(keyFile) + + provider, err := ConfigurationProviderFromFile(tmpConfFile, testKeyPassphrase) + assert.NoError(t, err) + ok, err := IsConfigurationProviderValid(provider) + assert.NoError(t, err) + assert.True(t, ok) + + fns := []func() (string, error){provider.TenancyOCID, provider.UserOCID, provider.KeyFingerprint} + + for _, fn := range fns { + val, e := fn() + assert.NoError(t, e) + assert.NotEmpty(t, val) + } + + key, err := provider.PrivateRSAKey() + assert.NoError(t, err) + assert.NotNil(t, key) +} + +func TestComposingConfigurationProvider_WithEncryptedKeyNoConfig(t *testing.T) { + dataTpl := `[DEFAULT] +user=someuser +fingerprint=somefingerprint +key_file=%s +tenancy=sometenancy +compartment = somecompartment +region=someregion +` + + keyFile := writeTempFile(testEncryptedPrivateKeyConf) + data := fmt.Sprintf(dataTpl, keyFile) + tmpConfFile := writeTempFile(data) + + defer removeFileFn(tmpConfFile) + defer removeFileFn(keyFile) + + provider, err := ConfigurationProviderFromFile(tmpConfFile, testKeyPassphrase) + assert.NoError(t, err) + ok, err := IsConfigurationProviderValid(provider) + assert.NoError(t, err) + assert.True(t, ok) + + fns := []func() (string, error){provider.TenancyOCID, provider.UserOCID, provider.KeyFingerprint} + + for _, fn := range fns { + val, e := fn() + assert.NoError(t, e) + assert.NotEmpty(t, val) + } + + key, err := provider.PrivateRSAKey() + assert.NoError(t, err) + assert.NotNil(t, key) +} 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 5e75ed4b30..6ab659cb20 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/http.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/http.go @@ -269,11 +269,34 @@ func addToQuery(request *http.Request, value reflect.Value, field reflect.Struct //if not mandatory and nil. Omit if !mandatory && isNil(value) { - Debugf("Query parameter value is not mandatory and is nil pointer in field: %s. Skipping header", field.Name) + Debugf("Query parameter value is not mandatory and is nil pointer in field: %s. Skipping query", field.Name) return } - if queryParameterValue, e = toStringValue(value, field); e != nil { + encoding := strings.ToLower(field.Tag.Get("collectionFormat")) + switch encoding { + case "csv": + if value.Kind() != reflect.Slice && value.Kind() != reflect.Array { + e = fmt.Errorf("query paramater is tagged as csv yet its type is neither an Array nor a Slice: %s", field.Name) + break + } + + numOfElements := value.Len() + stringValues := make([]string, numOfElements) + for i := 0; i < numOfElements; i++ { + stringValues[i], e = toStringValue(value.Index(i), field) + if e != nil { + break + } + } + queryParameterValue = strings.Join(stringValues, ",") + case "": + queryParameterValue, e = toStringValue(value, field) + default: + e = fmt.Errorf("encoding of type %s is not supported for query param: %s", encoding, field.Name) + } + + if e != nil { return } @@ -301,6 +324,11 @@ func addToPath(request *http.Request, value reflect.Value, field reflect.StructF return fmt.Errorf("can not marshal to path in request for field %s. Due to %s", field.Name, e.Error()) } + // path should not be empty for any operations + if len(additionalURLPathPart) == 0 { + return fmt.Errorf("value cannot be empty for field %s in path", field.Name) + } + if request.URL == nil { request.URL = &url.URL{} request.URL.Path = "" 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 66f89ea84f..c3e475946e 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 @@ -28,9 +28,10 @@ type TestupdateUserDetails struct { } type listCompartmentsRequest struct { - CompartmentID string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - Page string `mandatory:"false" contributesTo:"query" name:"page"` - Limit int32 `mandatory:"false" contributesTo:"query" name:"limit"` + CompartmentID string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + Page string `mandatory:"false" contributesTo:"query" name:"page"` + Limit int32 `mandatory:"false" contributesTo:"query" name:"limit"` + Fields []string `mandatory:"true" contributesTo:"query" name:"fields" collectionFormat:"csv"` } type updateUserRequest struct { @@ -69,13 +70,15 @@ func TestHttpMarshallerInvalidStruct(t *testing.T) { } func TestHttpRequestMarshallerQuery(t *testing.T) { - s := listCompartmentsRequest{CompartmentID: "ocid1", Page: "p", Limit: 23} + s := listCompartmentsRequest{CompartmentID: "ocid1", Page: "p", Limit: 23, Fields: []string{"one", "two", "three"}} request := MakeDefaultHTTPRequest(http.MethodPost, "/") - HTTPRequestMarshaller(s, &request) + e := HTTPRequestMarshaller(s, &request) query := request.URL.Query() + assert.NoError(t, e) assert.True(t, query.Get("compartmentId") == "ocid1") assert.True(t, query.Get("page") == "p") assert.True(t, query.Get("limit") == "23") + assert.True(t, query.Get("fields") == "one,two,three") } func TestMakeDefault(t *testing.T) { @@ -116,20 +119,72 @@ func TestHttpMarshallerSimpleBody(t *testing.T) { if val, ok := content["description"]; !ok || val != desc { assert.Fail(t, "Should contain: "+desc) } +} + +func TestHttpMarshallerEmptyPath(t *testing.T) { + type testData struct { + userID string + httpMethod string + expectError bool + } + + testDataSet := []testData{ + { + userID: "id1", + httpMethod: http.MethodGet, + expectError: false, + }, + { + userID: "", + httpMethod: http.MethodGet, + expectError: true, + }, + { + userID: "", + httpMethod: http.MethodPut, + expectError: true, + }, + { + userID: "", + httpMethod: http.MethodHead, + expectError: true, + }, + { + userID: "", + httpMethod: http.MethodDelete, + expectError: true, + }, + { + userID: "", + httpMethod: http.MethodPost, + expectError: true, + }, + } + for _, testData := range testDataSet { + // user id contributes to path + s := updateUserRequest{UserID: testData.userID} + request := MakeDefaultHTTPRequest(testData.httpMethod, "/") + err := HTTPRequestMarshaller(s, &request) + assert.Equal(t, testData.expectError, err != nil) + } } func TestHttpMarshalerAll(t *testing.T) { desc := "theDescription" + type inc string + includes := []inc{inc("One"), inc("Two")} + s := struct { ID string `contributesTo:"path"` Name string `contributesTo:"query" name:"name"` When *SDKTime `contributesTo:"query" name:"when"` Income float32 `contributesTo:"query" name:"income"` + Include []inc `contributesTo:"query" name:"includes" collectionFormat:"csv"` Male bool `contributesTo:"header" name:"male"` Details TestupdateUserDetails `contributesTo:"body"` }{ - "101", "tapir", now(), 3.23, true, TestupdateUserDetails{Description: desc}, + "101", "tapir", now(), 3.23, includes, true, TestupdateUserDetails{Description: desc}, } request := MakeDefaultHTTPRequest(http.MethodPost, "/") e := HTTPRequestMarshaller(s, &request) @@ -142,6 +197,7 @@ func TestHttpMarshalerAll(t *testing.T) { assert.True(t, request.URL.Query().Get("name") == s.Name) assert.True(t, request.URL.Query().Get("income") == strconv.FormatFloat(float64(s.Income), 'f', 6, 32)) assert.True(t, request.URL.Query().Get("when") == when) + assert.True(t, request.URL.Query().Get("includes") == "One,Two") assert.Contains(t, content, "description") assert.Equal(t, request.Header.Get("Content-Type"), "application/json") if val, ok := content["description"]; !ok || val != desc { @@ -630,6 +686,34 @@ func TestEmptyQueryParam(t *testing.T) { assert.NotContains(t, r.URL.RawQuery, "meta") } +type responseWithWrongCsvType struct { + Meta string `contributesTo:"query" omitEmpty:"true" name:"meta"` + QParam string `contributesTo:"query" omitEmpty:"false" name:"qp"` + QParam2 string `contributesTo:"query" name:"qp2"` + QParam3 map[string]string `contributesTo:"query" name:"qp2" collectionFormat:"csv"` +} + +func TestWrongTypeQueryParamEncodingWrongType(t *testing.T) { + m := make(map[string]string) + m["one"] = "one" + s := responseWithWrongCsvType{QParam3: m} + _, err := MakeDefaultHTTPRequestWithTaggedStruct("GET", "/", s) + assert.Error(t, err) +} + +type responseUnsupportedQueryEncoding struct { + Meta string `contributesTo:"query" omitEmpty:"true" name:"meta"` + QParam string `contributesTo:"query" omitEmpty:"false" name:"qp"` + QParam2 string `contributesTo:"query" name:"qp2"` + QParam3 []string `contributesTo:"query" name:"qp2" collectionFormat:"xml"` +} + +func TestWrongTypeQueryParamWrongEncoding(t *testing.T) { + s := responseUnsupportedQueryEncoding{QParam3: []string{"one ", "two"}} + _, err := MakeDefaultHTTPRequestWithTaggedStruct("GET", "/", s) + assert.Error(t, err) +} + func TestOmitFieldsInJson_SimpleStruct(t *testing.T) { type Nested struct { N *string `mandatory:"false" json:"n"` 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 be610d1704..291ab9b5ad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/version.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/version.go @@ -11,7 +11,7 @@ import ( const ( major = "1" - minor = "0" + minor = "2" patch = "0" tag = "" ) 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 827108d2ff..aef264dab3 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 @@ -25,6 +25,9 @@ type AttachIScsiVolumeDetails struct { // 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 the attachment was created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + // Whether to use CHAP authentication for the volume attachment. Defaults to false. UseChap *bool `mandatory:"false" json:"useChap"` } @@ -39,6 +42,11 @@ func (m AttachIScsiVolumeDetails) GetInstanceId() *string { return m.InstanceId } +//GetIsReadOnly returns IsReadOnly +func (m AttachIScsiVolumeDetails) GetIsReadOnly() *bool { + return m.IsReadOnly +} + //GetVolumeId returns VolumeId func (m AttachIScsiVolumeDetails) GetVolumeId() *string { return m.VolumeId diff --git a/vendor/github.com/oracle/oci-go-sdk/core/attach_paravirtualized_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/attach_paravirtualized_volume_details.go new file mode 100644 index 0000000000..e5ab65e74c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/attach_paravirtualized_volume_details.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 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 ( + "encoding/json" + "github.com/oracle/oci-go-sdk/common" +) + +// AttachParavirtualizedVolumeDetails The representation of AttachParavirtualizedVolumeDetails +type AttachParavirtualizedVolumeDetails 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 the attachment was created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` +} + +//GetDisplayName returns DisplayName +func (m AttachParavirtualizedVolumeDetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetInstanceId returns InstanceId +func (m AttachParavirtualizedVolumeDetails) GetInstanceId() *string { + return m.InstanceId +} + +//GetIsReadOnly returns IsReadOnly +func (m AttachParavirtualizedVolumeDetails) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetVolumeId returns VolumeId +func (m AttachParavirtualizedVolumeDetails) GetVolumeId() *string { + return m.VolumeId +} + +func (m AttachParavirtualizedVolumeDetails) String() string { + return common.PointerString(m) +} + +// MarshalJSON marshals to json representation +func (m AttachParavirtualizedVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAttachParavirtualizedVolumeDetails AttachParavirtualizedVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAttachParavirtualizedVolumeDetails + }{ + "paravirtualized", + (MarshalTypeAttachParavirtualizedVolumeDetails)(m), + } + + return json.Marshal(&s) +} 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 414fc9c3ab..81a2efe972 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 @@ -24,6 +24,9 @@ type AttachVolumeDetails interface { // A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information. GetDisplayName() *string + + // Whether the attachment was created in read-only mode. + GetIsReadOnly() *bool } type attachvolumedetails struct { @@ -31,6 +34,7 @@ type attachvolumedetails struct { InstanceId *string `mandatory:"true" json:"instanceId"` VolumeId *string `mandatory:"true" json:"volumeId"` DisplayName *string `mandatory:"false" json:"displayName"` + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` Type string `json:"type"` } @@ -48,6 +52,7 @@ func (m *attachvolumedetails) UnmarshalJSON(data []byte) error { m.InstanceId = s.Model.InstanceId m.VolumeId = s.Model.VolumeId m.DisplayName = s.Model.DisplayName + m.IsReadOnly = s.Model.IsReadOnly m.Type = s.Model.Type return err @@ -61,6 +66,10 @@ func (m *attachvolumedetails) UnmarshalPolymorphicJSON(data []byte) (interface{} mm := AttachIScsiVolumeDetails{} err = json.Unmarshal(data, &mm) return mm, err + case "paravirtualized": + mm := AttachParavirtualizedVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err default: return m, nil } @@ -81,6 +90,11 @@ func (m attachvolumedetails) GetDisplayName() *string { return m.DisplayName } +//GetIsReadOnly returns IsReadOnly +func (m attachvolumedetails) GetIsReadOnly() *bool { + return m.IsReadOnly +} + func (m attachvolumedetails) String() string { return common.PointerString(m) } 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 9fb153ec63..e2c0fd248a 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 @@ -18,8 +18,19 @@ type CaptureConsoleHistoryDetails struct { // The OCID of the instance to get the console history from. InstanceId *string `mandatory:"true" json:"instanceId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m CaptureConsoleHistoryDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/core/connect_remote_peering_connections_details.go b/vendor/github.com/oracle/oci-go-sdk/core/connect_remote_peering_connections_details.go new file mode 100644 index 0000000000..b0e853964b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/connect_remote_peering_connections_details.go @@ -0,0 +1,28 @@ +// Copyright (c) 2016, 2018, 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" +) + +// ConnectRemotePeeringConnectionsDetails Information about the other remote peering connection (RPC). +type ConnectRemotePeeringConnectionsDetails struct { + + // The OCID of the RPC you want to peer with. + PeerId *string `mandatory:"true" json:"peerId"` + + // The name of the region that contains the RPC you want to peer with. + // Example: `us-ashburn-1` + PeerRegionName *string `mandatory:"true" json:"peerRegionName"` +} + +func (m ConnectRemotePeeringConnectionsDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/connect_remote_peering_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/connect_remote_peering_connections_request_response.go new file mode 100644 index 0000000000..fa4f68a543 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/connect_remote_peering_connections_request_response.go @@ -0,0 +1,38 @@ +// 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" +) + +// ConnectRemotePeeringConnectionsRequest wrapper for the ConnectRemotePeeringConnections operation +type ConnectRemotePeeringConnectionsRequest struct { + + // The OCID of the remote peering connection (RPC). + RemotePeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"remotePeeringConnectionId"` + + // Details to connect peering connection with peering connection from remote region + ConnectRemotePeeringConnectionsDetails `contributesTo:"body"` +} + +func (request ConnectRemotePeeringConnectionsRequest) String() string { + return common.PointerString(request) +} + +// ConnectRemotePeeringConnectionsResponse wrapper for the ConnectRemotePeeringConnections operation +type ConnectRemotePeeringConnectionsResponse 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 ConnectRemotePeeringConnectionsResponse) String() string { + 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 27b9d760a1..15b94724ef 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 @@ -37,10 +37,21 @@ type ConsoleHistory struct { // Example: `2016-08-25T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m ConsoleHistory) String() string { 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 4b49fcaff8..962a68c13c 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 @@ -109,6 +109,26 @@ func (client BlockstorageClient) CreateVolumeBackup(ctx context.Context, request return } +// CreateVolumeBackupPolicyAssignment Assigns a policy to the specified asset, such as a volume. Note that a given asset can +// only have one policy assigned to it; if this method is called for an asset that previously +// has a different policy assigned, the prior assignment will be silently deleted. +func (client BlockstorageClient) CreateVolumeBackupPolicyAssignment(ctx context.Context, request CreateVolumeBackupPolicyAssignmentRequest) (response CreateVolumeBackupPolicyAssignmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/volumeBackupPolicyAssignments", request) + if err != nil { + 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). @@ -169,6 +189,24 @@ func (client BlockstorageClient) DeleteVolumeBackup(ctx context.Context, request return } +// DeleteVolumeBackupPolicyAssignment Deletes a volume backup policy assignment (i.e. unassigns the policy from an asset). +func (client BlockstorageClient) DeleteVolumeBackupPolicyAssignment(ctx context.Context, request DeleteVolumeBackupPolicyAssignmentRequest) (response DeleteVolumeBackupPolicyAssignmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/volumeBackupPolicyAssignments/{policyAssignmentId}", request) + if err != nil { + 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) @@ -223,6 +261,62 @@ func (client BlockstorageClient) GetVolumeBackup(ctx context.Context, request Ge return } +// GetVolumeBackupPolicy Gets information for the specified volume backup policy. +func (client BlockstorageClient) GetVolumeBackupPolicy(ctx context.Context, request GetVolumeBackupPolicyRequest) (response GetVolumeBackupPolicyResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeBackupPolicies/{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 +} + +// GetVolumeBackupPolicyAssetAssignment Gets the volume backup policy assignment for the specified asset. Note that the +// assetId query parameter is required, and that the returned list will contain at most +// one item (since any given asset can only have one policy assigned to it). +func (client BlockstorageClient) GetVolumeBackupPolicyAssetAssignment(ctx context.Context, request GetVolumeBackupPolicyAssetAssignmentRequest) (response GetVolumeBackupPolicyAssetAssignmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeBackupPolicyAssignments", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetVolumeBackupPolicyAssignment Gets information for the specified volume backup policy assignment. +func (client BlockstorageClient) GetVolumeBackupPolicyAssignment(ctx context.Context, request GetVolumeBackupPolicyAssignmentRequest) (response GetVolumeBackupPolicyAssignmentResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeBackupPolicyAssignments/{policyAssignmentId}", request) + if err != nil { + 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) @@ -241,6 +335,24 @@ func (client BlockstorageClient) ListBootVolumes(ctx context.Context, request Li return } +// ListVolumeBackupPolicies Lists all volume backup policies available to the caller. +func (client BlockstorageClient) ListVolumeBackupPolicies(ctx context.Context, request ListVolumeBackupPoliciesRequest) (response ListVolumeBackupPoliciesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeBackupPolicies", request) + if err != nil { + 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) 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 34b17d7b9e..7bb2641f5b 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 @@ -164,7 +164,7 @@ func (client ComputeClient) CaptureConsoleHistory(ctx context.Context, request C // 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) + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/images", request) if err != nil { return } @@ -554,6 +554,7 @@ func (client ComputeClient) InstanceAction(ctx context.Context, request Instance // 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. +// To launch an instance using an image or a boot volume use the `sourceDetails` parameter in LaunchInstanceDetails. // 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 @@ -624,7 +625,7 @@ func (client ComputeClient) ListConsoleHistories(ctx context.Context, request Li // 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) + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/images", request) if err != nil { return } @@ -736,7 +737,8 @@ func (m *listvolumeattachment) UnmarshalPolymorphicJSON(data []byte) (interface{ // 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. +// Currently, the only supported volume attachment type are IScsiVolumeAttachment and +// ParavirtualizedVolumeAttachment. func (client ComputeClient) ListVolumeAttachments(ctx context.Context, request ListVolumeAttachmentsRequest) (response ListVolumeAttachmentsResponse, err error) { httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/volumeAttachments/", request) if err != nil { 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 2888effffc..ee8d9f7ca0 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 @@ -110,6 +110,30 @@ func (client VirtualNetworkClient) ConnectLocalPeeringGateways(ctx context.Conte return } +// ConnectRemotePeeringConnections Connects this RPC to another one in a different 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 RPCs 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) ConnectRemotePeeringConnections(ctx context.Context, request ConnectRemotePeeringConnectionsRequest) (response ConnectRemotePeeringConnectionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/remotePeeringConnections/{remotePeeringConnectionId}/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 @@ -392,6 +416,57 @@ func (client VirtualNetworkClient) CreatePrivateIp(ctx context.Context, request return } +// CreatePublicIp Creates a public IP. Use the `lifetime` property to specify whether it's an ephemeral or +// reserved public IP. For information about limits on how many you can create, see +// Public IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm). +// * **For an ephemeral public IP:** You must also specify a `privateIpId` with the OCID of +// the primary private IP you want to assign the public IP to. The public IP is created in +// the same Availability Domain as the private IP. An ephemeral public IP must always be +// assigned to a private IP, and only to the *primary* private IP on a VNIC, not a secondary +// private IP. +// * **For a reserved public IP:** You may also optionally assign the public IP to a private +// IP by specifying `privateIpId`. Or you can later assign the public IP with +// UpdatePublicIp. +// **Note:** When assigning a public IP to a private IP, the private IP must not already have +// a public IP with `lifecycleState` = ASSIGNING or ASSIGNED. If it does, an error is returned. +// Also, for reserved public IPs, the optional assignment part of this operation is +// asynchronous. Poll the public IP's `lifecycleState` to determine if the assignment +// succeeded. +func (client VirtualNetworkClient) CreatePublicIp(ctx context.Context, request CreatePublicIpRequest) (response CreatePublicIpResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/publicIps", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateRemotePeeringConnection Creates a new remote peering connection (RPC) for the specified DRG. +func (client VirtualNetworkClient) CreateRemotePeeringConnection(ctx context.Context, request CreateRemotePeeringConnectionRequest) (response CreateRemotePeeringConnectionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/remotePeeringConnections", request) + if err != nil { + 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 @@ -780,6 +855,52 @@ func (client VirtualNetworkClient) DeletePrivateIp(ctx context.Context, request return } +// DeletePublicIp Unassigns and deletes the specified public IP (either ephemeral or reserved). +// You must specify the object's OCID. The public IP address is returned to the +// Oracle Cloud Infrastructure public IP pool. +// For an assigned reserved public IP, the initial unassignment portion of this operation +// is asynchronous. Poll the public IP's `lifecycleState` to determine +// if the operation succeeded. +// If you want to simply unassign a reserved public IP and return it to your pool +// of reserved public IPs, instead use +// UpdatePublicIp. +func (client VirtualNetworkClient) DeletePublicIp(ctx context.Context, request DeletePublicIpRequest) (response DeletePublicIpResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/publicIps/{publicIpId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteRemotePeeringConnection Deletes the remote peering connection (RPC). +// This is an asynchronous operation; the RPC's `lifecycleState` changes to TERMINATING temporarily +// until the RPC is completely removed. +func (client VirtualNetworkClient) DeleteRemotePeeringConnection(ctx context.Context, request DeleteRemotePeeringConnectionRequest) (response DeleteRemotePeeringConnectionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/remotePeeringConnections/{remotePeeringConnectionId}", request) + if err != nil { + 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 @@ -1160,6 +1281,97 @@ func (client VirtualNetworkClient) GetPrivateIp(ctx context.Context, request Get return } +// GetPublicIp Gets the specified public IP. You must specify the object's OCID. +// Alternatively, you can get the object by using GetPublicIpByIpAddress +// with the public IP address (for example, 129.146.2.1). +// Or you can use GetPublicIpByPrivateIpId +// with the OCID of the private IP that the public IP is assigned to. +// **Note:** If you're fetching a reserved public IP that is in the process of being +// moved to a different private IP, the service returns the public IP object with +// `lifecycleState` = ASSIGNING and `privateIpId` = OCID of the target private IP. +func (client VirtualNetworkClient) GetPublicIp(ctx context.Context, request GetPublicIpRequest) (response GetPublicIpResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/publicIps/{publicIpId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetPublicIpByIpAddress Gets the public IP based on the public IP address (for example, 129.146.2.1). +// **Note:** If you're fetching a reserved public IP that is in the process of being +// moved to a different private IP, the service returns the public IP object with +// `lifecycleState` = ASSIGNING and `privateIpId` = OCID of the target private IP. +func (client VirtualNetworkClient) GetPublicIpByIpAddress(ctx context.Context, request GetPublicIpByIpAddressRequest) (response GetPublicIpByIpAddressResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/publicIps/actions/getByIpAddress", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetPublicIpByPrivateIpId Gets the public IP assigned to the specified private IP. You must specify the OCID +// of the private IP. If no public IP is assigned, a 404 is returned. +// **Note:** If you're fetching a reserved public IP that is in the process of being +// moved to a different private IP, and you provide the OCID of the original private +// IP, this operation returns a 404. If you instead provide the OCID of the target +// private IP, or if you instead call +// GetPublicIp or +// GetPublicIpByIpAddress, the +// service returns the public IP object with `lifecycleState` = ASSIGNING and `privateIpId` = OCID +// of the target private IP. +func (client VirtualNetworkClient) GetPublicIpByPrivateIpId(ctx context.Context, request GetPublicIpByPrivateIpIdRequest) (response GetPublicIpByPrivateIpIdResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/publicIps/actions/getByPrivateIpId", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetRemotePeeringConnection Get the specified remote peering connection's information. +func (client VirtualNetworkClient) GetRemotePeeringConnection(ctx context.Context, request GetRemotePeeringConnectionRequest) (response GetRemotePeeringConnectionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/remotePeeringConnections/{remotePeeringConnectionId}", request) + if err != nil { + 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) @@ -1271,6 +1483,25 @@ func (client VirtualNetworkClient) GetVnic(ctx context.Context, request GetVnicR return } +// ListAllowedPeerRegionsForRemotePeering Lists the regions that support remote VCN peering (which is peering across regions). +// For more information, see VCN Peering (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/VCNpeering.htm). +func (client VirtualNetworkClient) ListAllowedPeerRegionsForRemotePeering(ctx context.Context, request ListAllowedPeerRegionsForRemotePeeringRequest) (response ListAllowedPeerRegionsForRemotePeeringResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/allowedPeerRegionsForRemotePeering", request) + if err != nil { + 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) @@ -1548,6 +1779,49 @@ func (client VirtualNetworkClient) ListPrivateIps(ctx context.Context, request L return } +// ListPublicIps Lists either the ephemeral or reserved PublicIp objects +// in the specified compartment. +// To list your reserved public IPs, set `scope` = `REGION`, and leave the +// `availabilityDomain` parameter empty. +// To list your ephemeral public IPs, set `scope` = `AVAILABILITY_DOMAIN`, and set the +// `availabilityDomain` parameter to the desired Availability Domain. An ephemeral public IP +// is always in the same Availability Domain and compartment as the private IP it's assigned to. +func (client VirtualNetworkClient) ListPublicIps(ctx context.Context, request ListPublicIpsRequest) (response ListPublicIpsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/publicIps", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListRemotePeeringConnections Lists the remote peering connections (RPCs) for the specified DRG and compartment +// (the RPC's compartment). +func (client VirtualNetworkClient) ListRemotePeeringConnections(ctx context.Context, request ListRemotePeeringConnectionsRequest) (response ListRemotePeeringConnectionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/remotePeeringConnections", request) + if err != nil { + 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. @@ -1873,6 +2147,73 @@ func (client VirtualNetworkClient) UpdatePrivateIp(ctx context.Context, request return } +// UpdatePublicIp Updates the specified public IP. You must specify the object's OCID. Use this operation if you want to: +// * Assign a reserved public IP in your pool to a private IP. +// * Move a reserved public IP to a different private IP. +// * Unassign a reserved public IP from a private IP (which returns it to your pool +// of reserved public IPs). +// * Change the display name for a public IP (either ephemeral or reserved). +// Assigning, moving, and unassigning a reserved public IP are asynchronous +// operations. Poll the public IP's `lifecycleState` to determine if the operation +// succeeded. +// **Note:** When moving a reserved public IP, the target private IP +// must not already have a public IP with `lifecycleState` = ASSIGNING or ASSIGNED. If it +// does, an error is returned. Also, the initial unassignment from the original +// private IP always succeeds, but the assignment to the target private IP is asynchronous and +// could fail silently (for example, if the target private IP is deleted or has a different public IP +// assigned to it in the interim). If that occurs, the public IP remains unassigned and its +// `lifecycleState` switches to AVAILABLE (it is not reassigned to its original private IP). +// You must poll the public IP's `lifecycleState` to determine if the move succeeded. +// Regarding ephemeral public IPs: +// * If you want to assign an ephemeral public IP to a primary private IP, use +// CreatePublicIp. +// * You can't move an ephemeral public IP to a different private IP. +// * If you want to unassign an ephemeral public IP from its private IP, use +// DeletePublicIp, which +// unassigns and deletes the ephemeral public IP. +// **Note:** If a public IP (either ephemeral or reserved) is assigned to a secondary private +// IP (see PrivateIp), and you move that secondary +// private IP to another VNIC, the public IP moves with it. +// **Note:** There's a limit to the number of PublicIp +// a VNIC or instance can have. If you try to move a reserved public IP +// to a VNIC or instance that has already reached its public IP limit, an error is +// returned. For information about the public IP limits, see +// Public IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm). +func (client VirtualNetworkClient) UpdatePublicIp(ctx context.Context, request UpdatePublicIpRequest) (response UpdatePublicIpResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/publicIps/{publicIpId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateRemotePeeringConnection Updates the specified remote peering connection (RPC). +func (client VirtualNetworkClient) UpdateRemotePeeringConnection(ctx context.Context, request UpdateRemotePeeringConnectionRequest) (response UpdateRemotePeeringConnectionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/remotePeeringConnections/{remotePeeringConnectionId}", request) + if err != nil { + 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. 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 a29660b37e..2e4f5bf56e 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 @@ -25,8 +25,19 @@ type CreateDhcpDetails struct { // The OCID of the VCN the set of DHCP options belongs to. VcnId *string `mandatory:"true" json:"vcnId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m CreateDhcpDetails) String() string { @@ -36,17 +47,21 @@ func (m CreateDhcpDetails) String() string { // 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"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + CompartmentId *string `json:"compartmentId"` + Options []dhcpoption `json:"options"` + VcnId *string `json:"vcnId"` }{} e = json.Unmarshal(data, &model) if e != nil { return } + m.DefinedTags = model.DefinedTags m.DisplayName = model.DisplayName + m.FreeformTags = model.FreeformTags m.CompartmentId = model.CompartmentId m.Options = make([]DhcpOption, len(model.Options)) for i, n := range model.Options { 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 6a482ea012..05f50ca54f 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 @@ -19,17 +19,34 @@ 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"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // 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"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // 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"` + + // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: + // * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images. + // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. + // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. + LaunchMode CreateImageDetailsLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` } func (m CreateImageDetails) String() string { @@ -39,23 +56,54 @@ func (m CreateImageDetails) String() string { // 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"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + ImageSourceDetails imagesourcedetails `json:"imageSourceDetails"` + InstanceId *string `json:"instanceId"` + LaunchMode CreateImageDetailsLaunchModeEnum `json:"launchMode"` + CompartmentId *string `json:"compartmentId"` }{} e = json.Unmarshal(data, &model) if e != nil { return } + m.DefinedTags = model.DefinedTags m.DisplayName = model.DisplayName + m.FreeformTags = model.FreeformTags nn, e := model.ImageSourceDetails.UnmarshalPolymorphicJSON(model.ImageSourceDetails.JsonData) if e != nil { return } - m.ImageSourceDetails = nn + m.ImageSourceDetails = nn.(ImageSourceDetails) m.InstanceId = model.InstanceId + m.LaunchMode = model.LaunchMode m.CompartmentId = model.CompartmentId return } + +// CreateImageDetailsLaunchModeEnum Enum with underlying type: string +type CreateImageDetailsLaunchModeEnum string + +// Set of constants representing the allowable values for CreateImageDetailsLaunchMode +const ( + CreateImageDetailsLaunchModeNative CreateImageDetailsLaunchModeEnum = "NATIVE" + CreateImageDetailsLaunchModeEmulated CreateImageDetailsLaunchModeEnum = "EMULATED" + CreateImageDetailsLaunchModeCustom CreateImageDetailsLaunchModeEnum = "CUSTOM" +) + +var mappingCreateImageDetailsLaunchMode = map[string]CreateImageDetailsLaunchModeEnum{ + "NATIVE": CreateImageDetailsLaunchModeNative, + "EMULATED": CreateImageDetailsLaunchModeEmulated, + "CUSTOM": CreateImageDetailsLaunchModeCustom, +} + +// GetCreateImageDetailsLaunchModeEnumValues Enumerates the set of values for CreateImageDetailsLaunchMode +func GetCreateImageDetailsLaunchModeEnumValues() []CreateImageDetailsLaunchModeEnum { + values := make([]CreateImageDetailsLaunchModeEnum, 0) + for _, v := range mappingCreateImageDetailsLaunchMode { + values = append(values, v) + } + return values +} 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 3d3225bf7c..d96f91be2e 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 @@ -21,6 +21,17 @@ type CreateInstanceConsoleConnectionDetails struct { // The SSH public key used to authenticate the console connection. PublicKey *string `mandatory:"true" json:"publicKey"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m CreateInstanceConsoleConnectionDetails) String() string { 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 b9da8cc514..8b117499d8 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 @@ -19,10 +19,21 @@ type CreatePrivateIpDetails struct { // must be in the same subnet. VnicId *string `mandatory:"true" json:"vnicId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid // entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // 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`). diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_public_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_public_ip_details.go new file mode 100644 index 0000000000..31600cc95d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_public_ip_details.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, 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" +) + +// CreatePublicIpDetails The representation of CreatePublicIpDetails +type CreatePublicIpDetails struct { + + // The OCID of the compartment to contain the public IP. For ephemeral public IPs, + // you must set this to the private IP's compartment OCID. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Defines when the public IP is deleted and released back to the Oracle Cloud + // Infrastructure public IP pool. For more information, see + // Public IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm). + Lifetime CreatePublicIpDetailsLifetimeEnum `mandatory:"true" json:"lifetime"` + + // 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 private IP to assign the public IP to. + // Required for an ephemeral public IP because it must always be assigned to a private IP + // (specifically a *primary* private IP). + // Optional for a reserved public IP. If you don't provide it, the public IP is created but not + // assigned to a private IP. You can later assign the public IP with + // UpdatePublicIp. + PrivateIpId *string `mandatory:"false" json:"privateIpId"` +} + +func (m CreatePublicIpDetails) String() string { + return common.PointerString(m) +} + +// CreatePublicIpDetailsLifetimeEnum Enum with underlying type: string +type CreatePublicIpDetailsLifetimeEnum string + +// Set of constants representing the allowable values for CreatePublicIpDetailsLifetime +const ( + CreatePublicIpDetailsLifetimeEphemeral CreatePublicIpDetailsLifetimeEnum = "EPHEMERAL" + CreatePublicIpDetailsLifetimeReserved CreatePublicIpDetailsLifetimeEnum = "RESERVED" +) + +var mappingCreatePublicIpDetailsLifetime = map[string]CreatePublicIpDetailsLifetimeEnum{ + "EPHEMERAL": CreatePublicIpDetailsLifetimeEphemeral, + "RESERVED": CreatePublicIpDetailsLifetimeReserved, +} + +// GetCreatePublicIpDetailsLifetimeEnumValues Enumerates the set of values for CreatePublicIpDetailsLifetime +func GetCreatePublicIpDetailsLifetimeEnumValues() []CreatePublicIpDetailsLifetimeEnum { + values := make([]CreatePublicIpDetailsLifetimeEnum, 0) + for _, v := range mappingCreatePublicIpDetailsLifetime { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_public_ip_request_response.go new file mode 100644 index 0000000000..7c00a0a10e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_public_ip_request_response.go @@ -0,0 +1,48 @@ +// 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" +) + +// CreatePublicIpRequest wrapper for the CreatePublicIp operation +type CreatePublicIpRequest struct { + + // Create public IP details. + CreatePublicIpDetails `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 CreatePublicIpRequest) String() string { + return common.PointerString(request) +} + +// CreatePublicIpResponse wrapper for the CreatePublicIp operation +type CreatePublicIpResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The PublicIp instance + PublicIp `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 CreatePublicIpResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_remote_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_remote_peering_connection_details.go new file mode 100644 index 0000000000..e8f7c1d382 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_remote_peering_connection_details.go @@ -0,0 +1,31 @@ +// Copyright (c) 2016, 2018, 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" +) + +// CreateRemotePeeringConnectionDetails The representation of CreateRemotePeeringConnectionDetails +type CreateRemotePeeringConnectionDetails struct { + + // The OCID of the compartment to contain the RPC. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the DRG the RPC belongs to. + DrgId *string `mandatory:"true" json:"drgId"` + + // 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 CreateRemotePeeringConnectionDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_remote_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_remote_peering_connection_request_response.go new file mode 100644 index 0000000000..d93c4ddc57 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_remote_peering_connection_request_response.go @@ -0,0 +1,48 @@ +// 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" +) + +// CreateRemotePeeringConnectionRequest wrapper for the CreateRemotePeeringConnection operation +type CreateRemotePeeringConnectionRequest struct { + + // Request to create peering connection to remote region + CreateRemotePeeringConnectionDetails `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 CreateRemotePeeringConnectionRequest) String() string { + return common.PointerString(request) +} + +// CreateRemotePeeringConnectionResponse wrapper for the CreateRemotePeeringConnection operation +type CreateRemotePeeringConnectionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RemotePeeringConnection instance + RemotePeeringConnection `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 CreateRemotePeeringConnectionResponse) String() string { + 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 8f3005acd8..7d793362bc 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 @@ -24,8 +24,19 @@ type CreateRouteTableDetails struct { // The OCID of the VCN the route table belongs to. VcnId *string `mandatory:"true" json:"vcnId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m CreateRouteTableDetails) String() string { 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 06d4c4ec98..05329e995d 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 @@ -27,8 +27,19 @@ type CreateSecurityListDetails struct { // The OCID of the VCN the security list belongs to. VcnId *string `mandatory:"true" json:"vcnId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m CreateSecurityListDetails) String() string { 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 bc50b2add1..4fd691c148 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 @@ -29,6 +29,11 @@ type CreateSubnetDetails struct { // The OCID of the VCN to contain the subnet. VcnId *string `mandatory:"true" json:"vcnId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // 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"` @@ -49,6 +54,12 @@ type CreateSubnetDetails struct { // Example: `subnet123` DnsLabel *string `mandatory:"false" json:"dnsLabel"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // 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 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 70eb2c2408..24d63771d1 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 @@ -22,6 +22,11 @@ type CreateVcnDetails struct { // The OCID of the compartment to contain the VCN. CompartmentId *string `mandatory:"true" json:"compartmentId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` @@ -38,6 +43,12 @@ type CreateVcnDetails struct { // 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m CreateVcnDetails) String() string { 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 c92cd1a5c5..d652d4c935 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 @@ -32,9 +32,14 @@ type CreateVnicDetails struct { // 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 + // on the VNIC. For more information, see // IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPaddresses.htm). + // **Note:** There's a limit to the number of PublicIp + // a VNIC or instance can have. If you try to create a secondary VNIC + // with an assigned public IP for an instance that has already + // reached its public IP limit, an error is returned. For information + // about the public IP limits, see + // Public IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm). // Example: `false` AssignPublicIp *bool `mandatory:"false" json:"assignPublicIp"` 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 8a1907cb08..8b77838092 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 @@ -18,11 +18,48 @@ type CreateVolumeBackupDetails struct { // The OCID of the volume that needs to be backed up. VolumeId *string `mandatory:"true" json:"volumeId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The type of backup to create. If omitted, defaults to INCREMENTAL. + Type CreateVolumeBackupDetailsTypeEnum `mandatory:"false" json:"type,omitempty"` } func (m CreateVolumeBackupDetails) String() string { return common.PointerString(m) } + +// CreateVolumeBackupDetailsTypeEnum Enum with underlying type: string +type CreateVolumeBackupDetailsTypeEnum string + +// Set of constants representing the allowable values for CreateVolumeBackupDetailsType +const ( + CreateVolumeBackupDetailsTypeFull CreateVolumeBackupDetailsTypeEnum = "FULL" + CreateVolumeBackupDetailsTypeIncremental CreateVolumeBackupDetailsTypeEnum = "INCREMENTAL" +) + +var mappingCreateVolumeBackupDetailsType = map[string]CreateVolumeBackupDetailsTypeEnum{ + "FULL": CreateVolumeBackupDetailsTypeFull, + "INCREMENTAL": CreateVolumeBackupDetailsTypeIncremental, +} + +// GetCreateVolumeBackupDetailsTypeEnumValues Enumerates the set of values for CreateVolumeBackupDetailsType +func GetCreateVolumeBackupDetailsTypeEnumValues() []CreateVolumeBackupDetailsTypeEnum { + values := make([]CreateVolumeBackupDetailsTypeEnum, 0) + for _, v := range mappingCreateVolumeBackupDetailsType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_policy_assignment_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_policy_assignment_details.go new file mode 100644 index 0000000000..7c97c03b81 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_policy_assignment_details.go @@ -0,0 +1,27 @@ +// Copyright (c) 2016, 2018, 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" +) + +// CreateVolumeBackupPolicyAssignmentDetails The representation of CreateVolumeBackupPolicyAssignmentDetails +type CreateVolumeBackupPolicyAssignmentDetails struct { + + // The OCID of the asset (e.g. a volume) to which to assign the policy. + AssetId *string `mandatory:"true" json:"assetId"` + + // The OCID of the volume backup policy to assign to an asset. + PolicyId *string `mandatory:"true" json:"policyId"` +} + +func (m CreateVolumeBackupPolicyAssignmentDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_policy_assignment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_policy_assignment_request_response.go new file mode 100644 index 0000000000..1430cdda3a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_policy_assignment_request_response.go @@ -0,0 +1,41 @@ +// 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" +) + +// CreateVolumeBackupPolicyAssignmentRequest wrapper for the CreateVolumeBackupPolicyAssignment operation +type CreateVolumeBackupPolicyAssignmentRequest struct { + + // Request to assign a specified policy to a particular asset. + CreateVolumeBackupPolicyAssignmentDetails `contributesTo:"body"` +} + +func (request CreateVolumeBackupPolicyAssignmentRequest) String() string { + return common.PointerString(request) +} + +// CreateVolumeBackupPolicyAssignmentResponse wrapper for the CreateVolumeBackupPolicyAssignment operation +type CreateVolumeBackupPolicyAssignmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The VolumeBackupPolicyAssignment instance + VolumeBackupPolicyAssignment `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 CreateVolumeBackupPolicyAssignmentResponse) String() string { + 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 492c815fb0..222d43c477 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 @@ -23,10 +23,25 @@ type CreateVolumeDetails struct { // The OCID of the compartment that contains the volume. CompartmentId *string `mandatory:"true" json:"compartmentId"` + // If provided, specifies the ID of the volume backup policy to assign to the newly + // created volume. If omitted, no policy will be assigned. + BackupPolicyId *string `mandatory:"false" json:"backupPolicyId"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // The size of the volume in GBs. SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` @@ -52,27 +67,33 @@ func (m CreateVolumeDetails) String() string { // 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"` + BackupPolicyId *string `json:"backupPolicyId"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + 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.BackupPolicyId = model.BackupPolicyId + m.DefinedTags = model.DefinedTags m.DisplayName = model.DisplayName + m.FreeformTags = model.FreeformTags m.SizeInGBs = model.SizeInGBs m.SizeInMBs = model.SizeInMBs nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) if e != nil { return } - m.SourceDetails = nn + m.SourceDetails = nn.(VolumeSourceDetails) m.VolumeBackupId = model.VolumeBackupId m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId 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 6994c13208..e6f7b90bcf 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 @@ -11,7 +11,7 @@ import ( // DeletePrivateIpRequest wrapper for the DeletePrivateIp operation type DeletePrivateIpRequest struct { - // The private IP's OCID. + // The OCID of the private IP. 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` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_public_ip_request_response.go new file mode 100644 index 0000000000..c9fdeb713b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_public_ip_request_response.go @@ -0,0 +1,40 @@ +// 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" +) + +// DeletePublicIpRequest wrapper for the DeletePublicIp operation +type DeletePublicIpRequest struct { + + // The OCID of the public IP. + PublicIpId *string `mandatory:"true" contributesTo:"path" name:"publicIpId"` + + // 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 DeletePublicIpRequest) String() string { + return common.PointerString(request) +} + +// DeletePublicIpResponse wrapper for the DeletePublicIp operation +type DeletePublicIpResponse 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 DeletePublicIpResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_remote_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_remote_peering_connection_request_response.go new file mode 100644 index 0000000000..2583b91e86 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_remote_peering_connection_request_response.go @@ -0,0 +1,40 @@ +// 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" +) + +// DeleteRemotePeeringConnectionRequest wrapper for the DeleteRemotePeeringConnection operation +type DeleteRemotePeeringConnectionRequest struct { + + // The OCID of the remote peering connection (RPC). + RemotePeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"remotePeeringConnectionId"` + + // 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 DeleteRemotePeeringConnectionRequest) String() string { + return common.PointerString(request) +} + +// DeleteRemotePeeringConnectionResponse wrapper for the DeleteRemotePeeringConnection operation +type DeleteRemotePeeringConnectionResponse 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 DeleteRemotePeeringConnectionResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_backup_policy_assignment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_backup_policy_assignment_request_response.go new file mode 100644 index 0000000000..21c26bca41 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_backup_policy_assignment_request_response.go @@ -0,0 +1,40 @@ +// 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" +) + +// DeleteVolumeBackupPolicyAssignmentRequest wrapper for the DeleteVolumeBackupPolicyAssignment operation +type DeleteVolumeBackupPolicyAssignmentRequest struct { + + // The OCID of the volume backup policy assignment. + PolicyAssignmentId *string `mandatory:"true" contributesTo:"path" name:"policyAssignmentId"` + + // 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 DeleteVolumeBackupPolicyAssignmentRequest) String() string { + return common.PointerString(request) +} + +// DeleteVolumeBackupPolicyAssignmentResponse wrapper for the DeleteVolumeBackupPolicyAssignment operation +type DeleteVolumeBackupPolicyAssignmentResponse 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 DeleteVolumeBackupPolicyAssignmentResponse) String() string { + return common.PointerString(response) +} 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 f96edd9956..d3ef25dbfd 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 @@ -45,9 +45,20 @@ type DhcpOptions struct { // The OCID of the VCN the set of DHCP options belongs to. VcnId *string `mandatory:"true" json:"vcnId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m DhcpOptions) String() string { @@ -57,20 +68,24 @@ func (m DhcpOptions) String() string { // 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"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + 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.DefinedTags = model.DefinedTags m.DisplayName = model.DisplayName + m.FreeformTags = model.FreeformTags m.CompartmentId = model.CompartmentId m.Id = model.Id m.LifecycleState = model.LifecycleState 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 778c771bff..00ccfbd8fe 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 @@ -11,7 +11,7 @@ import ( // GetPrivateIpRequest wrapper for the GetPrivateIp operation type GetPrivateIpRequest struct { - // The private IP's OCID. + // The OCID of the private IP. PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_ip_address_details.go b/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_ip_address_details.go new file mode 100644 index 0000000000..2588958179 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_ip_address_details.go @@ -0,0 +1,25 @@ +// Copyright (c) 2016, 2018, 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" +) + +// GetPublicIpByIpAddressDetails IP address of the public IP. +type GetPublicIpByIpAddressDetails struct { + + // The public IP address. + // Example: 129.146.2.1 + IpAddress *string `mandatory:"true" json:"ipAddress"` +} + +func (m GetPublicIpByIpAddressDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_ip_address_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_ip_address_request_response.go new file mode 100644 index 0000000000..fb6c765fd3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_ip_address_request_response.go @@ -0,0 +1,41 @@ +// 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" +) + +// GetPublicIpByIpAddressRequest wrapper for the GetPublicIpByIpAddress operation +type GetPublicIpByIpAddressRequest struct { + + // IP address details for fetching the public IP. + GetPublicIpByIpAddressDetails `contributesTo:"body"` +} + +func (request GetPublicIpByIpAddressRequest) String() string { + return common.PointerString(request) +} + +// GetPublicIpByIpAddressResponse wrapper for the GetPublicIpByIpAddress operation +type GetPublicIpByIpAddressResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The PublicIp instance + PublicIp `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 GetPublicIpByIpAddressResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_private_ip_id_details.go b/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_private_ip_id_details.go new file mode 100644 index 0000000000..5957dfe91b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_private_ip_id_details.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, 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" +) + +// GetPublicIpByPrivateIpIdDetails Details of the private IP that the public IP is assigned to. +type GetPublicIpByPrivateIpIdDetails struct { + + // OCID of the private IP. + PrivateIpId *string `mandatory:"true" json:"privateIpId"` +} + +func (m GetPublicIpByPrivateIpIdDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_private_ip_id_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_private_ip_id_request_response.go new file mode 100644 index 0000000000..df81af6a4e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_private_ip_id_request_response.go @@ -0,0 +1,41 @@ +// 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" +) + +// GetPublicIpByPrivateIpIdRequest wrapper for the GetPublicIpByPrivateIpId operation +type GetPublicIpByPrivateIpIdRequest struct { + + // Private IP details for fetching the public IP. + GetPublicIpByPrivateIpIdDetails `contributesTo:"body"` +} + +func (request GetPublicIpByPrivateIpIdRequest) String() string { + return common.PointerString(request) +} + +// GetPublicIpByPrivateIpIdResponse wrapper for the GetPublicIpByPrivateIpId operation +type GetPublicIpByPrivateIpIdResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The PublicIp instance + PublicIp `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 GetPublicIpByPrivateIpIdResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_request_response.go new file mode 100644 index 0000000000..1f71f4db1f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_request_response.go @@ -0,0 +1,41 @@ +// 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" +) + +// GetPublicIpRequest wrapper for the GetPublicIp operation +type GetPublicIpRequest struct { + + // The OCID of the public IP. + PublicIpId *string `mandatory:"true" contributesTo:"path" name:"publicIpId"` +} + +func (request GetPublicIpRequest) String() string { + return common.PointerString(request) +} + +// GetPublicIpResponse wrapper for the GetPublicIp operation +type GetPublicIpResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The PublicIp instance + PublicIp `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 GetPublicIpResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_remote_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_remote_peering_connection_request_response.go new file mode 100644 index 0000000000..85be8d9951 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_remote_peering_connection_request_response.go @@ -0,0 +1,41 @@ +// 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" +) + +// GetRemotePeeringConnectionRequest wrapper for the GetRemotePeeringConnection operation +type GetRemotePeeringConnectionRequest struct { + + // The OCID of the remote peering connection (RPC). + RemotePeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"remotePeeringConnectionId"` +} + +func (request GetRemotePeeringConnectionRequest) String() string { + return common.PointerString(request) +} + +// GetRemotePeeringConnectionResponse wrapper for the GetRemotePeeringConnection operation +type GetRemotePeeringConnectionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RemotePeeringConnection instance + RemotePeeringConnection `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 GetRemotePeeringConnectionResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_asset_assignment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_asset_assignment_request_response.go new file mode 100644 index 0000000000..d25bfc4789 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_asset_assignment_request_response.go @@ -0,0 +1,50 @@ +// 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" +) + +// GetVolumeBackupPolicyAssetAssignmentRequest wrapper for the GetVolumeBackupPolicyAssetAssignment operation +type GetVolumeBackupPolicyAssetAssignmentRequest struct { + + // The OCID of an asset (e.g. a volume). + AssetId *string `mandatory:"true" contributesTo:"query" name:"assetId"` + + // 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 GetVolumeBackupPolicyAssetAssignmentRequest) String() string { + return common.PointerString(request) +} + +// GetVolumeBackupPolicyAssetAssignmentResponse wrapper for the GetVolumeBackupPolicyAssetAssignment operation +type GetVolumeBackupPolicyAssetAssignmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []VolumeBackupPolicyAssignment instance + Items []VolumeBackupPolicyAssignment `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 GetVolumeBackupPolicyAssetAssignmentResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_assignment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_assignment_request_response.go new file mode 100644 index 0000000000..708b8ac420 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_assignment_request_response.go @@ -0,0 +1,41 @@ +// 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" +) + +// GetVolumeBackupPolicyAssignmentRequest wrapper for the GetVolumeBackupPolicyAssignment operation +type GetVolumeBackupPolicyAssignmentRequest struct { + + // The OCID of the volume backup policy assignment. + PolicyAssignmentId *string `mandatory:"true" contributesTo:"path" name:"policyAssignmentId"` +} + +func (request GetVolumeBackupPolicyAssignmentRequest) String() string { + return common.PointerString(request) +} + +// GetVolumeBackupPolicyAssignmentResponse wrapper for the GetVolumeBackupPolicyAssignment operation +type GetVolumeBackupPolicyAssignmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The VolumeBackupPolicyAssignment instance + VolumeBackupPolicyAssignment `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 GetVolumeBackupPolicyAssignmentResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_request_response.go new file mode 100644 index 0000000000..cf32aa5f6c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_request_response.go @@ -0,0 +1,41 @@ +// 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" +) + +// GetVolumeBackupPolicyRequest wrapper for the GetVolumeBackupPolicy operation +type GetVolumeBackupPolicyRequest struct { + + // The OCID of the volume backup policy. + PolicyId *string `mandatory:"true" contributesTo:"path" name:"policyId"` +} + +func (request GetVolumeBackupPolicyRequest) String() string { + return common.PointerString(request) +} + +// GetVolumeBackupPolicyResponse wrapper for the GetVolumeBackupPolicy operation +type GetVolumeBackupPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The VolumeBackupPolicy instance + VolumeBackupPolicy `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 GetVolumeBackupPolicyResponse) String() string { + 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 107ab34f37..a9fc10166b 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 @@ -53,6 +53,9 @@ type IScsiVolumeAttachment struct { // Example: `My volume attachment` DisplayName *string `mandatory:"false" json:"displayName"` + // Whether the attachment was created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + // 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` @@ -91,6 +94,11 @@ func (m IScsiVolumeAttachment) GetInstanceId() *string { return m.InstanceId } +//GetIsReadOnly returns IsReadOnly +func (m IScsiVolumeAttachment) GetIsReadOnly() *bool { + return m.IsReadOnly +} + //GetLifecycleState returns LifecycleState func (m IScsiVolumeAttachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { return m.LifecycleState 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 250a1af1c2..c4e87ea0b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/image.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/image.go @@ -47,17 +47,65 @@ type Image struct { // The OCID of the image originally used to launch the instance. BaseImageId *string `mandatory:"false" json:"baseImageId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: + // * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images. + // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. + // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. + LaunchMode ImageLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` + + LaunchOptions *LaunchOptions `mandatory:"false" json:"launchOptions"` + + // Image size (1 MB = 1048576 bytes) + // Example: `47694` + SizeInMBs *int `mandatory:"false" json:"sizeInMBs"` } func (m Image) String() string { return common.PointerString(m) } +// ImageLaunchModeEnum Enum with underlying type: string +type ImageLaunchModeEnum string + +// Set of constants representing the allowable values for ImageLaunchMode +const ( + ImageLaunchModeNative ImageLaunchModeEnum = "NATIVE" + ImageLaunchModeEmulated ImageLaunchModeEnum = "EMULATED" + ImageLaunchModeCustom ImageLaunchModeEnum = "CUSTOM" +) + +var mappingImageLaunchMode = map[string]ImageLaunchModeEnum{ + "NATIVE": ImageLaunchModeNative, + "EMULATED": ImageLaunchModeEmulated, + "CUSTOM": ImageLaunchModeCustom, +} + +// GetImageLaunchModeEnumValues Enumerates the set of values for ImageLaunchMode +func GetImageLaunchModeEnumValues() []ImageLaunchModeEnum { + values := make([]ImageLaunchModeEnum, 0) + for _, v := range mappingImageLaunchMode { + values = append(values, v) + } + return values +} + // ImageLifecycleStateEnum Enum with underlying type: string type ImageLifecycleStateEnum string 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 ae8d32acb1..c2b66a58e7 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 @@ -15,11 +15,16 @@ import ( // ImageSourceDetails The representation of ImageSourceDetails type ImageSourceDetails interface { + + // The format of the image to be imported. Exported Oracle images are QCOW2. Only monolithic + // images are supported. + GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum } type imagesourcedetails struct { - JsonData []byte - SourceType string `json:"sourceType"` + JsonData []byte + SourceImageType ImageSourceDetailsSourceImageTypeEnum `mandatory:"false" json:"sourceImageType,omitempty"` + SourceType string `json:"sourceType"` } // UnmarshalJSON unmarshals json @@ -33,6 +38,7 @@ func (m *imagesourcedetails) UnmarshalJSON(data []byte) error { if err != nil { return err } + m.SourceImageType = s.Model.SourceImageType m.SourceType = s.Model.SourceType return err @@ -55,6 +61,34 @@ func (m *imagesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, } } +//GetSourceImageType returns SourceImageType +func (m imagesourcedetails) GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum { + return m.SourceImageType +} + func (m imagesourcedetails) String() string { return common.PointerString(m) } + +// ImageSourceDetailsSourceImageTypeEnum Enum with underlying type: string +type ImageSourceDetailsSourceImageTypeEnum string + +// Set of constants representing the allowable values for ImageSourceDetailsSourceImageType +const ( + ImageSourceDetailsSourceImageTypeQcow2 ImageSourceDetailsSourceImageTypeEnum = "QCOW2" + ImageSourceDetailsSourceImageTypeVmdk ImageSourceDetailsSourceImageTypeEnum = "VMDK" +) + +var mappingImageSourceDetailsSourceImageType = map[string]ImageSourceDetailsSourceImageTypeEnum{ + "QCOW2": ImageSourceDetailsSourceImageTypeQcow2, + "VMDK": ImageSourceDetailsSourceImageTypeVmdk, +} + +// GetImageSourceDetailsSourceImageTypeEnumValues Enumerates the set of values for ImageSourceDetailsSourceImageType +func GetImageSourceDetailsSourceImageTypeEnumValues() []ImageSourceDetailsSourceImageTypeEnum { + values := make([]ImageSourceDetailsSourceImageTypeEnum, 0) + for _, v := range mappingImageSourceDetailsSourceImageType { + values = append(values, v) + } + return values +} 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 61eddb488e..a07592a1fb 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 @@ -24,6 +24,15 @@ type ImageSourceViaObjectStorageTupleDetails struct { // The Object Storage name for the image. ObjectName *string `mandatory:"true" json:"objectName"` + + // The format of the image to be imported. Exported Oracle images are QCOW2. Only monolithic + // images are supported. + SourceImageType ImageSourceDetailsSourceImageTypeEnum `mandatory:"false" json:"sourceImageType,omitempty"` +} + +//GetSourceImageType returns SourceImageType +func (m ImageSourceViaObjectStorageTupleDetails) GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum { + return m.SourceImageType } func (m ImageSourceViaObjectStorageTupleDetails) String() string { 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 e65376d4df..6f5a04fc95 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 @@ -18,6 +18,15 @@ type ImageSourceViaObjectStorageUriDetails struct { // The Object Storage URL for the image. SourceUri *string `mandatory:"true" json:"sourceUri"` + + // The format of the image to be imported. Exported Oracle images are QCOW2. Only monolithic + // images are supported. + SourceImageType ImageSourceDetailsSourceImageTypeEnum `mandatory:"false" json:"sourceImageType,omitempty"` +} + +//GetSourceImageType returns SourceImageType +func (m ImageSourceViaObjectStorageUriDetails) GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum { + return m.SourceImageType } func (m ImageSourceViaObjectStorageUriDetails) String() string { 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 afad7986f5..361c6295f1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/instance.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/instance.go @@ -48,6 +48,11 @@ type Instance struct { // Example: `2016-08-25T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. // Example: `My bare metal instance` @@ -58,6 +63,12 @@ type Instance struct { // 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"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // Deprecated. Use `sourceDetails` instead. ImageId *string `mandatory:"false" json:"imageId"` @@ -81,6 +92,14 @@ type Instance struct { // For more information about iPXE, see http://ipxe.org. IpxeScript *string `mandatory:"false" json:"ipxeScript"` + // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: + // * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images. + // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. + // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. + LaunchMode InstanceLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` + + LaunchOptions *LaunchOptions `mandatory:"false" json:"launchOptions"` + // Custom metadata that you provide. Metadata map[string]string `mandatory:"false" json:"metadata"` @@ -95,35 +114,43 @@ func (m Instance) String() string { // 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"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + ExtendedMetadata map[string]interface{} `json:"extendedMetadata"` + FreeformTags map[string]string `json:"freeformTags"` + ImageId *string `json:"imageId"` + IpxeScript *string `json:"ipxeScript"` + LaunchMode InstanceLaunchModeEnum `json:"launchMode"` + LaunchOptions *LaunchOptions `json:"launchOptions"` + 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.DefinedTags = model.DefinedTags m.DisplayName = model.DisplayName m.ExtendedMetadata = model.ExtendedMetadata + m.FreeformTags = model.FreeformTags m.ImageId = model.ImageId m.IpxeScript = model.IpxeScript + m.LaunchMode = model.LaunchMode + m.LaunchOptions = model.LaunchOptions m.Metadata = model.Metadata nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) if e != nil { return } - m.SourceDetails = nn + m.SourceDetails = nn.(InstanceSourceDetails) m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId m.Id = model.Id @@ -134,6 +161,31 @@ func (m *Instance) UnmarshalJSON(data []byte) (e error) { return } +// InstanceLaunchModeEnum Enum with underlying type: string +type InstanceLaunchModeEnum string + +// Set of constants representing the allowable values for InstanceLaunchMode +const ( + InstanceLaunchModeNative InstanceLaunchModeEnum = "NATIVE" + InstanceLaunchModeEmulated InstanceLaunchModeEnum = "EMULATED" + InstanceLaunchModeCustom InstanceLaunchModeEnum = "CUSTOM" +) + +var mappingInstanceLaunchMode = map[string]InstanceLaunchModeEnum{ + "NATIVE": InstanceLaunchModeNative, + "EMULATED": InstanceLaunchModeEmulated, + "CUSTOM": InstanceLaunchModeCustom, +} + +// GetInstanceLaunchModeEnumValues Enumerates the set of values for InstanceLaunchMode +func GetInstanceLaunchModeEnumValues() []InstanceLaunchModeEnum { + values := make([]InstanceLaunchModeEnum, 0) + for _, v := range mappingInstanceLaunchMode { + values = append(values, v) + } + return values +} + // InstanceLifecycleStateEnum Enum with underlying type: string type InstanceLifecycleStateEnum string 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 3dd2f61a44..a847f610cc 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 @@ -24,9 +24,20 @@ type InstanceConsoleConnection struct { // The SSH connection string for the console connection. ConnectionString *string `mandatory:"false" json:"connectionString"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // The SSH public key fingerprint for the console connection. Fingerprint *string `mandatory:"false" json:"fingerprint"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // The OCID of the console connection. Id *string `mandatory:"false" json:"id"` @@ -35,6 +46,10 @@ type InstanceConsoleConnection struct { // 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"` } func (m InstanceConsoleConnection) String() string { 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 3327d9ecfb..cb19cbd77f 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 @@ -18,6 +18,9 @@ type InstanceSourceViaImageDetails struct { // The OCID of the image used to boot the instance. ImageId *string `mandatory:"true" json:"imageId"` + + // The size of the boot volume in GBs. Minimum value is 50 GB and maximum value is 16384 GB (16TB). + BootVolumeSizeInGBs *int `mandatory:"false" json:"bootVolumeSizeInGBs"` } func (m InstanceSourceViaImageDetails) String() string { 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 c40c778ca8..292338cd5b 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 @@ -14,7 +14,7 @@ import ( ) // LaunchInstanceDetails Instance launch details. -// Use the sourceDetails parameter to specify whether a boot volume should be used for a new instance launch. +// Use the `sourceDetails` parameter to specify whether a boot volume or an image should be used to launch a new instance. type LaunchInstanceDetails struct { // The Availability Domain of the instance. @@ -33,6 +33,11 @@ type LaunchInstanceDetails struct { // the instance is launched. CreateVnicDetails *CreateVnicDetails `mandatory:"false" json:"createVnicDetails"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. // Example: `My bare metal instance` @@ -43,7 +48,13 @@ type LaunchInstanceDetails struct { // 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 + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Deprecated. Instead use `hostnameLabel` in // CreateVnicDetails. // If you provide both, the values must match. HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` @@ -119,6 +130,7 @@ type LaunchInstanceDetails struct { Metadata map[string]string `mandatory:"false" json:"metadata"` // Details for creating an instance. + // Use this parameter to specify whether a boot volume or an image should be used to launch a new instance. SourceDetails InstanceSourceDetails `mandatory:"false" json:"sourceDetails"` // Deprecated. Instead use `subnetId` in @@ -134,18 +146,20 @@ func (m LaunchInstanceDetails) String() string { // 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"` + CreateVnicDetails *CreateVnicDetails `json:"createVnicDetails"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + ExtendedMetadata map[string]interface{} `json:"extendedMetadata"` + FreeformTags map[string]string `json:"freeformTags"` + 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) @@ -153,8 +167,10 @@ func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { return } m.CreateVnicDetails = model.CreateVnicDetails + m.DefinedTags = model.DefinedTags m.DisplayName = model.DisplayName m.ExtendedMetadata = model.ExtendedMetadata + m.FreeformTags = model.FreeformTags m.HostnameLabel = model.HostnameLabel m.ImageId = model.ImageId m.IpxeScript = model.IpxeScript @@ -163,7 +179,7 @@ func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { if e != nil { return } - m.SourceDetails = nn + m.SourceDetails = nn.(InstanceSourceDetails) m.SubnetId = model.SubnetId m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId diff --git a/vendor/github.com/oracle/oci-go-sdk/core/launch_options.go b/vendor/github.com/oracle/oci-go-sdk/core/launch_options.go new file mode 100644 index 0000000000..c842a7c12a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/launch_options.go @@ -0,0 +1,151 @@ +// Copyright (c) 2016, 2018, 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" +) + +// LaunchOptions Options for tuning compatibility and performance of VM shapes. +type LaunchOptions struct { + + // Emulation type for volume. + // * `ISCSI` - ISCSI attached block storage device. This is the default for Boot Volumes and Remote Block + // Storage volumes on Oracle provided images. + // * `SCSI` - Emulated SCSI disk. + // * `IDE` - Emulated IDE disk. + // * `VFIO` - Direct attached Virtual Function storage. This is the default option for Local data + // volumes on Oracle provided images. + BootVolumeType LaunchOptionsBootVolumeTypeEnum `mandatory:"true" json:"bootVolumeType"` + + // Firmware used to boot VM. Select the option that matches your operating system. + // * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating + // systems that boot using MBR style bootloaders. + // * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the + // default for Oracle provided images. + Firmware LaunchOptionsFirmwareEnum `mandatory:"true" json:"firmware"` + + // Emulation type for NIC. + // * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. + // * `VFIO` - Direct attached Virtual Function network controller. Default for Oracle provided images. + NetworkType LaunchOptionsNetworkTypeEnum `mandatory:"true" json:"networkType"` + + // Emulation type for volume. + // * `ISCSI` - ISCSI attached block storage device. This is the default for Boot Volumes and Remote Block + // Storage volumes on Oracle provided images. + // * `SCSI` - Emulated SCSI disk. + // * `IDE` - Emulated IDE disk. + // * `VFIO` - Direct attached Virtual Function storage. This is the default option for Local data + // volumes on Oracle provided images. + RemoteDataVolumeType LaunchOptionsRemoteDataVolumeTypeEnum `mandatory:"true" json:"remoteDataVolumeType"` +} + +func (m LaunchOptions) String() string { + return common.PointerString(m) +} + +// LaunchOptionsBootVolumeTypeEnum Enum with underlying type: string +type LaunchOptionsBootVolumeTypeEnum string + +// Set of constants representing the allowable values for LaunchOptionsBootVolumeType +const ( + LaunchOptionsBootVolumeTypeIscsi LaunchOptionsBootVolumeTypeEnum = "ISCSI" + LaunchOptionsBootVolumeTypeScsi LaunchOptionsBootVolumeTypeEnum = "SCSI" + LaunchOptionsBootVolumeTypeIde LaunchOptionsBootVolumeTypeEnum = "IDE" + LaunchOptionsBootVolumeTypeVfio LaunchOptionsBootVolumeTypeEnum = "VFIO" +) + +var mappingLaunchOptionsBootVolumeType = map[string]LaunchOptionsBootVolumeTypeEnum{ + "ISCSI": LaunchOptionsBootVolumeTypeIscsi, + "SCSI": LaunchOptionsBootVolumeTypeScsi, + "IDE": LaunchOptionsBootVolumeTypeIde, + "VFIO": LaunchOptionsBootVolumeTypeVfio, +} + +// GetLaunchOptionsBootVolumeTypeEnumValues Enumerates the set of values for LaunchOptionsBootVolumeType +func GetLaunchOptionsBootVolumeTypeEnumValues() []LaunchOptionsBootVolumeTypeEnum { + values := make([]LaunchOptionsBootVolumeTypeEnum, 0) + for _, v := range mappingLaunchOptionsBootVolumeType { + values = append(values, v) + } + return values +} + +// LaunchOptionsFirmwareEnum Enum with underlying type: string +type LaunchOptionsFirmwareEnum string + +// Set of constants representing the allowable values for LaunchOptionsFirmware +const ( + LaunchOptionsFirmwareBios LaunchOptionsFirmwareEnum = "BIOS" + LaunchOptionsFirmwareUefi64 LaunchOptionsFirmwareEnum = "UEFI_64" +) + +var mappingLaunchOptionsFirmware = map[string]LaunchOptionsFirmwareEnum{ + "BIOS": LaunchOptionsFirmwareBios, + "UEFI_64": LaunchOptionsFirmwareUefi64, +} + +// GetLaunchOptionsFirmwareEnumValues Enumerates the set of values for LaunchOptionsFirmware +func GetLaunchOptionsFirmwareEnumValues() []LaunchOptionsFirmwareEnum { + values := make([]LaunchOptionsFirmwareEnum, 0) + for _, v := range mappingLaunchOptionsFirmware { + values = append(values, v) + } + return values +} + +// LaunchOptionsNetworkTypeEnum Enum with underlying type: string +type LaunchOptionsNetworkTypeEnum string + +// Set of constants representing the allowable values for LaunchOptionsNetworkType +const ( + LaunchOptionsNetworkTypeE1000 LaunchOptionsNetworkTypeEnum = "E1000" + LaunchOptionsNetworkTypeVfio LaunchOptionsNetworkTypeEnum = "VFIO" +) + +var mappingLaunchOptionsNetworkType = map[string]LaunchOptionsNetworkTypeEnum{ + "E1000": LaunchOptionsNetworkTypeE1000, + "VFIO": LaunchOptionsNetworkTypeVfio, +} + +// GetLaunchOptionsNetworkTypeEnumValues Enumerates the set of values for LaunchOptionsNetworkType +func GetLaunchOptionsNetworkTypeEnumValues() []LaunchOptionsNetworkTypeEnum { + values := make([]LaunchOptionsNetworkTypeEnum, 0) + for _, v := range mappingLaunchOptionsNetworkType { + values = append(values, v) + } + return values +} + +// LaunchOptionsRemoteDataVolumeTypeEnum Enum with underlying type: string +type LaunchOptionsRemoteDataVolumeTypeEnum string + +// Set of constants representing the allowable values for LaunchOptionsRemoteDataVolumeType +const ( + LaunchOptionsRemoteDataVolumeTypeIscsi LaunchOptionsRemoteDataVolumeTypeEnum = "ISCSI" + LaunchOptionsRemoteDataVolumeTypeScsi LaunchOptionsRemoteDataVolumeTypeEnum = "SCSI" + LaunchOptionsRemoteDataVolumeTypeIde LaunchOptionsRemoteDataVolumeTypeEnum = "IDE" + LaunchOptionsRemoteDataVolumeTypeVfio LaunchOptionsRemoteDataVolumeTypeEnum = "VFIO" +) + +var mappingLaunchOptionsRemoteDataVolumeType = map[string]LaunchOptionsRemoteDataVolumeTypeEnum{ + "ISCSI": LaunchOptionsRemoteDataVolumeTypeIscsi, + "SCSI": LaunchOptionsRemoteDataVolumeTypeScsi, + "IDE": LaunchOptionsRemoteDataVolumeTypeIde, + "VFIO": LaunchOptionsRemoteDataVolumeTypeVfio, +} + +// GetLaunchOptionsRemoteDataVolumeTypeEnumValues Enumerates the set of values for LaunchOptionsRemoteDataVolumeType +func GetLaunchOptionsRemoteDataVolumeTypeEnumValues() []LaunchOptionsRemoteDataVolumeTypeEnum { + values := make([]LaunchOptionsRemoteDataVolumeTypeEnum, 0) + for _, v := range mappingLaunchOptionsRemoteDataVolumeType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_allowed_peer_regions_for_remote_peering_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_allowed_peer_regions_for_remote_peering_request_response.go new file mode 100644 index 0000000000..acd3be1dcb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_allowed_peer_regions_for_remote_peering_request_response.go @@ -0,0 +1,35 @@ +// 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" +) + +// ListAllowedPeerRegionsForRemotePeeringRequest wrapper for the ListAllowedPeerRegionsForRemotePeering operation +type ListAllowedPeerRegionsForRemotePeeringRequest struct { +} + +func (request ListAllowedPeerRegionsForRemotePeeringRequest) String() string { + return common.PointerString(request) +} + +// ListAllowedPeerRegionsForRemotePeeringResponse wrapper for the ListAllowedPeerRegionsForRemotePeering operation +type ListAllowedPeerRegionsForRemotePeeringResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []PeerRegionForRemotePeering instance + Items []PeerRegionForRemotePeering `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 ListAllowedPeerRegionsForRemotePeeringResponse) String() string { + 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 5ac8868609..1bfefa72aa 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 @@ -25,6 +25,9 @@ type ListImagesRequest struct { // Example: `7.2` OperatingSystemVersion *string `mandatory:"false" contributesTo:"query" name:"operatingSystemVersion"` + // Shape name. + Shape *string `mandatory:"false" contributesTo:"query" name:"shape"` + // The maximum number of items to return in a paginated "List" call. // Example: `500` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` 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 7054edfc3a..c99cbc2765 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 @@ -18,7 +18,7 @@ type ListPrivateIpsRequest struct { // 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. + // An IP address. // Example: `10.0.3.3` IpAddress *string `mandatory:"false" contributesTo:"query" name:"ipAddress"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_public_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_public_ips_request_response.go new file mode 100644 index 0000000000..58d0a15e41 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_public_ips_request_response.go @@ -0,0 +1,85 @@ +// 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" +) + +// ListPublicIpsRequest wrapper for the ListPublicIps operation +type ListPublicIpsRequest struct { + + // Whether the public IP is regional or specific to a particular Availability Domain. + // * `REGION`: The public IP exists within a region and can be assigned to a private IP + // in any Availability Domain in the region. Reserved public IPs have `scope` = `REGION`. + // * `AVAILABILITY_DOMAIN`: The public IP exists within the Availability Domain of the private IP + // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. + // Ephemeral public IPs have `scope` = `AVAILABILITY_DOMAIN`. + Scope ListPublicIpsScopeEnum `mandatory:"true" contributesTo:"query" name:"scope" 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"` + + // The name of the Availability Domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` +} + +func (request ListPublicIpsRequest) String() string { + return common.PointerString(request) +} + +// ListPublicIpsResponse wrapper for the ListPublicIps operation +type ListPublicIpsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []PublicIp instance + Items []PublicIp `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 ListPublicIpsResponse) String() string { + return common.PointerString(response) +} + +// ListPublicIpsScopeEnum Enum with underlying type: string +type ListPublicIpsScopeEnum string + +// Set of constants representing the allowable values for ListPublicIpsScope +const ( + ListPublicIpsScopeRegion ListPublicIpsScopeEnum = "REGION" + ListPublicIpsScopeAvailabilityDomain ListPublicIpsScopeEnum = "AVAILABILITY_DOMAIN" +) + +var mappingListPublicIpsScope = map[string]ListPublicIpsScopeEnum{ + "REGION": ListPublicIpsScopeRegion, + "AVAILABILITY_DOMAIN": ListPublicIpsScopeAvailabilityDomain, +} + +// GetListPublicIpsScopeEnumValues Enumerates the set of values for ListPublicIpsScope +func GetListPublicIpsScopeEnumValues() []ListPublicIpsScopeEnum { + values := make([]ListPublicIpsScopeEnum, 0) + for _, v := range mappingListPublicIpsScope { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_remote_peering_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_remote_peering_connections_request_response.go new file mode 100644 index 0000000000..a8bb8f8325 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_remote_peering_connections_request_response.go @@ -0,0 +1,51 @@ +// 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" +) + +// ListRemotePeeringConnectionsRequest wrapper for the ListRemotePeeringConnections operation +type ListRemotePeeringConnectionsRequest 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 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 ListRemotePeeringConnectionsRequest) String() string { + return common.PointerString(request) +} + +// ListRemotePeeringConnectionsResponse wrapper for the ListRemotePeeringConnections operation +type ListRemotePeeringConnectionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []RemotePeeringConnection instance + Items []RemotePeeringConnection `presentIn:"body"` + + // A pagination token to the start of the next page, if one exist. + 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 ListRemotePeeringConnectionsResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backup_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backup_policies_request_response.go new file mode 100644 index 0000000000..cada781599 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backup_policies_request_response.go @@ -0,0 +1,47 @@ +// 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" +) + +// ListVolumeBackupPoliciesRequest wrapper for the ListVolumeBackupPolicies operation +type ListVolumeBackupPoliciesRequest 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"` +} + +func (request ListVolumeBackupPoliciesRequest) String() string { + return common.PointerString(request) +} + +// ListVolumeBackupPoliciesResponse wrapper for the ListVolumeBackupPolicies operation +type ListVolumeBackupPoliciesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []VolumeBackupPolicy instance + Items []VolumeBackupPolicy `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 ListVolumeBackupPoliciesResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/paravirtualized_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/paravirtualized_volume_attachment.go new file mode 100644 index 0000000000..4325976207 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/paravirtualized_volume_attachment.go @@ -0,0 +1,112 @@ +// Copyright (c) 2016, 2018, 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 ( + "encoding/json" + "github.com/oracle/oci-go-sdk/common" +) + +// ParavirtualizedVolumeAttachment A paravirtualized volume attachment. +type ParavirtualizedVolumeAttachment 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"` + + // 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"` + + // Whether the attachment was created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + + // The current state of the volume attachment. + LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` +} + +//GetAvailabilityDomain returns AvailabilityDomain +func (m ParavirtualizedVolumeAttachment) GetAvailabilityDomain() *string { + return m.AvailabilityDomain +} + +//GetCompartmentId returns CompartmentId +func (m ParavirtualizedVolumeAttachment) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetDisplayName returns DisplayName +func (m ParavirtualizedVolumeAttachment) GetDisplayName() *string { + return m.DisplayName +} + +//GetId returns Id +func (m ParavirtualizedVolumeAttachment) GetId() *string { + return m.Id +} + +//GetInstanceId returns InstanceId +func (m ParavirtualizedVolumeAttachment) GetInstanceId() *string { + return m.InstanceId +} + +//GetIsReadOnly returns IsReadOnly +func (m ParavirtualizedVolumeAttachment) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetLifecycleState returns LifecycleState +func (m ParavirtualizedVolumeAttachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { + return m.LifecycleState +} + +//GetTimeCreated returns TimeCreated +func (m ParavirtualizedVolumeAttachment) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +//GetVolumeId returns VolumeId +func (m ParavirtualizedVolumeAttachment) GetVolumeId() *string { + return m.VolumeId +} + +func (m ParavirtualizedVolumeAttachment) String() string { + return common.PointerString(m) +} + +// MarshalJSON marshals to json representation +func (m ParavirtualizedVolumeAttachment) MarshalJSON() (buff []byte, e error) { + type MarshalTypeParavirtualizedVolumeAttachment ParavirtualizedVolumeAttachment + s := struct { + DiscriminatorParam string `json:"attachmentType"` + MarshalTypeParavirtualizedVolumeAttachment + }{ + "paravirtualized", + (MarshalTypeParavirtualizedVolumeAttachment)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/peer_region_for_remote_peering.go b/vendor/github.com/oracle/oci-go-sdk/core/peer_region_for_remote_peering.go new file mode 100644 index 0000000000..25a2c262f0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/peer_region_for_remote_peering.go @@ -0,0 +1,25 @@ +// Copyright (c) 2016, 2018, 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" +) + +// PeerRegionForRemotePeering Details about a region that supports remote VCN peering. For more information, see VCN Peering (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/VCNpeering.htm). +type PeerRegionForRemotePeering struct { + + // The region's name. + // Example: `us-phoenix-1` + Name *string `mandatory:"true" json:"name"` +} + +func (m PeerRegionForRemotePeering) String() string { + 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 7ae7b37a01..cd1a2468ce 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 @@ -44,10 +44,21 @@ type PrivateIp struct { // The OCID of the compartment containing the private IP. CompartmentId *string `mandatory:"false" json:"compartmentId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid // entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // 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`). diff --git a/vendor/github.com/oracle/oci-go-sdk/core/public_ip.go b/vendor/github.com/oracle/oci-go-sdk/core/public_ip.go new file mode 100644 index 0000000000..acd026e94d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/public_ip.go @@ -0,0 +1,160 @@ +// Copyright (c) 2016, 2018, 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" +) + +// PublicIp A *public IP* is a conceptual term that refers to a public IP address and related properties. +// The `publicIp` object is the API representation of a public IP. +// There are two types of public IPs: +// 1. Ephemeral +// 2. Reserved +// For more information and comparison of the two types, +// see Public IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm). +type PublicIp struct { + + // The public IP's Availability Domain. This property is set only for ephemeral public IPs + // (that is, when the `scope` of the public IP is set to AVAILABILITY_DOMAIN). The value + // is the Availability Domain of the assigned private IP. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID of the compartment containing the public IP. For an ephemeral public IP, this is + // the same compartment as the private IP's. For a reserved public IP that is currently assigned, + // this can be a different compartment than the assigned private IP's. + 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 public IP's Oracle ID (OCID). + Id *string `mandatory:"false" json:"id"` + + // The public IP address of the `publicIp` object. + // Example: `129.146.2.1` + IpAddress *string `mandatory:"false" json:"ipAddress"` + + // The public IP's current state. + LifecycleState PublicIpLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Defines when the public IP is deleted and released back to Oracle's public IP pool. + // * `EPHEMERAL`: The lifetime is tied to the lifetime of its assigned private IP. The + // ephemeral public IP is automatically deleted when its private IP is deleted, when + // the VNIC is terminated, or when the instance is terminated. An ephemeral + // public IP must always be assigned to a private IP. + // * `RESERVED`: You control the public IP's lifetime. You can delete a reserved public IP + // whenever you like. It does not need to be assigned to a private IP at all times. + // For more information and comparison of the two types, + // see Public IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm). + Lifetime PublicIpLifetimeEnum `mandatory:"false" json:"lifetime,omitempty"` + + // The OCID of the private IP that the public IP is currently assigned to, or in the + // process of being assigned to. + PrivateIpId *string `mandatory:"false" json:"privateIpId"` + + // Whether the public IP is regional or specific to a particular Availability Domain. + // * `REGION`: The public IP exists within a region and can be assigned to a private IP + // in any Availability Domain in the region. Reserved public IPs have `scope` = `REGION`. + // * `AVAILABILITY_DOMAIN`: The public IP exists within the Availability Domain of the private IP + // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. + // Ephemeral public IPs have `scope` = `AVAILABILITY_DOMAIN`. + Scope PublicIpScopeEnum `mandatory:"false" json:"scope,omitempty"` + + // The date and time the public IP was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m PublicIp) String() string { + return common.PointerString(m) +} + +// PublicIpLifecycleStateEnum Enum with underlying type: string +type PublicIpLifecycleStateEnum string + +// Set of constants representing the allowable values for PublicIpLifecycleState +const ( + PublicIpLifecycleStateProvisioning PublicIpLifecycleStateEnum = "PROVISIONING" + PublicIpLifecycleStateAvailable PublicIpLifecycleStateEnum = "AVAILABLE" + PublicIpLifecycleStateAssigning PublicIpLifecycleStateEnum = "ASSIGNING" + PublicIpLifecycleStateAssigned PublicIpLifecycleStateEnum = "ASSIGNED" + PublicIpLifecycleStateUnassigning PublicIpLifecycleStateEnum = "UNASSIGNING" + PublicIpLifecycleStateUnassigned PublicIpLifecycleStateEnum = "UNASSIGNED" + PublicIpLifecycleStateTerminating PublicIpLifecycleStateEnum = "TERMINATING" + PublicIpLifecycleStateTerminated PublicIpLifecycleStateEnum = "TERMINATED" +) + +var mappingPublicIpLifecycleState = map[string]PublicIpLifecycleStateEnum{ + "PROVISIONING": PublicIpLifecycleStateProvisioning, + "AVAILABLE": PublicIpLifecycleStateAvailable, + "ASSIGNING": PublicIpLifecycleStateAssigning, + "ASSIGNED": PublicIpLifecycleStateAssigned, + "UNASSIGNING": PublicIpLifecycleStateUnassigning, + "UNASSIGNED": PublicIpLifecycleStateUnassigned, + "TERMINATING": PublicIpLifecycleStateTerminating, + "TERMINATED": PublicIpLifecycleStateTerminated, +} + +// GetPublicIpLifecycleStateEnumValues Enumerates the set of values for PublicIpLifecycleState +func GetPublicIpLifecycleStateEnumValues() []PublicIpLifecycleStateEnum { + values := make([]PublicIpLifecycleStateEnum, 0) + for _, v := range mappingPublicIpLifecycleState { + values = append(values, v) + } + return values +} + +// PublicIpLifetimeEnum Enum with underlying type: string +type PublicIpLifetimeEnum string + +// Set of constants representing the allowable values for PublicIpLifetime +const ( + PublicIpLifetimeEphemeral PublicIpLifetimeEnum = "EPHEMERAL" + PublicIpLifetimeReserved PublicIpLifetimeEnum = "RESERVED" +) + +var mappingPublicIpLifetime = map[string]PublicIpLifetimeEnum{ + "EPHEMERAL": PublicIpLifetimeEphemeral, + "RESERVED": PublicIpLifetimeReserved, +} + +// GetPublicIpLifetimeEnumValues Enumerates the set of values for PublicIpLifetime +func GetPublicIpLifetimeEnumValues() []PublicIpLifetimeEnum { + values := make([]PublicIpLifetimeEnum, 0) + for _, v := range mappingPublicIpLifetime { + values = append(values, v) + } + return values +} + +// PublicIpScopeEnum Enum with underlying type: string +type PublicIpScopeEnum string + +// Set of constants representing the allowable values for PublicIpScope +const ( + PublicIpScopeRegion PublicIpScopeEnum = "REGION" + PublicIpScopeAvailabilityDomain PublicIpScopeEnum = "AVAILABILITY_DOMAIN" +) + +var mappingPublicIpScope = map[string]PublicIpScopeEnum{ + "REGION": PublicIpScopeRegion, + "AVAILABILITY_DOMAIN": PublicIpScopeAvailabilityDomain, +} + +// GetPublicIpScopeEnumValues Enumerates the set of values for PublicIpScope +func GetPublicIpScopeEnumValues() []PublicIpScopeEnum { + values := make([]PublicIpScopeEnum, 0) + for _, v := range mappingPublicIpScope { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/remote_peering_connection.go b/vendor/github.com/oracle/oci-go-sdk/core/remote_peering_connection.go new file mode 100644 index 0000000000..7de5c41fc1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/remote_peering_connection.go @@ -0,0 +1,123 @@ +// Copyright (c) 2016, 2018, 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" +) + +// RemotePeeringConnection A remote peering connection (RPC) is an object on a DRG that lets the VCN that is attached +// to the DRG peer with a VCN in a different 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 RemotePeeringConnection struct { + + // The OCID of the compartment that contains the RPC. + 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 DRG that this RPC belongs to. + DrgId *string `mandatory:"true" json:"drgId"` + + // The OCID of the RPC. + 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 RPC's current lifecycle state. + LifecycleState RemotePeeringConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Whether the RPC is peered with another RPC. `NEW` means the RPC has not yet been + // peered. `PENDING` means the peering is being established. `REVOKED` means the + // RPC at the other end of the peering has been deleted. + PeeringStatus RemotePeeringConnectionPeeringStatusEnum `mandatory:"true" json:"peeringStatus"` + + // The date and time the RPC was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // If this RPC is peered, this value is the OCID of the other RPC. + PeerId *string `mandatory:"false" json:"peerId"` + + // If this RPC is peered, this value is the region that contains the other RPC. + // Example: `us-ashburn-1` + PeerRegionName *string `mandatory:"false" json:"peerRegionName"` + + // If this RPC is peered, this value is the OCID of the other RPC's tenancy. + PeerTenancyId *string `mandatory:"false" json:"peerTenancyId"` +} + +func (m RemotePeeringConnection) String() string { + return common.PointerString(m) +} + +// RemotePeeringConnectionLifecycleStateEnum Enum with underlying type: string +type RemotePeeringConnectionLifecycleStateEnum string + +// Set of constants representing the allowable values for RemotePeeringConnectionLifecycleState +const ( + RemotePeeringConnectionLifecycleStateAvailable RemotePeeringConnectionLifecycleStateEnum = "AVAILABLE" + RemotePeeringConnectionLifecycleStateProvisioning RemotePeeringConnectionLifecycleStateEnum = "PROVISIONING" + RemotePeeringConnectionLifecycleStateTerminating RemotePeeringConnectionLifecycleStateEnum = "TERMINATING" + RemotePeeringConnectionLifecycleStateTerminated RemotePeeringConnectionLifecycleStateEnum = "TERMINATED" +) + +var mappingRemotePeeringConnectionLifecycleState = map[string]RemotePeeringConnectionLifecycleStateEnum{ + "AVAILABLE": RemotePeeringConnectionLifecycleStateAvailable, + "PROVISIONING": RemotePeeringConnectionLifecycleStateProvisioning, + "TERMINATING": RemotePeeringConnectionLifecycleStateTerminating, + "TERMINATED": RemotePeeringConnectionLifecycleStateTerminated, +} + +// GetRemotePeeringConnectionLifecycleStateEnumValues Enumerates the set of values for RemotePeeringConnectionLifecycleState +func GetRemotePeeringConnectionLifecycleStateEnumValues() []RemotePeeringConnectionLifecycleStateEnum { + values := make([]RemotePeeringConnectionLifecycleStateEnum, 0) + for _, v := range mappingRemotePeeringConnectionLifecycleState { + values = append(values, v) + } + return values +} + +// RemotePeeringConnectionPeeringStatusEnum Enum with underlying type: string +type RemotePeeringConnectionPeeringStatusEnum string + +// Set of constants representing the allowable values for RemotePeeringConnectionPeeringStatus +const ( + RemotePeeringConnectionPeeringStatusInvalid RemotePeeringConnectionPeeringStatusEnum = "INVALID" + RemotePeeringConnectionPeeringStatusNew RemotePeeringConnectionPeeringStatusEnum = "NEW" + RemotePeeringConnectionPeeringStatusPending RemotePeeringConnectionPeeringStatusEnum = "PENDING" + RemotePeeringConnectionPeeringStatusPeered RemotePeeringConnectionPeeringStatusEnum = "PEERED" + RemotePeeringConnectionPeeringStatusRevoked RemotePeeringConnectionPeeringStatusEnum = "REVOKED" +) + +var mappingRemotePeeringConnectionPeeringStatus = map[string]RemotePeeringConnectionPeeringStatusEnum{ + "INVALID": RemotePeeringConnectionPeeringStatusInvalid, + "NEW": RemotePeeringConnectionPeeringStatusNew, + "PENDING": RemotePeeringConnectionPeeringStatusPending, + "PEERED": RemotePeeringConnectionPeeringStatusPeered, + "REVOKED": RemotePeeringConnectionPeeringStatusRevoked, +} + +// GetRemotePeeringConnectionPeeringStatusEnumValues Enumerates the set of values for RemotePeeringConnectionPeeringStatus +func GetRemotePeeringConnectionPeeringStatusEnumValues() []RemotePeeringConnectionPeeringStatusEnum { + values := make([]RemotePeeringConnectionPeeringStatusEnum, 0) + for _, v := range mappingRemotePeeringConnectionPeeringStatus { + values = append(values, v) + } + return values +} 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 f255d131c0..8e3a6bcd41 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 @@ -35,10 +35,21 @@ type RouteTable struct { // The OCID of the VCN the route table list belongs to. VcnId *string `mandatory:"true" json:"vcnId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // 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"` 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 d55bcd2068..fe5a5cd1b0 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 @@ -50,6 +50,17 @@ type SecurityList struct { // The OCID of the VCN the security list belongs to. VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m SecurityList) String() string { 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 d765cefce5..9667ea7359 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/subnet.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/subnet.go @@ -53,6 +53,11 @@ type Subnet struct { // Example: `00:00:17:B6:4D:DD` VirtualRouterMac *string `mandatory:"true" json:"virtualRouterMac"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // The OCID of the set of DHCP options associated with the subnet. DhcpOptionsId *string `mandatory:"false" json:"dhcpOptionsId"` @@ -72,6 +77,12 @@ type Subnet struct { // Example: `subnet123` DnsLabel *string `mandatory:"false" json:"dnsLabel"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // 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 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 cfecb4ead4..46c73b79f2 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 @@ -15,8 +15,19 @@ import ( // UpdateConsoleHistoryDetails The representation of UpdateConsoleHistoryDetails type UpdateConsoleHistoryDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m UpdateConsoleHistoryDetails) String() string { 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 b2e221a13d..3bfd043180 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 @@ -16,10 +16,21 @@ import ( // UpdateDhcpDetails The representation of UpdateDhcpDetails type UpdateDhcpDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + Options []DhcpOption `mandatory:"false" json:"options"` } @@ -30,15 +41,19 @@ func (m UpdateDhcpDetails) String() string { // UnmarshalJSON unmarshals from json func (m *UpdateDhcpDetails) UnmarshalJSON(data []byte) (e error) { model := struct { - DisplayName *string `json:"displayName"` - Options []dhcpoption `json:"options"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + Options []dhcpoption `json:"options"` }{} e = json.Unmarshal(data, &model) if e != nil { return } + m.DefinedTags = model.DefinedTags m.DisplayName = model.DisplayName + m.FreeformTags = model.FreeformTags m.Options = make([]DhcpOption, len(model.Options)) for i, n := range model.Options { nn, err := n.UnmarshalPolymorphicJSON(n.JsonData) 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 f3c35d5faf..1ebfa04647 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 @@ -15,10 +15,21 @@ import ( // UpdateImageDetails The representation of UpdateImageDetails type UpdateImageDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m UpdateImageDetails) String() string { 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 e18c8c402c..f7b25cba7b 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 @@ -15,10 +15,21 @@ import ( // UpdateInstanceDetails The representation of UpdateInstanceDetails type UpdateInstanceDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m UpdateInstanceDetails) String() string { 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 96c7a2a747..d93cc9c122 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 @@ -15,10 +15,21 @@ import ( // UpdatePrivateIpDetails The representation of UpdatePrivateIpDetails type UpdatePrivateIpDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid // entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // 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`). 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 ae74cf5c7d..3f55324891 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 @@ -11,7 +11,7 @@ import ( // UpdatePrivateIpRequest wrapper for the UpdatePrivateIp operation type UpdatePrivateIpRequest struct { - // The private IP's OCID. + // The OCID of the private IP. PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` // Private IP details. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_public_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_public_ip_details.go new file mode 100644 index 0000000000..06a0f3dbd2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_public_ip_details.go @@ -0,0 +1,32 @@ +// Copyright (c) 2016, 2018, 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" +) + +// UpdatePublicIpDetails The representation of UpdatePublicIpDetails +type UpdatePublicIpDetails 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 OCID of the private IP to assign the public IP to. + // * If the public IP is already assigned to a different private IP, it will be unassigned + // and then reassigned to the specified private IP. + // * If you set this field to an empty string, the public IP will be unassigned from the + // private IP it is currently assigned to. + PrivateIpId *string `mandatory:"false" json:"privateIpId"` +} + +func (m UpdatePublicIpDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_public_ip_request_response.go new file mode 100644 index 0000000000..c8150b782f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_public_ip_request_response.go @@ -0,0 +1,49 @@ +// 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" +) + +// UpdatePublicIpRequest wrapper for the UpdatePublicIp operation +type UpdatePublicIpRequest struct { + + // The OCID of the public IP. + PublicIpId *string `mandatory:"true" contributesTo:"path" name:"publicIpId"` + + // Public IP details. + UpdatePublicIpDetails `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 UpdatePublicIpRequest) String() string { + return common.PointerString(request) +} + +// UpdatePublicIpResponse wrapper for the UpdatePublicIp operation +type UpdatePublicIpResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The PublicIp instance + PublicIp `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 UpdatePublicIpResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_remote_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_remote_peering_connection_details.go new file mode 100644 index 0000000000..38da74e72e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_remote_peering_connection_details.go @@ -0,0 +1,25 @@ +// Copyright (c) 2016, 2018, 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" +) + +// UpdateRemotePeeringConnectionDetails The representation of UpdateRemotePeeringConnectionDetails +type UpdateRemotePeeringConnectionDetails 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"` +} + +func (m UpdateRemotePeeringConnectionDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_remote_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_remote_peering_connection_request_response.go new file mode 100644 index 0000000000..5894a89b57 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_remote_peering_connection_request_response.go @@ -0,0 +1,49 @@ +// 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" +) + +// UpdateRemotePeeringConnectionRequest wrapper for the UpdateRemotePeeringConnection operation +type UpdateRemotePeeringConnectionRequest struct { + + // The OCID of the remote peering connection (RPC). + RemotePeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"remotePeeringConnectionId"` + + // Request to the update the peering connection to remote region + UpdateRemotePeeringConnectionDetails `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 UpdateRemotePeeringConnectionRequest) String() string { + return common.PointerString(request) +} + +// UpdateRemotePeeringConnectionResponse wrapper for the UpdateRemotePeeringConnection operation +type UpdateRemotePeeringConnectionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RemotePeeringConnection instance + RemotePeeringConnection `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 UpdateRemotePeeringConnectionResponse) String() string { + 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 547a1b2b9b..0f10639e4b 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 @@ -15,10 +15,21 @@ import ( // UpdateRouteTableDetails The representation of UpdateRouteTableDetails type UpdateRouteTableDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // The collection of rules used for routing destination IPs to network devices. RouteRules []RouteRule `mandatory:"false" json:"routeRules"` } 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 d23a3f75c7..8a60160cd0 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 @@ -15,6 +15,11 @@ import ( // UpdateSecurityListDetails The representation of UpdateSecurityListDetails type UpdateSecurityListDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` @@ -22,6 +27,12 @@ type UpdateSecurityListDetails struct { // Rules for allowing egress IP packets. EgressSecurityRules []EgressSecurityRule `mandatory:"false" json:"egressSecurityRules"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // Rules for allowing ingress IP packets. IngressSecurityRules []IngressSecurityRule `mandatory:"false" json:"ingressSecurityRules"` } 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 e15eaa0134..6de420036a 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 @@ -15,9 +15,20 @@ import ( // UpdateSubnetDetails The representation of UpdateSubnetDetails type UpdateSubnetDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m UpdateSubnetDetails) String() string { 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 e4dca15cd6..a1cf003104 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 @@ -15,9 +15,20 @@ import ( // UpdateVcnDetails The representation of UpdateVcnDetails type UpdateVcnDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m UpdateVcnDetails) String() string { 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 05be76e2b3..39530f481d 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 @@ -15,9 +15,20 @@ import ( // UpdateVolumeBackupDetails The representation of UpdateVolumeBackupDetails type UpdateVolumeBackupDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A friendly user-specified name for the volume backup. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m UpdateVolumeBackupDetails) String() string { 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 e0b642bd76..5f40aec9a4 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 @@ -15,9 +15,20 @@ import ( // UpdateVolumeDetails The representation of UpdateVolumeDetails type UpdateVolumeDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m UpdateVolumeDetails) String() string { 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 8077a531d2..dc06abee74 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/vcn.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/vcn.go @@ -41,6 +41,11 @@ type Vcn struct { // The OCID for the VCN's default security list. DefaultSecurityListId *string `mandatory:"false" json:"defaultSecurityListId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` @@ -57,6 +62,12 @@ type Vcn struct { // Example: `vcn1` DnsLabel *string `mandatory:"false" json:"dnsLabel"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // 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"` 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 85c7394c53..4347c741a5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume.go @@ -44,6 +44,17 @@ type Volume struct { // The date and time the volume was created. Format defined by RFC3339. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // Specifies whether the cloned volume's data has finished copying from the source volume or backup. IsHydrated *bool `mandatory:"false" json:"isHydrated"` @@ -62,29 +73,33 @@ func (m Volume) String() string { // 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"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + FreeformTags map[string]string `json:"freeformTags"` + 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.DefinedTags = model.DefinedTags + m.FreeformTags = model.FreeformTags m.IsHydrated = model.IsHydrated m.SizeInGBs = model.SizeInGBs nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) if e != nil { return } - m.SourceDetails = nn + m.SourceDetails = nn.(VolumeSourceDetails) m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId m.DisplayName = model.DisplayName 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 d8942c4e9f..51a0397a5a 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 @@ -47,6 +47,9 @@ type VolumeAttachment interface { // Avoid entering confidential information. // Example: `My volume attachment` GetDisplayName() *string + + // Whether the attachment was created in read-only mode. + GetIsReadOnly() *bool } type volumeattachment struct { @@ -59,6 +62,7 @@ type volumeattachment struct { TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` VolumeId *string `mandatory:"true" json:"volumeId"` DisplayName *string `mandatory:"false" json:"displayName"` + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` AttachmentType string `json:"attachmentType"` } @@ -81,6 +85,7 @@ func (m *volumeattachment) UnmarshalJSON(data []byte) error { m.TimeCreated = s.Model.TimeCreated m.VolumeId = s.Model.VolumeId m.DisplayName = s.Model.DisplayName + m.IsReadOnly = s.Model.IsReadOnly m.AttachmentType = s.Model.AttachmentType return err @@ -94,6 +99,10 @@ func (m *volumeattachment) UnmarshalPolymorphicJSON(data []byte) (interface{}, e mm := IScsiVolumeAttachment{} err = json.Unmarshal(data, &mm) return mm, err + case "paravirtualized": + mm := ParavirtualizedVolumeAttachment{} + err = json.Unmarshal(data, &mm) + return mm, err default: return m, nil } @@ -139,6 +148,11 @@ func (m volumeattachment) GetDisplayName() *string { return m.DisplayName } +//GetIsReadOnly returns IsReadOnly +func (m volumeattachment) GetIsReadOnly() *bool { + return m.IsReadOnly +} + func (m volumeattachment) String() string { return common.PointerString(m) } 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 6fd52b8787..c3b59bc53f 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 @@ -37,6 +37,27 @@ type VolumeBackup struct { // of the volume data was taken. Format defined by RFC3339. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + // The type of a volume backup. + Type VolumeBackupTypeEnum `mandatory:"true" json:"type"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The date and time the volume backup will expire and be automatically deleted. + // Format defined by RFC3339. This parameter will always be present for backups that + // were created automatically by a scheduled-backup policy. For manually created backups, + // it will be absent, signifying that there is no expiration time and the backup will + // last forever until manually deleted. + ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // The size of the volume, in GBs. SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` @@ -44,6 +65,9 @@ type VolumeBackup struct { // This field is deprecated. Please use sizeInGBs. SizeInMBs *int `mandatory:"false" json:"sizeInMBs"` + // Specifies whether the backup was created manually, or via scheduled backup policy. + SourceType VolumeBackupSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` + // The date and time the request to create the volume backup was received. Format defined by RFC3339. TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"` @@ -94,3 +118,49 @@ func GetVolumeBackupLifecycleStateEnumValues() []VolumeBackupLifecycleStateEnum } return values } + +// VolumeBackupSourceTypeEnum Enum with underlying type: string +type VolumeBackupSourceTypeEnum string + +// Set of constants representing the allowable values for VolumeBackupSourceType +const ( + VolumeBackupSourceTypeManual VolumeBackupSourceTypeEnum = "MANUAL" + VolumeBackupSourceTypeScheduled VolumeBackupSourceTypeEnum = "SCHEDULED" +) + +var mappingVolumeBackupSourceType = map[string]VolumeBackupSourceTypeEnum{ + "MANUAL": VolumeBackupSourceTypeManual, + "SCHEDULED": VolumeBackupSourceTypeScheduled, +} + +// GetVolumeBackupSourceTypeEnumValues Enumerates the set of values for VolumeBackupSourceType +func GetVolumeBackupSourceTypeEnumValues() []VolumeBackupSourceTypeEnum { + values := make([]VolumeBackupSourceTypeEnum, 0) + for _, v := range mappingVolumeBackupSourceType { + values = append(values, v) + } + return values +} + +// VolumeBackupTypeEnum Enum with underlying type: string +type VolumeBackupTypeEnum string + +// Set of constants representing the allowable values for VolumeBackupType +const ( + VolumeBackupTypeFull VolumeBackupTypeEnum = "FULL" + VolumeBackupTypeIncremental VolumeBackupTypeEnum = "INCREMENTAL" +) + +var mappingVolumeBackupType = map[string]VolumeBackupTypeEnum{ + "FULL": VolumeBackupTypeFull, + "INCREMENTAL": VolumeBackupTypeIncremental, +} + +// GetVolumeBackupTypeEnumValues Enumerates the set of values for VolumeBackupType +func GetVolumeBackupTypeEnumValues() []VolumeBackupTypeEnum { + values := make([]VolumeBackupTypeEnum, 0) + for _, v := range mappingVolumeBackupType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy.go new file mode 100644 index 0000000000..bbc9aad2cb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy.go @@ -0,0 +1,34 @@ +// Copyright (c) 2016, 2018, 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" +) + +// VolumeBackupPolicy A policy for automatically creating volume backups according to a recurring schedule. Has a set of one or more schedules that control when and how backups are created. +type VolumeBackupPolicy struct { + + // A user-friendly name for the volume backup policy. 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 policy. + Id *string `mandatory:"true" json:"id"` + + // The collection of schedules that this policy will apply. + Schedules []VolumeBackupSchedule `mandatory:"true" json:"schedules"` + + // The date and time the volume backup policy was created. Format defined by RFC3339. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` +} + +func (m VolumeBackupPolicy) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy_assignment.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy_assignment.go new file mode 100644 index 0000000000..81d20d691e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy_assignment.go @@ -0,0 +1,33 @@ +// Copyright (c) 2016, 2018, 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" +) + +// VolumeBackupPolicyAssignment Specifies that a particular volume backup policy is assigned to an asset such as a volume. +type VolumeBackupPolicyAssignment struct { + + // The OCID of the asset (e.g. a volume) to which the policy has been assigned. + AssetId *string `mandatory:"true" json:"assetId"` + + // The OCID of the volume backup policy assignment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the volume backup policy that has been assigned to an asset. + PolicyId *string `mandatory:"true" json:"policyId"` + + // The date and time the volume backup policy assignment was created. Format defined by RFC3339. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` +} + +func (m VolumeBackupPolicyAssignment) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_schedule.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_schedule.go new file mode 100644 index 0000000000..7630d772bb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_schedule.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, 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" +) + +// VolumeBackupSchedule Defines a chronological recurrence pattern for creating scheduled backups at a particular periodicity. +type VolumeBackupSchedule struct { + + // The type of backup to create. + BackupType VolumeBackupScheduleBackupTypeEnum `mandatory:"true" json:"backupType"` + + // The number of seconds (positive or negative) that the backup time should be shifted from the default interval boundaries specified by the period. + OffsetSeconds *int `mandatory:"true" json:"offsetSeconds"` + + // How often the backup should occur. + Period VolumeBackupSchedulePeriodEnum `mandatory:"true" json:"period"` + + // How long, in seconds, backups created by this schedule should be kept until being automatically deleted. + RetentionSeconds *int `mandatory:"true" json:"retentionSeconds"` +} + +func (m VolumeBackupSchedule) String() string { + return common.PointerString(m) +} + +// VolumeBackupScheduleBackupTypeEnum Enum with underlying type: string +type VolumeBackupScheduleBackupTypeEnum string + +// Set of constants representing the allowable values for VolumeBackupScheduleBackupType +const ( + VolumeBackupScheduleBackupTypeFull VolumeBackupScheduleBackupTypeEnum = "FULL" + VolumeBackupScheduleBackupTypeIncremental VolumeBackupScheduleBackupTypeEnum = "INCREMENTAL" +) + +var mappingVolumeBackupScheduleBackupType = map[string]VolumeBackupScheduleBackupTypeEnum{ + "FULL": VolumeBackupScheduleBackupTypeFull, + "INCREMENTAL": VolumeBackupScheduleBackupTypeIncremental, +} + +// GetVolumeBackupScheduleBackupTypeEnumValues Enumerates the set of values for VolumeBackupScheduleBackupType +func GetVolumeBackupScheduleBackupTypeEnumValues() []VolumeBackupScheduleBackupTypeEnum { + values := make([]VolumeBackupScheduleBackupTypeEnum, 0) + for _, v := range mappingVolumeBackupScheduleBackupType { + values = append(values, v) + } + return values +} + +// VolumeBackupSchedulePeriodEnum Enum with underlying type: string +type VolumeBackupSchedulePeriodEnum string + +// Set of constants representing the allowable values for VolumeBackupSchedulePeriod +const ( + VolumeBackupSchedulePeriodHour VolumeBackupSchedulePeriodEnum = "ONE_HOUR" + VolumeBackupSchedulePeriodDay VolumeBackupSchedulePeriodEnum = "ONE_DAY" + VolumeBackupSchedulePeriodWeek VolumeBackupSchedulePeriodEnum = "ONE_WEEK" + VolumeBackupSchedulePeriodMonth VolumeBackupSchedulePeriodEnum = "ONE_MONTH" + VolumeBackupSchedulePeriodYear VolumeBackupSchedulePeriodEnum = "ONE_YEAR" +) + +var mappingVolumeBackupSchedulePeriod = map[string]VolumeBackupSchedulePeriodEnum{ + "ONE_HOUR": VolumeBackupSchedulePeriodHour, + "ONE_DAY": VolumeBackupSchedulePeriodDay, + "ONE_WEEK": VolumeBackupSchedulePeriodWeek, + "ONE_MONTH": VolumeBackupSchedulePeriodMonth, + "ONE_YEAR": VolumeBackupSchedulePeriodYear, +} + +// GetVolumeBackupSchedulePeriodEnumValues Enumerates the set of values for VolumeBackupSchedulePeriod +func GetVolumeBackupSchedulePeriodEnumValues() []VolumeBackupSchedulePeriodEnum { + values := make([]VolumeBackupSchedulePeriodEnum, 0) + for _, v := range mappingVolumeBackupSchedulePeriod { + 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 d666cc5f0a..ab06533a60 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 @@ -81,8 +81,8 @@ func (client DatabaseClient) CreateBackup(ctx context.Context, request CreateBac // 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). +// resource in the Console. For more information, see +// Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/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 { @@ -587,7 +587,7 @@ func (client DatabaseClient) ListDbSystemShapes(ctx context.Context, request Lis return } -// ListDbSystems Gets a list of the DB Systems in the specified compartment. +// ListDbSystems Gets a list of the DB Systems in the specified compartment. You can specify a backupId to list only the DB Systems that support creating a database using this backup in this compartment. // func (client DatabaseClient) ListDbSystems(ctx context.Context, request ListDbSystemsRequest) (response ListDbSystemsResponse, err error) { httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dbSystems", request) 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 04085ad176..f2d38e0898 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 @@ -14,7 +14,7 @@ import ( // 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) +// - Bare Metal and Virtual Machine 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 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 831411c167..6e8a2a2003 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 @@ -19,12 +19,24 @@ import ( // 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. + // The maximum number of CPU cores that can be enabled on the DB System for this shape. AvailableCoreCount *int `mandatory:"true" json:"availableCoreCount"` // The name of the shape used for the DB System. Name *string `mandatory:"true" json:"name"` + // The discrete number by which the CPU core count for this shape can be increased or decreased. + CoreCountIncrement *int `mandatory:"false" json:"coreCountIncrement"` + + // The maximum number of database nodes available for this shape. + MaximumNodeCount *int `mandatory:"false" json:"maximumNodeCount"` + + // The minimum number of CPU cores that can be enabled on the DB System for this shape. + MinimumCoreCount *int `mandatory:"false" json:"minimumCoreCount"` + + // The minimum number of database nodes available for this shape. + MinimumNodeCount *int `mandatory:"false" json:"minimumNodeCount"` + // Deprecated. Use `name` instead of `shape`. Shape *string `mandatory:"false" json:"shape"` } 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 7f8ba31a3b..33c58ac984 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 @@ -14,7 +14,7 @@ import ( // 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) +// - Bare Metal and Virtual Machine 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 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 96a4693e5b..c942c09273 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 @@ -19,6 +19,9 @@ type ListDbSystemsRequest struct { // The pagination token to continue listing from. Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the backup. Specify a backupId to list only the DB Systems that support creating a database using this backup in this compartment. + BackupId *string `mandatory:"false" contributesTo:"query" name:"backupId"` } func (request ListDbSystemsRequest) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/create_zone_details.go b/vendor/github.com/oracle/oci-go-sdk/dns/create_zone_details.go new file mode 100644 index 0000000000..38353f29bd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/create_zone_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateZoneDetails The body for defining a new zone. +type CreateZoneDetails struct { + + // The name of the zone. + Name *string `mandatory:"true" json:"name"` + + // The type of the zone. Must be either `PRIMARY` or `SECONDARY`. + ZoneType CreateZoneDetailsZoneTypeEnum `mandatory:"true" json:"zoneType"` + + // The OCID of the compartment containing the zone. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // External master servers for the zone. + ExternalMasters []ExternalMaster `mandatory:"false" json:"externalMasters"` +} + +func (m CreateZoneDetails) String() string { + return common.PointerString(m) +} + +// CreateZoneDetailsZoneTypeEnum Enum with underlying type: string +type CreateZoneDetailsZoneTypeEnum string + +// Set of constants representing the allowable values for CreateZoneDetailsZoneType +const ( + CreateZoneDetailsZoneTypePrimary CreateZoneDetailsZoneTypeEnum = "PRIMARY" + CreateZoneDetailsZoneTypeSecondary CreateZoneDetailsZoneTypeEnum = "SECONDARY" +) + +var mappingCreateZoneDetailsZoneType = map[string]CreateZoneDetailsZoneTypeEnum{ + "PRIMARY": CreateZoneDetailsZoneTypePrimary, + "SECONDARY": CreateZoneDetailsZoneTypeSecondary, +} + +// GetCreateZoneDetailsZoneTypeEnumValues Enumerates the set of values for CreateZoneDetailsZoneType +func GetCreateZoneDetailsZoneTypeEnumValues() []CreateZoneDetailsZoneTypeEnum { + values := make([]CreateZoneDetailsZoneTypeEnum, 0) + for _, v := range mappingCreateZoneDetailsZoneType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/create_zone_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/create_zone_request_response.go new file mode 100644 index 0000000000..0559aab2d3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/create_zone_request_response.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateZoneRequest wrapper for the CreateZone operation +type CreateZoneRequest struct { + + // Details for creating a new zone. + CreateZoneDetails `contributesTo:"body"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request CreateZoneRequest) String() string { + return common.PointerString(request) +} + +// CreateZoneResponse wrapper for the CreateZone operation +type CreateZoneResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Zone instance + Zone `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 current version of the zone, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response CreateZoneResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/delete_domain_records_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/delete_domain_records_request_response.go new file mode 100644 index 0000000000..313f928fb3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/delete_domain_records_request_response.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteDomainRecordsRequest wrapper for the DeleteDomainRecords operation +type DeleteDomainRecordsRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The target fully-qualified domain name (FQDN) within the target zone. + Domain *string `mandatory:"true" contributesTo:"path" name:"domain"` + + // The `If-Match` header field makes the request method conditional on the + // existence of at least one current representation of the target resource, + // when the field-value is `*`, or having a current representation of the + // target resource that has an entity-tag matching a member of the list of + // entity-tags provided in the field-value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"` + + // The `If-Unmodified-Since` header field makes the request method + // conditional on the selected representation's last modification date being + // earlier than or equal to the date provided in the field-value. This + // field accomplishes the same purpose as If-Match for cases where the user + // agent does not have an entity-tag for the representation. + IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request DeleteDomainRecordsRequest) String() string { + return common.PointerString(request) +} + +// DeleteDomainRecordsResponse wrapper for the DeleteDomainRecords operation +type DeleteDomainRecordsResponse 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 DeleteDomainRecordsResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/delete_r_r_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/delete_r_r_set_request_response.go new file mode 100644 index 0000000000..e983dceddd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/delete_r_r_set_request_response.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteRRSetRequest wrapper for the DeleteRRSet operation +type DeleteRRSetRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The target fully-qualified domain name (FQDN) within the target zone. + Domain *string `mandatory:"true" contributesTo:"path" name:"domain"` + + // The type of the target RRSet within the target zone. + Rtype *string `mandatory:"true" contributesTo:"path" name:"rtype"` + + // The `If-Match` header field makes the request method conditional on the + // existence of at least one current representation of the target resource, + // when the field-value is `*`, or having a current representation of the + // target resource that has an entity-tag matching a member of the list of + // entity-tags provided in the field-value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"` + + // The `If-Unmodified-Since` header field makes the request method + // conditional on the selected representation's last modification date being + // earlier than or equal to the date provided in the field-value. This + // field accomplishes the same purpose as If-Match for cases where the user + // agent does not have an entity-tag for the representation. + IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request DeleteRRSetRequest) String() string { + return common.PointerString(request) +} + +// DeleteRRSetResponse wrapper for the DeleteRRSet operation +type DeleteRRSetResponse 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 DeleteRRSetResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/delete_zone_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/delete_zone_request_response.go new file mode 100644 index 0000000000..b5965ea5da --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/delete_zone_request_response.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteZoneRequest wrapper for the DeleteZone operation +type DeleteZoneRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The `If-Match` header field makes the request method conditional on the + // existence of at least one current representation of the target resource, + // when the field-value is `*`, or having a current representation of the + // target resource that has an entity-tag matching a member of the list of + // entity-tags provided in the field-value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"` + + // The `If-Unmodified-Since` header field makes the request method + // conditional on the selected representation's last modification date being + // earlier than or equal to the date provided in the field-value. This + // field accomplishes the same purpose as If-Match for cases where the user + // agent does not have an entity-tag for the representation. + IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request DeleteZoneRequest) String() string { + return common.PointerString(request) +} + +// DeleteZoneResponse wrapper for the DeleteZone operation +type DeleteZoneResponse 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 DeleteZoneResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/dns_client.go b/vendor/github.com/oracle/oci-go-sdk/dns/dns_client.go new file mode 100644 index 0000000000..3a1f3d612c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/dns_client.go @@ -0,0 +1,371 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +//DnsClient a client for Dns +type DnsClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewDnsClientWithConfigurationProvider Creates a new default Dns client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewDnsClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client DnsClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } + + client = DnsClient{BaseClient: baseClient} + client.BasePath = "20180115" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *DnsClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "dns", region) +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *DnsClient) 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 *DnsClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// CreateZone Creates a new zone in the specified compartment. The `compartmentId` +// query parameter is required if the `Content-Type` header for the +// request is `text/dns`. +func (client DnsClient) CreateZone(ctx context.Context, request CreateZoneRequest) (response CreateZoneResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/zones", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteDomainRecords Deletes all records at the specified zone and domain. +func (client DnsClient) DeleteDomainRecords(ctx context.Context, request DeleteDomainRecordsRequest) (response DeleteDomainRecordsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/zones/{zoneNameOrId}/records/{domain}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteRRSet Deletes all records in the specified RRSet. +func (client DnsClient) DeleteRRSet(ctx context.Context, request DeleteRRSetRequest) (response DeleteRRSetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/zones/{zoneNameOrId}/records/{domain}/{rtype}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteZone Deletes the specified zone. A `204` response indicates that zone has been +// successfully deleted. +func (client DnsClient) DeleteZone(ctx context.Context, request DeleteZoneRequest) (response DeleteZoneResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/zones/{zoneNameOrId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetDomainRecords Gets a list of all records at the specified zone and domain. +// The results are sorted by `rtype` in alphabetical order by default. You +// can optionally filter and/or sort the results using the listed parameters. +func (client DnsClient) GetDomainRecords(ctx context.Context, request GetDomainRecordsRequest) (response GetDomainRecordsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/zones/{zoneNameOrId}/records/{domain}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetRRSet Gets a list of all records in the specified RRSet. The results are +// sorted by `recordHash` by default. +func (client DnsClient) GetRRSet(ctx context.Context, request GetRRSetRequest) (response GetRRSetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/zones/{zoneNameOrId}/records/{domain}/{rtype}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetZone Gets information about the specified zone, including its creation date, +// zone type, and serial. +func (client DnsClient) GetZone(ctx context.Context, request GetZoneRequest) (response GetZoneResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/zones/{zoneNameOrId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetZoneRecords Gets all records in the specified zone. The results are +// sorted by `domain` in alphabetical order by default. For more +// information about records, please see Resource Record (RR) TYPEs (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4). +func (client DnsClient) GetZoneRecords(ctx context.Context, request GetZoneRecordsRequest) (response GetZoneRecordsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/zones/{zoneNameOrId}/records", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListZones Gets a list of all zones in the specified compartment. The collection +// can be filtered by name, time created, and zone type. +func (client DnsClient) ListZones(ctx context.Context, request ListZonesRequest) (response ListZonesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/zones", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// PatchDomainRecords Replaces records in the specified zone at a domain. You can update one record or all records for the specified zone depending on the changes provided in the request body. You can also add or remove records using this function. +func (client DnsClient) PatchDomainRecords(ctx context.Context, request PatchDomainRecordsRequest) (response PatchDomainRecordsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPatch, "/zones/{zoneNameOrId}/records/{domain}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// PatchRRSet Updates records in the specified RRSet. +func (client DnsClient) PatchRRSet(ctx context.Context, request PatchRRSetRequest) (response PatchRRSetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPatch, "/zones/{zoneNameOrId}/records/{domain}/{rtype}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// PatchZoneRecords Updates a collection of records in the specified zone. You can update +// one record or all records for the specified zone depending on the +// changes provided in the request body. You can also add or remove records +// using this function. +func (client DnsClient) PatchZoneRecords(ctx context.Context, request PatchZoneRecordsRequest) (response PatchZoneRecordsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPatch, "/zones/{zoneNameOrId}/records", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateDomainRecords Replaces records in the specified zone at a domain with the records +// specified in the request body. If a specified record does not exist, +// it will be created. If the record exists, then it will be updated to +// represent the record in the body of the request. If a record in the zone +// does not exist in the request body, the record will be removed from the +// zone. +func (client DnsClient) UpdateDomainRecords(ctx context.Context, request UpdateDomainRecordsRequest) (response UpdateDomainRecordsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/zones/{zoneNameOrId}/records/{domain}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateRRSet Replaces records in the specified RRSet. +func (client DnsClient) UpdateRRSet(ctx context.Context, request UpdateRRSetRequest) (response UpdateRRSetResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/zones/{zoneNameOrId}/records/{domain}/{rtype}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateZone Updates the specified secondary zone with your new external master +// server information. For more information about secondary zone, see +// Manage DNS Service Zone (https://docs.us-phoenix-1.oraclecloud.com/Content/DNS/Tasks/managingdnszones.htm). +func (client DnsClient) UpdateZone(ctx context.Context, request UpdateZoneRequest) (response UpdateZoneResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/zones/{zoneNameOrId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateZoneRecords Replaces records in the specified zone with the records specified in the +// request body. If a specified record does not exist, it will be created. +// If the record exists, then it will be updated to represent the record in +// the body of the request. If a record in the zone does not exist in the +// request body, the record will be removed from the zone. +func (client DnsClient) UpdateZoneRecords(ctx context.Context, request UpdateZoneRecordsRequest) (response UpdateZoneRecordsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/zones/{zoneNameOrId}/records", request) + if err != nil { + 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/dns/external_master.go b/vendor/github.com/oracle/oci-go-sdk/dns/external_master.go new file mode 100644 index 0000000000..0d17dd9b7e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/external_master.go @@ -0,0 +1,29 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ExternalMaster An external master name server used as the source of zone data. +type ExternalMaster struct { + + // The server's IP address (IPv4 or IPv6). + Address *string `mandatory:"true" json:"address"` + + // The server's port. + Port *int `mandatory:"false" json:"port"` + + Tsig *Tsig `mandatory:"false" json:"tsig"` +} + +func (m ExternalMaster) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/get_domain_records_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/get_domain_records_request_response.go new file mode 100644 index 0000000000..5e153c8d9e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/get_domain_records_request_response.go @@ -0,0 +1,136 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetDomainRecordsRequest wrapper for the GetDomainRecords operation +type GetDomainRecordsRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The target fully-qualified domain name (FQDN) within the target zone. + Domain *string `mandatory:"true" contributesTo:"path" name:"domain"` + + // The `If-None-Match` header field makes the request method conditional on + // the absence of any current representation of the target resource, when + // the field-value is `*`, or having a selected representation with an + // entity-tag that does not match any of those listed in the field-value. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"If-None-Match"` + + // The `If-Modified-Since` header field makes a GET or HEAD request method + // conditional on the selected representation's modification date being more + // recent than the date provided in the field-value. Transfer of the + // selected representation's data is avoided if that data has not changed. + IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"` + + // The maximum number of items to return in a page of the collection. + 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 version of the zone for which data is requested. + ZoneVersion *string `mandatory:"false" contributesTo:"query" name:"zoneVersion"` + + // Search by record type. + // Will match any record whose type (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value. + Rtype *string `mandatory:"false" contributesTo:"query" name:"rtype"` + + // The field by which to sort records. + SortBy GetDomainRecordsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The order to sort the resources. + SortOrder GetDomainRecordsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request GetDomainRecordsRequest) String() string { + return common.PointerString(request) +} + +// GetDomainRecordsResponse wrapper for the GetDomainRecords operation +type GetDomainRecordsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecordCollection instance + RecordCollection `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"` + + // The total number of items that match the query. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // Unique Oracle-assigned identifier for the 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 current version of the record collection, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetDomainRecordsResponse) String() string { + return common.PointerString(response) +} + +// GetDomainRecordsSortByEnum Enum with underlying type: string +type GetDomainRecordsSortByEnum string + +// Set of constants representing the allowable values for GetDomainRecordsSortBy +const ( + GetDomainRecordsSortByRtype GetDomainRecordsSortByEnum = "rtype" + GetDomainRecordsSortByTtl GetDomainRecordsSortByEnum = "ttl" +) + +var mappingGetDomainRecordsSortBy = map[string]GetDomainRecordsSortByEnum{ + "rtype": GetDomainRecordsSortByRtype, + "ttl": GetDomainRecordsSortByTtl, +} + +// GetGetDomainRecordsSortByEnumValues Enumerates the set of values for GetDomainRecordsSortBy +func GetGetDomainRecordsSortByEnumValues() []GetDomainRecordsSortByEnum { + values := make([]GetDomainRecordsSortByEnum, 0) + for _, v := range mappingGetDomainRecordsSortBy { + values = append(values, v) + } + return values +} + +// GetDomainRecordsSortOrderEnum Enum with underlying type: string +type GetDomainRecordsSortOrderEnum string + +// Set of constants representing the allowable values for GetDomainRecordsSortOrder +const ( + GetDomainRecordsSortOrderAsc GetDomainRecordsSortOrderEnum = "ASC" + GetDomainRecordsSortOrderDesc GetDomainRecordsSortOrderEnum = "DESC" +) + +var mappingGetDomainRecordsSortOrder = map[string]GetDomainRecordsSortOrderEnum{ + "ASC": GetDomainRecordsSortOrderAsc, + "DESC": GetDomainRecordsSortOrderDesc, +} + +// GetGetDomainRecordsSortOrderEnumValues Enumerates the set of values for GetDomainRecordsSortOrder +func GetGetDomainRecordsSortOrderEnumValues() []GetDomainRecordsSortOrderEnum { + values := make([]GetDomainRecordsSortOrderEnum, 0) + for _, v := range mappingGetDomainRecordsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/get_r_r_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/get_r_r_set_request_response.go new file mode 100644 index 0000000000..8e09233faa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/get_r_r_set_request_response.go @@ -0,0 +1,83 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetRRSetRequest wrapper for the GetRRSet operation +type GetRRSetRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The target fully-qualified domain name (FQDN) within the target zone. + Domain *string `mandatory:"true" contributesTo:"path" name:"domain"` + + // The type of the target RRSet within the target zone. + Rtype *string `mandatory:"true" contributesTo:"path" name:"rtype"` + + // The `If-None-Match` header field makes the request method conditional on + // the absence of any current representation of the target resource, when + // the field-value is `*`, or having a selected representation with an + // entity-tag that does not match any of those listed in the field-value. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"If-None-Match"` + + // The `If-Modified-Since` header field makes a GET or HEAD request method + // conditional on the selected representation's modification date being more + // recent than the date provided in the field-value. Transfer of the + // selected representation's data is avoided if that data has not changed. + IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"` + + // The maximum number of items to return in a page of the collection. + 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 version of the zone for which data is requested. + ZoneVersion *string `mandatory:"false" contributesTo:"query" name:"zoneVersion"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request GetRRSetRequest) String() string { + return common.PointerString(request) +} + +// GetRRSetResponse wrapper for the GetRRSet operation +type GetRRSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RrSet instance + RrSet `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"` + + // The total number of items that match the query. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // Unique Oracle-assigned identifier for the 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 current version of the record collection, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetRRSetResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/get_zone_records_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/get_zone_records_request_response.go new file mode 100644 index 0000000000..6dbec5d69c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/get_zone_records_request_response.go @@ -0,0 +1,143 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetZoneRecordsRequest wrapper for the GetZoneRecords operation +type GetZoneRecordsRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The `If-None-Match` header field makes the request method conditional on + // the absence of any current representation of the target resource, when + // the field-value is `*`, or having a selected representation with an + // entity-tag that does not match any of those listed in the field-value. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"If-None-Match"` + + // The `If-Modified-Since` header field makes a GET or HEAD request method + // conditional on the selected representation's modification date being more + // recent than the date provided in the field-value. Transfer of the + // selected representation's data is avoided if that data has not changed. + IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"` + + // The maximum number of items to return in a page of the collection. + 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 version of the zone for which data is requested. + ZoneVersion *string `mandatory:"false" contributesTo:"query" name:"zoneVersion"` + + // Search by domain. + // Will match any record whose domain (case-insensitive) equals the provided value. + Domain *string `mandatory:"false" contributesTo:"query" name:"domain"` + + // Search by domain. + // Will match any record whose domain (case-insensitive) contains the provided value. + DomainContains *string `mandatory:"false" contributesTo:"query" name:"domainContains"` + + // Search by record type. + // Will match any record whose type (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value. + Rtype *string `mandatory:"false" contributesTo:"query" name:"rtype"` + + // The field by which to sort records. + SortBy GetZoneRecordsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The order to sort the resources. + SortOrder GetZoneRecordsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request GetZoneRecordsRequest) String() string { + return common.PointerString(request) +} + +// GetZoneRecordsResponse wrapper for the GetZoneRecords operation +type GetZoneRecordsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecordCollection instance + RecordCollection `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"` + + // The total number of items that match the query. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // Unique Oracle-assigned identifier for the 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 current version of the record collection, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetZoneRecordsResponse) String() string { + return common.PointerString(response) +} + +// GetZoneRecordsSortByEnum Enum with underlying type: string +type GetZoneRecordsSortByEnum string + +// Set of constants representing the allowable values for GetZoneRecordsSortBy +const ( + GetZoneRecordsSortByDomain GetZoneRecordsSortByEnum = "domain" + GetZoneRecordsSortByRtype GetZoneRecordsSortByEnum = "rtype" + GetZoneRecordsSortByTtl GetZoneRecordsSortByEnum = "ttl" +) + +var mappingGetZoneRecordsSortBy = map[string]GetZoneRecordsSortByEnum{ + "domain": GetZoneRecordsSortByDomain, + "rtype": GetZoneRecordsSortByRtype, + "ttl": GetZoneRecordsSortByTtl, +} + +// GetGetZoneRecordsSortByEnumValues Enumerates the set of values for GetZoneRecordsSortBy +func GetGetZoneRecordsSortByEnumValues() []GetZoneRecordsSortByEnum { + values := make([]GetZoneRecordsSortByEnum, 0) + for _, v := range mappingGetZoneRecordsSortBy { + values = append(values, v) + } + return values +} + +// GetZoneRecordsSortOrderEnum Enum with underlying type: string +type GetZoneRecordsSortOrderEnum string + +// Set of constants representing the allowable values for GetZoneRecordsSortOrder +const ( + GetZoneRecordsSortOrderAsc GetZoneRecordsSortOrderEnum = "ASC" + GetZoneRecordsSortOrderDesc GetZoneRecordsSortOrderEnum = "DESC" +) + +var mappingGetZoneRecordsSortOrder = map[string]GetZoneRecordsSortOrderEnum{ + "ASC": GetZoneRecordsSortOrderAsc, + "DESC": GetZoneRecordsSortOrderDesc, +} + +// GetGetZoneRecordsSortOrderEnumValues Enumerates the set of values for GetZoneRecordsSortOrder +func GetGetZoneRecordsSortOrderEnumValues() []GetZoneRecordsSortOrderEnum { + values := make([]GetZoneRecordsSortOrderEnum, 0) + for _, v := range mappingGetZoneRecordsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/get_zone_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/get_zone_request_response.go new file mode 100644 index 0000000000..897060abb2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/get_zone_request_response.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetZoneRequest wrapper for the GetZone operation +type GetZoneRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The `If-None-Match` header field makes the request method conditional on + // the absence of any current representation of the target resource, when + // the field-value is `*`, or having a selected representation with an + // entity-tag that does not match any of those listed in the field-value. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"If-None-Match"` + + // The `If-Modified-Since` header field makes a GET or HEAD request method + // conditional on the selected representation's modification date being more + // recent than the date provided in the field-value. Transfer of the + // selected representation's data is avoided if that data has not changed. + IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request GetZoneRequest) String() string { + return common.PointerString(request) +} + +// GetZoneResponse wrapper for the GetZone operation +type GetZoneResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Zone instance + Zone `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 current version of the zone, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetZoneResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/list_zones_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/list_zones_request_response.go new file mode 100644 index 0000000000..fb9c33e004 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/list_zones_request_response.go @@ -0,0 +1,183 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListZonesRequest wrapper for the ListZones operation +type ListZonesRequest struct { + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a page of the collection. + 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 case-sensitive filter for zone names. + // Will match any zone with a name that equals the provided value. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // Search by zone name. + // Will match any zone whose name (case-insensitive) contains the provided value. + NameContains *string `mandatory:"false" contributesTo:"query" name:"nameContains"` + + // Search by zone type, `PRIMARY` or `SECONDARY`. + // Will match any zone whose type equals the provided value. + ZoneType ListZonesZoneTypeEnum `mandatory:"false" contributesTo:"query" name:"zoneType" omitEmpty:"true"` + + // An RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt) timestamp that states + // all returned resources were created on or after the indicated time. + TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"` + + // An RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt) timestamp that states + // all returned resources were created before the indicated time. + TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"` + + // The field by which to sort zones. + SortBy ListZonesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The order to sort the resources. + SortOrder ListZonesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The state of a resource. + LifecycleState ListZonesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` +} + +func (request ListZonesRequest) String() string { + return common.PointerString(request) +} + +// ListZonesResponse wrapper for the ListZones operation +type ListZonesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []ZoneSummary instance + Items []ZoneSummary `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"` + + // The total number of items that match the query. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // Unique Oracle-assigned identifier for the 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 ListZonesResponse) String() string { + return common.PointerString(response) +} + +// ListZonesZoneTypeEnum Enum with underlying type: string +type ListZonesZoneTypeEnum string + +// Set of constants representing the allowable values for ListZonesZoneType +const ( + ListZonesZoneTypePrimary ListZonesZoneTypeEnum = "PRIMARY" + ListZonesZoneTypeSecondary ListZonesZoneTypeEnum = "SECONDARY" +) + +var mappingListZonesZoneType = map[string]ListZonesZoneTypeEnum{ + "PRIMARY": ListZonesZoneTypePrimary, + "SECONDARY": ListZonesZoneTypeSecondary, +} + +// GetListZonesZoneTypeEnumValues Enumerates the set of values for ListZonesZoneType +func GetListZonesZoneTypeEnumValues() []ListZonesZoneTypeEnum { + values := make([]ListZonesZoneTypeEnum, 0) + for _, v := range mappingListZonesZoneType { + values = append(values, v) + } + return values +} + +// ListZonesSortByEnum Enum with underlying type: string +type ListZonesSortByEnum string + +// Set of constants representing the allowable values for ListZonesSortBy +const ( + ListZonesSortByName ListZonesSortByEnum = "name" + ListZonesSortByZonetype ListZonesSortByEnum = "zoneType" + ListZonesSortByTimecreated ListZonesSortByEnum = "timeCreated" +) + +var mappingListZonesSortBy = map[string]ListZonesSortByEnum{ + "name": ListZonesSortByName, + "zoneType": ListZonesSortByZonetype, + "timeCreated": ListZonesSortByTimecreated, +} + +// GetListZonesSortByEnumValues Enumerates the set of values for ListZonesSortBy +func GetListZonesSortByEnumValues() []ListZonesSortByEnum { + values := make([]ListZonesSortByEnum, 0) + for _, v := range mappingListZonesSortBy { + values = append(values, v) + } + return values +} + +// ListZonesSortOrderEnum Enum with underlying type: string +type ListZonesSortOrderEnum string + +// Set of constants representing the allowable values for ListZonesSortOrder +const ( + ListZonesSortOrderAsc ListZonesSortOrderEnum = "ASC" + ListZonesSortOrderDesc ListZonesSortOrderEnum = "DESC" +) + +var mappingListZonesSortOrder = map[string]ListZonesSortOrderEnum{ + "ASC": ListZonesSortOrderAsc, + "DESC": ListZonesSortOrderDesc, +} + +// GetListZonesSortOrderEnumValues Enumerates the set of values for ListZonesSortOrder +func GetListZonesSortOrderEnumValues() []ListZonesSortOrderEnum { + values := make([]ListZonesSortOrderEnum, 0) + for _, v := range mappingListZonesSortOrder { + values = append(values, v) + } + return values +} + +// ListZonesLifecycleStateEnum Enum with underlying type: string +type ListZonesLifecycleStateEnum string + +// Set of constants representing the allowable values for ListZonesLifecycleState +const ( + ListZonesLifecycleStateActive ListZonesLifecycleStateEnum = "ACTIVE" + ListZonesLifecycleStateCreating ListZonesLifecycleStateEnum = "CREATING" + ListZonesLifecycleStateDeleted ListZonesLifecycleStateEnum = "DELETED" + ListZonesLifecycleStateDeleting ListZonesLifecycleStateEnum = "DELETING" + ListZonesLifecycleStateFailed ListZonesLifecycleStateEnum = "FAILED" +) + +var mappingListZonesLifecycleState = map[string]ListZonesLifecycleStateEnum{ + "ACTIVE": ListZonesLifecycleStateActive, + "CREATING": ListZonesLifecycleStateCreating, + "DELETED": ListZonesLifecycleStateDeleted, + "DELETING": ListZonesLifecycleStateDeleting, + "FAILED": ListZonesLifecycleStateFailed, +} + +// GetListZonesLifecycleStateEnumValues Enumerates the set of values for ListZonesLifecycleState +func GetListZonesLifecycleStateEnumValues() []ListZonesLifecycleStateEnum { + values := make([]ListZonesLifecycleStateEnum, 0) + for _, v := range mappingListZonesLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/patch_domain_records_details.go b/vendor/github.com/oracle/oci-go-sdk/dns/patch_domain_records_details.go new file mode 100644 index 0000000000..5ef1657761 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/patch_domain_records_details.go @@ -0,0 +1,22 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// PatchDomainRecordsDetails The representation of PatchDomainRecordsDetails +type PatchDomainRecordsDetails struct { + Items []RecordOperation `mandatory:"false" json:"items"` +} + +func (m PatchDomainRecordsDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/patch_domain_records_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/patch_domain_records_request_response.go new file mode 100644 index 0000000000..76f1871232 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/patch_domain_records_request_response.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// PatchDomainRecordsRequest wrapper for the PatchDomainRecords operation +type PatchDomainRecordsRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The target fully-qualified domain name (FQDN) within the target zone. + Domain *string `mandatory:"true" contributesTo:"path" name:"domain"` + + // Operations describing how to modify the collection of records. + PatchDomainRecordsDetails `contributesTo:"body"` + + // The `If-Match` header field makes the request method conditional on the + // existence of at least one current representation of the target resource, + // when the field-value is `*`, or having a current representation of the + // target resource that has an entity-tag matching a member of the list of + // entity-tags provided in the field-value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"` + + // The `If-Unmodified-Since` header field makes the request method + // conditional on the selected representation's last modification date being + // earlier than or equal to the date provided in the field-value. This + // field accomplishes the same purpose as If-Match for cases where the user + // agent does not have an entity-tag for the representation. + IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request PatchDomainRecordsRequest) String() string { + return common.PointerString(request) +} + +// PatchDomainRecordsResponse wrapper for the PatchDomainRecords operation +type PatchDomainRecordsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecordCollection instance + RecordCollection `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"` + + // The total number of items that match the query. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // Unique Oracle-assigned identifier for the 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 current version of the record collection, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response PatchDomainRecordsResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/patch_r_r_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/patch_r_r_set_request_response.go new file mode 100644 index 0000000000..0cedb43e9c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/patch_r_r_set_request_response.go @@ -0,0 +1,79 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// PatchRRSetRequest wrapper for the PatchRRSet operation +type PatchRRSetRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The target fully-qualified domain name (FQDN) within the target zone. + Domain *string `mandatory:"true" contributesTo:"path" name:"domain"` + + // The type of the target RRSet within the target zone. + Rtype *string `mandatory:"true" contributesTo:"path" name:"rtype"` + + // Operations describing how to modify the collection of records. + PatchRrSetDetails `contributesTo:"body"` + + // The `If-Match` header field makes the request method conditional on the + // existence of at least one current representation of the target resource, + // when the field-value is `*`, or having a current representation of the + // target resource that has an entity-tag matching a member of the list of + // entity-tags provided in the field-value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"` + + // The `If-Unmodified-Since` header field makes the request method + // conditional on the selected representation's last modification date being + // earlier than or equal to the date provided in the field-value. This + // field accomplishes the same purpose as If-Match for cases where the user + // agent does not have an entity-tag for the representation. + IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request PatchRRSetRequest) String() string { + return common.PointerString(request) +} + +// PatchRRSetResponse wrapper for the PatchRRSet operation +type PatchRRSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecordCollection instance + RecordCollection `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"` + + // The total number of items that match the query. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // Unique Oracle-assigned identifier for the 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 current version of the record collection, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response PatchRRSetResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/patch_rr_set_details.go b/vendor/github.com/oracle/oci-go-sdk/dns/patch_rr_set_details.go new file mode 100644 index 0000000000..d070e86daa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/patch_rr_set_details.go @@ -0,0 +1,22 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// PatchRrSetDetails The representation of PatchRrSetDetails +type PatchRrSetDetails struct { + Items []RecordOperation `mandatory:"false" json:"items"` +} + +func (m PatchRrSetDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/patch_zone_records_details.go b/vendor/github.com/oracle/oci-go-sdk/dns/patch_zone_records_details.go new file mode 100644 index 0000000000..b72c1fe5a2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/patch_zone_records_details.go @@ -0,0 +1,22 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// PatchZoneRecordsDetails The representation of PatchZoneRecordsDetails +type PatchZoneRecordsDetails struct { + Items []RecordOperation `mandatory:"false" json:"items"` +} + +func (m PatchZoneRecordsDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/patch_zone_records_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/patch_zone_records_request_response.go new file mode 100644 index 0000000000..57fc3f06a3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/patch_zone_records_request_response.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// PatchZoneRecordsRequest wrapper for the PatchZoneRecords operation +type PatchZoneRecordsRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The operations describing how to modify the collection of records. + PatchZoneRecordsDetails `contributesTo:"body"` + + // The `If-Match` header field makes the request method conditional on the + // existence of at least one current representation of the target resource, + // when the field-value is `*`, or having a current representation of the + // target resource that has an entity-tag matching a member of the list of + // entity-tags provided in the field-value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"` + + // The `If-Unmodified-Since` header field makes the request method + // conditional on the selected representation's last modification date being + // earlier than or equal to the date provided in the field-value. This + // field accomplishes the same purpose as If-Match for cases where the user + // agent does not have an entity-tag for the representation. + IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request PatchZoneRecordsRequest) String() string { + return common.PointerString(request) +} + +// PatchZoneRecordsResponse wrapper for the PatchZoneRecords operation +type PatchZoneRecordsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecordCollection instance + RecordCollection `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"` + + // The total number of items that match the query. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // Unique Oracle-assigned identifier for the 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 current version of the record collection, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response PatchZoneRecordsResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/record.go b/vendor/github.com/oracle/oci-go-sdk/dns/record.go new file mode 100644 index 0000000000..b96e8d8340 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/record.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// Record A DNS resource record. For more information about DNS records, see RFC 1034 (https://tools.ietf.org/html/rfc1034#section-3.6). +type Record struct { + + // The fully qualified domain name where the record can be located. + Domain *string `mandatory:"false" json:"domain"` + + // A unique identifier for the record within its zone. + RecordHash *string `mandatory:"false" json:"recordHash"` + + // A Boolean flag indicating whether or not parts of the record + // are unable to be explicitly managed. + IsProtected *bool `mandatory:"false" json:"isProtected"` + + // The record's data, as whitespace-delimited tokens in + // type-specific presentation format. + Rdata *string `mandatory:"false" json:"rdata"` + + // The latest version of the record's zone in which its RRSet differs + // from the preceding version. + RrsetVersion *string `mandatory:"false" json:"rrsetVersion"` + + // The canonical name for the record's type, such as A or CNAME. For more + // information, see Resource Record (RR) TYPEs (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4). + Rtype *string `mandatory:"false" json:"rtype"` + + // The Time To Live for the record, in seconds. + Ttl *int `mandatory:"false" json:"ttl"` +} + +func (m Record) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/record_collection.go b/vendor/github.com/oracle/oci-go-sdk/dns/record_collection.go new file mode 100644 index 0000000000..a030cea648 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/record_collection.go @@ -0,0 +1,22 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// RecordCollection A collection of DNS resource records. +type RecordCollection struct { + Items []Record `mandatory:"false" json:"items"` +} + +func (m RecordCollection) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/record_details.go b/vendor/github.com/oracle/oci-go-sdk/dns/record_details.go new file mode 100644 index 0000000000..b9da9dacef --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/record_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// RecordDetails A DNS resource record. For more information about records, see RFC 1034 (https://tools.ietf.org/html/rfc1034#section-3.6). +type RecordDetails struct { + + // The fully qualified domain name where the record can be located. + Domain *string `mandatory:"true" json:"domain"` + + // The record's data, as whitespace-delimited tokens in + // type-specific presentation format. + Rdata *string `mandatory:"true" json:"rdata"` + + // The canonical name for the record's type, such as A or CNAME. For more + // information, see Resource Record (RR) TYPEs (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4). + Rtype *string `mandatory:"true" json:"rtype"` + + // The Time To Live for the record, in seconds. + Ttl *int `mandatory:"true" json:"ttl"` + + // A unique identifier for the record within its zone. + RecordHash *string `mandatory:"false" json:"recordHash"` + + // A Boolean flag indicating whether or not parts of the record + // are unable to be explicitly managed. + IsProtected *bool `mandatory:"false" json:"isProtected"` + + // The latest version of the record's zone in which its RRSet differs + // from the preceding version. + RrsetVersion *string `mandatory:"false" json:"rrsetVersion"` +} + +func (m RecordDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/record_operation.go b/vendor/github.com/oracle/oci-go-sdk/dns/record_operation.go new file mode 100644 index 0000000000..3e597d7fad --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/record_operation.go @@ -0,0 +1,89 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// RecordOperation An extension of the existing record resource, describing either a +// precondition, an add, or a remove. Preconditions check all fields, +// including read-only data like `recordHash` and `rrsetVersion`. +type RecordOperation struct { + + // The fully qualified domain name where the record can be located. + Domain *string `mandatory:"false" json:"domain"` + + // A unique identifier for the record within its zone. + RecordHash *string `mandatory:"false" json:"recordHash"` + + // A Boolean flag indicating whether or not parts of the record + // are unable to be explicitly managed. + IsProtected *bool `mandatory:"false" json:"isProtected"` + + // The record's data, as whitespace-delimited tokens in + // type-specific presentation format. + Rdata *string `mandatory:"false" json:"rdata"` + + // The latest version of the record's zone in which its RRSet differs + // from the preceding version. + RrsetVersion *string `mandatory:"false" json:"rrsetVersion"` + + // The canonical name for the record's type, such as A or CNAME. For more + // information, see Resource Record (RR) TYPEs (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4). + Rtype *string `mandatory:"false" json:"rtype"` + + // The Time To Live for the record, in seconds. + Ttl *int `mandatory:"false" json:"ttl"` + + // A description of how a record relates to a PATCH operation. + // - `REQUIRE` indicates a precondition that record data **must** already exist. + // - `PROHIBIT` indicates a precondition that record data **must not** already exist. + // - `ADD` indicates that record data **must** exist after successful application. + // - `REMOVE` indicates that record data **must not** exist after successful application. + // **Note:** `ADD` and `REMOVE` operations can succeed even if + // they require no changes when applied, such as when the described + // records are already present or absent. + // **Note:** `ADD` and `REMOVE` operations can describe changes for + // more than one record. + // **Example:** `{ "domain": "www.example.com", "rtype": "AAAA", "ttl": 60 }` + // specifies a new TTL for every record in the www.example.com AAAA RRSet. + Operation RecordOperationOperationEnum `mandatory:"false" json:"operation,omitempty"` +} + +func (m RecordOperation) String() string { + return common.PointerString(m) +} + +// RecordOperationOperationEnum Enum with underlying type: string +type RecordOperationOperationEnum string + +// Set of constants representing the allowable values for RecordOperationOperation +const ( + RecordOperationOperationRequire RecordOperationOperationEnum = "REQUIRE" + RecordOperationOperationProhibit RecordOperationOperationEnum = "PROHIBIT" + RecordOperationOperationAdd RecordOperationOperationEnum = "ADD" + RecordOperationOperationRemove RecordOperationOperationEnum = "REMOVE" +) + +var mappingRecordOperationOperation = map[string]RecordOperationOperationEnum{ + "REQUIRE": RecordOperationOperationRequire, + "PROHIBIT": RecordOperationOperationProhibit, + "ADD": RecordOperationOperationAdd, + "REMOVE": RecordOperationOperationRemove, +} + +// GetRecordOperationOperationEnumValues Enumerates the set of values for RecordOperationOperation +func GetRecordOperationOperationEnumValues() []RecordOperationOperationEnum { + values := make([]RecordOperationOperationEnum, 0) + for _, v := range mappingRecordOperationOperation { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/rr_set.go b/vendor/github.com/oracle/oci-go-sdk/dns/rr_set.go new file mode 100644 index 0000000000..127516b1f5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/rr_set.go @@ -0,0 +1,23 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// RrSet A collection of DNS records of the same domain and type. For more +// information about record types, see Resource Record (RR) TYPEs (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4). +type RrSet struct { + Items []Record `mandatory:"false" json:"items"` +} + +func (m RrSet) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/sort_order.go b/vendor/github.com/oracle/oci-go-sdk/dns/sort_order.go new file mode 100644 index 0000000000..c55060d0a1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/sort_order.go @@ -0,0 +1,21 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// SortOrder The order to sort the resources. +type SortOrder struct { +} + +func (m SortOrder) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/tsig.go b/vendor/github.com/oracle/oci-go-sdk/dns/tsig.go new file mode 100644 index 0000000000..3215bcb47d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/tsig.go @@ -0,0 +1,32 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// Tsig A TSIG (https://tools.ietf.org/html/rfc2845) key. +type Tsig struct { + + // A domain name identifying the key for a given pair of hosts. + Name *string `mandatory:"true" json:"name"` + + // A base64 string encoding the binary shared secret. + Secret *string `mandatory:"true" json:"secret"` + + // TSIG Algorithms are encoded as domain names, but most consist of only one + // non-empty label, which is not required to be explicitly absolute. For a + // full list of TSIG algorithms, see Secret Key Transaction Authentication for DNS (TSIG) Algorithm Names (http://www.iana.org/assignments/tsig-algorithm-names/tsig-algorithm-names.xhtml#tsig-algorithm-names-1) + Algorithm *string `mandatory:"true" json:"algorithm"` +} + +func (m Tsig) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/update_domain_records_details.go b/vendor/github.com/oracle/oci-go-sdk/dns/update_domain_records_details.go new file mode 100644 index 0000000000..528013635f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/update_domain_records_details.go @@ -0,0 +1,22 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateDomainRecordsDetails The representation of UpdateDomainRecordsDetails +type UpdateDomainRecordsDetails struct { + Items []RecordDetails `mandatory:"false" json:"items"` +} + +func (m UpdateDomainRecordsDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/update_domain_records_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/update_domain_records_request_response.go new file mode 100644 index 0000000000..af88a3ecbf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/update_domain_records_request_response.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateDomainRecordsRequest wrapper for the UpdateDomainRecords operation +type UpdateDomainRecordsRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The target fully-qualified domain name (FQDN) within the target zone. + Domain *string `mandatory:"true" contributesTo:"path" name:"domain"` + + // A full list of records for the domain. + UpdateDomainRecordsDetails `contributesTo:"body"` + + // The `If-Match` header field makes the request method conditional on the + // existence of at least one current representation of the target resource, + // when the field-value is `*`, or having a current representation of the + // target resource that has an entity-tag matching a member of the list of + // entity-tags provided in the field-value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"` + + // The `If-Unmodified-Since` header field makes the request method + // conditional on the selected representation's last modification date being + // earlier than or equal to the date provided in the field-value. This + // field accomplishes the same purpose as If-Match for cases where the user + // agent does not have an entity-tag for the representation. + IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request UpdateDomainRecordsRequest) String() string { + return common.PointerString(request) +} + +// UpdateDomainRecordsResponse wrapper for the UpdateDomainRecords operation +type UpdateDomainRecordsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecordCollection instance + RecordCollection `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"` + + // The total number of items that match the query. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // Unique Oracle-assigned identifier for the 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 current version of the record collection, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response UpdateDomainRecordsResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/update_r_r_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/update_r_r_set_request_response.go new file mode 100644 index 0000000000..e55bd15039 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/update_r_r_set_request_response.go @@ -0,0 +1,79 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateRRSetRequest wrapper for the UpdateRRSet operation +type UpdateRRSetRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // The target fully-qualified domain name (FQDN) within the target zone. + Domain *string `mandatory:"true" contributesTo:"path" name:"domain"` + + // The type of the target RRSet within the target zone. + Rtype *string `mandatory:"true" contributesTo:"path" name:"rtype"` + + // A full list of records for the RRSet. + UpdateRrSetDetails `contributesTo:"body"` + + // The `If-Match` header field makes the request method conditional on the + // existence of at least one current representation of the target resource, + // when the field-value is `*`, or having a current representation of the + // target resource that has an entity-tag matching a member of the list of + // entity-tags provided in the field-value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"` + + // The `If-Unmodified-Since` header field makes the request method + // conditional on the selected representation's last modification date being + // earlier than or equal to the date provided in the field-value. This + // field accomplishes the same purpose as If-Match for cases where the user + // agent does not have an entity-tag for the representation. + IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request UpdateRRSetRequest) String() string { + return common.PointerString(request) +} + +// UpdateRRSetResponse wrapper for the UpdateRRSet operation +type UpdateRRSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecordCollection instance + RecordCollection `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"` + + // The total number of items that match the query. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // Unique Oracle-assigned identifier for the 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 current version of the record collection, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response UpdateRRSetResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/update_rr_set_details.go b/vendor/github.com/oracle/oci-go-sdk/dns/update_rr_set_details.go new file mode 100644 index 0000000000..0c35e75329 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/update_rr_set_details.go @@ -0,0 +1,22 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateRrSetDetails The representation of UpdateRrSetDetails +type UpdateRrSetDetails struct { + Items []RecordDetails `mandatory:"false" json:"items"` +} + +func (m UpdateRrSetDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_details.go b/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_details.go new file mode 100644 index 0000000000..bf2434192e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_details.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateZoneDetails The body for updating a zone. +type UpdateZoneDetails struct { + + // External master servers for the zone. + ExternalMasters []ExternalMaster `mandatory:"false" json:"externalMasters"` +} + +func (m UpdateZoneDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_records_details.go b/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_records_details.go new file mode 100644 index 0000000000..cd1d8bb4ec --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_records_details.go @@ -0,0 +1,22 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateZoneRecordsDetails The representation of UpdateZoneRecordsDetails +type UpdateZoneRecordsDetails struct { + Items []RecordDetails `mandatory:"false" json:"items"` +} + +func (m UpdateZoneRecordsDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_records_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_records_request_response.go new file mode 100644 index 0000000000..5a15a663d9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_records_request_response.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateZoneRecordsRequest wrapper for the UpdateZoneRecords operation +type UpdateZoneRecordsRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // A full list of records for the zone. + UpdateZoneRecordsDetails `contributesTo:"body"` + + // The `If-Match` header field makes the request method conditional on the + // existence of at least one current representation of the target resource, + // when the field-value is `*`, or having a current representation of the + // target resource that has an entity-tag matching a member of the list of + // entity-tags provided in the field-value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"` + + // The `If-Unmodified-Since` header field makes the request method + // conditional on the selected representation's last modification date being + // earlier than or equal to the date provided in the field-value. This + // field accomplishes the same purpose as If-Match for cases where the user + // agent does not have an entity-tag for the representation. + IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request UpdateZoneRecordsRequest) String() string { + return common.PointerString(request) +} + +// UpdateZoneRecordsResponse wrapper for the UpdateZoneRecords operation +type UpdateZoneRecordsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecordCollection instance + RecordCollection `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"` + + // The total number of items that match the query. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // Unique Oracle-assigned identifier for the 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 current version of the record collection, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response UpdateZoneRecordsResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_request_response.go new file mode 100644 index 0000000000..f2fe9f7b2e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/update_zone_request_response.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateZoneRequest wrapper for the UpdateZone operation +type UpdateZoneRequest struct { + + // The name or OCID of the target zone. + ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"` + + // New data for the zone. + UpdateZoneDetails `contributesTo:"body"` + + // The `If-Match` header field makes the request method conditional on the + // existence of at least one current representation of the target resource, + // when the field-value is `*`, or having a current representation of the + // target resource that has an entity-tag matching a member of the list of + // entity-tags provided in the field-value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"` + + // The `If-Unmodified-Since` header field makes the request method + // conditional on the selected representation's last modification date being + // earlier than or equal to the date provided in the field-value. This + // field accomplishes the same purpose as If-Match for cases where the user + // agent does not have an entity-tag for the representation. + IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"` + + // The OCID of the compartment the resource belongs to. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` +} + +func (request UpdateZoneRequest) String() string { + return common.PointerString(request) +} + +// UpdateZoneResponse wrapper for the UpdateZone operation +type UpdateZoneResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Zone instance + Zone `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 current version of the zone, ending with a + // representation-specific suffix. This value may be used in If-Match + // and If-None-Match headers for later requests of the same resource. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response UpdateZoneResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/zone.go b/vendor/github.com/oracle/oci-go-sdk/dns/zone.go new file mode 100644 index 0000000000..53e1efaae5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/zone.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// Zone A DNS zone. +type Zone struct { + + // The name of the zone. + Name *string `mandatory:"false" json:"name"` + + // The type of the zone. Must be either `PRIMARY` or `SECONDARY`. + ZoneType ZoneZoneTypeEnum `mandatory:"false" json:"zoneType,omitempty"` + + // The OCID of the compartment containing the zone. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // External master servers for the zone. + ExternalMasters []ExternalMaster `mandatory:"false" json:"externalMasters"` + + // The canonical absolute URL of the resource. + Self *string `mandatory:"false" json:"self"` + + // The OCID of the zone. + Id *string `mandatory:"false" json:"id"` + + // The date and time the image was created in "YYYY-MM-ddThh:mmZ" format + // with a Z offset, as defined by RFC 3339. + // **Example:** `2016-07-22T17:23:59:60Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Version is the never-repeating, totally-orderable, version of the + // zone, from which the serial field of the zone's SOA record is + // derived. + Version *string `mandatory:"false" json:"version"` + + // The current serial of the zone. As seen in the zone's SOA record. + Serial *int `mandatory:"false" json:"serial"` + + // The current state of the zone resource. + LifecycleState ZoneLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` +} + +func (m Zone) String() string { + return common.PointerString(m) +} + +// ZoneZoneTypeEnum Enum with underlying type: string +type ZoneZoneTypeEnum string + +// Set of constants representing the allowable values for ZoneZoneType +const ( + ZoneZoneTypePrimary ZoneZoneTypeEnum = "PRIMARY" + ZoneZoneTypeSecondary ZoneZoneTypeEnum = "SECONDARY" +) + +var mappingZoneZoneType = map[string]ZoneZoneTypeEnum{ + "PRIMARY": ZoneZoneTypePrimary, + "SECONDARY": ZoneZoneTypeSecondary, +} + +// GetZoneZoneTypeEnumValues Enumerates the set of values for ZoneZoneType +func GetZoneZoneTypeEnumValues() []ZoneZoneTypeEnum { + values := make([]ZoneZoneTypeEnum, 0) + for _, v := range mappingZoneZoneType { + values = append(values, v) + } + return values +} + +// ZoneLifecycleStateEnum Enum with underlying type: string +type ZoneLifecycleStateEnum string + +// Set of constants representing the allowable values for ZoneLifecycleState +const ( + ZoneLifecycleStateActive ZoneLifecycleStateEnum = "ACTIVE" + ZoneLifecycleStateCreating ZoneLifecycleStateEnum = "CREATING" + ZoneLifecycleStateDeleted ZoneLifecycleStateEnum = "DELETED" + ZoneLifecycleStateDeleting ZoneLifecycleStateEnum = "DELETING" + ZoneLifecycleStateFailed ZoneLifecycleStateEnum = "FAILED" +) + +var mappingZoneLifecycleState = map[string]ZoneLifecycleStateEnum{ + "ACTIVE": ZoneLifecycleStateActive, + "CREATING": ZoneLifecycleStateCreating, + "DELETED": ZoneLifecycleStateDeleted, + "DELETING": ZoneLifecycleStateDeleting, + "FAILED": ZoneLifecycleStateFailed, +} + +// GetZoneLifecycleStateEnumValues Enumerates the set of values for ZoneLifecycleState +func GetZoneLifecycleStateEnumValues() []ZoneLifecycleStateEnum { + values := make([]ZoneLifecycleStateEnum, 0) + for _, v := range mappingZoneLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/zone_summary.go b/vendor/github.com/oracle/oci-go-sdk/dns/zone_summary.go new file mode 100644 index 0000000000..ea2994d16c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/dns/zone_summary.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Public DNS Service +// +// API for managing DNS zones, records, and policies. +// + +package dns + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ZoneSummary A DNS zone. +type ZoneSummary struct { + + // The name of the zone. + Name *string `mandatory:"false" json:"name"` + + // The type of the zone. Must be either `PRIMARY` or `SECONDARY`. + ZoneType ZoneSummaryZoneTypeEnum `mandatory:"false" json:"zoneType,omitempty"` + + // The OCID of the compartment containing the zone. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The canonical absolute URL of the resource. + Self *string `mandatory:"false" json:"self"` + + // The OCID of the zone. + Id *string `mandatory:"false" json:"id"` + + // The date and time the image was created in "YYYY-MM-ddThh:mmZ" format + // with a Z offset, as defined by RFC 3339. + // **Example:** `2016-07-22T17:23:59:60Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Version is the never-repeating, totally-orderable, version of the + // zone, from which the serial field of the zone's SOA record is + // derived. + Version *string `mandatory:"false" json:"version"` + + // The current serial of the zone. As seen in the zone's SOA record. + Serial *int `mandatory:"false" json:"serial"` +} + +func (m ZoneSummary) String() string { + return common.PointerString(m) +} + +// ZoneSummaryZoneTypeEnum Enum with underlying type: string +type ZoneSummaryZoneTypeEnum string + +// Set of constants representing the allowable values for ZoneSummaryZoneType +const ( + ZoneSummaryZoneTypePrimary ZoneSummaryZoneTypeEnum = "PRIMARY" + ZoneSummaryZoneTypeSecondary ZoneSummaryZoneTypeEnum = "SECONDARY" +) + +var mappingZoneSummaryZoneType = map[string]ZoneSummaryZoneTypeEnum{ + "PRIMARY": ZoneSummaryZoneTypePrimary, + "SECONDARY": ZoneSummaryZoneTypeSecondary, +} + +// GetZoneSummaryZoneTypeEnumValues Enumerates the set of values for ZoneSummaryZoneType +func GetZoneSummaryZoneTypeEnumValues() []ZoneSummaryZoneTypeEnum { + values := make([]ZoneSummaryZoneTypeEnum, 0) + for _, v := range mappingZoneSummaryZoneType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/create_sender_details.go b/vendor/github.com/oracle/oci-go-sdk/email/create_sender_details.go new file mode 100644 index 0000000000..fb9fa90a7e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/create_sender_details.go @@ -0,0 +1,27 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Email Delivery Service API +// +// API spec for managing OCI Email Delivery services. +// + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateSenderDetails The details needed for creating a sender. +type CreateSenderDetails struct { + + // The OCID of the compartment that contains the sender. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The email address of the sender. + EmailAddress *string `mandatory:"false" json:"emailAddress"` +} + +func (m CreateSenderDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/create_sender_request_response.go b/vendor/github.com/oracle/oci-go-sdk/email/create_sender_request_response.go new file mode 100644 index 0000000000..b929771a84 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/create_sender_request_response.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateSenderRequest wrapper for the CreateSender operation +type CreateSenderRequest struct { + + // Create a sender. + CreateSenderDetails `contributesTo:"body"` +} + +func (request CreateSenderRequest) String() string { + return common.PointerString(request) +} + +// CreateSenderResponse wrapper for the CreateSender operation +type CreateSenderResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Sender instance + Sender `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 CreateSenderResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/create_suppression_details.go b/vendor/github.com/oracle/oci-go-sdk/email/create_suppression_details.go new file mode 100644 index 0000000000..5e9358f846 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/create_suppression_details.go @@ -0,0 +1,29 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Email Delivery Service API +// +// API spec for managing OCI Email Delivery services. +// + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateSuppressionDetails The details needed for creating a single suppression. +type CreateSuppressionDetails struct { + + // The OCID of the compartment to contain the suppression. Since + // suppressions are at the customer level, this must be the tenancy + // OCID. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The recipient email address of the suppression. + EmailAddress *string `mandatory:"false" json:"emailAddress"` +} + +func (m CreateSuppressionDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/create_suppression_request_response.go b/vendor/github.com/oracle/oci-go-sdk/email/create_suppression_request_response.go new file mode 100644 index 0000000000..02031c95ba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/create_suppression_request_response.go @@ -0,0 +1,37 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateSuppressionRequest wrapper for the CreateSuppression operation +type CreateSuppressionRequest struct { + + // Adds a single email address to the suppression list for a compartment's tenancy. + CreateSuppressionDetails `contributesTo:"body"` +} + +func (request CreateSuppressionRequest) String() string { + return common.PointerString(request) +} + +// CreateSuppressionResponse wrapper for the CreateSuppression operation +type CreateSuppressionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Suppression instance + Suppression `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 CreateSuppressionResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/delete_sender_request_response.go b/vendor/github.com/oracle/oci-go-sdk/email/delete_sender_request_response.go new file mode 100644 index 0000000000..fe25640d58 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/delete_sender_request_response.go @@ -0,0 +1,36 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteSenderRequest wrapper for the DeleteSender operation +type DeleteSenderRequest struct { + + // The unique OCID of the sender. + SenderId *string `mandatory:"true" contributesTo:"path" name:"senderId"` +} + +func (request DeleteSenderRequest) String() string { + return common.PointerString(request) +} + +// DeleteSenderResponse wrapper for the DeleteSender operation +type DeleteSenderResponse 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 DeleteSenderResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/delete_suppression_request_response.go b/vendor/github.com/oracle/oci-go-sdk/email/delete_suppression_request_response.go new file mode 100644 index 0000000000..dc8f49a18b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/delete_suppression_request_response.go @@ -0,0 +1,36 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteSuppressionRequest wrapper for the DeleteSuppression operation +type DeleteSuppressionRequest struct { + + // The unique OCID of the suppression. + SuppressionId *string `mandatory:"true" contributesTo:"path" name:"suppressionId"` +} + +func (request DeleteSuppressionRequest) String() string { + return common.PointerString(request) +} + +// DeleteSuppressionResponse wrapper for the DeleteSuppression operation +type DeleteSuppressionResponse 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 DeleteSuppressionResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/email_client.go b/vendor/github.com/oracle/oci-go-sdk/email/email_client.go new file mode 100644 index 0000000000..eaeb8bbf01 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/email_client.go @@ -0,0 +1,208 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Email Delivery Service API +// +// API spec for managing OCI Email Delivery services. +// + +package email + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +//EmailClient a client for Email +type EmailClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewEmailClientWithConfigurationProvider Creates a new default Email client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewEmailClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client EmailClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } + + client = EmailClient{BaseClient: baseClient} + client.BasePath = "20170907" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *EmailClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "email", region) +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *EmailClient) 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 *EmailClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// CreateSender Creates a sender for a tenancy in a given compartment. +func (client EmailClient) CreateSender(ctx context.Context, request CreateSenderRequest) (response CreateSenderResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/senders", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateSuppression Adds recipient email addresses to the suppression list for a tenancy. +func (client EmailClient) CreateSuppression(ctx context.Context, request CreateSuppressionRequest) (response CreateSuppressionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/suppressions", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteSender Deletes an approved sender for a tenancy in a given compartment for a +// provided `senderId`. +func (client EmailClient) DeleteSender(ctx context.Context, request DeleteSenderRequest) (response DeleteSenderResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/senders/{senderId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// DeleteSuppression Removes a suppressed recipient email address from the suppression list +// for a tenancy in a given compartment for a provided `suppressionId`. +func (client EmailClient) DeleteSuppression(ctx context.Context, request DeleteSuppressionRequest) (response DeleteSuppressionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/suppressions/{suppressionId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetSender Gets an approved sender for a given `senderId`. +func (client EmailClient) GetSender(ctx context.Context, request GetSenderRequest) (response GetSenderResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/senders/{senderId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetSuppression Gets the details of a suppressed recipient email address for a given +// `suppressionId`. Each suppression is given a unique OCID. +func (client EmailClient) GetSuppression(ctx context.Context, request GetSuppressionRequest) (response GetSuppressionResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/suppressions/{suppressionId}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListSenders Gets a collection of approved sender email addresses and sender IDs. +func (client EmailClient) ListSenders(ctx context.Context, request ListSendersRequest) (response ListSendersResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/senders", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListSuppressions Gets a list of suppressed recipient email addresses for a user. The +// `compartmentId` for suppressions must be a tenancy OCID. The returned list +// is sorted by creation time in descending order. +func (client EmailClient) ListSuppressions(ctx context.Context, request ListSuppressionsRequest) (response ListSuppressionsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/suppressions", request) + if err != nil { + 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/email/get_sender_request_response.go b/vendor/github.com/oracle/oci-go-sdk/email/get_sender_request_response.go new file mode 100644 index 0000000000..441a432d12 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/get_sender_request_response.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetSenderRequest wrapper for the GetSender operation +type GetSenderRequest struct { + + // The unique OCID of the sender. + SenderId *string `mandatory:"true" contributesTo:"path" name:"senderId"` +} + +func (request GetSenderRequest) String() string { + return common.PointerString(request) +} + +// GetSenderResponse wrapper for the GetSender operation +type GetSenderResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Sender instance + Sender `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 GetSenderResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/get_suppression_request_response.go b/vendor/github.com/oracle/oci-go-sdk/email/get_suppression_request_response.go new file mode 100644 index 0000000000..792624a04f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/get_suppression_request_response.go @@ -0,0 +1,37 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetSuppressionRequest wrapper for the GetSuppression operation +type GetSuppressionRequest struct { + + // The unique OCID of the suppression. + SuppressionId *string `mandatory:"true" contributesTo:"path" name:"suppressionId"` +} + +func (request GetSuppressionRequest) String() string { + return common.PointerString(request) +} + +// GetSuppressionResponse wrapper for the GetSuppression operation +type GetSuppressionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Suppression instance + Suppression `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 GetSuppressionResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/list_senders_request_response.go b/vendor/github.com/oracle/oci-go-sdk/email/list_senders_request_response.go new file mode 100644 index 0000000000..d0a5971870 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/list_senders_request_response.go @@ -0,0 +1,117 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListSendersRequest wrapper for the ListSenders operation +type ListSendersRequest struct { + + // The OCID for the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The current state of a sender. + LifecycleState SenderLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The email address of the approved sender. + EmailAddress *string `mandatory:"false" contributesTo:"query" name:"emailAddress"` + + // The value of the `opc-next-page` response header from the previous + // GET request. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated GET request. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The field to sort by. The `TIMECREATED` value returns the list in in + // descending order by default. The `EMAILADDRESS` value returns the list in + // ascending order by default. Use the `SortOrderQueryParam` to change the + // direction of the returned list of items. + SortBy ListSendersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending or descending order. + SortOrder ListSendersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` +} + +func (request ListSendersRequest) String() string { + return common.PointerString(request) +} + +// ListSendersResponse wrapper for the ListSenders operation +type ListSendersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []SenderSummary instance + Items []SenderSummary `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. If this header appears in the + // response, then a partial list might have been returned. Include + // this value for the `page` parameter in subsequent GET + // requests to return the next batch of items. + // of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // The total number of items returned from the request. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` +} + +func (response ListSendersResponse) String() string { + return common.PointerString(response) +} + +// ListSendersSortByEnum Enum with underlying type: string +type ListSendersSortByEnum string + +// Set of constants representing the allowable values for ListSendersSortBy +const ( + ListSendersSortByTimecreated ListSendersSortByEnum = "TIMECREATED" + ListSendersSortByEmailaddress ListSendersSortByEnum = "EMAILADDRESS" +) + +var mappingListSendersSortBy = map[string]ListSendersSortByEnum{ + "TIMECREATED": ListSendersSortByTimecreated, + "EMAILADDRESS": ListSendersSortByEmailaddress, +} + +// GetListSendersSortByEnumValues Enumerates the set of values for ListSendersSortBy +func GetListSendersSortByEnumValues() []ListSendersSortByEnum { + values := make([]ListSendersSortByEnum, 0) + for _, v := range mappingListSendersSortBy { + values = append(values, v) + } + return values +} + +// ListSendersSortOrderEnum Enum with underlying type: string +type ListSendersSortOrderEnum string + +// Set of constants representing the allowable values for ListSendersSortOrder +const ( + ListSendersSortOrderAsc ListSendersSortOrderEnum = "ASC" + ListSendersSortOrderDesc ListSendersSortOrderEnum = "DESC" +) + +var mappingListSendersSortOrder = map[string]ListSendersSortOrderEnum{ + "ASC": ListSendersSortOrderAsc, + "DESC": ListSendersSortOrderDesc, +} + +// GetListSendersSortOrderEnumValues Enumerates the set of values for ListSendersSortOrder +func GetListSendersSortOrderEnumValues() []ListSendersSortOrderEnum { + values := make([]ListSendersSortOrderEnum, 0) + for _, v := range mappingListSendersSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/list_suppressions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/email/list_suppressions_request_response.go new file mode 100644 index 0000000000..2bc700eca0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/list_suppressions_request_response.go @@ -0,0 +1,128 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListSuppressionsRequest wrapper for the ListSuppressions operation +type ListSuppressionsRequest struct { + + // The OCID for the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The email address of the suppression. + EmailAddress *string `mandatory:"false" contributesTo:"query" name:"emailAddress"` + + // Search for suppressions that were created within a specific date range, + // using this parameter to specify the earliest creation date for the + // returned list (inclusive). Specifying this parameter without the + // corresponding `timeCreatedLessThan` parameter will retrieve suppressions created from the + // given `timeCreatedGreaterThanOrEqualTo` to the current time, in "YYYY-MM-ddThh:mmZ" format with a + // Z offset, as defined by RFC 3339. + // **Example:** 2016-12-19T16:39:57.600Z + TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"` + + // Search for suppressions that were created within a specific date range, + // using this parameter to specify the latest creation date for the returned + // list (exclusive). Specifying this parameter without the corresponding + // `timeCreatedGreaterThanOrEqualTo` parameter will retrieve all suppressions created before the + // specified end date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as + // defined by RFC 3339. + // **Example:** 2016-12-19T16:39:57.600Z + TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"` + + // The value of the `opc-next-page` response header from the previous + // GET request. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated GET request. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The field to sort by. The `TIMECREATED` value returns the list in in + // descending order by default. The `EMAILADDRESS` value returns the list in + // ascending order by default. Use the `SortOrderQueryParam` to change the + // direction of the returned list of items. + SortBy ListSuppressionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending or descending order. + SortOrder ListSuppressionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` +} + +func (request ListSuppressionsRequest) String() string { + return common.PointerString(request) +} + +// ListSuppressionsResponse wrapper for the ListSuppressions operation +type ListSuppressionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []SuppressionSummary instance + Items []SuppressionSummary `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. If this header appears in the + // response, then a partial list might have been returned. Include + // this value for the `page` parameter in subsequent GET + // requests to return the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListSuppressionsResponse) String() string { + return common.PointerString(response) +} + +// ListSuppressionsSortByEnum Enum with underlying type: string +type ListSuppressionsSortByEnum string + +// Set of constants representing the allowable values for ListSuppressionsSortBy +const ( + ListSuppressionsSortByTimecreated ListSuppressionsSortByEnum = "TIMECREATED" + ListSuppressionsSortByEmailaddress ListSuppressionsSortByEnum = "EMAILADDRESS" +) + +var mappingListSuppressionsSortBy = map[string]ListSuppressionsSortByEnum{ + "TIMECREATED": ListSuppressionsSortByTimecreated, + "EMAILADDRESS": ListSuppressionsSortByEmailaddress, +} + +// GetListSuppressionsSortByEnumValues Enumerates the set of values for ListSuppressionsSortBy +func GetListSuppressionsSortByEnumValues() []ListSuppressionsSortByEnum { + values := make([]ListSuppressionsSortByEnum, 0) + for _, v := range mappingListSuppressionsSortBy { + values = append(values, v) + } + return values +} + +// ListSuppressionsSortOrderEnum Enum with underlying type: string +type ListSuppressionsSortOrderEnum string + +// Set of constants representing the allowable values for ListSuppressionsSortOrder +const ( + ListSuppressionsSortOrderAsc ListSuppressionsSortOrderEnum = "ASC" + ListSuppressionsSortOrderDesc ListSuppressionsSortOrderEnum = "DESC" +) + +var mappingListSuppressionsSortOrder = map[string]ListSuppressionsSortOrderEnum{ + "ASC": ListSuppressionsSortOrderAsc, + "DESC": ListSuppressionsSortOrderDesc, +} + +// GetListSuppressionsSortOrderEnumValues Enumerates the set of values for ListSuppressionsSortOrder +func GetListSuppressionsSortOrderEnumValues() []ListSuppressionsSortOrderEnum { + values := make([]ListSuppressionsSortOrderEnum, 0) + for _, v := range mappingListSuppressionsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/sender.go b/vendor/github.com/oracle/oci-go-sdk/email/sender.go new file mode 100644 index 0000000000..19b3ff8a28 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/sender.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Email Delivery Service API +// +// API spec for managing OCI Email Delivery services. +// + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// Sender The full information representing an approved sender. +type Sender struct { + + // Email address of the sender. + EmailAddress *string `mandatory:"false" json:"emailAddress"` + + // The unique OCID of the sender. + Id *string `mandatory:"false" json:"id"` + + // Value of the SPF field. For more information about SPF, please see + // SPF Authentication (https://docs.us-phoenix-1.oraclecloud.com/Content/Email/Concepts/emaildeliveryoverview.htm#spf). + IsSpf *bool `mandatory:"false" json:"isSpf"` + + // The sender's current lifecycle state. + LifecycleState SenderLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" + // format with a Z offset, as defined by RFC 3339. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m Sender) String() string { + return common.PointerString(m) +} + +// SenderLifecycleStateEnum Enum with underlying type: string +type SenderLifecycleStateEnum string + +// Set of constants representing the allowable values for SenderLifecycleState +const ( + SenderLifecycleStateCreating SenderLifecycleStateEnum = "CREATING" + SenderLifecycleStateActive SenderLifecycleStateEnum = "ACTIVE" + SenderLifecycleStateDeleting SenderLifecycleStateEnum = "DELETING" + SenderLifecycleStateDeleted SenderLifecycleStateEnum = "DELETED" +) + +var mappingSenderLifecycleState = map[string]SenderLifecycleStateEnum{ + "CREATING": SenderLifecycleStateCreating, + "ACTIVE": SenderLifecycleStateActive, + "DELETING": SenderLifecycleStateDeleting, + "DELETED": SenderLifecycleStateDeleted, +} + +// GetSenderLifecycleStateEnumValues Enumerates the set of values for SenderLifecycleState +func GetSenderLifecycleStateEnumValues() []SenderLifecycleStateEnum { + values := make([]SenderLifecycleStateEnum, 0) + for _, v := range mappingSenderLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/sender_summary.go b/vendor/github.com/oracle/oci-go-sdk/email/sender_summary.go new file mode 100644 index 0000000000..2d56001312 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/sender_summary.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Email Delivery Service API +// +// API spec for managing OCI Email Delivery services. +// + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// SenderSummary The email addresses and `senderId` representing an approved sender. +type SenderSummary struct { + + // The email address of the sender. + EmailAddress *string `mandatory:"false" json:"emailAddress"` + + // The unique ID of the sender. + Id *string `mandatory:"false" json:"id"` + + // The current status of the approved sender. + LifecycleState SenderSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Date time the approved sender was added, in "YYYY-MM-ddThh:mmZ" + // format with a Z offset, as defined by RFC 3339. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m SenderSummary) String() string { + return common.PointerString(m) +} + +// SenderSummaryLifecycleStateEnum Enum with underlying type: string +type SenderSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for SenderSummaryLifecycleState +const ( + SenderSummaryLifecycleStateCreating SenderSummaryLifecycleStateEnum = "CREATING" + SenderSummaryLifecycleStateActive SenderSummaryLifecycleStateEnum = "ACTIVE" + SenderSummaryLifecycleStateDeleting SenderSummaryLifecycleStateEnum = "DELETING" + SenderSummaryLifecycleStateDeleted SenderSummaryLifecycleStateEnum = "DELETED" +) + +var mappingSenderSummaryLifecycleState = map[string]SenderSummaryLifecycleStateEnum{ + "CREATING": SenderSummaryLifecycleStateCreating, + "ACTIVE": SenderSummaryLifecycleStateActive, + "DELETING": SenderSummaryLifecycleStateDeleting, + "DELETED": SenderSummaryLifecycleStateDeleted, +} + +// GetSenderSummaryLifecycleStateEnumValues Enumerates the set of values for SenderSummaryLifecycleState +func GetSenderSummaryLifecycleStateEnumValues() []SenderSummaryLifecycleStateEnum { + values := make([]SenderSummaryLifecycleStateEnum, 0) + for _, v := range mappingSenderSummaryLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/suppression.go b/vendor/github.com/oracle/oci-go-sdk/email/suppression.go new file mode 100644 index 0000000000..86c1571af5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/suppression.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Email Delivery Service API +// +// API spec for managing OCI Email Delivery services. +// + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// Suppression The full information representing an email suppression. +type Suppression struct { + + // Email address of the suppression. + EmailAddress *string `mandatory:"false" json:"emailAddress"` + + // The unique ID of the suppression. + Id *string `mandatory:"false" json:"id"` + + // The reason that the email address was suppressed. For more information on the types of bounces, see Suppresion List (https://docs.us-phoenix-1.oraclecloud.com/Content/Email/Concepts/emaildeliveryoverview.htm#suppressionlist). + Reason SuppressionReasonEnum `mandatory:"false" json:"reason,omitempty"` + + // The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" + // format with a Z offset, as defined by RFC 3339. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m Suppression) String() string { + return common.PointerString(m) +} + +// SuppressionReasonEnum Enum with underlying type: string +type SuppressionReasonEnum string + +// Set of constants representing the allowable values for SuppressionReason +const ( + SuppressionReasonUnknown SuppressionReasonEnum = "UNKNOWN" + SuppressionReasonHardbounce SuppressionReasonEnum = "HARDBOUNCE" + SuppressionReasonComplaint SuppressionReasonEnum = "COMPLAINT" + SuppressionReasonManual SuppressionReasonEnum = "MANUAL" + SuppressionReasonSoftbounce SuppressionReasonEnum = "SOFTBOUNCE" + SuppressionReasonUnsubscribe SuppressionReasonEnum = "UNSUBSCRIBE" +) + +var mappingSuppressionReason = map[string]SuppressionReasonEnum{ + "UNKNOWN": SuppressionReasonUnknown, + "HARDBOUNCE": SuppressionReasonHardbounce, + "COMPLAINT": SuppressionReasonComplaint, + "MANUAL": SuppressionReasonManual, + "SOFTBOUNCE": SuppressionReasonSoftbounce, + "UNSUBSCRIBE": SuppressionReasonUnsubscribe, +} + +// GetSuppressionReasonEnumValues Enumerates the set of values for SuppressionReason +func GetSuppressionReasonEnumValues() []SuppressionReasonEnum { + values := make([]SuppressionReasonEnum, 0) + for _, v := range mappingSuppressionReason { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/email/suppression_summary.go b/vendor/github.com/oracle/oci-go-sdk/email/suppression_summary.go new file mode 100644 index 0000000000..46bdf18566 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/email/suppression_summary.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Email Delivery Service API +// +// API spec for managing OCI Email Delivery services. +// + +package email + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// SuppressionSummary The full information representing a suppression. +type SuppressionSummary struct { + + // The email address of the suppression. + EmailAddress *string `mandatory:"false" json:"emailAddress"` + + // The unique OCID of the suppression. + Id *string `mandatory:"false" json:"id"` + + // The reason that the email address was suppressed. + Reason SuppressionSummaryReasonEnum `mandatory:"false" json:"reason,omitempty"` + + // The date and time a recipient's email address was added to the + // suppression list, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as + // defined by RFC 3339. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m SuppressionSummary) String() string { + return common.PointerString(m) +} + +// SuppressionSummaryReasonEnum Enum with underlying type: string +type SuppressionSummaryReasonEnum string + +// Set of constants representing the allowable values for SuppressionSummaryReason +const ( + SuppressionSummaryReasonUnknown SuppressionSummaryReasonEnum = "UNKNOWN" + SuppressionSummaryReasonHardbounce SuppressionSummaryReasonEnum = "HARDBOUNCE" + SuppressionSummaryReasonComplaint SuppressionSummaryReasonEnum = "COMPLAINT" + SuppressionSummaryReasonManual SuppressionSummaryReasonEnum = "MANUAL" + SuppressionSummaryReasonSoftbounce SuppressionSummaryReasonEnum = "SOFTBOUNCE" + SuppressionSummaryReasonUnsubscribe SuppressionSummaryReasonEnum = "UNSUBSCRIBE" +) + +var mappingSuppressionSummaryReason = map[string]SuppressionSummaryReasonEnum{ + "UNKNOWN": SuppressionSummaryReasonUnknown, + "HARDBOUNCE": SuppressionSummaryReasonHardbounce, + "COMPLAINT": SuppressionSummaryReasonComplaint, + "MANUAL": SuppressionSummaryReasonManual, + "SOFTBOUNCE": SuppressionSummaryReasonSoftbounce, + "UNSUBSCRIBE": SuppressionSummaryReasonUnsubscribe, +} + +// GetSuppressionSummaryReasonEnumValues Enumerates the set of values for SuppressionSummaryReason +func GetSuppressionSummaryReasonEnumValues() []SuppressionSummaryReasonEnum { + values := make([]SuppressionSummaryReasonEnum, 0) + for _, v := range mappingSuppressionSummaryReason { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_email_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_email_test.go new file mode 100644 index 0000000000..baa7d21379 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_email_test.go @@ -0,0 +1,77 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Example code for Email Delivery Service API +// + +package example + +import ( + "context" + "fmt" + "log" + + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/email" + "github.com/oracle/oci-go-sdk/example/helpers" +) + +const ( + // The address of the email sender + senderEmailAddress = "sample@sample.com" +) + +func ExampleEmailSender() { + client, err := email.NewEmailClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(err) + + ctx := context.Background() + + createReq := email.CreateSenderRequest{ + CreateSenderDetails: email.CreateSenderDetails{ + CompartmentId: helpers.CompartmentID(), + EmailAddress: common.String(senderEmailAddress), + }, + } + + createResp, err := client.CreateSender(ctx, createReq) + helpers.LogIfError(err) + fmt.Println("email sender created") + + getReq := email.GetSenderRequest{ + SenderId: createResp.Id, + } + + getResp, err := client.GetSender(ctx, getReq) + helpers.LogIfError(err) + fmt.Println("get email sender") + log.Printf("get email sender with email address %s\n", *getResp.EmailAddress) + + // you can provide additional filters and sorts, here lists all senders + // sorted by email address and filter by email address + listReq := email.ListSendersRequest{ + CompartmentId: helpers.CompartmentID(), + SortBy: email.ListSendersSortByEmailaddress, + SortOrder: email.ListSendersSortOrderAsc, + } + + listResp, err := client.ListSenders(ctx, listReq) + helpers.LogIfError(err) + log.Printf("list email senders return %v results\n", len(listResp.Items)) + fmt.Println("list email senders") + + defer func() { + deleteReq := email.DeleteSenderRequest{ + SenderId: getReq.SenderId, + } + + _, err = client.DeleteSender(ctx, deleteReq) + helpers.LogIfError(err) + fmt.Println("email sender deleted") + }() + + // Output: + // email sender created + // get email sender + // list email senders + // email sender deleted +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_instance_principals_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_instance_principals_test.go new file mode 100644 index 0000000000..91f941e859 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_instance_principals_test.go @@ -0,0 +1,41 @@ +package example + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/common/auth" + "github.com/oracle/oci-go-sdk/example/helpers" + "github.com/oracle/oci-go-sdk/identity" + "log" +) + +// ExampleInstancePrincipals lists the availability domains in your tenancy. +// Make sure you run this example from a instance with the right permissions. In this example +// the root compartment is read from the OCI_ROOT_COMPARTMENT_ID environment variable. +// More information on instance principals can be found here: https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/callingservicesfrominstances.htm +func ExampleInstancePrincipals() { + + provider, err := auth.InstancePrincipalConfigurationProvider() + helpers.LogIfError(err) + + tenancyID := helpers.RootCompartmentID() + request := identity.ListAvailabilityDomainsRequest{ + CompartmentId: tenancyID, + } + + client, err := identity.NewIdentityClientWithConfigurationProvider(provider) + // Override the region, this is an optional step. + // the InstancePrincipalsConfigurationProvider defaults to the region + // in which the compute instance is currently running + client.SetRegion(string(common.RegionLHR)) + + r, err := client.ListAvailabilityDomains(context.Background(), request) + helpers.LogIfError(err) + + log.Printf("list of available domains: %v", r.Items) + fmt.Println("Done") + + // Output: + // Done +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_tagging_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_tagging_test.go new file mode 100644 index 0000000000..5b0adb9c2b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_tagging_test.go @@ -0,0 +1,247 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// +// Example code for Tagging 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" +) + +// ExampleTagging shows the sample for tag and tagNamespace operations: create, update, get, list etc... +func ExampleTagging() { + c, err := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(err) + + ctx := context.Background() + tagNamespaceID := createTagNamespace(ctx, c, common.String("GOSDKSampleTagNamespaceName")) + fmt.Println("tag namespace created") + + tagName := common.String("GOSDKSampleTagName") + createTag(ctx, c, tagNamespaceID, tagName) + fmt.Println("tag created") + + // get tag + getTagReq := identity.GetTagRequest{ + TagNamespaceId: tagNamespaceID, + TagName: tagName, + } + _, err = c.GetTag(ctx, getTagReq) + helpers.LogIfError(err) + fmt.Println("get tag") + + // list tags, list operations are paginated and take a "page" parameter + // to allow you to get the next batch of items from the server + // for pagination sample, please refer to 'example_core_pagination_test.go' + listTagReq := identity.ListTagsRequest{ + TagNamespaceId: tagNamespaceID, + } + _, err = c.ListTags(ctx, listTagReq) + helpers.LogIfError(err) + fmt.Println("list tag") + + // get tag namespace + getTagNamespaceReq := identity.GetTagNamespaceRequest{ + TagNamespaceId: tagNamespaceID, + } + _, err = c.GetTagNamespace(ctx, getTagNamespaceReq) + helpers.LogIfError(err) + fmt.Println("get tag namespace") + + // list tag namespaces + listTagNamespaceReq := identity.ListTagNamespacesRequest{ + CompartmentId: helpers.CompartmentID(), + } + _, err = c.ListTagNamespaces(ctx, listTagNamespaceReq) + helpers.LogIfError(err) + fmt.Println("list tag namespace") + + // retire a tag namespace by using the update tag namespace operation + updateTagNamespaceReq := identity.UpdateTagNamespaceRequest{ + TagNamespaceId: tagNamespaceID, + UpdateTagNamespaceDetails: identity.UpdateTagNamespaceDetails{ + IsRetired: common.Bool(true), + }, + } + + _, err = c.UpdateTagNamespace(ctx, updateTagNamespaceReq) + helpers.LogIfError(err) + fmt.Println("tag namespace retired") + + // retire a tag by using the update tag operation + updateTagReq := identity.UpdateTagRequest{ + TagNamespaceId: tagNamespaceID, + TagName: tagName, + UpdateTagDetails: identity.UpdateTagDetails{ + IsRetired: common.Bool(true), + }, + } + _, err = c.UpdateTag(ctx, updateTagReq) + helpers.LogIfError(err) + fmt.Println("tag retired") + + // reactivate a tag namespace + updateTagNamespaceReq = identity.UpdateTagNamespaceRequest{ + TagNamespaceId: tagNamespaceID, + UpdateTagNamespaceDetails: identity.UpdateTagNamespaceDetails{ + // reactivate a tag namespace by using the update tag namespace operation + IsRetired: common.Bool(false), + }, + } + + _, err = c.UpdateTagNamespace(ctx, updateTagNamespaceReq) + helpers.LogIfError(err) + fmt.Println("tag namespace reactivated") + + // Output: + // tag namespace created + // tag created + // get tag + // list tag + // get tag namespace + // list tag namespace + // tag namespace retired + // tag retired + // tag namespace reactivated +} + +// ExampleFreeformAndDefinedTag shows how to use freeform and defined tags +func ExampleFreeformAndDefinedTag() { + // create a tag namespace and two tags + identityClient, err := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(err) + + ctx := context.Background() + + tagNamespaceName := "GOSDKSampleTagNamespaceName_1" + tagNamespaceID := createTagNamespace(ctx, identityClient, common.String(tagNamespaceName)) + fmt.Println("tag namespace created") + + tagName := "GOSDKSampleTagName_1" + createTag(ctx, identityClient, tagNamespaceID, common.String(tagName)) + fmt.Println("tag1 created") + + tagName2 := "GOSDKSampleTagName_2" + createTag(ctx, identityClient, tagNamespaceID, common.String(tagName2)) + fmt.Println("tag2 created") + + // We can assign freeform and defined tags at resource creation time. Freeform tags are a dictionary of + // string-to-string, where the key is the tag name and the value is the tag value. + // + // Defined tags are a dictionary where the key is the tag namespace (string) and the value is another dictionary. In + // this second dictionary, the key is the tag name (string) and the value is the tag value. The tag names have to + // correspond to the name of a tag within the specified namespace (and the namespace must exist). + freeformTags := map[string]string{"free": "form", "another": "item"} + definedTags := map[string]map[string]interface{}{ + tagNamespaceName: map[string]interface{}{ + tagName: "hello", + tagName2: "world", + }, + } + + coreClient, clerr := core.NewVirtualNetworkClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.LogIfError(clerr) + + // create a new VCN with tags + createVCNReq := core.CreateVcnRequest{ + CreateVcnDetails: core.CreateVcnDetails{ + CidrBlock: common.String("10.0.0.0/16"), + CompartmentId: helpers.CompartmentID(), + DisplayName: common.String("GOSDKSampleVCNName"), + DnsLabel: common.String("vcndns"), + FreeformTags: freeformTags, + DefinedTags: definedTags, + }, + } + + resp, err := coreClient.CreateVcn(ctx, createVCNReq) + + if err != nil && resp.RawResponse.StatusCode == 404 { + // You may get a 404 if you create/reactivate a tag and try and use it straight away. If you have a delay/sleep between + // creating the tag and then using it (or alternatively retry the 404) that may resolve the issue. + time.Sleep(time.Second * 10) + resp, err = coreClient.CreateVcn(ctx, createVCNReq) + } + + helpers.LogIfError(err) + fmt.Println("VCN created with tags") + + // replace the tag + freeformTags = map[string]string{"total": "replaced"} + + // update the tag value + definedTags[tagNamespaceName][tagName2] = "replaced" + + // update the VCN with different tag values + updateVCNReq := core.UpdateVcnRequest{ + VcnId: resp.Id, + UpdateVcnDetails: core.UpdateVcnDetails{ + FreeformTags: freeformTags, + DefinedTags: definedTags, + }, + } + _, err = coreClient.UpdateVcn(ctx, updateVCNReq) + helpers.LogIfError(err) + fmt.Println("VCN tag updated") + + // remove the tag from VCN + updateVCNReq.FreeformTags = nil + updateVCNReq.DefinedTags = nil + _, err = coreClient.UpdateVcn(ctx, updateVCNReq) + helpers.LogIfError(err) + fmt.Println("VCN tag removed") + + defer func() { + request := core.DeleteVcnRequest{ + VcnId: resp.Id, + } + + _, err = coreClient.DeleteVcn(ctx, request) + helpers.LogIfError(err) + fmt.Println("VCN deleted") + }() + + // Output: + // tag namespace created + // tag1 created + // tag2 created + // VCN created with tags + // VCN tag updated + // VCN tag removed + // VCN deleted +} + +func createTagNamespace(ctx context.Context, client identity.IdentityClient, name *string) *string { + req := identity.CreateTagNamespaceRequest{} + req.CompartmentId = helpers.CompartmentID() + req.Name = name + req.Description = common.String("GOSDK Sample TagNamespace Description") + + resp, err := client.CreateTagNamespace(context.Background(), req) + helpers.LogIfError(err) + + return resp.Id +} + +func createTag(ctx context.Context, client identity.IdentityClient, tagNamespaceID *string, tagName *string) *string { + req := identity.CreateTagRequest{ + TagNamespaceId: tagNamespaceID, + } + + req.Name = tagName + req.Description = common.String("GOSDK Sample Tag Description") + req.FreeformTags = map[string]string{"GOSDKSampleTagKey": "GOSDKSampleTagValue"} + + resp, err := client.CreateTag(context.Background(), req) + helpers.LogIfError(err) + + return resp.Id +} 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 index dca41999e4..361013da80 100644 --- a/vendor/github.com/oracle/oci-go-sdk/example/example_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_test.go @@ -11,13 +11,18 @@ import ( "github.com/oracle/oci-go-sdk/example/helpers" ) -// Before run the samples, update the .env.sample file with your tenancy info. +// Before run the samples, update the environment variables 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() + // ParseEnvironmentVariables assumes that you have configured your environment variables with following configs + // Required configs are: + // OCI_AVAILABILITY_DOMAIN -- The Availability Domain of the instance. Example: Uocm:PHX-AD-1 + // OCI_COMPARTMENT_ID -- The OCID of the compartment + // OCI_ROOT_COMPARTMENT_ID -- The OCID of the root compartment + helpers.ParseEnvironmentVariables() 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 index 4f8b123f0f..dfc3a28632 100644 --- a/vendor/github.com/oracle/oci-go-sdk/example/helpers/args.go +++ b/vendor/github.com/oracle/oci-go-sdk/example/helpers/args.go @@ -9,8 +9,6 @@ import ( "os" "github.com/oracle/oci-go-sdk/common" - - "github.com/subosito/gotenv" ) var ( @@ -19,12 +17,9 @@ var ( rootCompartmentID string ) -// ParseAgrs parse shared variables from environment variables, other samples should define their own +// ParseEnvironmentVariables 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) - +func ParseEnvironmentVariables() { availabilityDomain = os.Getenv("OCI_AVAILABILITY_DOMAIN") compartmentID = os.Getenv("OCI_COMPARTMENT_ID") rootCompartmentID = os.Getenv("OCI_ROOT_COMPARTMENT_ID") diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/create_export_details.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_export_details.go new file mode 100644 index 0000000000..56642c4e90 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_export_details.go @@ -0,0 +1,32 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +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: `/mediafiles` + 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/filestorage/create_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_export_request_response.go new file mode 100644 index 0000000000..1dd8b023ca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_export_request_response.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might 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/filestorage/create_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_file_system_details.go new file mode 100644 index 0000000000..5b4b3bff20 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_file_system_details.go @@ -0,0 +1,33 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +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. It 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/filestorage/create_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_file_system_request_response.go new file mode 100644 index 0000000000..5500a62e2f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_file_system_request_response.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might 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/filestorage/create_mount_target_details.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_mount_target_details.go new file mode 100644 index 0000000000..0f7501d74b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_mount_target_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateMountTargetDetails The representation of CreateMountTargetDetails +type CreateMountTargetDetails struct { + + // The availability domain in which to create the mount target. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment in which to create the mount target. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the subnet in which to create the mount target. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // A user-friendly name. It 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 resolution. The value is the hostname portion of the private IP + // address's fully qualified domain name (FQDN). For example, + // `files-1` in the 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 (https://docs.us-phoenix-1.oraclecloud.com/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/filestorage/create_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_mount_target_request_response.go new file mode 100644 index 0000000000..6e0221fab8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_mount_target_request_response.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might 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/filestorage/create_snapshot_details.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_snapshot_details.go new file mode 100644 index 0000000000..77736e0d5d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_snapshot_details.go @@ -0,0 +1,31 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +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. This value is immutable. It must also 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/filestorage/create_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_snapshot_request_response.go new file mode 100644 index 0000000000..10dd2347e3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_snapshot_request_response.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might 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/filestorage/delete_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/delete_export_request_response.go new file mode 100644 index 0000000000..78a2eaa10f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/delete_export_request_response.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteExportRequest wrapper for the DeleteExport operation +type DeleteExportRequest struct { + + // The OCID of the export. + 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/filestorage/delete_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/delete_file_system_request_response.go new file mode 100644 index 0000000000..b730e39486 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/delete_file_system_request_response.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. + 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/filestorage/delete_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/delete_mount_target_request_response.go new file mode 100644 index 0000000000..c648013629 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/delete_mount_target_request_response.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. + 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/filestorage/delete_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/delete_snapshot_request_response.go new file mode 100644 index 0000000000..e2ff169970 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/delete_snapshot_request_response.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteSnapshotRequest wrapper for the DeleteSnapshot operation +type DeleteSnapshotRequest struct { + + // The OCID of the snapshot. + 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/filestorage/export.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/export.go new file mode 100644 index 0000000000..2fa22f2445 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/export.go @@ -0,0 +1,91 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// Export A file system and the path that you can use to mount it. Each export +// resource belongs to exactly one export set. +// The export's path attribute is not a path in the +// referenced file system, but the value used by clients for the path +// component of the remotetarget argument when mounting the file +// system. +// The path must start with a slash (/) followed by a sequence of zero or more +// slash-separated path elements. For any two export resources associated with +// the same export set, except those in a 'DELETED' state, the path element +// sequence for the first export resource can't contain the +// complete path element sequence of the second export resource. +// For example, the following are acceptable: +// * /foo and /bar +// * /foo1 and /foo2 +// * /foo and /foo1 +// The following examples are not acceptable: +// * /foo and /foo/bar +// * / and /foo +// Paths may not end in a slash (/). No path element can be a period (.) +// or two periods in sequence (..). All path elements must be 255 bytes or less. +// 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 this export. + Id *string `mandatory:"true" json:"id"` + + // The current state of this 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, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // 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" +) + +var mappingExportLifecycleState = map[string]ExportLifecycleStateEnum{ + "CREATING": ExportLifecycleStateCreating, + "ACTIVE": ExportLifecycleStateActive, + "DELETING": ExportLifecycleStateDeleting, + "DELETED": ExportLifecycleStateDeleted, +} + +// GetExportLifecycleStateEnumValues Enumerates the set of values for ExportLifecycleState +func GetExportLifecycleStateEnumValues() []ExportLifecycleStateEnum { + values := make([]ExportLifecycleStateEnum, 0) + for _, v := range mappingExportLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/export_set.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/export_set.go new file mode 100644 index 0000000000..ed4ad87b84 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/export_set.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ExportSet A set of file systems to export through one or more mount +// targets. Composed of zero or more export resources. +type ExportSet struct { + + // The OCID of the compartment that contains the export set. + 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 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, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the virtual cloud network (VCN) the export set is in. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The availability domain the export set is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Controls the maximum `tbytes`, `fbytes`, and `abytes`, + // values reported by `NFS FSSTAT` calls through any associated + // mount targets. This is an advanced feature. For most + // applications, use the default value. The + // `tbytes` value reported by `FSSTAT` will be + // `maxFsStatBytes`. The value of `fbytes` and `abytes` 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 through any associated + // mount targets. This is an advanced feature. For most + // applications, use the default value. The + // `tfiles` value reported by `FSSTAT` will be + // `maxFsStatFiles`. The value of `ffiles` and `afiles` 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" +) + +var mappingExportSetLifecycleState = map[string]ExportSetLifecycleStateEnum{ + "CREATING": ExportSetLifecycleStateCreating, + "ACTIVE": ExportSetLifecycleStateActive, + "DELETING": ExportSetLifecycleStateDeleting, + "DELETED": ExportSetLifecycleStateDeleted, +} + +// GetExportSetLifecycleStateEnumValues Enumerates the set of values for ExportSetLifecycleState +func GetExportSetLifecycleStateEnumValues() []ExportSetLifecycleStateEnum { + values := make([]ExportSetLifecycleStateEnum, 0) + for _, v := range mappingExportSetLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/export_set_summary.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/export_set_summary.go new file mode 100644 index 0000000000..d9bca9a3d3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/export_set_summary.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ExportSetSummary Summary information for an export set. +type ExportSetSummary struct { + + // The OCID of the compartment that contains the export set. + 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 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, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the virtual cloud network (VCN) the export set is in. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The availability domain the export set is in. May be unset + // as a blank or NULL value. + // 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" +) + +var mappingExportSetSummaryLifecycleState = map[string]ExportSetSummaryLifecycleStateEnum{ + "CREATING": ExportSetSummaryLifecycleStateCreating, + "ACTIVE": ExportSetSummaryLifecycleStateActive, + "DELETING": ExportSetSummaryLifecycleStateDeleting, + "DELETED": ExportSetSummaryLifecycleStateDeleted, +} + +// GetExportSetSummaryLifecycleStateEnumValues Enumerates the set of values for ExportSetSummaryLifecycleState +func GetExportSetSummaryLifecycleStateEnumValues() []ExportSetSummaryLifecycleStateEnum { + values := make([]ExportSetSummaryLifecycleStateEnum, 0) + for _, v := range mappingExportSetSummaryLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/export_summary.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/export_summary.go new file mode 100644 index 0000000000..fb2515619f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/export_summary.go @@ -0,0 +1,70 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +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 this export. + Id *string `mandatory:"true" json:"id"` + + // The current state of this export. + LifecycleState ExportSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Path used to access the associated file system. + // Avoid entering confidential information. + // Example: `/mediafiles` + Path *string `mandatory:"true" json:"path"` + + // The date and time the export was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // 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" +) + +var mappingExportSummaryLifecycleState = map[string]ExportSummaryLifecycleStateEnum{ + "CREATING": ExportSummaryLifecycleStateCreating, + "ACTIVE": ExportSummaryLifecycleStateActive, + "DELETING": ExportSummaryLifecycleStateDeleting, + "DELETED": ExportSummaryLifecycleStateDeleted, +} + +// GetExportSummaryLifecycleStateEnumValues Enumerates the set of values for ExportSummaryLifecycleState +func GetExportSummaryLifecycleStateEnumValues() []ExportSummaryLifecycleStateEnum { + values := make([]ExportSummaryLifecycleStateEnum, 0) + for _, v := range mappingExportSummaryLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system.go new file mode 100644 index 0000000000..93d4547a71 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system.go @@ -0,0 +1,86 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// FileSystem An NFS file system. To allow access to a file system, add it +// to an export set and associate 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'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 FileSystem struct { + + // The number of bytes consumed by the file system, including + // any snapshots. This number reflects the metered size of the file + // system and is updated asynchronously with respect to + // updates to the file system. + 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. It 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, expressed in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // 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 + // as a blank or NULL value. + // 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" +) + +var mappingFileSystemLifecycleState = map[string]FileSystemLifecycleStateEnum{ + "CREATING": FileSystemLifecycleStateCreating, + "ACTIVE": FileSystemLifecycleStateActive, + "DELETING": FileSystemLifecycleStateDeleting, + "DELETED": FileSystemLifecycleStateDeleted, +} + +// GetFileSystemLifecycleStateEnumValues Enumerates the set of values for FileSystemLifecycleState +func GetFileSystemLifecycleStateEnumValues() []FileSystemLifecycleStateEnum { + values := make([]FileSystemLifecycleStateEnum, 0) + for _, v := range mappingFileSystemLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system_summary.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system_summary.go new file mode 100644 index 0000000000..8fa608088d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system_summary.go @@ -0,0 +1,79 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +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 + // any snapshots. 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 (https://docs.us-phoenix-1.oraclecloud.com/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. It 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, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // 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 + // as a blank or NULL value. + // 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" +) + +var mappingFileSystemSummaryLifecycleState = map[string]FileSystemSummaryLifecycleStateEnum{ + "CREATING": FileSystemSummaryLifecycleStateCreating, + "ACTIVE": FileSystemSummaryLifecycleStateActive, + "DELETING": FileSystemSummaryLifecycleStateDeleting, + "DELETED": FileSystemSummaryLifecycleStateDeleted, +} + +// GetFileSystemSummaryLifecycleStateEnumValues Enumerates the set of values for FileSystemSummaryLifecycleState +func GetFileSystemSummaryLifecycleStateEnumValues() []FileSystemSummaryLifecycleStateEnum { + values := make([]FileSystemSummaryLifecycleStateEnum, 0) + for _, v := range mappingFileSystemSummaryLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/filestorage_client.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/filestorage_client.go new file mode 100644 index 0000000000..96bb940c0d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/filestorage_client.go @@ -0,0 +1,492 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +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 specified 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 Creates a new file system in the specified compartment and +// availability domain. Instances can mount file systems in +// another availability domain, but doing so might increase +// latency when compared to mounting instances in the same +// availability domain. +// After you create a file system, you can associate it with a mount +// target. Instances can then mount the file system by connecting to the +// mount target's IP address. You can associate a file system with +// more than one mount target at a time. +// 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 +// 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 Creates a new mount target in the specified compartment and +// subnet. You can associate a file system with a mount +// target only when they exist in the same availability domain. Instances +// can connect to mount targets in another availablity domain, but +// you might see higher latency than with instances in the same +// availability domain as the mount target. +// Mount targets have one or more private IP addresses that you can +// provide as the host portion of remote target parameters in +// client mount commands. These private IP addresses are listed +// in the privateIpIds property of the mount target and are highly available. Mount +// targets also consume additional IP addresses in their subnet. +// Do not use /30 or smaller subnets for mount target creation because they +// do not have sufficient available IP addresses. +// Allow at least three IP addresses for each mount target. +// 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 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. You +// can access the snapshot 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 Deletes 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 Deletes the specified file system. Before you delete the file system, +// verify that no remaining export resources still reference it. 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 Deletes the specified mount target. This operation also deletes 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 Deletes 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 target'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 Lists 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 Lists the export resources in the specified compartment. You must +// also specify an export set, a file system, or both. +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 Lists 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 +} + +// ListMountTargets Lists 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 Lists 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 Updates 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 Updates the specified file system's information. +// You can use this operation to rename a file system. +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 Updates the specified mount target'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/filestorage/get_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/get_export_request_response.go new file mode 100644 index 0000000000..40e5bb8eae --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/get_export_request_response.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetExportRequest wrapper for the GetExport operation +type GetExportRequest struct { + + // The OCID of the export. + 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/filestorage/get_export_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/get_export_set_request_response.go new file mode 100644 index 0000000000..309ddfdc3e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/get_export_set_request_response.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. + 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/filestorage/get_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/get_file_system_request_response.go new file mode 100644 index 0000000000..a010d5c093 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/get_file_system_request_response.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. + 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/filestorage/get_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/get_mount_target_request_response.go new file mode 100644 index 0000000000..790151d030 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/get_mount_target_request_response.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. + 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/filestorage/get_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/get_snapshot_request_response.go new file mode 100644 index 0000000000..c69d9eb653 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/get_snapshot_request_response.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetSnapshotRequest wrapper for the GetSnapshot operation +type GetSnapshotRequest struct { + + // The OCID of the snapshot. + 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/filestorage/list_export_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/list_export_sets_request_response.go new file mode 100644 index 0000000000..7a54376336 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/list_export_sets_request_response.go @@ -0,0 +1,154 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. It 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. You can provide either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by display name, results are + // shown in ascending order. + SortBy ListExportSetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. + 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" +) + +var mappingListExportSetsLifecycleState = map[string]ListExportSetsLifecycleStateEnum{ + "CREATING": ListExportSetsLifecycleStateCreating, + "ACTIVE": ListExportSetsLifecycleStateActive, + "DELETING": ListExportSetsLifecycleStateDeleting, + "DELETED": ListExportSetsLifecycleStateDeleted, + "FAILED": ListExportSetsLifecycleStateFailed, +} + +// GetListExportSetsLifecycleStateEnumValues Enumerates the set of values for ListExportSetsLifecycleState +func GetListExportSetsLifecycleStateEnumValues() []ListExportSetsLifecycleStateEnum { + values := make([]ListExportSetsLifecycleStateEnum, 0) + for _, v := range mappingListExportSetsLifecycleState { + 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" +) + +var mappingListExportSetsSortBy = map[string]ListExportSetsSortByEnum{ + "TIMECREATED": ListExportSetsSortByTimecreated, + "DISPLAYNAME": ListExportSetsSortByDisplayname, +} + +// GetListExportSetsSortByEnumValues Enumerates the set of values for ListExportSetsSortBy +func GetListExportSetsSortByEnumValues() []ListExportSetsSortByEnum { + values := make([]ListExportSetsSortByEnum, 0) + for _, v := range mappingListExportSetsSortBy { + 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" +) + +var mappingListExportSetsSortOrder = map[string]ListExportSetsSortOrderEnum{ + "ASC": ListExportSetsSortOrderAsc, + "DESC": ListExportSetsSortOrderDesc, +} + +// GetListExportSetsSortOrderEnumValues Enumerates the set of values for ListExportSetsSortOrder +func GetListExportSetsSortOrderEnumValues() []ListExportSetsSortOrderEnum { + values := make([]ListExportSetsSortOrderEnum, 0) + for _, v := range mappingListExportSetsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/list_exports_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/list_exports_request_response.go new file mode 100644 index 0000000000..800593b300 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/list_exports_request_response.go @@ -0,0 +1,152 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. + ExportSetId *string `mandatory:"false" contributesTo:"query" name:"exportSetId"` + + // The OCID of the file system. + 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. You can provide either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by path, results are + // shown in ascending alphanumeric order. + SortBy ListExportsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. + 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" +) + +var mappingListExportsLifecycleState = map[string]ListExportsLifecycleStateEnum{ + "CREATING": ListExportsLifecycleStateCreating, + "ACTIVE": ListExportsLifecycleStateActive, + "DELETING": ListExportsLifecycleStateDeleting, + "DELETED": ListExportsLifecycleStateDeleted, + "FAILED": ListExportsLifecycleStateFailed, +} + +// GetListExportsLifecycleStateEnumValues Enumerates the set of values for ListExportsLifecycleState +func GetListExportsLifecycleStateEnumValues() []ListExportsLifecycleStateEnum { + values := make([]ListExportsLifecycleStateEnum, 0) + for _, v := range mappingListExportsLifecycleState { + 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" + ListExportsSortByPath ListExportsSortByEnum = "PATH" +) + +var mappingListExportsSortBy = map[string]ListExportsSortByEnum{ + "TIMECREATED": ListExportsSortByTimecreated, + "PATH": ListExportsSortByPath, +} + +// GetListExportsSortByEnumValues Enumerates the set of values for ListExportsSortBy +func GetListExportsSortByEnumValues() []ListExportsSortByEnum { + values := make([]ListExportsSortByEnum, 0) + for _, v := range mappingListExportsSortBy { + 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" +) + +var mappingListExportsSortOrder = map[string]ListExportsSortOrderEnum{ + "ASC": ListExportsSortOrderAsc, + "DESC": ListExportsSortOrderDesc, +} + +// GetListExportsSortOrderEnumValues Enumerates the set of values for ListExportsSortOrder +func GetListExportsSortOrderEnumValues() []ListExportsSortOrderEnum { + values := make([]ListExportsSortOrderEnum, 0) + for _, v := range mappingListExportsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/list_file_systems_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/list_file_systems_request_response.go new file mode 100644 index 0000000000..6f6b5023e1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/list_file_systems_request_response.go @@ -0,0 +1,154 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. It 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. You can provide either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by display name, results are + // shown in ascending order. + SortBy ListFileSystemsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. + 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" +) + +var mappingListFileSystemsLifecycleState = map[string]ListFileSystemsLifecycleStateEnum{ + "CREATING": ListFileSystemsLifecycleStateCreating, + "ACTIVE": ListFileSystemsLifecycleStateActive, + "DELETING": ListFileSystemsLifecycleStateDeleting, + "DELETED": ListFileSystemsLifecycleStateDeleted, + "FAILED": ListFileSystemsLifecycleStateFailed, +} + +// GetListFileSystemsLifecycleStateEnumValues Enumerates the set of values for ListFileSystemsLifecycleState +func GetListFileSystemsLifecycleStateEnumValues() []ListFileSystemsLifecycleStateEnum { + values := make([]ListFileSystemsLifecycleStateEnum, 0) + for _, v := range mappingListFileSystemsLifecycleState { + 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" +) + +var mappingListFileSystemsSortBy = map[string]ListFileSystemsSortByEnum{ + "TIMECREATED": ListFileSystemsSortByTimecreated, + "DISPLAYNAME": ListFileSystemsSortByDisplayname, +} + +// GetListFileSystemsSortByEnumValues Enumerates the set of values for ListFileSystemsSortBy +func GetListFileSystemsSortByEnumValues() []ListFileSystemsSortByEnum { + values := make([]ListFileSystemsSortByEnum, 0) + for _, v := range mappingListFileSystemsSortBy { + 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" +) + +var mappingListFileSystemsSortOrder = map[string]ListFileSystemsSortOrderEnum{ + "ASC": ListFileSystemsSortOrderAsc, + "DESC": ListFileSystemsSortOrderDesc, +} + +// GetListFileSystemsSortOrderEnumValues Enumerates the set of values for ListFileSystemsSortOrder +func GetListFileSystemsSortOrderEnumValues() []ListFileSystemsSortOrderEnum { + values := make([]ListFileSystemsSortOrderEnum, 0) + for _, v := range mappingListFileSystemsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/list_mount_targets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/list_mount_targets_request_response.go new file mode 100644 index 0000000000..70952b8162 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/list_mount_targets_request_response.go @@ -0,0 +1,157 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. It 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. + ExportSetId *string `mandatory:"false" contributesTo:"query" name:"exportSetId"` + + // 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. You can choose either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by display name, results are + // shown in ascending order. + SortBy ListMountTargetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. + 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" +) + +var mappingListMountTargetsLifecycleState = map[string]ListMountTargetsLifecycleStateEnum{ + "CREATING": ListMountTargetsLifecycleStateCreating, + "ACTIVE": ListMountTargetsLifecycleStateActive, + "DELETING": ListMountTargetsLifecycleStateDeleting, + "DELETED": ListMountTargetsLifecycleStateDeleted, + "FAILED": ListMountTargetsLifecycleStateFailed, +} + +// GetListMountTargetsLifecycleStateEnumValues Enumerates the set of values for ListMountTargetsLifecycleState +func GetListMountTargetsLifecycleStateEnumValues() []ListMountTargetsLifecycleStateEnum { + values := make([]ListMountTargetsLifecycleStateEnum, 0) + for _, v := range mappingListMountTargetsLifecycleState { + 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" +) + +var mappingListMountTargetsSortBy = map[string]ListMountTargetsSortByEnum{ + "TIMECREATED": ListMountTargetsSortByTimecreated, + "DISPLAYNAME": ListMountTargetsSortByDisplayname, +} + +// GetListMountTargetsSortByEnumValues Enumerates the set of values for ListMountTargetsSortBy +func GetListMountTargetsSortByEnumValues() []ListMountTargetsSortByEnum { + values := make([]ListMountTargetsSortByEnum, 0) + for _, v := range mappingListMountTargetsSortBy { + 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" +) + +var mappingListMountTargetsSortOrder = map[string]ListMountTargetsSortOrderEnum{ + "ASC": ListMountTargetsSortOrderAsc, + "DESC": ListMountTargetsSortOrderDesc, +} + +// GetListMountTargetsSortOrderEnumValues Enumerates the set of values for ListMountTargetsSortOrder +func GetListMountTargetsSortOrderEnumValues() []ListMountTargetsSortOrderEnum { + values := make([]ListMountTargetsSortOrderEnum, 0) + for _, v := range mappingListMountTargetsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/list_snapshots_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/list_snapshots_request_response.go new file mode 100644 index 0000000000..24ce3b3be7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/list_snapshots_request_response.go @@ -0,0 +1,117 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. + 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"` + + // 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 sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. + 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" +) + +var mappingListSnapshotsLifecycleState = map[string]ListSnapshotsLifecycleStateEnum{ + "CREATING": ListSnapshotsLifecycleStateCreating, + "ACTIVE": ListSnapshotsLifecycleStateActive, + "DELETING": ListSnapshotsLifecycleStateDeleting, + "DELETED": ListSnapshotsLifecycleStateDeleted, + "FAILED": ListSnapshotsLifecycleStateFailed, +} + +// GetListSnapshotsLifecycleStateEnumValues Enumerates the set of values for ListSnapshotsLifecycleState +func GetListSnapshotsLifecycleStateEnumValues() []ListSnapshotsLifecycleStateEnum { + values := make([]ListSnapshotsLifecycleStateEnum, 0) + for _, v := range mappingListSnapshotsLifecycleState { + 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" +) + +var mappingListSnapshotsSortOrder = map[string]ListSnapshotsSortOrderEnum{ + "ASC": ListSnapshotsSortOrderAsc, + "DESC": ListSnapshotsSortOrderDesc, +} + +// GetListSnapshotsSortOrderEnumValues Enumerates the set of values for ListSnapshotsSortOrder +func GetListSnapshotsSortOrderEnumValues() []ListSnapshotsSortOrderEnum { + values := make([]ListSnapshotsSortOrderEnum, 0) + for _, v := range mappingListSnapshotsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/mount_target.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/mount_target.go new file mode 100644 index 0000000000..09868aef94 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/mount_target.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// MountTarget Provides access to a collection of file systems through one or more VNICs on a +// specified subnet. The set of file systems is controlled through 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. It 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 IP addresses 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, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // 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 + // as a blank or NULL value. + // 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 through Network File System (NFS) protocol 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" +) + +var mappingMountTargetLifecycleState = map[string]MountTargetLifecycleStateEnum{ + "CREATING": MountTargetLifecycleStateCreating, + "ACTIVE": MountTargetLifecycleStateActive, + "DELETING": MountTargetLifecycleStateDeleting, + "DELETED": MountTargetLifecycleStateDeleted, + "FAILED": MountTargetLifecycleStateFailed, +} + +// GetMountTargetLifecycleStateEnumValues Enumerates the set of values for MountTargetLifecycleState +func GetMountTargetLifecycleStateEnumValues() []MountTargetLifecycleStateEnum { + values := make([]MountTargetLifecycleStateEnum, 0) + for _, v := range mappingMountTargetLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/mount_target_summary.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/mount_target_summary.go new file mode 100644 index 0000000000..b0b0e238cf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/mount_target_summary.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// MountTargetSummary Summary information for the specified mount target. +type MountTargetSummary struct { + + // The OCID of the compartment that contains the mount target. + 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 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 IP addresses 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, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // 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 + // as a blank or NULL value. + // 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 using Network File System (NFS) protocol 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" +) + +var mappingMountTargetSummaryLifecycleState = map[string]MountTargetSummaryLifecycleStateEnum{ + "CREATING": MountTargetSummaryLifecycleStateCreating, + "ACTIVE": MountTargetSummaryLifecycleStateActive, + "DELETING": MountTargetSummaryLifecycleStateDeleting, + "DELETED": MountTargetSummaryLifecycleStateDeleted, + "FAILED": MountTargetSummaryLifecycleStateFailed, +} + +// GetMountTargetSummaryLifecycleStateEnumValues Enumerates the set of values for MountTargetSummaryLifecycleState +func GetMountTargetSummaryLifecycleStateEnumValues() []MountTargetSummaryLifecycleStateEnum { + values := make([]MountTargetSummaryLifecycleStateEnum, 0) + for _, v := range mappingMountTargetSummaryLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/snapshot.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/snapshot.go new file mode 100644 index 0000000000..715d97cdd9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/snapshot.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +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 file system from which the snapshot + // was created. + 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. This value is immutable. + // Avoid entering confidential information. + // Example: `Sunday` + Name *string `mandatory:"true" json:"name"` + + // The date and time the snapshot was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // 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" +) + +var mappingSnapshotLifecycleState = map[string]SnapshotLifecycleStateEnum{ + "CREATING": SnapshotLifecycleStateCreating, + "ACTIVE": SnapshotLifecycleStateActive, + "DELETING": SnapshotLifecycleStateDeleting, + "DELETED": SnapshotLifecycleStateDeleted, +} + +// GetSnapshotLifecycleStateEnumValues Enumerates the set of values for SnapshotLifecycleState +func GetSnapshotLifecycleStateEnumValues() []SnapshotLifecycleStateEnum { + values := make([]SnapshotLifecycleStateEnum, 0) + for _, v := range mappingSnapshotLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/snapshot_summary.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/snapshot_summary.go new file mode 100644 index 0000000000..ccf8b719f3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/snapshot_summary.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// SnapshotSummary Summary information for a snapshot. +type SnapshotSummary struct { + + // The OCID of the file system from which the + // snapshot was created. + 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. This value is immutable. + // Avoid entering confidential information. + // Example: `Sunday` + Name *string `mandatory:"true" json:"name"` + + // The date and time the snapshot was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // 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" +) + +var mappingSnapshotSummaryLifecycleState = map[string]SnapshotSummaryLifecycleStateEnum{ + "CREATING": SnapshotSummaryLifecycleStateCreating, + "ACTIVE": SnapshotSummaryLifecycleStateActive, + "DELETING": SnapshotSummaryLifecycleStateDeleting, + "DELETED": SnapshotSummaryLifecycleStateDeleted, +} + +// GetSnapshotSummaryLifecycleStateEnumValues Enumerates the set of values for SnapshotSummaryLifecycleState +func GetSnapshotSummaryLifecycleStateEnumValues() []SnapshotSummaryLifecycleStateEnum { + values := make([]SnapshotSummaryLifecycleStateEnum, 0) + for _, v := range mappingSnapshotSummaryLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_set_details.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_set_details.go new file mode 100644 index 0000000000..ceb3c7447e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_set_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateExportSetDetails The representation of UpdateExportSetDetails +type UpdateExportSetDetails struct { + + // A user-friendly name. It 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 through any associated + // mount targets. This is an advanced feature. For most + // applications, use the default value. The + // `tbytes` value reported by `FSSTAT` will be + // `maxFsStatBytes`. The value of `fbytes` and `abytes` 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 through any associated + // mount targets. This is an advanced feature. For most + // applications, use the default value. The + // `tfiles` value reported by `FSSTAT` will be + // `maxFsStatFiles`. The value of `ffiles` and `afiles` 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/filestorage/update_export_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_set_request_response.go new file mode 100644 index 0000000000..13c1e606c1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_set_request_response.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. + 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/filestorage/update_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_file_system_details.go new file mode 100644 index 0000000000..6237eecead --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_file_system_details.go @@ -0,0 +1,26 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateFileSystemDetails The representation of UpdateFileSystemDetails +type UpdateFileSystemDetails struct { + + // A user-friendly name. It 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/filestorage/update_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_file_system_request_response.go new file mode 100644 index 0000000000..5c29e95578 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_file_system_request_response.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. + 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/filestorage/update_mount_target_details.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_mount_target_details.go new file mode 100644 index 0000000000..2639430fd7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_mount_target_details.go @@ -0,0 +1,26 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +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/filestorage/update_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_mount_target_request_response.go new file mode 100644 index 0000000000..ac0b1e3963 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_mount_target_request_response.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +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. + 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/compartment.go b/vendor/github.com/oracle/oci-go-sdk/identity/compartment.go index 941523d226..84e432f10d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/compartment.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/compartment.go @@ -19,7 +19,6 @@ import ( // 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 @@ -36,7 +35,7 @@ type Compartment struct { 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. + // compartments in the tenancy. Avoid entering confidential information. Name *string `mandatory:"true" json:"name"` // The description you assign to the compartment. Does not have to be unique, and it's changeable. @@ -52,6 +51,16 @@ type Compartment struct { // The detailed status of INACTIVE lifecycleState. InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m Compartment) String() string { 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 fb4813a61b..fa2e1e94d6 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 @@ -19,11 +19,21 @@ type CreateCompartmentDetails struct { 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. + // in the tenancy. Avoid entering confidential information. 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m CreateCompartmentDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_dynamic_group_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_dynamic_group_details.go new file mode 100644 index 0000000000..559d4aa653 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_dynamic_group_details.go @@ -0,0 +1,35 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateDynamicGroupDetails Properties for creating a dynamic group. +type CreateDynamicGroupDetails 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 matching rule to dynamically match an instance certificate to this dynamic group. + // For rule syntax, see Managing Dynamic Groups (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingdynamicgroups.htm). + MatchingRule *string `mandatory:"true" json:"matchingRule"` + + // 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 CreateDynamicGroupDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_dynamic_group_request_response.go new file mode 100644 index 0000000000..0e74c58f0d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_dynamic_group_request_response.go @@ -0,0 +1,48 @@ +// 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" +) + +// CreateDynamicGroupRequest wrapper for the CreateDynamicGroup operation +type CreateDynamicGroupRequest struct { + + // Request object for creating a new dynamic group. + CreateDynamicGroupDetails `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 CreateDynamicGroupRequest) String() string { + return common.PointerString(request) +} + +// CreateDynamicGroupResponse wrapper for the CreateDynamicGroup operation +type CreateDynamicGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The DynamicGroup instance + DynamicGroup `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 CreateDynamicGroupResponse) String() string { + 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 98a265dc95..d689c3a895 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 @@ -24,6 +24,16 @@ type CreateGroupDetails struct { // 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m CreateGroupDetails) String() string { 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 35d7f594a8..3b8d84bc8e 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 @@ -33,6 +33,16 @@ type CreateIdentityProviderDetails interface { // Active Directory Federation Services (ADFS). // Example: `IDCS` GetProductType() CreateIdentityProviderDetailsProductTypeEnum + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + GetFreeformTags() map[string]string + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + GetDefinedTags() map[string]map[string]interface{} } type createidentityproviderdetails struct { @@ -41,6 +51,8 @@ type createidentityproviderdetails struct { Name *string `mandatory:"true" json:"name"` Description *string `mandatory:"true" json:"description"` ProductType CreateIdentityProviderDetailsProductTypeEnum `mandatory:"true" json:"productType"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` Protocol string `json:"protocol"` } @@ -59,6 +71,8 @@ func (m *createidentityproviderdetails) UnmarshalJSON(data []byte) error { m.Name = s.Model.Name m.Description = s.Model.Description m.ProductType = s.Model.ProductType + m.FreeformTags = s.Model.FreeformTags + m.DefinedTags = s.Model.DefinedTags m.Protocol = s.Model.Protocol return err @@ -97,6 +111,16 @@ func (m createidentityproviderdetails) GetProductType() CreateIdentityProviderDe return m.ProductType } +//GetFreeformTags returns FreeformTags +func (m createidentityproviderdetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m createidentityproviderdetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + func (m createidentityproviderdetails) String() string { return common.PointerString(m) } 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 b25f8b649d..187890608b 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 @@ -34,6 +34,16 @@ type CreatePolicyDetails struct { // 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m CreatePolicyDetails) String() string { 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 78e866f7cb..b682a490ca 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 @@ -20,6 +20,7 @@ type CreateRegionSubscriptionDetails struct { // - `PHX` // - `IAD` // - `FRA` + // - `LHR` // Example: `PHX` RegionKey *string `mandatory:"true" json:"regionKey"` } 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 f4eba6eee2..9f07fb95e1 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 @@ -35,6 +35,16 @@ type CreateSaml2IdentityProviderDetails struct { // The XML that contains the information required for federating. Metadata *string `mandatory:"true" json:"metadata"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // The identity provider service or product. // Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft // Active Directory Federation Services (ADFS). @@ -62,6 +72,16 @@ func (m CreateSaml2IdentityProviderDetails) GetProductType() CreateIdentityProvi return m.ProductType } +//GetFreeformTags returns FreeformTags +func (m CreateSaml2IdentityProviderDetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m CreateSaml2IdentityProviderDetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + func (m CreateSaml2IdentityProviderDetails) String() string { return common.PointerString(m) } diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_smtp_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_smtp_credential_details.go new file mode 100644 index 0000000000..6240a43c5a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_smtp_credential_details.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateSmtpCredentialDetails The representation of CreateSmtpCredentialDetails +type CreateSmtpCredentialDetails struct { + + // The description you assign to the SMTP credentials during creation. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` +} + +func (m CreateSmtpCredentialDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_smtp_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_smtp_credential_request_response.go new file mode 100644 index 0000000000..dd2d7f2ff3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_smtp_credential_request_response.go @@ -0,0 +1,51 @@ +// 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" +) + +// CreateSmtpCredentialRequest wrapper for the CreateSmtpCredential operation +type CreateSmtpCredentialRequest struct { + + // Request object for creating a new SMTP credential with the user. + CreateSmtpCredentialDetails `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 CreateSmtpCredentialRequest) String() string { + return common.PointerString(request) +} + +// CreateSmtpCredentialResponse wrapper for the CreateSmtpCredential operation +type CreateSmtpCredentialResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SmtpCredential instance + SmtpCredential `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 CreateSmtpCredentialResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_details.go new file mode 100644 index 0000000000..86ac57d4c9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_details.go @@ -0,0 +1,37 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateTagDetails The representation of CreateTagDetails +type CreateTagDetails struct { + + // The name you assign to the tag during creation. The name must be unique within the tag namespace and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the tag during creation. + Description *string `mandatory:"true" json:"description"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateTagDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_namespace_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_namespace_details.go new file mode 100644 index 0000000000..1967669fc4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_namespace_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateTagNamespaceDetails The representation of CreateTagNamespaceDetails +type CreateTagNamespaceDetails struct { + + // The OCID of the tenancy containing the tag namespace. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the tag namespace during creation. + Description *string `mandatory:"true" json:"description"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateTagNamespaceDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_namespace_request_response.go new file mode 100644 index 0000000000..c819435fa5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_namespace_request_response.go @@ -0,0 +1,45 @@ +// 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" +) + +// CreateTagNamespaceRequest wrapper for the CreateTagNamespace operation +type CreateTagNamespaceRequest struct { + + // Request object for creating a new tag namespace. + CreateTagNamespaceDetails `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 CreateTagNamespaceRequest) String() string { + return common.PointerString(request) +} + +// CreateTagNamespaceResponse wrapper for the CreateTagNamespace operation +type CreateTagNamespaceResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TagNamespace instance + TagNamespace `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 CreateTagNamespaceResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_request_response.go new file mode 100644 index 0000000000..d28272a0a6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_tag_request_response.go @@ -0,0 +1,48 @@ +// 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" +) + +// CreateTagRequest wrapper for the CreateTag operation +type CreateTagRequest struct { + + // The OCID of the tag namespace. + TagNamespaceId *string `mandatory:"true" contributesTo:"path" name:"tagNamespaceId"` + + // Request object for creating a new tag in the specified tag namespace. + CreateTagDetails `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 CreateTagRequest) String() string { + return common.PointerString(request) +} + +// CreateTagResponse wrapper for the CreateTag operation +type CreateTagResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Tag instance + Tag `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 CreateTagResponse) String() string { + 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 37ddd58570..f775c1ab12 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 @@ -24,6 +24,16 @@ type CreateUserDetails struct { // 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m CreateUserDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/delete_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/delete_dynamic_group_request_response.go new file mode 100644 index 0000000000..ec58999c97 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/delete_dynamic_group_request_response.go @@ -0,0 +1,40 @@ +// 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" +) + +// DeleteDynamicGroupRequest wrapper for the DeleteDynamicGroup operation +type DeleteDynamicGroupRequest struct { + + // The OCID of the dynamic group. + DynamicGroupId *string `mandatory:"true" contributesTo:"path" name:"dynamicGroupId"` + + // 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 DeleteDynamicGroupRequest) String() string { + return common.PointerString(request) +} + +// DeleteDynamicGroupResponse wrapper for the DeleteDynamicGroup operation +type DeleteDynamicGroupResponse 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 DeleteDynamicGroupResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/delete_smtp_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/delete_smtp_credential_request_response.go new file mode 100644 index 0000000000..0796052060 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/delete_smtp_credential_request_response.go @@ -0,0 +1,43 @@ +// 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" +) + +// DeleteSmtpCredentialRequest wrapper for the DeleteSmtpCredential operation +type DeleteSmtpCredentialRequest struct { + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The OCID of the SMTP credential. + SmtpCredentialId *string `mandatory:"true" contributesTo:"path" name:"smtpCredentialId"` + + // 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 DeleteSmtpCredentialRequest) String() string { + return common.PointerString(request) +} + +// DeleteSmtpCredentialResponse wrapper for the DeleteSmtpCredential operation +type DeleteSmtpCredentialResponse 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 DeleteSmtpCredentialResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/dynamic_group.go b/vendor/github.com/oracle/oci-go-sdk/identity/dynamic_group.go new file mode 100644 index 0000000000..386edcaa80 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/dynamic_group.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// DynamicGroup A dynamic group defines a matching rule. Every bare metal or virtual machine instance is deployed with an instance certificate. +// The certificate contains metadata about the instance. This includes the instance OCID and the compartment OCID, along +// with a few other optional properties. When an API call is made using this instance certificate as the authenticator, +// the certificate can be matched to one or multiple dynamic groups. The instance can then get access to the API +// based on the permissions granted in policies written for the dynamic groups. +// This works like regular user/group membership. But in that case, the membership is a static relationship, whereas +// in a dynamic group, the membership of an instance certificate to a dynamic group is determined during runtime. +// For more information, see Managing Dynamic Groups (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingdynamicgroups.htm). +type DynamicGroup 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"` + + // A rule string that defines which instance certificates will be matched. + // For syntax, see Managing Dynamic Groups (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingdynamicgroups.htm). + MatchingRule *string `mandatory:"true" json:"matchingRule"` + + // 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 DynamicGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` +} + +func (m DynamicGroup) String() string { + return common.PointerString(m) +} + +// DynamicGroupLifecycleStateEnum Enum with underlying type: string +type DynamicGroupLifecycleStateEnum string + +// Set of constants representing the allowable values for DynamicGroupLifecycleState +const ( + DynamicGroupLifecycleStateCreating DynamicGroupLifecycleStateEnum = "CREATING" + DynamicGroupLifecycleStateActive DynamicGroupLifecycleStateEnum = "ACTIVE" + DynamicGroupLifecycleStateInactive DynamicGroupLifecycleStateEnum = "INACTIVE" + DynamicGroupLifecycleStateDeleting DynamicGroupLifecycleStateEnum = "DELETING" + DynamicGroupLifecycleStateDeleted DynamicGroupLifecycleStateEnum = "DELETED" +) + +var mappingDynamicGroupLifecycleState = map[string]DynamicGroupLifecycleStateEnum{ + "CREATING": DynamicGroupLifecycleStateCreating, + "ACTIVE": DynamicGroupLifecycleStateActive, + "INACTIVE": DynamicGroupLifecycleStateInactive, + "DELETING": DynamicGroupLifecycleStateDeleting, + "DELETED": DynamicGroupLifecycleStateDeleted, +} + +// GetDynamicGroupLifecycleStateEnumValues Enumerates the set of values for DynamicGroupLifecycleState +func GetDynamicGroupLifecycleStateEnumValues() []DynamicGroupLifecycleStateEnum { + values := make([]DynamicGroupLifecycleStateEnum, 0) + for _, v := range mappingDynamicGroupLifecycleState { + values = append(values, v) + } + return values +} 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 deleted file mode 100644 index 4f596c95ba..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/identity/fault_domain.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "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. -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) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/get_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/get_dynamic_group_request_response.go new file mode 100644 index 0000000000..895efc8f9a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/get_dynamic_group_request_response.go @@ -0,0 +1,41 @@ +// 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" +) + +// GetDynamicGroupRequest wrapper for the GetDynamicGroup operation +type GetDynamicGroupRequest struct { + + // The OCID of the dynamic group. + DynamicGroupId *string `mandatory:"true" contributesTo:"path" name:"dynamicGroupId"` +} + +func (request GetDynamicGroupRequest) String() string { + return common.PointerString(request) +} + +// GetDynamicGroupResponse wrapper for the GetDynamicGroup operation +type GetDynamicGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The DynamicGroup instance + DynamicGroup `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 GetDynamicGroupResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/get_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/get_tag_namespace_request_response.go new file mode 100644 index 0000000000..5b997e235e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/get_tag_namespace_request_response.go @@ -0,0 +1,38 @@ +// 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" +) + +// GetTagNamespaceRequest wrapper for the GetTagNamespace operation +type GetTagNamespaceRequest struct { + + // The OCID of the tag namespace. + TagNamespaceId *string `mandatory:"true" contributesTo:"path" name:"tagNamespaceId"` +} + +func (request GetTagNamespaceRequest) String() string { + return common.PointerString(request) +} + +// GetTagNamespaceResponse wrapper for the GetTagNamespace operation +type GetTagNamespaceResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TagNamespace instance + TagNamespace `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 GetTagNamespaceResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/get_tag_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/get_tag_request_response.go new file mode 100644 index 0000000000..5a8f8a38ff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/get_tag_request_response.go @@ -0,0 +1,41 @@ +// 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" +) + +// GetTagRequest wrapper for the GetTag operation +type GetTagRequest struct { + + // The OCID of the tag namespace. + TagNamespaceId *string `mandatory:"true" contributesTo:"path" name:"tagNamespaceId"` + + // The name of the tag. + TagName *string `mandatory:"true" contributesTo:"path" name:"tagName"` +} + +func (request GetTagRequest) String() string { + return common.PointerString(request) +} + +// GetTagResponse wrapper for the GetTag operation +type GetTagResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Tag instance + Tag `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 GetTagResponse) String() string { + 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 8029ba9504..75c91ace94 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/group.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/group.go @@ -48,6 +48,16 @@ type Group struct { // The detailed status of INACTIVE lifecycleState. InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m Group) String() string { 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 8bf0c90c5b..61cdec3f3f 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 @@ -135,6 +135,37 @@ func (client IdentityClient) CreateCustomerSecretKey(ctx context.Context, reques return } +// CreateDynamicGroup Creates a new dynamic 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 dynamic group, which must be unique across all dynamic groups in your +// tenancy, and cannot be changed. Note that this name has to be also unique accross all groups in your tenancy. +// You can use this name or the OCID when writing policies that apply to the dynamic 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 dynamic group (although it can be an empty string). It does not +// have to be unique, and you can change it anytime with UpdateDynamicGroup. +// 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) CreateDynamicGroup(ctx context.Context, request CreateDynamicGroupRequest) (response CreateDynamicGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/dynamicGroups/", request) + if err != nil { + 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) @@ -291,6 +322,27 @@ func (client IdentityClient) CreateRegionSubscription(ctx context.Context, reque return } +// CreateSmtpCredential Creates a new SMTP credential for the specified user. An SMTP credential has an SMTP user name and an SMTP password. +// You must specify a *description* for the SMTP credential (although it can be an empty string). It does not +// have to be unique, and you can change it anytime with +// UpdateSmtpCredential. +func (client IdentityClient) CreateSmtpCredential(ctx context.Context, request CreateSmtpCredentialRequest) (response CreateSmtpCredentialResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/users/{userId}/smtpCredentials/", request) + if err != nil { + 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 @@ -316,6 +368,62 @@ func (client IdentityClient) CreateSwiftPassword(ctx context.Context, request Cr return } +// CreateTag Creates a new tag in the specified tag namespace. +// You must specify either the OCID or the name of the tag namespace that will contain this tag definition. +// You must also specify a *name* for the tag, which must be unique across all tags in the tag namespace +// and cannot be changed. The name can contain any ASCII character except the space (_) or period (.) characters. +// Names are case insensitive. That means, for example, "myTag" and "mytag" are not allowed in the same namespace. +// If you specify a name that's already in use in the tag namespace, a 409 error is returned. +// You must also specify a *description* for the tag. +// It does not have to be unique, and you can change it with +// UpdateTag. +func (client IdentityClient) CreateTag(ctx context.Context, request CreateTagRequest) (response CreateTagResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/tagNamespaces/{tagNamespaceId}/tags", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// CreateTagNamespace Creates a new tag namespace in the specified compartment. +// You must specify the compartment ID in the request object (remember that the tenancy is simply the root +// compartment). +// You must also specify a *name* for the namespace, which must be unique across all namespaces in your tenancy +// and cannot be changed. The name can contain any ASCII character except the space (_) or period (.). +// Names are case insensitive. That means, for example, "myNamespace" and "mynamespace" are not allowed +// in the same tenancy. Once you created a namespace, you cannot change the name. +// If you specify a name that's already in use in the tenancy, a 409 error is returned. +// You must also specify a *description* for the namespace. +// It does not have to be unique, and you can change it with +// UpdateTagNamespace. +// Tag namespaces cannot be deleted, but they can be retired. +// See Retiring Key Definitions and Namespace Definitions (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm#Retiring) for more information. +func (client IdentityClient) CreateTagNamespace(ctx context.Context, request CreateTagNamespaceRequest) (response CreateTagNamespaceResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/tagNamespaces", request) + if err != nil { + 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 @@ -402,6 +510,24 @@ func (client IdentityClient) DeleteCustomerSecretKey(ctx context.Context, reques return } +// DeleteDynamicGroup Deletes the specified dynamic group. +func (client IdentityClient) DeleteDynamicGroup(ctx context.Context, request DeleteDynamicGroupRequest) (response DeleteDynamicGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/dynamicGroups/{dynamicGroupId}", request) + if err != nil { + 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) @@ -475,6 +601,24 @@ func (client IdentityClient) DeletePolicy(ctx context.Context, request DeletePol return } +// DeleteSmtpCredential Deletes the specified SMTP credential for the specified user. +func (client IdentityClient) DeleteSmtpCredential(ctx context.Context, request DeleteSmtpCredentialRequest) (response DeleteSmtpCredentialResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodDelete, "/users/{userId}/smtpCredentials/{smtpCredentialId}", request) + if err != nil { + 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) @@ -535,6 +679,24 @@ func (client IdentityClient) GetCompartment(ctx context.Context, request GetComp return } +// GetDynamicGroup Gets the specified dynamic group's information. +func (client IdentityClient) GetDynamicGroup(ctx context.Context, request GetDynamicGroupRequest) (response GetDynamicGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dynamicGroups/{dynamicGroupId}", request) + if err != nil { + 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 @@ -610,6 +772,42 @@ func (client IdentityClient) GetPolicy(ctx context.Context, request GetPolicyReq return } +// GetTag Gets the specified tag's information. +func (client IdentityClient) GetTag(ctx context.Context, request GetTagRequest) (response GetTagResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/tagNamespaces/{tagNamespaceId}/tags/{tagName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// GetTagNamespace Gets the specified tag namespace's information. +func (client IdentityClient) GetTagNamespace(ctx context.Context, request GetTagNamespaceRequest) (response GetTagNamespaceResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/tagNamespaces/{tagNamespaceId}", request) + if err != nil { + 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) @@ -743,11 +941,11 @@ func (client IdentityClient) ListCustomerSecretKeys(ctx context.Context, request 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). +// ListDynamicGroups Lists the dynamic 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) ListFaultDomains(ctx context.Context, request ListFaultDomainsRequest) (response ListFaultDomainsResponse, err error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/faultDomains/", request) +func (client IdentityClient) ListDynamicGroups(ctx context.Context, request ListDynamicGroupsRequest) (response ListDynamicGroupsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/dynamicGroups/", request) if err != nil { return } @@ -892,6 +1090,25 @@ func (client IdentityClient) ListRegions(ctx context.Context) (response ListRegi return } +// ListSmtpCredentials Lists the SMTP credentials for the specified user. The returned object contains the credential's OCID, +// the SMTP user name but not the SMTP password. The SMTP password is returned only upon creation. +func (client IdentityClient) ListSmtpCredentials(ctx context.Context, request ListSmtpCredentialsRequest) (response ListSmtpCredentialsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/users/{userId}/smtpCredentials/", request) + if err != nil { + 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) { @@ -911,6 +1128,42 @@ func (client IdentityClient) ListSwiftPasswords(ctx context.Context, request Lis return } +// ListTagNamespaces Lists the tag namespaces in the specified compartment. +func (client IdentityClient) ListTagNamespaces(ctx context.Context, request ListTagNamespacesRequest) (response ListTagNamespacesResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/tagNamespaces", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// ListTags Lists the tag definitions in the specified tag namespace. +func (client IdentityClient) ListTags(ctx context.Context, request ListTagsRequest) (response ListTagsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/tagNamespaces/{tagNamespaceId}/tags", request) + if err != nil { + 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)). @@ -919,6 +1172,7 @@ func (client IdentityClient) ListSwiftPasswords(ctx context.Context, request Lis // - 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. +// - Although`userId` and `groupId` are not indvidually required, you must set one of them. func (client IdentityClient) ListUserGroupMemberships(ctx context.Context, request ListUserGroupMembershipsRequest) (response ListUserGroupMembershipsResponse, err error) { httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/userGroupMemberships/", request) if err != nil { @@ -1010,6 +1264,24 @@ func (client IdentityClient) UpdateCustomerSecretKey(ctx context.Context, reques return } +// UpdateDynamicGroup Updates the specified dynamic group. +func (client IdentityClient) UpdateDynamicGroup(ctx context.Context, request UpdateDynamicGroupRequest) (response UpdateDynamicGroupResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/dynamicGroups/{dynamicGroupId}", request) + if err != nil { + 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) @@ -1083,6 +1355,24 @@ func (client IdentityClient) UpdatePolicy(ctx context.Context, request UpdatePol return } +// UpdateSmtpCredential Updates the specified SMTP credential's description. +func (client IdentityClient) UpdateSmtpCredential(ctx context.Context, request UpdateSmtpCredentialRequest) (response UpdateSmtpCredentialResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/users/{userId}/smtpCredentials/{smtpCredentialId}", request) + if err != nil { + 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) @@ -1101,6 +1391,48 @@ func (client IdentityClient) UpdateSwiftPassword(ctx context.Context, request Up return } +// UpdateTag Updates the the specified tag definition. You can update `description`, and `isRetired`. +func (client IdentityClient) UpdateTag(ctx context.Context, request UpdateTagRequest) (response UpdateTagResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/tagNamespaces/{tagNamespaceId}/tags/{tagName}", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// UpdateTagNamespace Updates the the specified tag namespace. You can't update the namespace name. +// Updating `isRetired` to 'true' retires the namespace and all the tag definitions in the namespace. Reactivating a +// namespace (changing `isRetired` from 'true' to 'false') does not reactivate tag definitions. +// To reactivate the tag definitions, you must reactivate each one indvidually *after* you reactivate the namespace, +// using UpdateTag. For more information about retiring tag namespaces, see +// Retiring Key Definitions and Namespace Definitions (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). +// You can't add a namespace with the same name as a retired namespace in the same tenancy. +func (client IdentityClient) UpdateTagNamespace(ctx context.Context, request UpdateTagNamespaceRequest) (response UpdateTagNamespaceResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/tagNamespaces/{tagNamespaceId}", request) + if err != nil { + 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) 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 170df88799..6b3f9c572c 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 @@ -59,6 +59,16 @@ type IdentityProvider interface { // The detailed status of INACTIVE lifecycleState. GetInactiveStatus() *int + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + GetFreeformTags() map[string]string + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + GetDefinedTags() map[string]map[string]interface{} } type identityprovider struct { @@ -71,6 +81,8 @@ type identityprovider struct { TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` LifecycleState IdentityProviderLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` Protocol string `json:"protocol"` } @@ -93,6 +105,8 @@ func (m *identityprovider) UnmarshalJSON(data []byte) error { m.TimeCreated = s.Model.TimeCreated m.LifecycleState = s.Model.LifecycleState m.InactiveStatus = s.Model.InactiveStatus + m.FreeformTags = s.Model.FreeformTags + m.DefinedTags = s.Model.DefinedTags m.Protocol = s.Model.Protocol return err @@ -151,6 +165,16 @@ func (m identityprovider) GetInactiveStatus() *int { return m.InactiveStatus } +//GetFreeformTags returns FreeformTags +func (m identityprovider) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m identityprovider) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + func (m identityprovider) String() string { return common.PointerString(m) } diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_dynamic_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_dynamic_groups_request_response.go new file mode 100644 index 0000000000..9ec5c9f72f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_dynamic_groups_request_response.go @@ -0,0 +1,49 @@ +// 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" +) + +// ListDynamicGroupsRequest wrapper for the ListDynamicGroups operation +type ListDynamicGroupsRequest 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"` +} + +func (request ListDynamicGroupsRequest) String() string { + return common.PointerString(request) +} + +// ListDynamicGroupsResponse wrapper for the ListDynamicGroups operation +type ListDynamicGroupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []DynamicGroup instance + Items []DynamicGroup `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 ListDynamicGroupsResponse) String() string { + 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 deleted file mode 100644 index 58e8cf4edb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/identity/list_fault_domains_request_response.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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" -) - -// 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"` -} - -func (request ListFaultDomainsRequest) String() string { - 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"` -} - -func (response ListFaultDomainsResponse) String() string { - return common.PointerString(response) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_smtp_credentials_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_smtp_credentials_request_response.go new file mode 100644 index 0000000000..adfa306976 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_smtp_credentials_request_response.go @@ -0,0 +1,43 @@ +// 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" +) + +// ListSmtpCredentialsRequest wrapper for the ListSmtpCredentials operation +type ListSmtpCredentialsRequest struct { + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` +} + +func (request ListSmtpCredentialsRequest) String() string { + return common.PointerString(request) +} + +// ListSmtpCredentialsResponse wrapper for the ListSmtpCredentials operation +type ListSmtpCredentialsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []SmtpCredentialSummary instance + Items []SmtpCredentialSummary `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 ListSmtpCredentialsResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_tag_namespaces_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_tag_namespaces_request_response.go new file mode 100644 index 0000000000..cda9c016c3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_tag_namespaces_request_response.go @@ -0,0 +1,53 @@ +// 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" +) + +// ListTagNamespacesRequest wrapper for the ListTagNamespaces operation +type ListTagNamespacesRequest 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"` + + // An optional boolean parameter indicating whether to retrieve all tag namespaces in subcompartments. If this + // parameter is not specified, only the tag namespaces defined in the specified compartment are retrieved. + IncludeSubcompartments *bool `mandatory:"false" contributesTo:"query" name:"includeSubcompartments"` +} + +func (request ListTagNamespacesRequest) String() string { + return common.PointerString(request) +} + +// ListTagNamespacesResponse wrapper for the ListTagNamespaces operation +type ListTagNamespacesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []TagNamespaceSummary instance + Items []TagNamespaceSummary `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 tagNamespaces. 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 ListTagNamespacesResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_tags_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_tags_request_response.go new file mode 100644 index 0000000000..8c078a42fe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_tags_request_response.go @@ -0,0 +1,49 @@ +// 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" +) + +// ListTagsRequest wrapper for the ListTags operation +type ListTagsRequest struct { + + // The OCID of the tag namespace. + TagNamespaceId *string `mandatory:"true" contributesTo:"path" name:"tagNamespaceId"` + + // 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 ListTagsRequest) String() string { + return common.PointerString(request) +} + +// ListTagsResponse wrapper for the ListTags operation +type ListTagsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []TagSummary instance + Items []TagSummary `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 tags. 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 ListTagsResponse) String() string { + 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 39eacc77a7..be04461b56 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/policy.go @@ -55,6 +55,16 @@ type Policy struct { // 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m Policy) String() string { 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 ba73a44535..36fa7d1d6b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/region.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/region.go @@ -25,6 +25,7 @@ type Region struct { // - `PHX` // - `IAD` // - `FRA` + // - `LHR` Key *string `mandatory:"false" json:"key"` // The name of the region. @@ -32,6 +33,7 @@ type Region struct { // - `us-phoenix-1` // - `us-ashburn-1` // - `eu-frankfurt-1` + // - `uk-london-1` Name *string `mandatory:"false" json:"name"` } 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 dfa9f26b63..0405589805 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 @@ -24,6 +24,7 @@ type RegionSubscription struct { // - `PHX` // - `IAD` // - `FRA` + // - `LHR` RegionKey *string `mandatory:"true" json:"regionKey"` // The region's name. @@ -31,6 +32,7 @@ type RegionSubscription struct { // - `us-phoenix-1` // - `us-ashburn-1` // - `eu-frankurt-1` + // - `uk-london-1` RegionName *string `mandatory:"true" json:"regionName"` // The region subscription status. 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 0ef2511b3d..265b077482 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 @@ -63,6 +63,16 @@ type Saml2IdentityProvider struct { // The detailed status of INACTIVE lifecycleState. InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // 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"` @@ -108,6 +118,16 @@ func (m Saml2IdentityProvider) GetInactiveStatus() *int { return m.InactiveStatus } +//GetFreeformTags returns FreeformTags +func (m Saml2IdentityProvider) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m Saml2IdentityProvider) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + func (m Saml2IdentityProvider) String() string { return common.PointerString(m) } diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential.go b/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential.go new file mode 100644 index 0000000000..e2b8bda13c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential.go @@ -0,0 +1,86 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// SmtpCredential Simple Mail Transfer Protocol (SMTP) credentials are needed to send email through Email Delivery. +// The SMTP credentials are used for SMTP authentication with the service. The credentials never expire. +// A user can have up to 2 SMTP credentials at a time. +// **Note:** The credential set is always an Oracle-generated SMTP user name and password pair; +// you cannot designate the SMTP user name or the SMTP password. +// For more information, see Managing User Credentials (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingcredentials.htm#SMTP). +type SmtpCredential struct { + + // The SMTP user name. + Username *string `mandatory:"false" json:"username"` + + // The SMTP password. + Password *string `mandatory:"false" json:"password"` + + // The OCID of the SMTP credential. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the SMTP credential belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The description you assign to the SMTP credential. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + + // Date and time the `SmtpCredential` 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 credential 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 credential's current state. After creating a SMTP credential, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState SmtpCredentialLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` +} + +func (m SmtpCredential) String() string { + return common.PointerString(m) +} + +// SmtpCredentialLifecycleStateEnum Enum with underlying type: string +type SmtpCredentialLifecycleStateEnum string + +// Set of constants representing the allowable values for SmtpCredentialLifecycleState +const ( + SmtpCredentialLifecycleStateCreating SmtpCredentialLifecycleStateEnum = "CREATING" + SmtpCredentialLifecycleStateActive SmtpCredentialLifecycleStateEnum = "ACTIVE" + SmtpCredentialLifecycleStateInactive SmtpCredentialLifecycleStateEnum = "INACTIVE" + SmtpCredentialLifecycleStateDeleting SmtpCredentialLifecycleStateEnum = "DELETING" + SmtpCredentialLifecycleStateDeleted SmtpCredentialLifecycleStateEnum = "DELETED" +) + +var mappingSmtpCredentialLifecycleState = map[string]SmtpCredentialLifecycleStateEnum{ + "CREATING": SmtpCredentialLifecycleStateCreating, + "ACTIVE": SmtpCredentialLifecycleStateActive, + "INACTIVE": SmtpCredentialLifecycleStateInactive, + "DELETING": SmtpCredentialLifecycleStateDeleting, + "DELETED": SmtpCredentialLifecycleStateDeleted, +} + +// GetSmtpCredentialLifecycleStateEnumValues Enumerates the set of values for SmtpCredentialLifecycleState +func GetSmtpCredentialLifecycleStateEnumValues() []SmtpCredentialLifecycleStateEnum { + values := make([]SmtpCredentialLifecycleStateEnum, 0) + for _, v := range mappingSmtpCredentialLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential_summary.go new file mode 100644 index 0000000000..5ad398c8b9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential_summary.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// SmtpCredentialSummary As the name suggests, an `SmtpCredentialSummary` object contains information about an `SmtpCredential`. +// The SMTP credential is used for SMTP authentication with +// the Email Delivery Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Email/Concepts/overview.htm). +type SmtpCredentialSummary struct { + + // The SMTP user name. + Username *string `mandatory:"false" json:"username"` + + // The OCID of the SMTP credential. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the SMTP credential belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The description you assign to the SMTP credential. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + + // Date and time the `SmtpCredential` 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 credential 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 credential's current state. After creating a SMTP credential, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState SmtpCredentialSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` +} + +func (m SmtpCredentialSummary) String() string { + return common.PointerString(m) +} + +// SmtpCredentialSummaryLifecycleStateEnum Enum with underlying type: string +type SmtpCredentialSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for SmtpCredentialSummaryLifecycleState +const ( + SmtpCredentialSummaryLifecycleStateCreating SmtpCredentialSummaryLifecycleStateEnum = "CREATING" + SmtpCredentialSummaryLifecycleStateActive SmtpCredentialSummaryLifecycleStateEnum = "ACTIVE" + SmtpCredentialSummaryLifecycleStateInactive SmtpCredentialSummaryLifecycleStateEnum = "INACTIVE" + SmtpCredentialSummaryLifecycleStateDeleting SmtpCredentialSummaryLifecycleStateEnum = "DELETING" + SmtpCredentialSummaryLifecycleStateDeleted SmtpCredentialSummaryLifecycleStateEnum = "DELETED" +) + +var mappingSmtpCredentialSummaryLifecycleState = map[string]SmtpCredentialSummaryLifecycleStateEnum{ + "CREATING": SmtpCredentialSummaryLifecycleStateCreating, + "ACTIVE": SmtpCredentialSummaryLifecycleStateActive, + "INACTIVE": SmtpCredentialSummaryLifecycleStateInactive, + "DELETING": SmtpCredentialSummaryLifecycleStateDeleting, + "DELETED": SmtpCredentialSummaryLifecycleStateDeleted, +} + +// GetSmtpCredentialSummaryLifecycleStateEnumValues Enumerates the set of values for SmtpCredentialSummaryLifecycleState +func GetSmtpCredentialSummaryLifecycleStateEnumValues() []SmtpCredentialSummaryLifecycleStateEnum { + values := make([]SmtpCredentialSummaryLifecycleStateEnum, 0) + for _, v := range mappingSmtpCredentialSummaryLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/tag.go b/vendor/github.com/oracle/oci-go-sdk/identity/tag.go new file mode 100644 index 0000000000..73f408cedb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/tag.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// Tag A tag definition that belongs to a specific tag namespace. "Defined tags" must be set up in your tenancy before +// you can apply them to resources. +// For more information, see Managing Tags and Tag Namespaces (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm). +type Tag struct { + + // The OCID of the compartment that contains the tag definition. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the namespace that contains the tag definition. + TagNamespaceId *string `mandatory:"true" json:"tagNamespaceId"` + + // The name of the tag namespace that contains the tag definition. + TagNamespaceName *string `mandatory:"true" json:"tagNamespaceName"` + + // The OCID of the tag definition. + Id *string `mandatory:"true" json:"id"` + + // The name of the tag. The name must be unique across all tags in the namespace and can't be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the tag. + Description *string `mandatory:"true" json:"description"` + + // Indicates whether the tag is retired. + // See Retiring Key Definitions and Namespace Definitions (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). + IsRetired *bool `mandatory:"true" json:"isRetired"` + + // Date and time the tag was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}`` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m Tag) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/tag_namespace.go b/vendor/github.com/oracle/oci-go-sdk/identity/tag_namespace.go new file mode 100644 index 0000000000..b04a28ea70 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/tag_namespace.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// TagNamespace A managed container for defined tags. A tag namespace is unique in a tenancy. A tag namespace can't be deleted. +// For more information, see Managing Tags and Tag Namespaces (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm). +type TagNamespace struct { + + // The OCID of the tag namespace. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment that contains the tag namespace. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name of the tag namespace. It must be unique across all tag namespaces in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the tag namespace. + Description *string `mandatory:"true" json:"description"` + + // Whether the tag namespace is retired. + // See Retiring Key Definitions and Namespace Definitions (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). + IsRetired *bool `mandatory:"true" json:"isRetired"` + + // Date and time the tagNamespace was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m TagNamespace) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/tag_namespace_summary.go b/vendor/github.com/oracle/oci-go-sdk/identity/tag_namespace_summary.go new file mode 100644 index 0000000000..c4c2ffe05b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/tag_namespace_summary.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// TagNamespaceSummary A container for defined tags. +type TagNamespaceSummary struct { + + // The OCID of the tag namespace. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the compartment that contains the tag namespace. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The name of the tag namespace. It must be unique across all tag namespaces in the tenancy and cannot be changed. + Name *string `mandatory:"false" json:"name"` + + // The description you assign to the tag namespace. + Description *string `mandatory:"false" json:"description"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Whether the tag namespace is retired. + // For more information, see Retiring Key Definitions and Namespace Definitions (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). + IsRetired *bool `mandatory:"false" json:"isRetired"` + + // Date and time the tagNamespace was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m TagNamespaceSummary) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/tag_summary.go b/vendor/github.com/oracle/oci-go-sdk/identity/tag_summary.go new file mode 100644 index 0000000000..44cf2b71ac --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/tag_summary.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// TagSummary A tag definition that belongs to a specific tag namespace. +type TagSummary struct { + + // The OCID of the compartment that contains the tag definition. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID of the tag definition. + Id *string `mandatory:"false" json:"id"` + + // The name of the tag. The name must be unique across all tags in the tag namespace and can't be changed. + Name *string `mandatory:"false" json:"name"` + + // The description you assign to the tag. + Description *string `mandatory:"false" json:"description"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Whether the tag is retired. + // See Retiring Key Definitions and Namespace Definitions (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). + IsRetired *bool `mandatory:"false" json:"isRetired"` + + // Date and time the tag was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m TagSummary) String() string { + return common.PointerString(m) +} 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 676b91b9ab..1acda2f546 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/tenancy.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/tenancy.go @@ -30,12 +30,24 @@ type Tenancy struct { // The description of the tenancy. Description *string `mandatory:"false" json:"description"` - // The region key for the tenancy's home region. + // The region key for the tenancy's home region. For more information about regions, see + // Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). // Allowed values are: // - `IAD` // - `PHX` // - `FRA` + // - `LHR` HomeRegionKey *string `mandatory:"false" json:"homeRegionKey"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m Tenancy) String() string { 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 0e064808c4..1d0abe20ef 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 @@ -19,7 +19,18 @@ type UpdateCompartmentDetails struct { 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. + // Avoid entering confidential information. Name *string `mandatory:"false" json:"name"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m UpdateCompartmentDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_dynamic_group_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_dynamic_group_details.go new file mode 100644 index 0000000000..84059385ca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_dynamic_group_details.go @@ -0,0 +1,28 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateDynamicGroupDetails Properties for updating a dynamic group. +type UpdateDynamicGroupDetails struct { + + // The description you assign to the dynamic group. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + + // The matching rule to dynamically match an instance certificate to this dynamic group. + // For rule syntax, see Managing Dynamic Groups (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingdynamicgroups.htm). + MatchingRule *string `mandatory:"false" json:"matchingRule"` +} + +func (m UpdateDynamicGroupDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_dynamic_group_request_response.go new file mode 100644 index 0000000000..9cc29c7784 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_dynamic_group_request_response.go @@ -0,0 +1,49 @@ +// 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" +) + +// UpdateDynamicGroupRequest wrapper for the UpdateDynamicGroup operation +type UpdateDynamicGroupRequest struct { + + // The OCID of the dynamic group. + DynamicGroupId *string `mandatory:"true" contributesTo:"path" name:"dynamicGroupId"` + + // Request object for updating an dynamic group. + UpdateDynamicGroupDetails `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 UpdateDynamicGroupRequest) String() string { + return common.PointerString(request) +} + +// UpdateDynamicGroupResponse wrapper for the UpdateDynamicGroup operation +type UpdateDynamicGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The DynamicGroup instance + DynamicGroup `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 UpdateDynamicGroupResponse) String() string { + 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 35a082a90a..5c613d256c 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 @@ -17,6 +17,16 @@ 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m UpdateGroupDetails) String() string { 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 976c40edf6..175591cdfe 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 @@ -19,12 +19,24 @@ type UpdateIdentityProviderDetails interface { // The description you assign to the `IdentityProvider`. Does not have to // be unique, and it's changeable. GetDescription() *string + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + GetFreeformTags() map[string]string + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + GetDefinedTags() map[string]map[string]interface{} } type updateidentityproviderdetails struct { - JsonData []byte - Description *string `mandatory:"false" json:"description"` - Protocol string `json:"protocol"` + JsonData []byte + Description *string `mandatory:"false" json:"description"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + Protocol string `json:"protocol"` } // UnmarshalJSON unmarshals json @@ -39,6 +51,8 @@ func (m *updateidentityproviderdetails) UnmarshalJSON(data []byte) error { return err } m.Description = s.Model.Description + m.FreeformTags = s.Model.FreeformTags + m.DefinedTags = s.Model.DefinedTags m.Protocol = s.Model.Protocol return err @@ -62,6 +76,16 @@ func (m updateidentityproviderdetails) GetDescription() *string { return m.Description } +//GetFreeformTags returns FreeformTags +func (m updateidentityproviderdetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m updateidentityproviderdetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + func (m updateidentityproviderdetails) String() string { return common.PointerString(m) } 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 3fd45b64eb..264f4aef74 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 @@ -27,6 +27,16 @@ type UpdatePolicyDetails struct { // 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m UpdatePolicyDetails) String() string { 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 f83217f2b6..7e28f96cab 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 @@ -20,6 +20,16 @@ type UpdateSaml2IdentityProviderDetails struct { // be unique, and it's changeable. Description *string `mandatory:"false" json:"description"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // The URL for retrieving the identity provider's metadata, // which contains information required for federating. MetadataUrl *string `mandatory:"false" json:"metadataUrl"` @@ -33,6 +43,16 @@ func (m UpdateSaml2IdentityProviderDetails) GetDescription() *string { return m.Description } +//GetFreeformTags returns FreeformTags +func (m UpdateSaml2IdentityProviderDetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m UpdateSaml2IdentityProviderDetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + func (m UpdateSaml2IdentityProviderDetails) String() string { return common.PointerString(m) } diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_smtp_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_smtp_credential_details.go new file mode 100644 index 0000000000..04d5800336 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_smtp_credential_details.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateSmtpCredentialDetails The representation of UpdateSmtpCredentialDetails +type UpdateSmtpCredentialDetails struct { + + // The description you assign to the SMTP credential. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` +} + +func (m UpdateSmtpCredentialDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_smtp_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_smtp_credential_request_response.go new file mode 100644 index 0000000000..b5f30fabf5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_smtp_credential_request_response.go @@ -0,0 +1,52 @@ +// 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" +) + +// UpdateSmtpCredentialRequest wrapper for the UpdateSmtpCredential operation +type UpdateSmtpCredentialRequest struct { + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The OCID of the SMTP credential. + SmtpCredentialId *string `mandatory:"true" contributesTo:"path" name:"smtpCredentialId"` + + // Request object for updating a SMTP credential. + UpdateSmtpCredentialDetails `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 UpdateSmtpCredentialRequest) String() string { + return common.PointerString(request) +} + +// UpdateSmtpCredentialResponse wrapper for the UpdateSmtpCredential operation +type UpdateSmtpCredentialResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SmtpCredentialSummary instance + SmtpCredentialSummary `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 UpdateSmtpCredentialResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_details.go new file mode 100644 index 0000000000..0abb1f9728 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_details.go @@ -0,0 +1,38 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateTagDetails The representation of UpdateTagDetails +type UpdateTagDetails struct { + + // The description you assign to the tag during creation. + Description *string `mandatory:"false" json:"description"` + + // Whether the tag is retired. + // See Retiring Key Definitions and Namespace Definitions (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). + IsRetired *bool `mandatory:"false" json:"isRetired"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateTagDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_namespace_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_namespace_details.go new file mode 100644 index 0000000000..78dd3f2f48 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_namespace_details.go @@ -0,0 +1,38 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateTagNamespaceDetails The representation of UpdateTagNamespaceDetails +type UpdateTagNamespaceDetails struct { + + // The description you assign to the tag namespace. + Description *string `mandatory:"false" json:"description"` + + // Whether the tag namespace is retired. + // See Retiring Key Definitions and Namespace Definitions (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). + IsRetired *bool `mandatory:"false" json:"isRetired"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateTagNamespaceDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_namespace_request_response.go new file mode 100644 index 0000000000..0d7f8e4a56 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_namespace_request_response.go @@ -0,0 +1,41 @@ +// 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" +) + +// UpdateTagNamespaceRequest wrapper for the UpdateTagNamespace operation +type UpdateTagNamespaceRequest struct { + + // The OCID of the tag namespace. + TagNamespaceId *string `mandatory:"true" contributesTo:"path" name:"tagNamespaceId"` + + // Request object for updating a namespace. + UpdateTagNamespaceDetails `contributesTo:"body"` +} + +func (request UpdateTagNamespaceRequest) String() string { + return common.PointerString(request) +} + +// UpdateTagNamespaceResponse wrapper for the UpdateTagNamespace operation +type UpdateTagNamespaceResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TagNamespace instance + TagNamespace `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 UpdateTagNamespaceResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_request_response.go new file mode 100644 index 0000000000..e280cb6d8b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_tag_request_response.go @@ -0,0 +1,44 @@ +// 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" +) + +// UpdateTagRequest wrapper for the UpdateTag operation +type UpdateTagRequest struct { + + // The OCID of the tag namespace. + TagNamespaceId *string `mandatory:"true" contributesTo:"path" name:"tagNamespaceId"` + + // The name of the tag. + TagName *string `mandatory:"true" contributesTo:"path" name:"tagName"` + + // Request object for updating a tag. + UpdateTagDetails `contributesTo:"body"` +} + +func (request UpdateTagRequest) String() string { + return common.PointerString(request) +} + +// UpdateTagResponse wrapper for the UpdateTag operation +type UpdateTagResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Tag instance + Tag `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 UpdateTagResponse) String() string { + 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 07b2ce2a4c..84363a12cf 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 @@ -17,6 +17,16 @@ 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m UpdateUserDetails) String() string { 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 945e672e47..5ba86a4fe0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/user.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/user.go @@ -55,6 +55,16 @@ type User struct { // - 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"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m User) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/connection_configuration.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/connection_configuration.go new file mode 100644 index 0000000000..042c1676f2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/connection_configuration.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 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" +) + +// ConnectionConfiguration Configuration details for the connection between the client and backend servers. +type ConnectionConfiguration struct { + + // The maximum idle time, in seconds, allowed between two successive receive or two successive send operations + // between the client and backend servers. A send operation does not reset the timer for receive operations. A + // receive operation does not reset the timer for send operations. + // The default values are: + // * 300 seconds for TCP + // * 60 seconds for HTTP and WebSocket protocols. + // Note: The protocol is set at the listener. + // Modify this parameter if the client or backend server stops transmitting data for more than the default time. + // Some examples include: + // * The client sends a database query to the backend server and the database takes over 300 seconds to execute. + // Therefore, the backend server does not transmit any data within 300 seconds. + // * The client uploads data using the HTTP protocol. During the upload, the backend does not transmit any data + // to the client for more than 60 seconds. + // * The client downloads data using the HTTP protocol. After the initial request, it stops transmitting data to + // the backend server for more than 60 seconds. + // * The client starts transmitting data after establishing a WebSocket connection, but the backend server does + // not transmit data for more than 60 seconds. + // * The backend server starts transmitting data after establishing a WebSocket connection, but the client does + // not transmit data for more than 60 seconds. + // The maximum value is 7200 seconds. Contact My Oracle Support to file a service request if you want to increase + // this limit for your tenancy. For more information, see Service Limits (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/servicelimits.htm). + // Example: `1200` + IdleTimeout *int `mandatory:"true" json:"idleTimeout"` +} + +func (m ConnectionConfiguration) String() string { + return common.PointerString(m) +} 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 58e7b30d67..f5d63d0083 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 @@ -18,6 +18,7 @@ import ( type CreateListenerDetails struct { // The name of the associated backend set. + // Example: `My_backend_set` DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` // A friendly name for the listener. It must be unique and it cannot be changed. @@ -35,6 +36,13 @@ type CreateListenerDetails struct { // Example: `HTTP` Protocol *string `mandatory:"true" json:"protocol"` + ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` + + // The name of the set of path-based routing rules, PathRouteSet, + // applied to this listener's traffic. + // Example: `path-route-set-001` + PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` } 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 5b08bf52a1..d588884834 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 @@ -50,6 +50,8 @@ type CreateLoadBalancerDetails struct { IsPrivate *bool `mandatory:"false" json:"isPrivate"` Listeners map[string]ListenerDetails `mandatory:"false" json:"listeners"` + + PathRouteSets map[string]PathRouteSetDetails `mandatory:"false" json:"pathRouteSets"` } func (m CreateLoadBalancerDetails) String() string { 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 new file mode 100644 index 0000000000..f922ac2795 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_details.go @@ -0,0 +1,29 @@ +// Copyright (c) 2016, 2018, 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 A named set of path route rules to add to the load balancer. +type CreatePathRouteSetDetails struct { + + // The name for this set of path route rules. It must be unique and it cannot be changed. Avoid entering + // confidential information. + // Example: `path-route-set-001` + Name *string `mandatory:"true" json:"name"` + + // The set of path route rules. + 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 new file mode 100644 index 0000000000..4daddb296e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_path_route_set_request_response.go @@ -0,0 +1,52 @@ +// 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" +) + +// CreatePathRouteSetRequest wrapper for the CreatePathRouteSet operation +type CreatePathRouteSetRequest struct { + + // The details of the path route set to add. + CreatePathRouteSetDetails `contributesTo:"body"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to add the path route set to. + 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 (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 CreatePathRouteSetResponse) String() string { + 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 new file mode 100644 index 0000000000..c57b48a2dd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/delete_path_route_set_request_response.go @@ -0,0 +1,46 @@ +// 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" +) + +// DeletePathRouteSetRequest wrapper for the DeletePathRouteSet operation +type DeletePathRouteSetRequest struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/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 delete. + // 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 (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 DeletePathRouteSetResponse) String() string { + 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 new file mode 100644 index 0000000000..1535afc157 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/get_path_route_set_request_response.go @@ -0,0 +1,46 @@ +// 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" +) + +// GetPathRouteSetRequest wrapper for the GetPathRouteSet operation +type GetPathRouteSetRequest struct { + + // 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 path route set to retrieve. + // 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 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/list_load_balancers_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancers_request_response.go index 6086976855..dbc8f34a42 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 @@ -30,16 +30,17 @@ type ListLoadBalancersRequest struct { // 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. + // 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. SortBy ListLoadBalancersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - // The sort order to use, either 'asc' or 'desc' + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order is case sensitive. SortOrder ListLoadBalancersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - // A filter to only return resources that match the given display name exactly. + // A filter to return only 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. + // A filter to return only resources that match the given lifecycle state. LifecycleState LoadBalancerLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` } 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 new file mode 100644 index 0000000000..5c3890b78e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_path_route_sets_request_response.go @@ -0,0 +1,43 @@ +// 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" +) + +// ListPathRouteSetsRequest wrapper for the ListPathRouteSets operation +type ListPathRouteSetsRequest struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the path route 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/listener.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/listener.go index 31110fd5eb..a90d58b55a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/listener.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/listener.go @@ -18,6 +18,7 @@ import ( type Listener struct { // The name of the associated backend set. + // Example: `My_backend_set` DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` // A friendly name for the listener. It must be unique and it cannot be changed. @@ -34,6 +35,13 @@ type Listener struct { // Example: `HTTP` Protocol *string `mandatory:"true" json:"protocol"` + ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` + + // The name of the set of path-based routing rules, PathRouteSet, + // applied to this listener's traffic. + // Example: `path-route-set-001` + PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` + SslConfiguration *SslConfiguration `mandatory:"false" json:"sslConfiguration"` } 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 15b4e5d9a7..ac2ac6c67c 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 @@ -16,6 +16,7 @@ import ( type ListenerDetails struct { // The name of the associated backend set. + // Example: `My_backend_set` DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` // The communication port for the listener. @@ -28,6 +29,13 @@ type ListenerDetails struct { // Example: `HTTP` Protocol *string `mandatory:"true" json:"protocol"` + ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` + + // The name of the set of path-based routing rules, PathRouteSet, + // applied to this listener's traffic. + // Example: `path-route-set-001` + PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` } 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 bf621e4a97..c139366262 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 @@ -66,6 +66,8 @@ type LoadBalancer struct { Listeners map[string]Listener `mandatory:"false" json:"listeners"` + PathRouteSets map[string]PathRouteSet `mandatory:"false" json:"pathRouteSets"` + // An array of subnet OCIDs (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). SubnetIds []string `mandatory:"false" json:"subnetIds"` } 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 cb408565e1..f60acc6f16 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 @@ -168,6 +168,25 @@ func (client LoadBalancerClient) CreateLoadBalancer(ctx context.Context, request return } +// CreatePathRouteSet Adds a path route set to a load balancer. For more information, see +// Managing Request Routing (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingrequest.htm). +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) @@ -259,6 +278,26 @@ func (client LoadBalancerClient) DeleteLoadBalancer(ctx context.Context, request return } +// DeletePathRouteSet Deletes a path route set from the specified load balancer. +// To delete a path route rule from a path route set, use the +// UpdatePathRouteSet operation. +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) @@ -385,6 +424,24 @@ func (client LoadBalancerClient) GetLoadBalancerHealth(ctx context.Context, requ 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) @@ -493,6 +550,24 @@ func (client LoadBalancerClient) ListLoadBalancers(ctx context.Context, request return } +// ListPathRouteSets Lists all path route sets associated with the specified 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) @@ -654,3 +729,25 @@ func (client LoadBalancerClient) UpdateLoadBalancer(ctx context.Context, request err = common.UnmarshalResponse(httpResponse, &response) return } + +// UpdatePathRouteSet Overwrites an existing path route set on the specified load balancer. Use this operation to add, delete, or alter +// path route rules in a path route set. +// To add a new path route rule to a path route set, the `pathRoutes` in the +// UpdatePathRouteSetDetails object must include +// both the new path route rule to add and the existing path route rules to retain. +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 new file mode 100644 index 0000000000..291c84472d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_match_type.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 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 type of matching to apply to incoming URIs. +type PathMatchType struct { + + // Specifies how the load balancing service compares a PathRoute + // object's `path` string against the incoming URI. + // * **EXACT_MATCH** - Looks for a `path` string that exactly matches the incoming URI path. + // * **FORCE_LONGEST_PREFIX_MATCH** - Looks for the `path` string with the best, longest match of the beginning + // portion of the incoming URI path. + // * **PREFIX_MATCH** - Looks for a `path` string that matches the beginning portion of the incoming URI path. + // * **SUFFIX_MATCH** - Looks for a `path` string that matches the ending portion of the incoming URI path. + // For a full description of how the system handles `matchType` in a path route set containing multiple rules, see + // Managing Request Routing (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingrequest.htm). + 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" +) + +var mappingPathMatchTypeMatchType = map[string]PathMatchTypeMatchTypeEnum{ + "EXACT_MATCH": PathMatchTypeMatchTypeExactMatch, + "FORCE_LONGEST_PREFIX_MATCH": PathMatchTypeMatchTypeForceLongestPrefixMatch, + "PREFIX_MATCH": PathMatchTypeMatchTypePrefixMatch, + "SUFFIX_MATCH": PathMatchTypeMatchTypeSuffixMatch, +} + +// GetPathMatchTypeMatchTypeEnumValues Enumerates the set of values for PathMatchTypeMatchType +func GetPathMatchTypeMatchTypeEnumValues() []PathMatchTypeMatchTypeEnum { + values := make([]PathMatchTypeMatchTypeEnum, 0) + for _, v := range mappingPathMatchTypeMatchType { + 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 new file mode 100644 index 0000000000..705712d413 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route.go @@ -0,0 +1,36 @@ +// Copyright (c) 2016, 2018, 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 A "path route rule" to evaluate an incoming URI path, and then route a matching request to the specified backend set. +// Path route rules apply only to HTTP and HTTPS requests. They have no effect on TCP requests. +type PathRoute struct { + + // The name of the target backend set for requests where the incoming URI matches the specified path. + // Example: `My_backend_set` + BackendSetName *string `mandatory:"true" json:"backendSetName"` + + // The path string to match against the incoming URI path. + // * Path strings are case-insensitive. + // * Asterisk (*) wildcards are not supported. + // * Regular expressions are not supported. + // Example: `/example/video/123` + Path *string `mandatory:"true" json:"path"` + + // The type of matching to apply to incoming URIs. + 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 new file mode 100644 index 0000000000..ec25591481 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set.go @@ -0,0 +1,29 @@ +// Copyright (c) 2016, 2018, 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 A named set of path route rules. For more information, see +// Managing Request Routing (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingrequest.htm). +type PathRouteSet struct { + + // The unique name for this set of path route rules. Avoid entering confidential information. + // Example: `path-route-set-001` + Name *string `mandatory:"true" json:"name"` + + // The set of path route rules. + 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 new file mode 100644 index 0000000000..5fa988dc65 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/path_route_set_details.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, 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 A set of path route rules. +type PathRouteSetDetails struct { + + // The set of path route rules. + 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/update_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_listener_details.go index c935eac546..0b957c3e1e 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 @@ -16,6 +16,7 @@ import ( type UpdateListenerDetails struct { // The name of the associated backend set. + // Example: `My_backend_set` DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` // The communication port for the listener. @@ -28,6 +29,13 @@ type UpdateListenerDetails struct { // Example: `HTTP` Protocol *string `mandatory:"true" json:"protocol"` + ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` + + // The name of the set of path-based routing rules, PathRouteSet, + // applied to this listener's traffic. + // Example: `path-route-set-001` + PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` } 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 new file mode 100644 index 0000000000..d4f924b14b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_details.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, 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 An updated set of path route rules that overwrites the existing set of rules. +type UpdatePathRouteSetDetails struct { + + // The set of path route rules. + 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 new file mode 100644 index 0000000000..3ba6a7a8f0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_path_route_set_request_response.go @@ -0,0 +1,56 @@ +// 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" +) + +// UpdatePathRouteSetRequest wrapper for the UpdatePathRouteSet operation +type UpdatePathRouteSetRequest struct { + + // The configuration details to update a path route set. + UpdatePathRouteSetDetails `contributesTo:"body"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/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 (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 UpdatePathRouteSetResponse) String() string { + return common.PointerString(response) +} 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 8858e10666..af065f5863 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 @@ -14,11 +14,11 @@ type AbortMultipartUploadRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - // The name of the object. + // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` @@ -43,7 +43,7 @@ type AbortMultipartUploadResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } 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 81462ba1a1..2fc78c1ea7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -12,7 +12,10 @@ import ( "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, +// Bucket A bucket is a container for storing objects in a compartment within a namespace. A bucket is associated with a single compartment. +// The compartment has policies that indicate what actions a user can perform on a bucket and all the objects in the bucket. For more +// information, see Managing Buckets (https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingbuckets.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 Bucket struct { @@ -20,7 +23,8 @@ type Bucket struct { // The namespace in which the bucket lives. Namespace *string `mandatory:"true" json:"namespace"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. + // Example: my-new-bucket1 Name *string `mandatory:"true" json:"name"` // The compartment ID in which the bucket is authorized. @@ -32,17 +36,34 @@ type Bucket struct { // 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. + // The date and time the bucket was created, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. 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. + // The type of public access enabled on this bucket. + // A bucket is set to `NoPublicAccess` by default, which only allows an authenticated caller to access the + // bucket and its contents. When `ObjectRead` is enabled on the bucket, public access is allowed for the + // `GetObject`, `HeadObject`, and `ListObjects` operations. When `ObjectReadWithoutList` is enabled on the + // bucket, public access is allowed for the `GetObject` and `HeadObject` operations. PublicAccessType BucketPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` + + // The type of storage tier of this bucket. + // A bucket is set to 'Standard' tier by default, which means the bucket will be put in the standard storage tier. + // When 'Archive' tier type is set explicitly, the bucket is put in the archive storage tier. The 'storageTier' + // property is immutable after bucket is created. + StorageTier BucketStorageTierEnum `mandatory:"false" json:"storageTier,omitempty"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m Bucket) String() string { @@ -54,13 +75,15 @@ type BucketPublicAccessTypeEnum string // Set of constants representing the allowable values for BucketPublicAccessType const ( - BucketPublicAccessTypeNopublicaccess BucketPublicAccessTypeEnum = "NoPublicAccess" - BucketPublicAccessTypeObjectread BucketPublicAccessTypeEnum = "ObjectRead" + BucketPublicAccessTypeNopublicaccess BucketPublicAccessTypeEnum = "NoPublicAccess" + BucketPublicAccessTypeObjectread BucketPublicAccessTypeEnum = "ObjectRead" + BucketPublicAccessTypeObjectreadwithoutlist BucketPublicAccessTypeEnum = "ObjectReadWithoutList" ) var mappingBucketPublicAccessType = map[string]BucketPublicAccessTypeEnum{ - "NoPublicAccess": BucketPublicAccessTypeNopublicaccess, - "ObjectRead": BucketPublicAccessTypeObjectread, + "NoPublicAccess": BucketPublicAccessTypeNopublicaccess, + "ObjectRead": BucketPublicAccessTypeObjectread, + "ObjectReadWithoutList": BucketPublicAccessTypeObjectreadwithoutlist, } // GetBucketPublicAccessTypeEnumValues Enumerates the set of values for BucketPublicAccessType @@ -71,3 +94,26 @@ func GetBucketPublicAccessTypeEnumValues() []BucketPublicAccessTypeEnum { } return values } + +// BucketStorageTierEnum Enum with underlying type: string +type BucketStorageTierEnum string + +// Set of constants representing the allowable values for BucketStorageTier +const ( + BucketStorageTierStandard BucketStorageTierEnum = "Standard" + BucketStorageTierArchive BucketStorageTierEnum = "Archive" +) + +var mappingBucketStorageTier = map[string]BucketStorageTierEnum{ + "Standard": BucketStorageTierStandard, + "Archive": BucketStorageTierArchive, +} + +// GetBucketStorageTierEnumValues Enumerates the set of values for BucketStorageTier +func GetBucketStorageTierEnumValues() []BucketStorageTierEnum { + values := make([]BucketStorageTierEnum, 0) + for _, v := range mappingBucketStorageTier { + 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 028177a527..bee2aa055b 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -20,7 +20,8 @@ type BucketSummary struct { // The namespace in which the bucket lives. Namespace *string `mandatory:"true" json:"namespace"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. + // Example: my-new-bucket1 Name *string `mandatory:"true" json:"name"` // The compartment ID in which the bucket is authorized. @@ -29,11 +30,21 @@ type BucketSummary struct { // 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. + // The date and time the bucket was created, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The entity tag for the bucket. Etag *string `mandatory:"true" json:"etag"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m BucketSummary) String() string { 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 c285f73832..0d09fa852c 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage 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 a4d053b377..b23c10a0da 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage 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 1018342549..037cfbb752 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 @@ -14,11 +14,11 @@ type CommitMultipartUploadRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - // The name of the object. + // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` @@ -33,8 +33,7 @@ type CommitMultipartUploadRequest struct { 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. + // 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. @@ -55,13 +54,14 @@ type CommitMultipartUploadResponse struct { 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. + // request, 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. + // and then calculating the MD5 hash of the concatenated values. The multipart object hash is followed + // by a hyphen and the total number of parts (for example, '-6'). OpcMultipartMd5 *string `presentIn:"header" name:"opc-multipart-md5"` // The entity tag for the object. 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 b6be2982c4..755d7da271 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -18,7 +18,8 @@ import ( 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. + // numbers, and dashes. Bucket names must be unique within the namespace. Avoid entering confidential information. + // example: Example: my-new-bucket1 Name *string `mandatory:"true" json:"name"` // The ID of the compartment in which to create the bucket. @@ -27,11 +28,28 @@ type CreateBucketDetails struct { // 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. + // The type of public access enabled on this bucket. + // A bucket is set to `NoPublicAccess` by default, which only allows an authenticated caller to access the + // bucket and its contents. When `ObjectRead` is enabled on the bucket, public access is allowed for the + // `GetObject`, `HeadObject`, and `ListObjects` operations. When `ObjectReadWithoutList` is enabled on the bucket, + // public access is allowed for the `GetObject` and `HeadObject` operations. PublicAccessType CreateBucketDetailsPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` + + // The type of storage tier of this bucket. + // A bucket is set to 'Standard' tier by default, which means the bucket will be put in the standard storage tier. + // When 'Archive' tier type is set explicitly, the bucket is put in the Archive Storage tier. The 'storageTier' + // property is immutable after bucket is created. + StorageTier CreateBucketDetailsStorageTierEnum `mandatory:"false" json:"storageTier,omitempty"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m CreateBucketDetails) String() string { @@ -43,13 +61,15 @@ type CreateBucketDetailsPublicAccessTypeEnum string // Set of constants representing the allowable values for CreateBucketDetailsPublicAccessType const ( - CreateBucketDetailsPublicAccessTypeNopublicaccess CreateBucketDetailsPublicAccessTypeEnum = "NoPublicAccess" - CreateBucketDetailsPublicAccessTypeObjectread CreateBucketDetailsPublicAccessTypeEnum = "ObjectRead" + CreateBucketDetailsPublicAccessTypeNopublicaccess CreateBucketDetailsPublicAccessTypeEnum = "NoPublicAccess" + CreateBucketDetailsPublicAccessTypeObjectread CreateBucketDetailsPublicAccessTypeEnum = "ObjectRead" + CreateBucketDetailsPublicAccessTypeObjectreadwithoutlist CreateBucketDetailsPublicAccessTypeEnum = "ObjectReadWithoutList" ) var mappingCreateBucketDetailsPublicAccessType = map[string]CreateBucketDetailsPublicAccessTypeEnum{ - "NoPublicAccess": CreateBucketDetailsPublicAccessTypeNopublicaccess, - "ObjectRead": CreateBucketDetailsPublicAccessTypeObjectread, + "NoPublicAccess": CreateBucketDetailsPublicAccessTypeNopublicaccess, + "ObjectRead": CreateBucketDetailsPublicAccessTypeObjectread, + "ObjectReadWithoutList": CreateBucketDetailsPublicAccessTypeObjectreadwithoutlist, } // GetCreateBucketDetailsPublicAccessTypeEnumValues Enumerates the set of values for CreateBucketDetailsPublicAccessType @@ -60,3 +80,26 @@ func GetCreateBucketDetailsPublicAccessTypeEnumValues() []CreateBucketDetailsPub } return values } + +// CreateBucketDetailsStorageTierEnum Enum with underlying type: string +type CreateBucketDetailsStorageTierEnum string + +// Set of constants representing the allowable values for CreateBucketDetailsStorageTier +const ( + CreateBucketDetailsStorageTierStandard CreateBucketDetailsStorageTierEnum = "Standard" + CreateBucketDetailsStorageTierArchive CreateBucketDetailsStorageTierEnum = "Archive" +) + +var mappingCreateBucketDetailsStorageTier = map[string]CreateBucketDetailsStorageTierEnum{ + "Standard": CreateBucketDetailsStorageTierStandard, + "Archive": CreateBucketDetailsStorageTierArchive, +} + +// GetCreateBucketDetailsStorageTierEnumValues Enumerates the set of values for CreateBucketDetailsStorageTier +func GetCreateBucketDetailsStorageTierEnumValues() []CreateBucketDetailsStorageTierEnum { + values := make([]CreateBucketDetailsStorageTierEnum, 0) + for _, v := range mappingCreateBucketDetailsStorageTier { + 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 00a7aa13cd..a2e3bc9e74 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 @@ -38,7 +38,7 @@ type CreateBucketResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The entity tag for the bucket that was created. 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 f21262d546..4e451a153a 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -17,20 +17,21 @@ import ( // 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. + // The name of the object to which this multi-part upload is targeted. Avoid entering confidential information. + // Example: test/object1.log Object *string `mandatory:"true" json:"object"` - // the content type of the object to upload. + // The content type of the object to upload. ContentType *string `mandatory:"false" json:"contentType"` - // the content language of the object to upload. + // The content language of the object to upload. ContentLanguage *string `mandatory:"false" json:"contentLanguage"` - // the content encoding of the object to upload. + // 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. + // Keys must be in "opc-meta-*" format. Avoid entering confidential information. Metadata map[string]string `mandatory:"false" json:"metadata"` } 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 ca790ade05..6958a52220 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 @@ -14,7 +14,7 @@ type CreateMultipartUploadRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` @@ -26,8 +26,7 @@ type CreateMultipartUploadRequest struct { 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. + // 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. @@ -51,7 +50,7 @@ type CreateMultipartUploadResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The full path to the new upload. 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 498dc6dd4a..b5f796ddc1 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -15,17 +15,16 @@ import ( // CreatePreauthenticatedRequestDetails The representation of CreatePreauthenticatedRequestDetails type CreatePreauthenticatedRequestDetails struct { - // user specified name for pre-authenticated request. Helpful for management purposes. + // A user-specified name for the 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. + // The operation that can be performed on this resource. 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) + // The expiration date for the pre-authenticated request as per RFC 3339 (https://tools.ietf.org/rfc/rfc3339). After this date the pre-authenticated request will no longer be valid. 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 + // The name of object that is being granted access to by the pre-authenticated request. This can be null and if it is, the pre-authenticated request grants access to the entire bucket. ObjectName *string `mandatory:"false" json:"objectName"` } 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 f0580b6d18..dbf99647a8 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 @@ -14,11 +14,11 @@ type CreatePreauthenticatedRequestRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - // details for creating the pre-authenticated request. + // Information needed to create the pre-authenticated request. CreatePreauthenticatedRequestDetails `contributesTo:"body"` // The client request ID for tracing. @@ -42,7 +42,7 @@ type CreatePreauthenticatedRequestResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } 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 71385a147f..d9efae7f99 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 @@ -14,7 +14,7 @@ type DeleteBucketRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` @@ -40,7 +40,7 @@ type DeleteBucketResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } 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 ae33f3a610..ee45e30a90 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 @@ -14,11 +14,11 @@ type DeleteObjectRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - // The name of the object. + // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` @@ -44,7 +44,7 @@ type DeleteObjectResponse struct { 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. + // request, 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. 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 675d24927d..11b939aa25 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 @@ -14,12 +14,12 @@ type DeletePreauthenticatedRequestRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // 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 + // The unique identifier for the pre-authenticated request. This can be used to manage operations against + // the pre-authenticated request, such as GET or DELETE. ParId *string `mandatory:"true" contributesTo:"path" name:"parId"` // The client request ID for tracing. @@ -40,7 +40,7 @@ type DeletePreauthenticatedRequestResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } 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 4284a4a56b..48698ed7dc 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 @@ -14,7 +14,7 @@ type GetBucketRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` @@ -23,8 +23,7 @@ type GetBucketRequest struct { 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. + // 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. @@ -48,7 +47,7 @@ type GetBucketResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The current entity tag for the bucket. diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_namespace_metadata_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_namespace_metadata_request_response.go new file mode 100644 index 0000000000..e283cb7294 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_namespace_metadata_request_response.go @@ -0,0 +1,44 @@ +// 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" +) + +// GetNamespaceMetadataRequest wrapper for the GetNamespaceMetadata operation +type GetNamespaceMetadataRequest struct { + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` +} + +func (request GetNamespaceMetadataRequest) String() string { + return common.PointerString(request) +} + +// GetNamespaceMetadataResponse wrapper for the GetNamespaceMetadata operation +type GetNamespaceMetadataResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The NamespaceMetadata instance + NamespaceMetadata `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, provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetNamespaceMetadataResponse) String() string { + 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 f75e36b74b..ae679799a9 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 @@ -15,11 +15,11 @@ type GetObjectRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - // The name of the object. + // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` @@ -28,15 +28,14 @@ type GetObjectRequest struct { 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. + // 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. + // Note that only a single range of bytes is supported. Range *string `mandatory:"false" contributesTo:"header" name:"range"` } @@ -57,7 +56,7 @@ type GetObjectResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The entity tag for the object. @@ -95,6 +94,12 @@ type GetObjectResponse struct { // 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"` + // The current state of the object. + ArchivalState GetObjectArchivalStateEnum `presentIn:"header" name:"archival-state"` + + // Time that the object is returned to the archived state. This field is only present for restored objects. + TimeOfArchival *common.SDKTime `presentIn:"header" name:"time-of-archival"` + // 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 @@ -105,3 +110,30 @@ type GetObjectResponse struct { func (response GetObjectResponse) String() string { return common.PointerString(response) } + +// GetObjectArchivalStateEnum Enum with underlying type: string +type GetObjectArchivalStateEnum string + +// Set of constants representing the allowable values for GetObjectArchivalState +const ( + GetObjectArchivalStateAvailable GetObjectArchivalStateEnum = "AVAILABLE" + GetObjectArchivalStateArchived GetObjectArchivalStateEnum = "ARCHIVED" + GetObjectArchivalStateRestoring GetObjectArchivalStateEnum = "RESTORING" + GetObjectArchivalStateRestored GetObjectArchivalStateEnum = "RESTORED" +) + +var mappingGetObjectArchivalState = map[string]GetObjectArchivalStateEnum{ + "AVAILABLE": GetObjectArchivalStateAvailable, + "ARCHIVED": GetObjectArchivalStateArchived, + "RESTORING": GetObjectArchivalStateRestoring, + "RESTORED": GetObjectArchivalStateRestored, +} + +// GetGetObjectArchivalStateEnumValues Enumerates the set of values for GetObjectArchivalState +func GetGetObjectArchivalStateEnumValues() []GetObjectArchivalStateEnum { + values := make([]GetObjectArchivalStateEnum, 0) + for _, v := range mappingGetObjectArchivalState { + values = append(values, v) + } + return values +} 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 0e41fff80b..ff3091873f 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 @@ -14,12 +14,12 @@ type GetPreauthenticatedRequestRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // 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 + // The unique identifier for the pre-authenticated request. This can be used to manage operations against + // the pre-authenticated request, such as GET or DELETE. ParId *string `mandatory:"true" contributesTo:"path" name:"parId"` // The client request ID for tracing. @@ -43,7 +43,7 @@ type GetPreauthenticatedRequestResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } 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 cca2efc723..de98d9cf7d 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 @@ -14,7 +14,7 @@ type HeadBucketRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` @@ -23,8 +23,7 @@ type HeadBucketRequest struct { 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. + // 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. @@ -45,7 +44,7 @@ type HeadBucketResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The current entity tag for the bucket. 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 b058a2d01a..b689203dd6 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 @@ -14,11 +14,11 @@ type HeadObjectRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - // The name of the object. + // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` @@ -27,8 +27,7 @@ type HeadObjectRequest struct { 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. + // 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. @@ -49,7 +48,7 @@ type HeadObjectResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The entity tag for the object. @@ -84,6 +83,12 @@ type HeadObjectResponse struct { // 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"` + // The current state of the object. + ArchivalState HeadObjectArchivalStateEnum `presentIn:"header" name:"archival-state"` + + // Time that the object is returned to the archived state. This field is only present for restored objects. + TimeOfArchival *common.SDKTime `presentIn:"header" name:"time-of-archival"` + // 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 @@ -94,3 +99,30 @@ type HeadObjectResponse struct { func (response HeadObjectResponse) String() string { return common.PointerString(response) } + +// HeadObjectArchivalStateEnum Enum with underlying type: string +type HeadObjectArchivalStateEnum string + +// Set of constants representing the allowable values for HeadObjectArchivalState +const ( + HeadObjectArchivalStateAvailable HeadObjectArchivalStateEnum = "AVAILABLE" + HeadObjectArchivalStateArchived HeadObjectArchivalStateEnum = "ARCHIVED" + HeadObjectArchivalStateRestoring HeadObjectArchivalStateEnum = "RESTORING" + HeadObjectArchivalStateRestored HeadObjectArchivalStateEnum = "RESTORED" +) + +var mappingHeadObjectArchivalState = map[string]HeadObjectArchivalStateEnum{ + "AVAILABLE": HeadObjectArchivalStateAvailable, + "ARCHIVED": HeadObjectArchivalStateArchived, + "RESTORING": HeadObjectArchivalStateRestoring, + "RESTORED": HeadObjectArchivalStateRestored, +} + +// GetHeadObjectArchivalStateEnumValues Enumerates the set of values for HeadObjectArchivalState +func GetHeadObjectArchivalStateEnumValues() []HeadObjectArchivalStateEnum { + values := make([]HeadObjectArchivalStateEnum, 0) + for _, v := range mappingHeadObjectArchivalState { + values = append(values, v) + } + return values +} 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 09474ba93e..48b45c7cb5 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 @@ -14,7 +14,7 @@ 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. + // The ID of the compartment in which to list buckets. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The maximum number of items to return. @@ -23,6 +23,11 @@ type ListBucketsRequest struct { // The page at which to start retrieving results. Page *string `mandatory:"false" contributesTo:"query" name:"page"` + // Bucket summary in list of buckets includes the 'namespace', 'name', 'compartmentId', 'createdBy', 'timeCreated', + // and 'etag' fields. This parameter can also include 'tags' (freeformTags and definedTags). The only supported value + // of this parameter is 'tags' for now. Example 'tags'. + Fields []ListBucketsFieldsEnum `contributesTo:"query" name:"fields" omitEmpty:"true" collectionFormat:"csv"` + // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` } @@ -44,7 +49,7 @@ type ListBucketsResponse struct { 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. + // request, 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 @@ -57,3 +62,24 @@ type ListBucketsResponse struct { func (response ListBucketsResponse) String() string { return common.PointerString(response) } + +// ListBucketsFieldsEnum Enum with underlying type: string +type ListBucketsFieldsEnum string + +// Set of constants representing the allowable values for ListBucketsFields +const ( + ListBucketsFieldsTags ListBucketsFieldsEnum = "tags" +) + +var mappingListBucketsFields = map[string]ListBucketsFieldsEnum{ + "tags": ListBucketsFieldsTags, +} + +// GetListBucketsFieldsEnumValues Enumerates the set of values for ListBucketsFields +func GetListBucketsFieldsEnumValues() []ListBucketsFieldsEnum { + values := make([]ListBucketsFieldsEnum, 0) + for _, v := range mappingListBucketsFields { + values = append(values, v) + } + return values +} 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 367ea7af79..8d8d297a41 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 @@ -14,11 +14,11 @@ type ListMultipartUploadPartsRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - // The name of the object. + // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` @@ -52,7 +52,7 @@ type ListMultipartUploadPartsResponse struct { 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. + // request, 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, 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 259e0630ee..b128777e7f 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 @@ -14,7 +14,7 @@ type ListMultipartUploadsRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` @@ -45,13 +45,12 @@ type ListMultipartUploadsResponse struct { 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. + // request, 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). + // 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"` } 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 aa216e61d9..8bc96caa22 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -24,7 +24,8 @@ type ListObjects struct { 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. + // a truncated ListObjects response. Avoid entering confidential information. + // Example: test/object1.log NextStartWith *string `mandatory:"false" json:"nextStartWith"` } 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 0cca1b1c6a..2f356588e5 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 @@ -14,7 +14,7 @@ type ListObjectsRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` @@ -31,10 +31,10 @@ type ListObjectsRequest struct { 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. + // (after an optionally specified prefix) are returned in the objects key of the response body. + // Scanned objects whose names contain the delimiter have the part of their name up to the first + // occurrence of the delimiter (including 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' @@ -64,7 +64,7 @@ type ListObjectsResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } 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 4adcbe26ae..78078f04bf 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 @@ -14,11 +14,11 @@ type ListPreauthenticatedRequestsRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // 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 + // User-specified object name prefixes can be used to query and return a list of pre-authenticated requests. ObjectNamePrefix *string `mandatory:"false" contributesTo:"query" name:"objectNamePrefix"` // The maximum number of items to return. @@ -48,7 +48,7 @@ type ListPreauthenticatedRequestsResponse struct { 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. + // request, 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, 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 00cad6055d..30a6b6cea6 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -12,7 +12,12 @@ import ( "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, +// MultipartUpload Multipart uploads provide efficient and resilient uploads, especially for large objects. Multipart uploads also accommodate +// objects that are too large for a single upload operation. With multipart uploads, individual parts of an object can be +// uploaded in parallel to reduce the amount of time you spend uploading. Multipart uploads can also minimize the impact +// of network failures by letting you retry a failed part upload instead of requiring you to retry an entire object upload. +// See Managing Multipart Uploads (https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingmultipartuploads.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 MultipartUpload struct { @@ -29,7 +34,7 @@ type MultipartUpload struct { // The unique identifier for the in-progress multipart upload. UploadId *string `mandatory:"true" json:"uploadId"` - // The date and time when the upload was created. + // The date and time the upload was created, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` } 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 05f9aff44e..be1e9a5e4e 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -12,21 +12,22 @@ import ( "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 (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// MultipartUploadPartSummary Get summary information about multipart uploads. +// 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. + // The current entity tag for the part. Etag *string `mandatory:"true" json:"etag"` - // the MD5 hash of the bytes of the part. + // The MD5 hash of the bytes of the part. Md5 *string `mandatory:"true" json:"md5"` - // the size of the part in bytes. + // The size of the part in bytes. Size *int `mandatory:"true" json:"size"` - // the part number for this part. + // The part number for this part. PartNumber *int `mandatory:"true" json:"partNumber"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/namespace_metadata.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/namespace_metadata.go new file mode 100644 index 0000000000..7863b211f2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/namespace_metadata.go @@ -0,0 +1,30 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// Common set of Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// NamespaceMetadata A NamespaceMetadta is a map for storing namespace and defaultS3CompartmentId, defaultSwiftCompartmentId. +type NamespaceMetadata struct { + + // The namespace to which the metadata belongs. + Namespace *string `mandatory:"true" json:"namespace"` + + // The default compartment ID for an S3 client. + DefaultS3CompartmentId *string `mandatory:"true" json:"defaultS3CompartmentId"` + + // The default compartment ID for a Swift client. + DefaultSwiftCompartmentId *string `mandatory:"true" json:"defaultSwiftCompartmentId"` +} + +func (m NamespaceMetadata) 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 c1cf92ba8d..318aa0c608 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -17,7 +17,8 @@ import ( // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type ObjectSummary struct { - // The name of the object. + // The name of the object. Avoid entering confidential information. + // Example: test/object1.log Name *string `mandatory:"true" json:"name"` // Size of the object in bytes. @@ -26,7 +27,7 @@ type ObjectSummary struct { // Base64-encoded MD5 hash of the object data. Md5 *string `mandatory:"false" json:"md5"` - // Date and time of object creation. + // The date and time the object was created, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } 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 eaf8bdfb63..64e7fb88a5 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -105,9 +105,6 @@ func (client ObjectStorageClient) CommitMultipartUpload(ctx context.Context, req } // 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 { @@ -143,7 +140,7 @@ func (client ObjectStorageClient) CreateMultipartUpload(ctx context.Context, req return } -// CreatePreauthenticatedRequest Create a pre-authenticated request specific to the bucket +// CreatePreauthenticatedRequest Creates 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 { @@ -197,7 +194,7 @@ func (client ObjectStorageClient) DeleteObject(ctx context.Context, request Dele return } -// DeletePreauthenticatedRequest Deletes the bucket level pre-authenticateted request +// DeletePreauthenticatedRequest Deletes the pre-authenticated request for the bucket. 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 { @@ -233,8 +230,8 @@ func (client ObjectStorageClient) GetBucket(ctx context.Context, request GetBuck 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. +// GetNamespace Namespaces are unique. Namespaces are either the tenancy name or a random string automatically generated during +// account creation. You cannot edit a namespace. func (client ObjectStorageClient) GetNamespace(ctx context.Context, request GetNamespaceRequest) (response GetNamespaceResponse, err error) { httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/", request) if err != nil { @@ -252,6 +249,27 @@ func (client ObjectStorageClient) GetNamespace(ctx context.Context, request GetN return } +// GetNamespaceMetadata Get the metadata for the namespace, which contains defaultS3CompartmentId and defaultSwiftCompartmentId. +// Any user with the NAMESPACE_READ permission will be able to see the current metadata. 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) GetNamespaceMetadata(ctx context.Context, request GetNamespaceMetadataRequest) (response GetNamespaceMetadataResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodGet, "/n/{namespaceName}", request) + if err != nil { + 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) @@ -269,7 +287,7 @@ func (client ObjectStorageClient) GetObject(ctx context.Context, request GetObje return } -// GetPreauthenticatedRequest Get the bucket level pre-authenticateted request +// GetPreauthenticatedRequest Gets the pre-authenticated request for the bucket. 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 { @@ -287,7 +305,7 @@ func (client ObjectStorageClient) GetPreauthenticatedRequest(ctx context.Context return } -// HeadBucket Efficiently checks if a bucket exists and gets the current ETag for the bucket. +// HeadBucket Efficiently checks to see 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 { @@ -402,7 +420,7 @@ func (client ObjectStorageClient) ListObjects(ctx context.Context, request ListO return } -// ListPreauthenticatedRequests List pre-authenticated requests for the bucket +// ListPreauthenticatedRequests Lists 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 { @@ -421,9 +439,6 @@ func (client ObjectStorageClient) ListPreauthenticatedRequests(ctx context.Conte } // 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 { @@ -441,6 +456,43 @@ func (client ObjectStorageClient) PutObject(ctx context.Context, request PutObje return } +// RenameObject Rename an object from source key to target key in the given namespace. +func (client ObjectStorageClient) RenameObject(ctx context.Context, request RenameObjectRequest) (response RenameObjectResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/{bucketName}/actions/renameObject", request) + if err != nil { + return + } + + httpResponse, err := client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return + } + + err = common.UnmarshalResponse(httpResponse, &response) + return +} + +// RestoreObjects Restore one or more objects specified by objectName parameter. +// By default object will be restored for 24 hours.Duration can be configured using hours parameter. +func (client ObjectStorageClient) RestoreObjects(ctx context.Context, request RestoreObjectsRequest) (response RestoreObjectsResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "/n/{namespaceName}/b/{bucketName}/actions/restoreObjects", request) + if err != nil { + 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) @@ -459,6 +511,27 @@ func (client ObjectStorageClient) UpdateBucket(ctx context.Context, request Upda return } +// UpdateNamespaceMetadata Change the default Swift/S3 compartmentId of user's namespace into the user-defined compartmentId. Upon doing +// this, all subsequent bucket creations will use the new default compartment, but no previously created +// buckets will be modified. A user must have the NAMESPACE_UPDATE permission to make changes to the default +// compartments for S3 and Swift. +func (client ObjectStorageClient) UpdateNamespaceMetadata(ctx context.Context, request UpdateNamespaceMetadataRequest) (response UpdateNamespaceMetadataResponse, err error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPut, "/n/{namespaceName}", request) + if err != nil { + 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) 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 54e4d2430f..fdf12fd9b8 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -12,30 +12,35 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// PreauthenticatedRequest The representation of PreauthenticatedRequest +// PreauthenticatedRequest Pre-authenticated requests provide a way to let users access a bucket or an object without having their own credentials. +// When you create a pre-authenticated request, a unique URL is generated. Users in your organization, partners, or third +// parties can use this URL to access the targets identified in the pre-authenticated request. See Managing Access to Buckets and Objects (https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingaccess.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 PreauthenticatedRequest struct { - // the unique identifier to use when directly addressing the pre-authenticated request + // 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. + // The user-provided 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. + // 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. + // The operation that can be performed on this resource. 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) + // The expiration date for the pre-authenticated request as per RFC 3339 (https://tools.ietf.org/rfc/rfc3339). After this date the pre-authenticated request will no longer be valid. 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) + // The date when the pre-authenticated request was created as per specification + // 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 + // The name of the object that is being granted access to by the pre-authenticated request. This can be null and + // if so, the pre-authenticated request grants access to the entire bucket. Avoid entering confidential information. + // Example: test/object1.log ObjectName *string `mandatory:"false" json:"objectName"` } 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 f293237bc0..04b5440ad2 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -12,27 +12,25 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// PreauthenticatedRequestSummary The representation of PreauthenticatedRequestSummary +// PreauthenticatedRequestSummary Get summary information about pre-authenticated requests. type PreauthenticatedRequestSummary struct { - // the unique identifier to use when directly addressing the pre-authenticated request + // 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 + // The user-provided 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. + // The operation that can be performed on this resource. 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) + // The expiration date for the pre-authenticated request as per RFC 3339 (https://tools.ietf.org/rfc/rfc3339). After this date the pre-authenticated request will no longer be valid. 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) + // The date when the pre-authenticated request was created as per 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 + // The name of object that is being granted access to by the pre-authenticated request. This can be null and if it is, the pre-authenticated request grants access to the entire bucket. ObjectName *string `mandatory:"false" json:"objectName"` } 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 3652da5fc7..ae4cb2c092 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 @@ -15,11 +15,11 @@ type PutObjectRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - // The name of the object. + // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` @@ -34,8 +34,7 @@ type PutObjectRequest struct { 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. + // 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. @@ -74,7 +73,7 @@ type PutObjectResponse struct { 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. + // request, 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. diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_details.go new file mode 100644 index 0000000000..99cce08166 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_details.go @@ -0,0 +1,38 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// Common set of Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// RenameObjectDetails 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 RenameObjectDetails struct { + + // The name of the source object to be renamed. + SourceName *string `mandatory:"true" json:"sourceName"` + + // The new name of the source object. + NewName *string `mandatory:"true" json:"newName"` + + // The if-match entity tag of the source object. + SrcObjIfMatchETag *string `mandatory:"false" json:"srcObjIfMatchETag"` + + // The if-match entity tag of the new object. + NewObjIfMatchETag *string `mandatory:"false" json:"newObjIfMatchETag"` + + // The if-none-match entity tag of the new object. + NewObjIfNoneMatchETag *string `mandatory:"false" json:"newObjIfNoneMatchETag"` +} + +func (m RenameObjectDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_request_response.go new file mode 100644 index 0000000000..aaf46161ea --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_request_response.go @@ -0,0 +1,54 @@ +// 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" +) + +// RenameObjectRequest wrapper for the RenameObject operation +type RenameObjectRequest struct { + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. Avoid entering confidential information. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The sourceName and newName of rename operation. + RenameObjectDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` +} + +func (request RenameObjectRequest) String() string { + return common.PointerString(request) +} + +// RenameObjectResponse wrapper for the RenameObject operation +type RenameObjectResponse 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, 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 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 RenameObjectResponse) String() string { + return common.PointerString(response) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_details.go new file mode 100644 index 0000000000..b7b41e7041 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_details.go @@ -0,0 +1,28 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// Common set of Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// RestoreObjectsDetails The representation of RestoreObjectsDetails +type RestoreObjectsDetails struct { + + // A object which was in an archived state and need to be restored. + ObjectName *string `mandatory:"true" json:"objectName"` + + // The number of hours for which this object will be restored. + // By default object will be restored for 24 hours.It can be configured using hours parameter. + Hours *int `mandatory:"false" json:"hours"` +} + +func (m RestoreObjectsDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_request_response.go new file mode 100644 index 0000000000..b690ec364e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_request_response.go @@ -0,0 +1,48 @@ +// 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" +) + +// RestoreObjectsRequest wrapper for the RestoreObjects operation +type RestoreObjectsRequest struct { + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. Avoid entering confidential information. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // Request to restore objects. + RestoreObjectsDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` +} + +func (request RestoreObjectsRequest) String() string { + return common.PointerString(request) +} + +// RestoreObjectsResponse wrapper for the RestoreObjects operation +type RestoreObjectsResponse 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, provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response RestoreObjectsResponse) String() string { + 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 a3cf083a5b..1f778b7ba0 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 @@ -3,7 +3,7 @@ // Object Storage Service API // -// APIs for managing buckets and objects. +// Common set of Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -20,17 +20,31 @@ type UpdateBucketDetails struct { // The namespace in which the bucket lives. Namespace *string `mandatory:"false" json:"namespace"` - // The name of the bucket. + // The compartmentId for the compartment to which the bucket is targeted to move to. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The name of the bucket. Avoid entering confidential information. + // Example: my-new-bucket1 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. + // The type of public access enabled on this bucket. A bucket is set to `NoPublicAccess` by default, which only allows an + // authenticated caller to access the bucket and its contents. When `ObjectRead` is enabled on the bucket, public access + // is allowed for the `GetObject`, `HeadObject`, and `ListObjects` operations. When `ObjectReadWithoutList` is enabled + // on the bucket, public access is allowed for the `GetObject` and `HeadObject` operations. PublicAccessType UpdateBucketDetailsPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}} + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m UpdateBucketDetails) String() string { @@ -42,13 +56,15 @@ type UpdateBucketDetailsPublicAccessTypeEnum string // Set of constants representing the allowable values for UpdateBucketDetailsPublicAccessType const ( - UpdateBucketDetailsPublicAccessTypeNopublicaccess UpdateBucketDetailsPublicAccessTypeEnum = "NoPublicAccess" - UpdateBucketDetailsPublicAccessTypeObjectread UpdateBucketDetailsPublicAccessTypeEnum = "ObjectRead" + UpdateBucketDetailsPublicAccessTypeNopublicaccess UpdateBucketDetailsPublicAccessTypeEnum = "NoPublicAccess" + UpdateBucketDetailsPublicAccessTypeObjectread UpdateBucketDetailsPublicAccessTypeEnum = "ObjectRead" + UpdateBucketDetailsPublicAccessTypeObjectreadwithoutlist UpdateBucketDetailsPublicAccessTypeEnum = "ObjectReadWithoutList" ) var mappingUpdateBucketDetailsPublicAccessType = map[string]UpdateBucketDetailsPublicAccessTypeEnum{ - "NoPublicAccess": UpdateBucketDetailsPublicAccessTypeNopublicaccess, - "ObjectRead": UpdateBucketDetailsPublicAccessTypeObjectread, + "NoPublicAccess": UpdateBucketDetailsPublicAccessTypeNopublicaccess, + "ObjectRead": UpdateBucketDetailsPublicAccessTypeObjectread, + "ObjectReadWithoutList": UpdateBucketDetailsPublicAccessTypeObjectreadwithoutlist, } // GetUpdateBucketDetailsPublicAccessTypeEnumValues Enumerates the set of values for UpdateBucketDetailsPublicAccessType 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 a352d64fed..a4266f03c6 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 @@ -14,7 +14,7 @@ type UpdateBucketRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` @@ -46,7 +46,7 @@ type UpdateBucketResponse struct { 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. + // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The entity tag for the updated bucket. diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_details.go new file mode 100644 index 0000000000..967d993cc9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_details.go @@ -0,0 +1,28 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// Common set of Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateNamespaceMetadataDetails An UpdateNamespaceMetadataDetails is used for update NamespaceMetadata. To be able to upate the NamespaceMetadata, a user +// must have NAMESPACE_UPDATE permission. +type UpdateNamespaceMetadataDetails struct { + + // The update compartment id for an S3 client if this field is set. + DefaultS3CompartmentId *string `mandatory:"false" json:"defaultS3CompartmentId"` + + // The update compartment id for a Swift client if this field is set. + DefaultSwiftCompartmentId *string `mandatory:"false" json:"defaultSwiftCompartmentId"` +} + +func (m UpdateNamespaceMetadataDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_request_response.go new file mode 100644 index 0000000000..e4c4637414 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_request_response.go @@ -0,0 +1,47 @@ +// 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" +) + +// UpdateNamespaceMetadataRequest wrapper for the UpdateNamespaceMetadata operation +type UpdateNamespaceMetadataRequest struct { + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // Request object for update NamespaceMetadata. + UpdateNamespaceMetadataDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` +} + +func (request UpdateNamespaceMetadataRequest) String() string { + return common.PointerString(request) +} + +// UpdateNamespaceMetadataResponse wrapper for the UpdateNamespaceMetadata operation +type UpdateNamespaceMetadataResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The NamespaceMetadata instance + NamespaceMetadata `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, provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateNamespaceMetadataResponse) String() string { + 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 9a48fa05ca..c9beb469b3 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 @@ -15,11 +15,11 @@ type UploadPartRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The name of the bucket. + // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` - // The name of the object. + // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` @@ -43,8 +43,7 @@ type UploadPartRequest struct { 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. + // 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 @@ -68,7 +67,7 @@ type UploadPartResponse struct { 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. + // request, 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. diff --git a/vendor/github.com/oracle/oci-go-sdk/oci.go b/vendor/github.com/oracle/oci-go-sdk/oci.go index 47fcef9c67..a5334a0a3b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/oci.go +++ b/vendor/github.com/oracle/oci-go-sdk/oci.go @@ -186,7 +186,7 @@ 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 +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_pagination_test.go Logging and Debugging @@ -196,6 +196,29 @@ requests, responses and potential errors when (un)marshalling request and respon To expose debugging logs, set the environment variable "OCI_GO_SDK_DEBUG" to "1", or some other non empty string. +Using the SDK with a proxy server + +The GO SDK uses the net/http package to make calls to OCI services. If your environment requires you to use a proxy server for outgoing HTTP requests +then you can set this up in the following ways: + +1. Configuring environment variable as described here https://golang.org/pkg/net/http/#ProxyFromEnvironment +2. Modifying the underlying Transport struct for a service client + +In order to modify the underlying Transport struct in HttpClient, you can do something similar to (sample code for audit service client): + // create audit service client + client, clerr := audit.NewAuditClientWithConfigurationProvider(common.DefaultConfigProvider()) + + // create a proxy url + proxyURL, err := url.Parse("http(s)://[username]:[password]@[ip address]:[port]") + + client.HTTPClient = &http.Client{ + // adding the proxy settings to the http.Transport + Transport: &http.Transport{ + Proxy: http.ProxyURL(proxyURL), + }, + } + + Forward Compatibility Some response fields are enum-typed. In the future, individual services may return values not covered by existing enums From aeddd4d7c81f24aa422d57e4d25480e11109c2cf Mon Sep 17 00:00:00 2001 From: Josh Horwitz Date: Mon, 9 Apr 2018 20:40:44 -0400 Subject: [PATCH 3/4] Add failure test --- pkg/oci/load_balancer_spec_test.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pkg/oci/load_balancer_spec_test.go b/pkg/oci/load_balancer_spec_test.go index 05be63813b..ff68a0528e 100644 --- a/pkg/oci/load_balancer_spec_test.go +++ b/pkg/oci/load_balancer_spec_test.go @@ -323,6 +323,7 @@ func TestNewLBSpecSuccess(t *testing.T) { }) } } + func TestNewLBSpecFailure(t *testing.T) { testCases := map[string]struct { defaultSubnetOne string @@ -364,6 +365,25 @@ func TestNewLBSpecFailure(t *testing.T) { }, expectedErrMsg: "invalid service: OCI only supports SessionAffinity \"None\" currently", }, + "invalid idle connection timeout": { + service: &v1.Service{ + ObjectMeta: metav1.ObjectMeta{ + Namespace: "kube-system", + Name: "testservice", + UID: "test-uid", + Annotations: map[string]string{ + ServiceAnnotationLoadBalancerConnectionIdleTimeout: "whoops", + }, + }, + Spec: v1.ServiceSpec{ + SessionAffinity: v1.ServiceAffinityNone, + Ports: []v1.ServicePort{ + {Protocol: v1.ProtocolTCP}, + }, + }, + }, + expectedErrMsg: "error parsing service annotation: service.beta.kubernetes.io/oci-load-balancer-connection-idle-timeout=whoops", + }, } for name, tc := range testCases { From 84de20b8f73304309fc39c48f9193c3e2c35b2a0 Mon Sep 17 00:00:00 2001 From: Andrew Pryde Date: Wed, 11 Apr 2018 12:44:51 +0100 Subject: [PATCH 4/4] Document idle timeout annotation --- docs/load-balancer-annotations.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/load-balancer-annotations.md b/docs/load-balancer-annotations.md index c57fd368d7..14334f70fc 100644 --- a/docs/load-balancer-annotations.md +++ b/docs/load-balancer-annotations.md @@ -20,12 +20,13 @@ spec: ## Load balancer properties -| Name | Description | Default | -| ---- | ----------- | ------- | -| `oci-load-balancer-internal` | Create an [internal load balancer][1]. Cannot be modified after load balancer creation. | `false` | -| `oci-load-balancer-shape` | A template that determines the load balancer's total pre-provisioned maximum capacity (bandwidth) for ingress plus egress traffic. Available shapes include `100Mbps`, `400Mbps`, and `8000Mbps.` Cannot be modified after load balancer creation. | `"100Mbps"` | -| `oci-load-balancer-subnet1` | The OCID of the first [subnet][2] of the two required subnets to attach the load balancer to. Must be in separate Availability Domains. | Value provided in config file | -| `oci-load-balancer-subnet2` | The OCID of the second [subnet][2] of the two required subnets to attach the load balancer to. Must be in separate Availability Domains. | Value provided in config file | +| Name | Description | Default | +| ----- | ----------- | ------- | +| `oci-load-balancer-internal` | Create an [internal load balancer][1]. Cannot be modified after load balancer creation. | `false` | +| `oci-load-balancer-shape` | A template that determines the load balancer's total pre-provisioned maximum capacity (bandwidth) for ingress plus egress traffic. Available shapes include `100Mbps`, `400Mbps`, and `8000Mbps.` Cannot be modified after load balancer creation. | `"100Mbps"` | +| `oci-load-balancer-subnet1` | The OCID of the first [subnet][2] of the two required subnets to attach the load balancer to. Must be in separate Availability Domains. | Value provided in config file | +| `oci-load-balancer-subnet2` | The OCID of the second [subnet][2] of the two required subnets to attach the load balancer to. Must be in separate Availability Domains. | Value provided in config file | +| `oci-load-balancer-connection-idle-timeout` | The maximum idle time, in seconds, allowed between two successive receive or two successive send operations between the client and backend servers. | `300` for TCP listeners, `60` for HTTP listeners | ## TLS-related