oci 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -3
- data/lib/oci.rb +6 -0
- data/lib/oci/api_client.rb +159 -134
- data/lib/oci/audit/audit.rb +3 -0
- data/lib/oci/audit/audit_client.rb +88 -40
- data/lib/oci/audit/audit_client_composite_operations.rb +64 -0
- data/lib/oci/audit/models/audit_event.rb +151 -200
- data/lib/oci/audit/models/configuration.rb +61 -38
- data/lib/oci/audit/models/update_configuration_details.rb +61 -38
- data/lib/oci/auth/util.rb +1 -1
- data/lib/oci/base_signer.rb +20 -29
- data/lib/oci/config.rb +9 -3
- data/lib/oci/core/blockstorage_client.rb +512 -269
- data/lib/oci/core/blockstorage_client_composite_operations.rb +342 -0
- data/lib/oci/core/compute_client.rb +959 -536
- data/lib/oci/core/compute_client_composite_operations.rb +738 -0
- data/lib/oci/core/core.rb +5 -0
- data/lib/oci/core/models/attach_boot_volume_details.rb +72 -57
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +76 -53
- data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +69 -45
- data/lib/oci/core/models/attach_vnic_details.rb +79 -68
- data/lib/oci/core/models/attach_volume_details.rb +83 -74
- data/lib/oci/core/models/boot_volume.rb +119 -120
- data/lib/oci/core/models/boot_volume_attachment.rb +114 -111
- data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +61 -38
- data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +61 -38
- data/lib/oci/core/models/capture_console_history_details.rb +81 -70
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +60 -38
- data/lib/oci/core/models/connect_remote_peering_connections_details.rb +67 -49
- data/lib/oci/core/models/console_history.rb +122 -123
- data/lib/oci/core/models/cpe.rb +82 -74
- data/lib/oci/core/models/create_cpe_details.rb +73 -58
- data/lib/oci/core/models/create_cross_connect_details.rb +98 -99
- data/lib/oci/core/models/create_cross_connect_group_details.rb +67 -48
- data/lib/oci/core/models/create_dhcp_details.rb +89 -84
- data/lib/oci/core/models/create_drg_attachment_details.rb +71 -56
- data/lib/oci/core/models/create_drg_details.rb +66 -47
- data/lib/oci/core/models/create_image_details.rb +108 -110
- data/lib/oci/core/models/create_instance_console_connection_details.rb +79 -69
- data/lib/oci/core/models/create_internet_gateway_details.rb +76 -65
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +83 -76
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +72 -57
- data/lib/oci/core/models/create_private_ip_details.rb +97 -94
- data/lib/oci/core/models/create_public_ip_details.rb +90 -77
- data/lib/oci/core/models/create_remote_peering_connection_details.rb +72 -57
- data/lib/oci/core/models/create_route_table_details.rb +90 -87
- data/lib/oci/core/models/create_security_list_details.rb +95 -96
- data/lib/oci/core/models/create_subnet_details.rb +133 -154
- data/lib/oci/core/models/create_vcn_details.rb +96 -93
- data/lib/oci/core/models/create_virtual_circuit_details.rb +136 -153
- data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +62 -39
- data/lib/oci/core/models/create_vnic_details.rb +99 -97
- data/lib/oci/core/models/create_volume_backup_details.rb +94 -85
- data/lib/oci/core/models/create_volume_backup_policy_assignment_details.rb +66 -47
- data/lib/oci/core/models/create_volume_details.rb +117 -130
- data/lib/oci/core/models/cross_connect.rb +120 -121
- data/lib/oci/core/models/cross_connect_group.rb +97 -82
- data/lib/oci/core/models/cross_connect_location.rb +65 -43
- data/lib/oci/core/models/cross_connect_mapping.rb +89 -81
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +68 -48
- data/lib/oci/core/models/cross_connect_status.rb +110 -87
- data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +61 -38
- data/lib/oci/core/models/dhcp_dns_option.rb +85 -60
- data/lib/oci/core/models/dhcp_option.rb +62 -38
- data/lib/oci/core/models/dhcp_options.rb +119 -118
- data/lib/oci/core/models/dhcp_search_domain_option.rb +66 -44
- data/lib/oci/core/models/drg.rb +96 -81
- data/lib/oci/core/models/drg_attachment.rb +106 -99
- data/lib/oci/core/models/egress_security_rule.rb +89 -83
- data/lib/oci/core/models/export_image_details.rb +63 -41
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +74 -59
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +65 -42
- data/lib/oci/core/models/fast_connect_provider_service.rb +155 -126
- data/lib/oci/core/models/get_public_ip_by_ip_address_details.rb +61 -39
- data/lib/oci/core/models/get_public_ip_by_private_ip_id_details.rb +61 -39
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +117 -105
- data/lib/oci/core/models/icmp_options.rb +63 -41
- data/lib/oci/core/models/image.rb +170 -185
- data/lib/oci/core/models/image_source_details.rb +79 -60
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +77 -62
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +67 -44
- data/lib/oci/core/models/ingress_security_rule.rb +89 -83
- data/lib/oci/core/models/instance.rb +190 -211
- data/lib/oci/core/models/instance_console_connection.rb +118 -117
- data/lib/oci/core/models/instance_credentials.rb +63 -41
- data/lib/oci/core/models/instance_source_details.rb +64 -41
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +64 -41
- data/lib/oci/core/models/instance_source_via_image_details.rb +70 -51
- data/lib/oci/core/models/internet_gateway.rb +107 -100
- data/lib/oci/core/models/ip_sec_connection.rb +113 -110
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +73 -59
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +75 -61
- data/lib/oci/core/models/launch_instance_details.rb +163 -189
- data/lib/oci/core/models/launch_options.rb +130 -93
- data/lib/oci/core/models/letter_of_authority.rb +105 -100
- data/lib/oci/core/models/local_peering_gateway.rb +141 -140
- data/lib/oci/core/models/paravirtualized_volume_attachment.rb +83 -60
- data/lib/oci/core/models/peer_region_for_remote_peering.rb +61 -37
- data/lib/oci/core/models/port_range.rb +65 -42
- data/lib/oci/core/models/private_ip.rb +131 -151
- data/lib/oci/core/models/public_ip.rb +160 -149
- data/lib/oci/core/models/remote_peering_connection.rb +148 -151
- data/lib/oci/core/models/route_rule.rb +68 -50
- data/lib/oci/core/models/route_table.rb +120 -121
- data/lib/oci/core/models/security_list.rb +125 -130
- data/lib/oci/core/models/shape.rb +60 -36
- data/lib/oci/core/models/subnet.rb +183 -220
- data/lib/oci/core/models/tcp_options.rb +67 -49
- data/lib/oci/core/models/tunnel_config.rb +76 -62
- data/lib/oci/core/models/tunnel_status.rb +94 -77
- data/lib/oci/core/models/udp_options.rb +67 -49
- data/lib/oci/core/models/update_boot_volume_details.rb +62 -39
- data/lib/oci/core/models/update_console_history_details.rb +76 -61
- data/lib/oci/core/models/update_cpe_details.rb +62 -39
- data/lib/oci/core/models/update_cross_connect_details.rb +68 -50
- data/lib/oci/core/models/update_cross_connect_group_details.rb +62 -39
- data/lib/oci/core/models/update_dhcp_details.rb +80 -67
- data/lib/oci/core/models/update_drg_attachment_details.rb +62 -39
- data/lib/oci/core/models/update_drg_details.rb +62 -39
- data/lib/oci/core/models/update_image_details.rb +77 -62
- data/lib/oci/core/models/update_instance_details.rb +77 -62
- data/lib/oci/core/models/update_internet_gateway_details.rb +67 -48
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +62 -39
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +62 -39
- data/lib/oci/core/models/update_private_ip_details.rb +90 -83
- data/lib/oci/core/models/update_public_ip_details.rb +68 -49
- data/lib/oci/core/models/update_remote_peering_connection_details.rb +62 -39
- data/lib/oci/core/models/update_route_table_details.rb +81 -70
- data/lib/oci/core/models/update_security_list_details.rb +86 -79
- data/lib/oci/core/models/update_subnet_details.rb +76 -61
- data/lib/oci/core/models/update_vcn_details.rb +76 -61
- data/lib/oci/core/models/update_virtual_circuit_details.rb +114 -115
- data/lib/oci/core/models/update_vnic_details.rb +75 -60
- data/lib/oci/core/models/update_volume_backup_details.rb +76 -61
- data/lib/oci/core/models/update_volume_details.rb +76 -61
- data/lib/oci/core/models/vcn.rb +150 -167
- data/lib/oci/core/models/virtual_circuit.rb +254 -269
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +68 -48
- data/lib/oci/core/models/virtual_circuit_public_prefix.rb +79 -54
- data/lib/oci/core/models/vnic.rb +149 -166
- data/lib/oci/core/models/vnic_attachment.rb +132 -141
- data/lib/oci/core/models/volume.rb +138 -151
- data/lib/oci/core/models/volume_attachment.rb +126 -131
- data/lib/oci/core/models/volume_backup.rb +185 -200
- data/lib/oci/core/models/volume_backup_policy.rb +75 -61
- data/lib/oci/core/models/volume_backup_policy_assignment.rb +75 -63
- data/lib/oci/core/models/volume_backup_schedule.rb +101 -76
- data/lib/oci/core/models/volume_source_details.rb +62 -37
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +62 -38
- data/lib/oci/core/models/volume_source_from_volume_details.rb +62 -38
- data/lib/oci/core/virtual_network_client.rb +2683 -1457
- data/lib/oci/core/virtual_network_client_composite_operations.rb +1849 -0
- data/lib/oci/database/database.rb +3 -0
- data/lib/oci/database/database_client.rb +894 -454
- data/lib/oci/database/database_client_composite_operations.rb +462 -0
- data/lib/oci/database/models/backup.rb +131 -128
- data/lib/oci/database/models/backup_summary.rb +131 -128
- data/lib/oci/database/models/create_backup_details.rb +66 -47
- data/lib/oci/database/models/create_data_guard_association_details.rb +112 -102
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +73 -51
- data/lib/oci/database/models/create_database_details.rb +140 -105
- data/lib/oci/database/models/create_database_from_backup_details.rb +71 -56
- data/lib/oci/database/models/create_db_home_details.rb +70 -53
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +83 -67
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +74 -53
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +69 -44
- data/lib/oci/database/models/data_guard_association.rb +205 -204
- data/lib/oci/database/models/data_guard_association_summary.rb +205 -204
- data/lib/oci/database/models/database.rb +175 -156
- data/lib/oci/database/models/database_summary.rb +175 -156
- data/lib/oci/database/models/db_backup_config.rb +60 -38
- data/lib/oci/database/models/db_home.rb +110 -107
- data/lib/oci/database/models/db_home_summary.rb +110 -107
- data/lib/oci/database/models/db_node.rb +113 -108
- data/lib/oci/database/models/db_node_summary.rb +113 -108
- data/lib/oci/database/models/db_system.rb +299 -314
- data/lib/oci/database/models/db_system_shape_summary.rb +88 -86
- data/lib/oci/database/models/db_system_summary.rb +299 -314
- data/lib/oci/database/models/db_version_summary.rb +64 -44
- data/lib/oci/database/models/failover_data_guard_association_details.rb +60 -38
- data/lib/oci/database/models/launch_db_system_details.rb +231 -234
- data/lib/oci/database/models/patch.rb +136 -113
- data/lib/oci/database/models/patch_details.rb +73 -53
- data/lib/oci/database/models/patch_history_entry.rb +114 -99
- data/lib/oci/database/models/patch_history_entry_summary.rb +114 -99
- data/lib/oci/database/models/patch_summary.rb +136 -113
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +60 -38
- data/lib/oci/database/models/restore_database_details.rb +72 -53
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +60 -38
- data/lib/oci/database/models/update_database_details.rb +97 -38
- data/lib/oci/database/models/update_db_home_details.rb +60 -38
- data/lib/oci/database/models/update_db_system_details.rb +112 -64
- data/lib/oci/dns/dns.rb +3 -0
- data/lib/oci/dns/dns_client.rb +489 -302
- data/lib/oci/dns/dns_client_composite_operations.rb +143 -0
- data/lib/oci/dns/models/create_zone_details.rb +84 -72
- data/lib/oci/dns/models/external_master.rb +67 -47
- data/lib/oci/dns/models/patch_domain_records_details.rb +60 -35
- data/lib/oci/dns/models/patch_rr_set_details.rb +60 -35
- data/lib/oci/dns/models/patch_zone_records_details.rb +60 -35
- data/lib/oci/dns/models/record.rb +92 -86
- data/lib/oci/dns/models/record_collection.rb +59 -35
- data/lib/oci/dns/models/record_details.rb +92 -86
- data/lib/oci/dns/models/record_operation.rb +113 -110
- data/lib/oci/dns/models/rr_set.rb +59 -35
- data/lib/oci/dns/models/sort_order.rb +0 -2
- data/lib/oci/dns/models/tsig.rb +68 -48
- data/lib/oci/dns/models/update_domain_records_details.rb +60 -35
- data/lib/oci/dns/models/update_rr_set_details.rb +60 -35
- data/lib/oci/dns/models/update_zone_details.rb +60 -38
- data/lib/oci/dns/models/update_zone_records_details.rb +60 -35
- data/lib/oci/dns/models/zone.rb +133 -126
- data/lib/oci/dns/models/zone_summary.rb +108 -99
- data/lib/oci/email/email.rb +3 -0
- data/lib/oci/email/email_client.rb +223 -112
- data/lib/oci/email/email_client_composite_operations.rb +103 -0
- data/lib/oci/email/models/create_sender_details.rb +65 -47
- data/lib/oci/email/models/create_suppression_details.rb +66 -48
- data/lib/oci/email/models/sender.rb +97 -84
- data/lib/oci/email/models/sender_summary.rb +89 -70
- data/lib/oci/email/models/suppression.rb +90 -69
- data/lib/oci/email/models/suppression_summary.rb +90 -69
- data/lib/oci/errors.rb +16 -0
- data/lib/oci/file_storage/file_storage.rb +3 -0
- data/lib/oci/file_storage/file_storage_client.rb +587 -333
- data/lib/oci/file_storage/file_storage_client_composite_operations.rb +460 -0
- data/lib/oci/file_storage/models/create_export_details.rb +73 -56
- data/lib/oci/file_storage/models/create_file_system_details.rb +75 -60
- data/lib/oci/file_storage/models/create_mount_target_details.rb +96 -93
- data/lib/oci/file_storage/models/create_snapshot_details.rb +68 -47
- data/lib/oci/file_storage/models/export.rb +102 -89
- data/lib/oci/file_storage/models/export_set.rb +121 -122
- data/lib/oci/file_storage/models/export_set_summary.rb +109 -102
- data/lib/oci/file_storage/models/export_summary.rb +102 -89
- data/lib/oci/file_storage/models/file_system.rb +110 -103
- data/lib/oci/file_storage/models/file_system_summary.rb +110 -103
- data/lib/oci/file_storage/models/mount_target.rb +126 -131
- data/lib/oci/file_storage/models/mount_target_summary.rb +121 -122
- data/lib/oci/file_storage/models/snapshot.rb +98 -81
- data/lib/oci/file_storage/models/snapshot_summary.rb +98 -81
- data/lib/oci/file_storage/models/update_export_set_details.rb +75 -60
- data/lib/oci/file_storage/models/update_file_system_details.rb +63 -40
- data/lib/oci/file_storage/models/update_mount_target_details.rb +63 -40
- data/lib/oci/identity/identity.rb +3 -0
- data/lib/oci/identity/identity_client.rb +1671 -872
- data/lib/oci/identity/identity_client_composite_operations.rb +818 -0
- data/lib/oci/identity/models/add_user_to_group_details.rb +66 -47
- data/lib/oci/identity/models/api_key.rb +108 -101
- data/lib/oci/identity/models/availability_domain.rb +64 -44
- data/lib/oci/identity/models/compartment.rb +118 -115
- data/lib/oci/identity/models/create_api_key_details.rb +60 -35
- data/lib/oci/identity/models/create_compartment_details.rb +83 -72
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +62 -39
- data/lib/oci/identity/models/create_dynamic_group_details.rb +75 -61
- data/lib/oci/identity/models/create_group_details.rb +82 -71
- data/lib/oci/identity/models/create_identity_provider_details.rb +115 -110
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +67 -48
- data/lib/oci/identity/models/create_policy_details.rb +94 -89
- data/lib/oci/identity/models/create_region_subscription_details.rb +64 -41
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +88 -67
- data/lib/oci/identity/models/create_smtp_credential_details.rb +61 -36
- data/lib/oci/identity/models/create_swift_password_details.rb +61 -36
- data/lib/oci/identity/models/create_tag_details.rb +77 -62
- data/lib/oci/identity/models/create_tag_namespace_details.rb +82 -71
- data/lib/oci/identity/models/create_user_details.rb +82 -71
- data/lib/oci/identity/models/customer_secret_key.rb +114 -109
- data/lib/oci/identity/models/customer_secret_key_summary.rb +109 -102
- data/lib/oci/identity/models/dynamic_group.rb +112 -105
- data/lib/oci/identity/models/group.rb +118 -115
- data/lib/oci/identity/models/identity_provider.rb +135 -138
- data/lib/oci/identity/models/idp_group_mapping.rb +112 -109
- data/lib/oci/identity/models/policy.rb +129 -132
- data/lib/oci/identity/models/region.rb +67 -45
- data/lib/oci/identity/models/region_subscription.rb +90 -71
- data/lib/oci/identity/models/saml2_identity_provider.rb +106 -92
- data/lib/oci/identity/models/smtp_credential.rb +118 -113
- data/lib/oci/identity/models/smtp_credential_summary.rb +113 -106
- data/lib/oci/identity/models/swift_password.rb +113 -106
- data/lib/oci/identity/models/tag.rb +108 -116
- data/lib/oci/identity/models/tag_namespace.rb +97 -97
- data/lib/oci/identity/models/tag_namespace_summary.rb +97 -97
- data/lib/oci/identity/models/tag_summary.rb +97 -97
- data/lib/oci/identity/models/tenancy.rb +86 -78
- data/lib/oci/identity/models/ui_password.rb +97 -82
- data/lib/oci/identity/models/update_compartment_details.rb +77 -62
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +61 -38
- data/lib/oci/identity/models/update_dynamic_group_details.rb +65 -45
- data/lib/oci/identity/models/update_group_details.rb +72 -55
- data/lib/oci/identity/models/update_identity_provider_details.rb +89 -74
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +66 -47
- data/lib/oci/identity/models/update_policy_details.rb +83 -72
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +79 -58
- data/lib/oci/identity/models/update_smtp_credential_details.rb +60 -35
- data/lib/oci/identity/models/update_state_details.rb +61 -36
- data/lib/oci/identity/models/update_swift_password_details.rb +60 -35
- data/lib/oci/identity/models/update_tag_details.rb +78 -65
- data/lib/oci/identity/models/update_tag_namespace_details.rb +78 -65
- data/lib/oci/identity/models/update_user_details.rb +72 -55
- data/lib/oci/identity/models/user.rb +120 -117
- data/lib/oci/identity/models/user_group_membership.rb +107 -100
- data/lib/oci/load_balancer/load_balancer.rb +3 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +918 -500
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +795 -0
- data/lib/oci/load_balancer/models/backend.rb +101 -94
- data/lib/oci/load_balancer/models/backend_details.rb +95 -86
- data/lib/oci/load_balancer/models/backend_health.rb +84 -57
- data/lib/oci/load_balancer/models/backend_set.rb +87 -79
- data/lib/oci/load_balancer/models/backend_set_details.rb +80 -70
- data/lib/oci/load_balancer/models/backend_set_health.rb +106 -91
- data/lib/oci/load_balancer/models/certificate.rb +78 -64
- data/lib/oci/load_balancer/models/certificate_details.rb +92 -84
- data/lib/oci/load_balancer/models/connection_configuration.rb +73 -51
- data/lib/oci/load_balancer/models/create_backend_details.rb +95 -86
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +87 -79
- data/lib/oci/load_balancer/models/create_certificate_details.rb +92 -84
- data/lib/oci/load_balancer/models/create_listener_details.rb +97 -93
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +109 -117
- data/lib/oci/load_balancer/models/create_path_route_set_details.rb +66 -46
- data/lib/oci/load_balancer/models/health_check_result.rb +98 -79
- data/lib/oci/load_balancer/models/health_checker.rb +108 -108
- data/lib/oci/load_balancer/models/health_checker_details.rb +108 -108
- data/lib/oci/load_balancer/models/ip_address.rb +70 -52
- data/lib/oci/load_balancer/models/listener.rb +97 -93
- data/lib/oci/load_balancer/models/listener_details.rb +91 -85
- data/lib/oci/load_balancer/models/load_balancer.rb +144 -157
- data/lib/oci/load_balancer/models/load_balancer_health.rb +110 -95
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +88 -61
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +59 -35
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +59 -35
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +59 -35
- data/lib/oci/load_balancer/models/path_match_type.rb +80 -51
- data/lib/oci/load_balancer/models/path_route.rb +76 -60
- data/lib/oci/load_balancer/models/path_route_set.rb +66 -46
- data/lib/oci/load_balancer/models/path_route_set_details.rb +60 -38
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +71 -55
- data/lib/oci/load_balancer/models/ssl_configuration.rb +78 -66
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +78 -66
- data/lib/oci/load_balancer/models/update_backend_details.rb +82 -67
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +80 -70
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +108 -108
- data/lib/oci/load_balancer/models/update_listener_details.rb +91 -85
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +62 -40
- data/lib/oci/load_balancer/models/update_path_route_set_details.rb +60 -38
- data/lib/oci/load_balancer/models/work_request.rb +115 -108
- data/lib/oci/load_balancer/models/work_request_error.rb +76 -49
- data/lib/oci/object_storage/models/bucket.rb +136 -133
- data/lib/oci/object_storage/models/bucket_summary.rb +95 -95
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +66 -48
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +64 -44
- data/lib/oci/object_storage/models/create_bucket_details.rb +113 -111
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +80 -70
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +87 -74
- data/lib/oci/object_storage/models/list_objects.rb +71 -53
- data/lib/oci/object_storage/models/multipart_upload.rb +77 -65
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +72 -56
- data/lib/oci/object_storage/models/namespace_metadata.rb +69 -53
- data/lib/oci/object_storage/models/object_summary.rb +73 -57
- data/lib/oci/object_storage/models/preauthenticated_request.rb +105 -96
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +99 -86
- data/lib/oci/object_storage/models/rename_object_details.rb +80 -74
- data/lib/oci/object_storage/models/restore_objects_details.rb +66 -45
- data/lib/oci/object_storage/models/update_bucket_details.rb +101 -97
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +65 -47
- data/lib/oci/object_storage/object_storage.rb +2 -0
- data/lib/oci/object_storage/object_storage_client.rb +737 -435
- data/lib/oci/object_storage/object_storage_client_composite_operations.rb +24 -0
- data/lib/oci/signer.rb +20 -7
- data/lib/oci/version.rb +1 -1
- metadata +13 -2
@@ -1,7 +1,9 @@
|
|
1
1
|
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
|
+
require 'logger'
|
4
5
|
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
5
7
|
module OCI
|
6
8
|
# A collection of users who all need the same type of access to a particular set of resources or compartment.
|
7
9
|
# For conceptual information about groups and other IAM Service components, see
|
@@ -17,14 +19,15 @@ module OCI
|
|
17
19
|
# talk to an administrator. If you're an administrator who needs to write policies to give users access,
|
18
20
|
# see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
19
21
|
#
|
20
|
-
class Identity::Models::Group
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
class Identity::Models::Group # rubocop:disable Metrics/LineLength
|
23
|
+
LIFECYCLE_STATE_ENUM = [
|
24
|
+
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
25
|
+
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
|
26
|
+
LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze,
|
27
|
+
LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
|
28
|
+
LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
|
29
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
30
|
+
].freeze
|
28
31
|
|
29
32
|
# **[Required]** The OCID of the group.
|
30
33
|
# @return [String]
|
@@ -36,7 +39,7 @@ module OCI
|
|
36
39
|
|
37
40
|
# **[Required]** The name you assign to the group during creation. The name must be unique across all groups in
|
38
41
|
# the tenancy and cannot be changed.
|
39
|
-
#
|
42
|
+
#
|
40
43
|
# @return [String]
|
41
44
|
attr_accessor :name
|
42
45
|
|
@@ -45,17 +48,17 @@ module OCI
|
|
45
48
|
attr_accessor :description
|
46
49
|
|
47
50
|
# **[Required]** Date and time the group was created, in the format defined by RFC3339.
|
48
|
-
#
|
51
|
+
#
|
49
52
|
# Example: `2016-08-25T21:10:29.600Z`
|
50
|
-
#
|
53
|
+
#
|
51
54
|
# @return [DateTime]
|
52
55
|
attr_accessor :time_created
|
53
56
|
|
54
57
|
# **[Required]** The group's current state. After creating a group, make sure its `lifecycleState` changes from CREATING to
|
55
58
|
# ACTIVE before using it.
|
56
|
-
#
|
59
|
+
#
|
57
60
|
# @return [String]
|
58
|
-
|
61
|
+
attr_reader :lifecycle_state
|
59
62
|
|
60
63
|
# The detailed status of INACTIVE lifecycleState.
|
61
64
|
# @return [Integer]
|
@@ -64,17 +67,54 @@ module OCI
|
|
64
67
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
65
68
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
66
69
|
# Example: `{\"Department\": \"Finance\"}`
|
67
|
-
#
|
70
|
+
#
|
68
71
|
# @return [Hash<String, String>]
|
69
72
|
attr_accessor :freeform_tags
|
70
73
|
|
71
74
|
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
72
75
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
73
76
|
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
74
|
-
#
|
77
|
+
#
|
75
78
|
# @return [Hash<String, Hash<String, Object>>]
|
76
79
|
attr_accessor :defined_tags
|
77
80
|
|
81
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
82
|
+
def self.attribute_map
|
83
|
+
{
|
84
|
+
# rubocop:disable Style/SymbolLiteral
|
85
|
+
'id': :'id',
|
86
|
+
'compartment_id': :'compartmentId',
|
87
|
+
'name': :'name',
|
88
|
+
'description': :'description',
|
89
|
+
'time_created': :'timeCreated',
|
90
|
+
'lifecycle_state': :'lifecycleState',
|
91
|
+
'inactive_status': :'inactiveStatus',
|
92
|
+
'freeform_tags': :'freeformTags',
|
93
|
+
'defined_tags': :'definedTags'
|
94
|
+
# rubocop:enable Style/SymbolLiteral
|
95
|
+
}
|
96
|
+
end
|
97
|
+
|
98
|
+
# Attribute type mapping.
|
99
|
+
def self.swagger_types
|
100
|
+
{
|
101
|
+
# rubocop:disable Style/SymbolLiteral
|
102
|
+
'id': :'String',
|
103
|
+
'compartment_id': :'String',
|
104
|
+
'name': :'String',
|
105
|
+
'description': :'String',
|
106
|
+
'time_created': :'DateTime',
|
107
|
+
'lifecycle_state': :'String',
|
108
|
+
'inactive_status': :'Integer',
|
109
|
+
'freeform_tags': :'Hash<String, String>',
|
110
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
111
|
+
# rubocop:enable Style/SymbolLiteral
|
112
|
+
}
|
113
|
+
end
|
114
|
+
|
115
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
116
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
117
|
+
|
78
118
|
|
79
119
|
# Initializes the object
|
80
120
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -91,119 +131,106 @@ module OCI
|
|
91
131
|
return unless attributes.is_a?(Hash)
|
92
132
|
|
93
133
|
# convert string to symbol for hash key
|
94
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
134
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
95
135
|
|
96
|
-
if attributes[:'id']
|
97
|
-
self.id = attributes[:'id']
|
98
|
-
end
|
136
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
99
137
|
|
100
|
-
if attributes[:'compartmentId']
|
101
|
-
self.compartment_id = attributes[:'compartmentId']
|
102
|
-
end
|
138
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
103
139
|
|
104
140
|
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
105
141
|
|
106
|
-
if attributes[:'compartment_id']
|
107
|
-
self.compartment_id = attributes[:'compartment_id']
|
108
|
-
end
|
142
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
109
143
|
|
110
|
-
if attributes[:'name']
|
111
|
-
self.name = attributes[:'name']
|
112
|
-
end
|
144
|
+
self.name = attributes[:'name'] if attributes[:'name']
|
113
145
|
|
114
|
-
if attributes[:'description']
|
115
|
-
self.description = attributes[:'description']
|
116
|
-
end
|
146
|
+
self.description = attributes[:'description'] if attributes[:'description']
|
117
147
|
|
118
|
-
if attributes[:'timeCreated']
|
119
|
-
self.time_created = attributes[:'timeCreated']
|
120
|
-
end
|
148
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
121
149
|
|
122
150
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
123
151
|
|
124
|
-
if attributes[:'time_created']
|
125
|
-
self.time_created = attributes[:'time_created']
|
126
|
-
end
|
152
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
127
153
|
|
128
|
-
if attributes[:'lifecycleState']
|
129
|
-
self.lifecycle_state = attributes[:'lifecycleState']
|
130
|
-
end
|
154
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
131
155
|
|
132
156
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
133
157
|
|
134
|
-
if attributes[:'lifecycle_state']
|
135
|
-
self.lifecycle_state = attributes[:'lifecycle_state']
|
136
|
-
end
|
158
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
137
159
|
|
138
|
-
if attributes[:'inactiveStatus']
|
139
|
-
self.inactive_status = attributes[:'inactiveStatus']
|
140
|
-
end
|
160
|
+
self.inactive_status = attributes[:'inactiveStatus'] if attributes[:'inactiveStatus']
|
141
161
|
|
142
162
|
raise 'You cannot provide both :inactiveStatus and :inactive_status' if attributes.key?(:'inactiveStatus') && attributes.key?(:'inactive_status')
|
143
163
|
|
144
|
-
if attributes[:'inactive_status']
|
145
|
-
self.inactive_status = attributes[:'inactive_status']
|
146
|
-
end
|
164
|
+
self.inactive_status = attributes[:'inactive_status'] if attributes[:'inactive_status']
|
147
165
|
|
148
|
-
if attributes[:'freeformTags']
|
149
|
-
self.freeform_tags = attributes[:'freeformTags']
|
150
|
-
end
|
166
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
151
167
|
|
152
168
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
153
169
|
|
154
|
-
if attributes[:'freeform_tags']
|
155
|
-
self.freeform_tags = attributes[:'freeform_tags']
|
156
|
-
end
|
170
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
157
171
|
|
158
|
-
if attributes[:'definedTags']
|
159
|
-
self.defined_tags = attributes[:'definedTags']
|
160
|
-
end
|
172
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
161
173
|
|
162
174
|
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
163
175
|
|
164
|
-
if attributes[:'defined_tags']
|
165
|
-
self.defined_tags = attributes[:'defined_tags']
|
166
|
-
end
|
167
|
-
|
176
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
168
177
|
end
|
178
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
179
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
169
180
|
|
170
181
|
# Custom attribute writer method checking allowed values (enum).
|
171
182
|
# @param [Object] lifecycle_state Object to be assigned
|
172
183
|
def lifecycle_state=(lifecycle_state)
|
184
|
+
# rubocop:disable Style/ConditionalAssignment
|
173
185
|
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
186
|
+
# rubocop: disable Metrics/LineLength
|
187
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
188
|
+
# rubocop: enable Metrics/LineLength
|
174
189
|
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
175
190
|
else
|
176
191
|
@lifecycle_state = lifecycle_state
|
177
192
|
end
|
193
|
+
# rubocop:enable Style/ConditionalAssignment
|
178
194
|
end
|
179
195
|
|
196
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
197
|
+
|
198
|
+
|
180
199
|
# Checks equality by comparing each attribute.
|
181
|
-
# @param [Object]
|
182
|
-
def ==(
|
183
|
-
return true if
|
184
|
-
self.class ==
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
200
|
+
# @param [Object] other the other object to be compared
|
201
|
+
def ==(other)
|
202
|
+
return true if equal?(other)
|
203
|
+
self.class == other.class &&
|
204
|
+
id == other.id &&
|
205
|
+
compartment_id == other.compartment_id &&
|
206
|
+
name == other.name &&
|
207
|
+
description == other.description &&
|
208
|
+
time_created == other.time_created &&
|
209
|
+
lifecycle_state == other.lifecycle_state &&
|
210
|
+
inactive_status == other.inactive_status &&
|
211
|
+
freeform_tags == other.freeform_tags &&
|
212
|
+
defined_tags == other.defined_tags
|
194
213
|
end
|
214
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
195
215
|
|
196
216
|
# @see the `==` method
|
197
|
-
# @param [Object]
|
198
|
-
def eql?(
|
199
|
-
self ==
|
217
|
+
# @param [Object] other the other object to be compared
|
218
|
+
def eql?(other)
|
219
|
+
self == other
|
200
220
|
end
|
201
221
|
|
222
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
223
|
+
|
224
|
+
|
202
225
|
# Calculates hash code according to all attributes.
|
203
226
|
# @return [Fixnum] Hash code
|
204
227
|
def hash
|
205
228
|
[id, compartment_id, name, description, time_created, lifecycle_state, inactive_status, freeform_tags, defined_tags].hash
|
206
229
|
end
|
230
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
231
|
+
|
232
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
233
|
+
|
207
234
|
|
208
235
|
# Builds the object from hash
|
209
236
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -215,15 +242,22 @@ module OCI
|
|
215
242
|
# check to ensure the input is an array given that the the attribute
|
216
243
|
# is documented as an array but the input is not
|
217
244
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
218
|
-
|
245
|
+
public_method("#{key}=").call(
|
246
|
+
attributes[self.class.attribute_map[key]]
|
247
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
248
|
+
)
|
219
249
|
end
|
220
250
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
221
|
-
|
222
|
-
|
251
|
+
public_method("#{key}=").call(
|
252
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
253
|
+
)
|
254
|
+
end
|
255
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
223
256
|
end
|
224
257
|
|
225
258
|
self
|
226
259
|
end
|
260
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
227
261
|
|
228
262
|
# Returns the string representation of the object
|
229
263
|
# @return [String] String presentation of the object
|
@@ -247,11 +281,11 @@ module OCI
|
|
247
281
|
|
248
282
|
# Outputs non-array value in the form of hash
|
249
283
|
# For object, use to_hash. Otherwise, just return the value
|
250
|
-
# @param [Object] value Any valid value
|
284
|
+
# @param [Object] value Any valid value
|
251
285
|
# @return [Hash] Returns the value in the form of hash
|
252
286
|
def _to_hash(value)
|
253
287
|
if value.is_a?(Array)
|
254
|
-
value.compact.map{ |v| _to_hash(v) }
|
288
|
+
value.compact.map { |v| _to_hash(v) }
|
255
289
|
elsif value.is_a?(Hash)
|
256
290
|
{}.tap do |hash|
|
257
291
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -262,37 +296,6 @@ module OCI
|
|
262
296
|
value
|
263
297
|
end
|
264
298
|
end
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
269
|
-
def self.attribute_map
|
270
|
-
{
|
271
|
-
:'id' => :'id',
|
272
|
-
:'compartment_id' => :'compartmentId',
|
273
|
-
:'name' => :'name',
|
274
|
-
:'description' => :'description',
|
275
|
-
:'time_created' => :'timeCreated',
|
276
|
-
:'lifecycle_state' => :'lifecycleState',
|
277
|
-
:'inactive_status' => :'inactiveStatus',
|
278
|
-
:'freeform_tags' => :'freeformTags',
|
279
|
-
:'defined_tags' => :'definedTags'
|
280
|
-
}
|
281
|
-
end
|
282
|
-
|
283
|
-
# Attribute type mapping.
|
284
|
-
def self.swagger_types
|
285
|
-
{
|
286
|
-
:'id' => :'String',
|
287
|
-
:'compartment_id' => :'String',
|
288
|
-
:'name' => :'String',
|
289
|
-
:'description' => :'String',
|
290
|
-
:'time_created' => :'DateTime',
|
291
|
-
:'lifecycle_state' => :'String',
|
292
|
-
:'inactive_status' => :'Integer',
|
293
|
-
:'freeform_tags' => :'Hash<String, String>',
|
294
|
-
:'defined_tags' => :'Hash<String, Hash<String, Object>>'
|
295
|
-
}
|
296
|
-
end
|
297
299
|
end
|
298
300
|
end
|
301
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|
@@ -1,7 +1,9 @@
|
|
1
1
|
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
|
+
require 'logger'
|
4
5
|
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
5
7
|
module OCI
|
6
8
|
# The resulting base object when you add an identity provider to your tenancy. A
|
7
9
|
# {Saml2IdentityProvider}
|
@@ -14,14 +16,15 @@ module OCI
|
|
14
16
|
# see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
15
17
|
#
|
16
18
|
# This class has direct subclasses. If you are using this class as input to a service operations then you should favor using a subclass over the base class
|
17
|
-
class Identity::Models::IdentityProvider
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
class Identity::Models::IdentityProvider # rubocop:disable Metrics/LineLength
|
20
|
+
LIFECYCLE_STATE_ENUM = [
|
21
|
+
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
22
|
+
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
|
23
|
+
LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze,
|
24
|
+
LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
|
25
|
+
LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
|
26
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
27
|
+
].freeze
|
25
28
|
|
26
29
|
# **[Required]** The OCID of the `IdentityProvider`.
|
27
30
|
# @return [String]
|
@@ -36,79 +39,120 @@ module OCI
|
|
36
39
|
# cannot be changed. This is the name federated users see when choosing
|
37
40
|
# which identity provider to use when signing in to the Oracle Cloud Infrastructure
|
38
41
|
# Console.
|
39
|
-
#
|
42
|
+
#
|
40
43
|
# @return [String]
|
41
44
|
attr_accessor :name
|
42
45
|
|
43
46
|
# **[Required]** The description you assign to the `IdentityProvider` during creation. Does
|
44
47
|
# not have to be unique, and it's changeable.
|
45
|
-
#
|
48
|
+
#
|
46
49
|
# @return [String]
|
47
50
|
attr_accessor :description
|
48
51
|
|
49
52
|
# **[Required]** The identity provider service or product.
|
50
53
|
# Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft
|
51
54
|
# Active Directory Federation Services (ADFS).
|
52
|
-
#
|
55
|
+
#
|
53
56
|
# Allowed values are:
|
54
57
|
# - `ADFS`
|
55
58
|
# - `IDCS`
|
56
|
-
#
|
59
|
+
#
|
57
60
|
# Example: `IDCS`
|
58
|
-
#
|
61
|
+
#
|
59
62
|
# @return [String]
|
60
63
|
attr_accessor :product_type
|
61
64
|
|
62
65
|
# **[Required]** Date and time the `IdentityProvider` was created, in the format defined by RFC3339.
|
63
|
-
#
|
66
|
+
#
|
64
67
|
# Example: `2016-08-25T21:10:29.600Z`
|
65
|
-
#
|
68
|
+
#
|
66
69
|
# @return [DateTime]
|
67
70
|
attr_accessor :time_created
|
68
71
|
|
69
72
|
# **[Required]** The current state. After creating an `IdentityProvider`, make sure its
|
70
73
|
# `lifecycleState` changes from CREATING to ACTIVE before using it.
|
71
|
-
#
|
74
|
+
#
|
72
75
|
# @return [String]
|
73
|
-
|
76
|
+
attr_reader :lifecycle_state
|
74
77
|
|
75
78
|
# The detailed status of INACTIVE lifecycleState.
|
76
79
|
# @return [Integer]
|
77
80
|
attr_accessor :inactive_status
|
78
81
|
|
79
82
|
# **[Required]** The protocol used for federation. Allowed value: `SAML2`.
|
80
|
-
#
|
83
|
+
#
|
81
84
|
# Example: `SAML2`
|
82
|
-
#
|
85
|
+
#
|
83
86
|
# @return [String]
|
84
87
|
attr_accessor :protocol
|
85
88
|
|
86
89
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
87
90
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
88
91
|
# Example: `{\"Department\": \"Finance\"}`
|
89
|
-
#
|
92
|
+
#
|
90
93
|
# @return [Hash<String, String>]
|
91
94
|
attr_accessor :freeform_tags
|
92
95
|
|
93
96
|
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
94
97
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
95
98
|
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
96
|
-
#
|
99
|
+
#
|
97
100
|
# @return [Hash<String, Hash<String, Object>>]
|
98
101
|
attr_accessor :defined_tags
|
99
102
|
|
103
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
104
|
+
def self.attribute_map
|
105
|
+
{
|
106
|
+
# rubocop:disable Style/SymbolLiteral
|
107
|
+
'id': :'id',
|
108
|
+
'compartment_id': :'compartmentId',
|
109
|
+
'name': :'name',
|
110
|
+
'description': :'description',
|
111
|
+
'product_type': :'productType',
|
112
|
+
'time_created': :'timeCreated',
|
113
|
+
'lifecycle_state': :'lifecycleState',
|
114
|
+
'inactive_status': :'inactiveStatus',
|
115
|
+
'protocol': :'protocol',
|
116
|
+
'freeform_tags': :'freeformTags',
|
117
|
+
'defined_tags': :'definedTags'
|
118
|
+
# rubocop:enable Style/SymbolLiteral
|
119
|
+
}
|
120
|
+
end
|
121
|
+
|
122
|
+
# Attribute type mapping.
|
123
|
+
def self.swagger_types
|
124
|
+
{
|
125
|
+
# rubocop:disable Style/SymbolLiteral
|
126
|
+
'id': :'String',
|
127
|
+
'compartment_id': :'String',
|
128
|
+
'name': :'String',
|
129
|
+
'description': :'String',
|
130
|
+
'product_type': :'String',
|
131
|
+
'time_created': :'DateTime',
|
132
|
+
'lifecycle_state': :'String',
|
133
|
+
'inactive_status': :'Integer',
|
134
|
+
'protocol': :'String',
|
135
|
+
'freeform_tags': :'Hash<String, String>',
|
136
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
137
|
+
# rubocop:enable Style/SymbolLiteral
|
138
|
+
}
|
139
|
+
end
|
100
140
|
|
101
141
|
# Given the hash representation of a subtype of this class,
|
102
142
|
# use the info in the hash to return the class of the subtype.
|
103
143
|
def self.get_subtype(object_hash)
|
104
|
-
type = object_hash[:'protocol']
|
144
|
+
type = object_hash[:'protocol'] # rubocop:disable Style/SymbolLiteral
|
105
145
|
|
106
146
|
return 'OCI::Identity::Models::Saml2IdentityProvider' if type == 'SAML2'
|
107
147
|
|
108
148
|
# TODO: Log a warning when the subtype is not found.
|
109
|
-
|
149
|
+
'OCI::Identity::Models::IdentityProvider'
|
110
150
|
end
|
111
151
|
|
152
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
153
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
154
|
+
|
155
|
+
|
112
156
|
# Initializes the object
|
113
157
|
# @param [Hash] attributes Model attributes in the form of hash
|
114
158
|
# @option attributes [String] :id The value to assign to the {#id} property
|
@@ -126,135 +170,116 @@ module OCI
|
|
126
170
|
return unless attributes.is_a?(Hash)
|
127
171
|
|
128
172
|
# convert string to symbol for hash key
|
129
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
173
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
130
174
|
|
131
|
-
if attributes[:'id']
|
132
|
-
self.id = attributes[:'id']
|
133
|
-
end
|
175
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
134
176
|
|
135
|
-
if attributes[:'compartmentId']
|
136
|
-
self.compartment_id = attributes[:'compartmentId']
|
137
|
-
end
|
177
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
138
178
|
|
139
179
|
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
140
180
|
|
141
|
-
if attributes[:'compartment_id']
|
142
|
-
self.compartment_id = attributes[:'compartment_id']
|
143
|
-
end
|
181
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
144
182
|
|
145
|
-
if attributes[:'name']
|
146
|
-
self.name = attributes[:'name']
|
147
|
-
end
|
183
|
+
self.name = attributes[:'name'] if attributes[:'name']
|
148
184
|
|
149
|
-
if attributes[:'description']
|
150
|
-
self.description = attributes[:'description']
|
151
|
-
end
|
185
|
+
self.description = attributes[:'description'] if attributes[:'description']
|
152
186
|
|
153
|
-
if attributes[:'productType']
|
154
|
-
self.product_type = attributes[:'productType']
|
155
|
-
end
|
187
|
+
self.product_type = attributes[:'productType'] if attributes[:'productType']
|
156
188
|
|
157
189
|
raise 'You cannot provide both :productType and :product_type' if attributes.key?(:'productType') && attributes.key?(:'product_type')
|
158
190
|
|
159
|
-
if attributes[:'product_type']
|
160
|
-
self.product_type = attributes[:'product_type']
|
161
|
-
end
|
191
|
+
self.product_type = attributes[:'product_type'] if attributes[:'product_type']
|
162
192
|
|
163
|
-
if attributes[:'timeCreated']
|
164
|
-
self.time_created = attributes[:'timeCreated']
|
165
|
-
end
|
193
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
166
194
|
|
167
195
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
168
196
|
|
169
|
-
if attributes[:'time_created']
|
170
|
-
self.time_created = attributes[:'time_created']
|
171
|
-
end
|
197
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
172
198
|
|
173
|
-
if attributes[:'lifecycleState']
|
174
|
-
self.lifecycle_state = attributes[:'lifecycleState']
|
175
|
-
end
|
199
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
176
200
|
|
177
201
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
178
202
|
|
179
|
-
if attributes[:'lifecycle_state']
|
180
|
-
self.lifecycle_state = attributes[:'lifecycle_state']
|
181
|
-
end
|
203
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
182
204
|
|
183
|
-
if attributes[:'inactiveStatus']
|
184
|
-
self.inactive_status = attributes[:'inactiveStatus']
|
185
|
-
end
|
205
|
+
self.inactive_status = attributes[:'inactiveStatus'] if attributes[:'inactiveStatus']
|
186
206
|
|
187
207
|
raise 'You cannot provide both :inactiveStatus and :inactive_status' if attributes.key?(:'inactiveStatus') && attributes.key?(:'inactive_status')
|
188
208
|
|
189
|
-
if attributes[:'inactive_status']
|
190
|
-
self.inactive_status = attributes[:'inactive_status']
|
191
|
-
end
|
209
|
+
self.inactive_status = attributes[:'inactive_status'] if attributes[:'inactive_status']
|
192
210
|
|
193
|
-
if attributes[:'protocol']
|
194
|
-
self.protocol = attributes[:'protocol']
|
195
|
-
end
|
211
|
+
self.protocol = attributes[:'protocol'] if attributes[:'protocol']
|
196
212
|
|
197
|
-
if attributes[:'freeformTags']
|
198
|
-
self.freeform_tags = attributes[:'freeformTags']
|
199
|
-
end
|
213
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
200
214
|
|
201
215
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
202
216
|
|
203
|
-
if attributes[:'freeform_tags']
|
204
|
-
self.freeform_tags = attributes[:'freeform_tags']
|
205
|
-
end
|
217
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
206
218
|
|
207
|
-
if attributes[:'definedTags']
|
208
|
-
self.defined_tags = attributes[:'definedTags']
|
209
|
-
end
|
219
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
210
220
|
|
211
221
|
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
212
222
|
|
213
|
-
if attributes[:'defined_tags']
|
214
|
-
self.defined_tags = attributes[:'defined_tags']
|
215
|
-
end
|
216
|
-
|
223
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
217
224
|
end
|
225
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
226
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
218
227
|
|
219
228
|
# Custom attribute writer method checking allowed values (enum).
|
220
229
|
# @param [Object] lifecycle_state Object to be assigned
|
221
230
|
def lifecycle_state=(lifecycle_state)
|
231
|
+
# rubocop:disable Style/ConditionalAssignment
|
222
232
|
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
233
|
+
# rubocop: disable Metrics/LineLength
|
234
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
235
|
+
# rubocop: enable Metrics/LineLength
|
223
236
|
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
224
237
|
else
|
225
238
|
@lifecycle_state = lifecycle_state
|
226
239
|
end
|
240
|
+
# rubocop:enable Style/ConditionalAssignment
|
227
241
|
end
|
228
242
|
|
243
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
244
|
+
|
245
|
+
|
229
246
|
# Checks equality by comparing each attribute.
|
230
|
-
# @param [Object]
|
231
|
-
def ==(
|
232
|
-
return true if
|
233
|
-
self.class ==
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
247
|
+
# @param [Object] other the other object to be compared
|
248
|
+
def ==(other)
|
249
|
+
return true if equal?(other)
|
250
|
+
self.class == other.class &&
|
251
|
+
id == other.id &&
|
252
|
+
compartment_id == other.compartment_id &&
|
253
|
+
name == other.name &&
|
254
|
+
description == other.description &&
|
255
|
+
product_type == other.product_type &&
|
256
|
+
time_created == other.time_created &&
|
257
|
+
lifecycle_state == other.lifecycle_state &&
|
258
|
+
inactive_status == other.inactive_status &&
|
259
|
+
protocol == other.protocol &&
|
260
|
+
freeform_tags == other.freeform_tags &&
|
261
|
+
defined_tags == other.defined_tags
|
245
262
|
end
|
263
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
246
264
|
|
247
265
|
# @see the `==` method
|
248
|
-
# @param [Object]
|
249
|
-
def eql?(
|
250
|
-
self ==
|
266
|
+
# @param [Object] other the other object to be compared
|
267
|
+
def eql?(other)
|
268
|
+
self == other
|
251
269
|
end
|
252
270
|
|
271
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
272
|
+
|
273
|
+
|
253
274
|
# Calculates hash code according to all attributes.
|
254
275
|
# @return [Fixnum] Hash code
|
255
276
|
def hash
|
256
277
|
[id, compartment_id, name, description, product_type, time_created, lifecycle_state, inactive_status, protocol, freeform_tags, defined_tags].hash
|
257
278
|
end
|
279
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
280
|
+
|
281
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
282
|
+
|
258
283
|
|
259
284
|
# Builds the object from hash
|
260
285
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -266,15 +291,22 @@ module OCI
|
|
266
291
|
# check to ensure the input is an array given that the the attribute
|
267
292
|
# is documented as an array but the input is not
|
268
293
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
269
|
-
|
294
|
+
public_method("#{key}=").call(
|
295
|
+
attributes[self.class.attribute_map[key]]
|
296
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
297
|
+
)
|
270
298
|
end
|
271
299
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
272
|
-
|
273
|
-
|
300
|
+
public_method("#{key}=").call(
|
301
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
302
|
+
)
|
303
|
+
end
|
304
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
274
305
|
end
|
275
306
|
|
276
307
|
self
|
277
308
|
end
|
309
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
278
310
|
|
279
311
|
# Returns the string representation of the object
|
280
312
|
# @return [String] String presentation of the object
|
@@ -298,11 +330,11 @@ module OCI
|
|
298
330
|
|
299
331
|
# Outputs non-array value in the form of hash
|
300
332
|
# For object, use to_hash. Otherwise, just return the value
|
301
|
-
# @param [Object] value Any valid value
|
333
|
+
# @param [Object] value Any valid value
|
302
334
|
# @return [Hash] Returns the value in the form of hash
|
303
335
|
def _to_hash(value)
|
304
336
|
if value.is_a?(Array)
|
305
|
-
value.compact.map{ |v| _to_hash(v) }
|
337
|
+
value.compact.map { |v| _to_hash(v) }
|
306
338
|
elsif value.is_a?(Hash)
|
307
339
|
{}.tap do |hash|
|
308
340
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -313,41 +345,6 @@ module OCI
|
|
313
345
|
value
|
314
346
|
end
|
315
347
|
end
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
320
|
-
def self.attribute_map
|
321
|
-
{
|
322
|
-
:'id' => :'id',
|
323
|
-
:'compartment_id' => :'compartmentId',
|
324
|
-
:'name' => :'name',
|
325
|
-
:'description' => :'description',
|
326
|
-
:'product_type' => :'productType',
|
327
|
-
:'time_created' => :'timeCreated',
|
328
|
-
:'lifecycle_state' => :'lifecycleState',
|
329
|
-
:'inactive_status' => :'inactiveStatus',
|
330
|
-
:'protocol' => :'protocol',
|
331
|
-
:'freeform_tags' => :'freeformTags',
|
332
|
-
:'defined_tags' => :'definedTags'
|
333
|
-
}
|
334
|
-
end
|
335
|
-
|
336
|
-
# Attribute type mapping.
|
337
|
-
def self.swagger_types
|
338
|
-
{
|
339
|
-
:'id' => :'String',
|
340
|
-
:'compartment_id' => :'String',
|
341
|
-
:'name' => :'String',
|
342
|
-
:'description' => :'String',
|
343
|
-
:'product_type' => :'String',
|
344
|
-
:'time_created' => :'DateTime',
|
345
|
-
:'lifecycle_state' => :'String',
|
346
|
-
:'inactive_status' => :'Integer',
|
347
|
-
:'protocol' => :'String',
|
348
|
-
:'freeform_tags' => :'Hash<String, String>',
|
349
|
-
:'defined_tags' => :'Hash<String, Hash<String, Object>>'
|
350
|
-
}
|
351
|
-
end
|
352
348
|
end
|
353
349
|
end
|
350
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|