oci 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
|
5
6
|
module OCI
|
|
6
|
-
|
|
7
|
+
# UpdateUserDetails model.
|
|
8
|
+
class Identity::Models::UpdateUserDetails # rubocop:disable Metrics/LineLength
|
|
7
9
|
# The description you assign to the user. Does not have to be unique, and it's changeable.
|
|
8
10
|
# @return [String]
|
|
9
11
|
attr_accessor :description
|
|
@@ -11,17 +13,42 @@ module OCI
|
|
|
11
13
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
|
12
14
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
13
15
|
# Example: `{\"Department\": \"Finance\"}`
|
|
14
|
-
#
|
|
16
|
+
#
|
|
15
17
|
# @return [Hash<String, String>]
|
|
16
18
|
attr_accessor :freeform_tags
|
|
17
19
|
|
|
18
20
|
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
19
21
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
20
22
|
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
21
|
-
#
|
|
23
|
+
#
|
|
22
24
|
# @return [Hash<String, Hash<String, Object>>]
|
|
23
25
|
attr_accessor :defined_tags
|
|
24
26
|
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
# rubocop:disable Style/SymbolLiteral
|
|
31
|
+
'description': :'description',
|
|
32
|
+
'freeform_tags': :'freeformTags',
|
|
33
|
+
'defined_tags': :'definedTags'
|
|
34
|
+
# rubocop:enable Style/SymbolLiteral
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.swagger_types
|
|
40
|
+
{
|
|
41
|
+
# rubocop:disable Style/SymbolLiteral
|
|
42
|
+
'description': :'String',
|
|
43
|
+
'freeform_tags': :'Hash<String, String>',
|
|
44
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
|
45
|
+
# rubocop:enable Style/SymbolLiteral
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
50
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
51
|
+
|
|
25
52
|
|
|
26
53
|
# Initializes the object
|
|
27
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -32,55 +59,57 @@ module OCI
|
|
|
32
59
|
return unless attributes.is_a?(Hash)
|
|
33
60
|
|
|
34
61
|
# convert string to symbol for hash key
|
|
35
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
36
63
|
|
|
37
|
-
if attributes[:'description']
|
|
38
|
-
self.description = attributes[:'description']
|
|
39
|
-
end
|
|
64
|
+
self.description = attributes[:'description'] if attributes[:'description']
|
|
40
65
|
|
|
41
|
-
if attributes[:'freeformTags']
|
|
42
|
-
self.freeform_tags = attributes[:'freeformTags']
|
|
43
|
-
end
|
|
66
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
44
67
|
|
|
45
68
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
46
69
|
|
|
47
|
-
if attributes[:'freeform_tags']
|
|
48
|
-
self.freeform_tags = attributes[:'freeform_tags']
|
|
49
|
-
end
|
|
70
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
50
71
|
|
|
51
|
-
if attributes[:'definedTags']
|
|
52
|
-
self.defined_tags = attributes[:'definedTags']
|
|
53
|
-
end
|
|
72
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
54
73
|
|
|
55
74
|
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
56
75
|
|
|
57
|
-
if attributes[:'defined_tags']
|
|
58
|
-
self.defined_tags = attributes[:'defined_tags']
|
|
59
|
-
end
|
|
60
|
-
|
|
76
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
|
61
77
|
end
|
|
78
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
79
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
80
|
+
|
|
81
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
82
|
+
|
|
62
83
|
|
|
63
84
|
# Checks equality by comparing each attribute.
|
|
64
|
-
# @param [Object]
|
|
65
|
-
def ==(
|
|
66
|
-
return true if
|
|
67
|
-
self.class ==
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
85
|
+
# @param [Object] other the other object to be compared
|
|
86
|
+
def ==(other)
|
|
87
|
+
return true if equal?(other)
|
|
88
|
+
self.class == other.class &&
|
|
89
|
+
description == other.description &&
|
|
90
|
+
freeform_tags == other.freeform_tags &&
|
|
91
|
+
defined_tags == other.defined_tags
|
|
71
92
|
end
|
|
93
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
72
94
|
|
|
73
95
|
# @see the `==` method
|
|
74
|
-
# @param [Object]
|
|
75
|
-
def eql?(
|
|
76
|
-
self ==
|
|
96
|
+
# @param [Object] other the other object to be compared
|
|
97
|
+
def eql?(other)
|
|
98
|
+
self == other
|
|
77
99
|
end
|
|
78
100
|
|
|
101
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
102
|
+
|
|
103
|
+
|
|
79
104
|
# Calculates hash code according to all attributes.
|
|
80
105
|
# @return [Fixnum] Hash code
|
|
81
106
|
def hash
|
|
82
107
|
[description, freeform_tags, defined_tags].hash
|
|
83
108
|
end
|
|
109
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
110
|
+
|
|
111
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
112
|
+
|
|
84
113
|
|
|
85
114
|
# Builds the object from hash
|
|
86
115
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -92,15 +121,22 @@ module OCI
|
|
|
92
121
|
# check to ensure the input is an array given that the the attribute
|
|
93
122
|
# is documented as an array but the input is not
|
|
94
123
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
95
|
-
|
|
124
|
+
public_method("#{key}=").call(
|
|
125
|
+
attributes[self.class.attribute_map[key]]
|
|
126
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
127
|
+
)
|
|
96
128
|
end
|
|
97
129
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
98
|
-
|
|
99
|
-
|
|
130
|
+
public_method("#{key}=").call(
|
|
131
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
132
|
+
)
|
|
133
|
+
end
|
|
134
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
100
135
|
end
|
|
101
136
|
|
|
102
137
|
self
|
|
103
138
|
end
|
|
139
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
104
140
|
|
|
105
141
|
# Returns the string representation of the object
|
|
106
142
|
# @return [String] String presentation of the object
|
|
@@ -124,11 +160,11 @@ module OCI
|
|
|
124
160
|
|
|
125
161
|
# Outputs non-array value in the form of hash
|
|
126
162
|
# For object, use to_hash. Otherwise, just return the value
|
|
127
|
-
# @param [Object] value Any valid value
|
|
163
|
+
# @param [Object] value Any valid value
|
|
128
164
|
# @return [Hash] Returns the value in the form of hash
|
|
129
165
|
def _to_hash(value)
|
|
130
166
|
if value.is_a?(Array)
|
|
131
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
167
|
+
value.compact.map { |v| _to_hash(v) }
|
|
132
168
|
elsif value.is_a?(Hash)
|
|
133
169
|
{}.tap do |hash|
|
|
134
170
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -139,25 +175,6 @@ module OCI
|
|
|
139
175
|
value
|
|
140
176
|
end
|
|
141
177
|
end
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
146
|
-
def self.attribute_map
|
|
147
|
-
{
|
|
148
|
-
:'description' => :'description',
|
|
149
|
-
:'freeform_tags' => :'freeformTags',
|
|
150
|
-
:'defined_tags' => :'definedTags'
|
|
151
|
-
}
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
# Attribute type mapping.
|
|
155
|
-
def self.swagger_types
|
|
156
|
-
{
|
|
157
|
-
:'description' => :'String',
|
|
158
|
-
:'freeform_tags' => :'Hash<String, String>',
|
|
159
|
-
:'defined_tags' => :'Hash<String, Hash<String, Object>>'
|
|
160
|
-
}
|
|
161
|
-
end
|
|
162
178
|
end
|
|
163
179
|
end
|
|
180
|
+
# 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
|
# An individual employee or system that needs to manage or use your company's Oracle Cloud Infrastructure
|
|
7
9
|
# resources. Users might need to launch instances, manage remote disks, work with your cloud network, etc. Users
|
|
@@ -20,14 +22,15 @@ module OCI
|
|
|
20
22
|
# talk to an administrator. If you're an administrator who needs to write policies to give users access,
|
|
21
23
|
# see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
|
22
24
|
#
|
|
23
|
-
class Identity::Models::User
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
class Identity::Models::User # rubocop:disable Metrics/LineLength
|
|
26
|
+
LIFECYCLE_STATE_ENUM = [
|
|
27
|
+
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
|
28
|
+
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
|
|
29
|
+
LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze,
|
|
30
|
+
LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
|
|
31
|
+
LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
|
|
32
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
33
|
+
].freeze
|
|
31
34
|
|
|
32
35
|
# **[Required]** The OCID of the user.
|
|
33
36
|
# @return [String]
|
|
@@ -39,7 +42,7 @@ module OCI
|
|
|
39
42
|
|
|
40
43
|
# **[Required]** The name you assign to the user during creation. This is the user's login for the Console.
|
|
41
44
|
# The name must be unique across all users in the tenancy and cannot be changed.
|
|
42
|
-
#
|
|
45
|
+
#
|
|
43
46
|
# @return [String]
|
|
44
47
|
attr_accessor :name
|
|
45
48
|
|
|
@@ -48,42 +51,79 @@ module OCI
|
|
|
48
51
|
attr_accessor :description
|
|
49
52
|
|
|
50
53
|
# **[Required]** Date and time the user was created, in the format defined by RFC3339.
|
|
51
|
-
#
|
|
54
|
+
#
|
|
52
55
|
# Example: `2016-08-25T21:10:29.600Z`
|
|
53
|
-
#
|
|
56
|
+
#
|
|
54
57
|
# @return [DateTime]
|
|
55
58
|
attr_accessor :time_created
|
|
56
59
|
|
|
57
60
|
# **[Required]** The user's current state. After creating a user, make sure its `lifecycleState` changes from CREATING to
|
|
58
61
|
# ACTIVE before using it.
|
|
59
|
-
#
|
|
62
|
+
#
|
|
60
63
|
# @return [String]
|
|
61
|
-
|
|
64
|
+
attr_reader :lifecycle_state
|
|
62
65
|
|
|
63
66
|
# Returned only if the user's `lifecycleState` is INACTIVE. A 16-bit value showing the reason why the user
|
|
64
67
|
# is inactive:
|
|
65
|
-
#
|
|
68
|
+
#
|
|
66
69
|
# - bit 0: SUSPENDED (reserved for future use)
|
|
67
70
|
# - bit 1: DISABLED (reserved for future use)
|
|
68
71
|
# - bit 2: BLOCKED (the user has exceeded the maximum number of failed login attempts for the Console)
|
|
69
|
-
#
|
|
72
|
+
#
|
|
70
73
|
# @return [Integer]
|
|
71
74
|
attr_accessor :inactive_status
|
|
72
75
|
|
|
73
76
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
|
74
77
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
75
78
|
# Example: `{\"Department\": \"Finance\"}`
|
|
76
|
-
#
|
|
79
|
+
#
|
|
77
80
|
# @return [Hash<String, String>]
|
|
78
81
|
attr_accessor :freeform_tags
|
|
79
82
|
|
|
80
83
|
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
81
84
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
82
85
|
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
83
|
-
#
|
|
86
|
+
#
|
|
84
87
|
# @return [Hash<String, Hash<String, Object>>]
|
|
85
88
|
attr_accessor :defined_tags
|
|
86
89
|
|
|
90
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
91
|
+
def self.attribute_map
|
|
92
|
+
{
|
|
93
|
+
# rubocop:disable Style/SymbolLiteral
|
|
94
|
+
'id': :'id',
|
|
95
|
+
'compartment_id': :'compartmentId',
|
|
96
|
+
'name': :'name',
|
|
97
|
+
'description': :'description',
|
|
98
|
+
'time_created': :'timeCreated',
|
|
99
|
+
'lifecycle_state': :'lifecycleState',
|
|
100
|
+
'inactive_status': :'inactiveStatus',
|
|
101
|
+
'freeform_tags': :'freeformTags',
|
|
102
|
+
'defined_tags': :'definedTags'
|
|
103
|
+
# rubocop:enable Style/SymbolLiteral
|
|
104
|
+
}
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Attribute type mapping.
|
|
108
|
+
def self.swagger_types
|
|
109
|
+
{
|
|
110
|
+
# rubocop:disable Style/SymbolLiteral
|
|
111
|
+
'id': :'String',
|
|
112
|
+
'compartment_id': :'String',
|
|
113
|
+
'name': :'String',
|
|
114
|
+
'description': :'String',
|
|
115
|
+
'time_created': :'DateTime',
|
|
116
|
+
'lifecycle_state': :'String',
|
|
117
|
+
'inactive_status': :'Integer',
|
|
118
|
+
'freeform_tags': :'Hash<String, String>',
|
|
119
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
|
120
|
+
# rubocop:enable Style/SymbolLiteral
|
|
121
|
+
}
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
125
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
126
|
+
|
|
87
127
|
|
|
88
128
|
# Initializes the object
|
|
89
129
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -100,119 +140,106 @@ module OCI
|
|
|
100
140
|
return unless attributes.is_a?(Hash)
|
|
101
141
|
|
|
102
142
|
# convert string to symbol for hash key
|
|
103
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
143
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
104
144
|
|
|
105
|
-
if attributes[:'id']
|
|
106
|
-
self.id = attributes[:'id']
|
|
107
|
-
end
|
|
145
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
|
108
146
|
|
|
109
|
-
if attributes[:'compartmentId']
|
|
110
|
-
self.compartment_id = attributes[:'compartmentId']
|
|
111
|
-
end
|
|
147
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
112
148
|
|
|
113
149
|
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
114
150
|
|
|
115
|
-
if attributes[:'compartment_id']
|
|
116
|
-
self.compartment_id = attributes[:'compartment_id']
|
|
117
|
-
end
|
|
151
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
118
152
|
|
|
119
|
-
if attributes[:'name']
|
|
120
|
-
self.name = attributes[:'name']
|
|
121
|
-
end
|
|
153
|
+
self.name = attributes[:'name'] if attributes[:'name']
|
|
122
154
|
|
|
123
|
-
if attributes[:'description']
|
|
124
|
-
self.description = attributes[:'description']
|
|
125
|
-
end
|
|
155
|
+
self.description = attributes[:'description'] if attributes[:'description']
|
|
126
156
|
|
|
127
|
-
if attributes[:'timeCreated']
|
|
128
|
-
self.time_created = attributes[:'timeCreated']
|
|
129
|
-
end
|
|
157
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
|
130
158
|
|
|
131
159
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
|
132
160
|
|
|
133
|
-
if attributes[:'time_created']
|
|
134
|
-
self.time_created = attributes[:'time_created']
|
|
135
|
-
end
|
|
161
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
|
136
162
|
|
|
137
|
-
if attributes[:'lifecycleState']
|
|
138
|
-
self.lifecycle_state = attributes[:'lifecycleState']
|
|
139
|
-
end
|
|
163
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
|
140
164
|
|
|
141
165
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
|
142
166
|
|
|
143
|
-
if attributes[:'lifecycle_state']
|
|
144
|
-
self.lifecycle_state = attributes[:'lifecycle_state']
|
|
145
|
-
end
|
|
167
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
|
146
168
|
|
|
147
|
-
if attributes[:'inactiveStatus']
|
|
148
|
-
self.inactive_status = attributes[:'inactiveStatus']
|
|
149
|
-
end
|
|
169
|
+
self.inactive_status = attributes[:'inactiveStatus'] if attributes[:'inactiveStatus']
|
|
150
170
|
|
|
151
171
|
raise 'You cannot provide both :inactiveStatus and :inactive_status' if attributes.key?(:'inactiveStatus') && attributes.key?(:'inactive_status')
|
|
152
172
|
|
|
153
|
-
if attributes[:'inactive_status']
|
|
154
|
-
self.inactive_status = attributes[:'inactive_status']
|
|
155
|
-
end
|
|
173
|
+
self.inactive_status = attributes[:'inactive_status'] if attributes[:'inactive_status']
|
|
156
174
|
|
|
157
|
-
if attributes[:'freeformTags']
|
|
158
|
-
self.freeform_tags = attributes[:'freeformTags']
|
|
159
|
-
end
|
|
175
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
160
176
|
|
|
161
177
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
162
178
|
|
|
163
|
-
if attributes[:'freeform_tags']
|
|
164
|
-
self.freeform_tags = attributes[:'freeform_tags']
|
|
165
|
-
end
|
|
179
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
166
180
|
|
|
167
|
-
if attributes[:'definedTags']
|
|
168
|
-
self.defined_tags = attributes[:'definedTags']
|
|
169
|
-
end
|
|
181
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
170
182
|
|
|
171
183
|
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
172
184
|
|
|
173
|
-
if attributes[:'defined_tags']
|
|
174
|
-
self.defined_tags = attributes[:'defined_tags']
|
|
175
|
-
end
|
|
176
|
-
|
|
185
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
|
177
186
|
end
|
|
187
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
188
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
178
189
|
|
|
179
190
|
# Custom attribute writer method checking allowed values (enum).
|
|
180
191
|
# @param [Object] lifecycle_state Object to be assigned
|
|
181
192
|
def lifecycle_state=(lifecycle_state)
|
|
193
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
182
194
|
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
|
195
|
+
# rubocop: disable Metrics/LineLength
|
|
196
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
|
197
|
+
# rubocop: enable Metrics/LineLength
|
|
183
198
|
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
|
184
199
|
else
|
|
185
200
|
@lifecycle_state = lifecycle_state
|
|
186
201
|
end
|
|
202
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
187
203
|
end
|
|
188
204
|
|
|
205
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
206
|
+
|
|
207
|
+
|
|
189
208
|
# Checks equality by comparing each attribute.
|
|
190
|
-
# @param [Object]
|
|
191
|
-
def ==(
|
|
192
|
-
return true if
|
|
193
|
-
self.class ==
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
209
|
+
# @param [Object] other the other object to be compared
|
|
210
|
+
def ==(other)
|
|
211
|
+
return true if equal?(other)
|
|
212
|
+
self.class == other.class &&
|
|
213
|
+
id == other.id &&
|
|
214
|
+
compartment_id == other.compartment_id &&
|
|
215
|
+
name == other.name &&
|
|
216
|
+
description == other.description &&
|
|
217
|
+
time_created == other.time_created &&
|
|
218
|
+
lifecycle_state == other.lifecycle_state &&
|
|
219
|
+
inactive_status == other.inactive_status &&
|
|
220
|
+
freeform_tags == other.freeform_tags &&
|
|
221
|
+
defined_tags == other.defined_tags
|
|
203
222
|
end
|
|
223
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
204
224
|
|
|
205
225
|
# @see the `==` method
|
|
206
|
-
# @param [Object]
|
|
207
|
-
def eql?(
|
|
208
|
-
self ==
|
|
226
|
+
# @param [Object] other the other object to be compared
|
|
227
|
+
def eql?(other)
|
|
228
|
+
self == other
|
|
209
229
|
end
|
|
210
230
|
|
|
231
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
232
|
+
|
|
233
|
+
|
|
211
234
|
# Calculates hash code according to all attributes.
|
|
212
235
|
# @return [Fixnum] Hash code
|
|
213
236
|
def hash
|
|
214
237
|
[id, compartment_id, name, description, time_created, lifecycle_state, inactive_status, freeform_tags, defined_tags].hash
|
|
215
238
|
end
|
|
239
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
240
|
+
|
|
241
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
242
|
+
|
|
216
243
|
|
|
217
244
|
# Builds the object from hash
|
|
218
245
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -224,15 +251,22 @@ module OCI
|
|
|
224
251
|
# check to ensure the input is an array given that the the attribute
|
|
225
252
|
# is documented as an array but the input is not
|
|
226
253
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
227
|
-
|
|
254
|
+
public_method("#{key}=").call(
|
|
255
|
+
attributes[self.class.attribute_map[key]]
|
|
256
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
257
|
+
)
|
|
228
258
|
end
|
|
229
259
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
230
|
-
|
|
231
|
-
|
|
260
|
+
public_method("#{key}=").call(
|
|
261
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
262
|
+
)
|
|
263
|
+
end
|
|
264
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
232
265
|
end
|
|
233
266
|
|
|
234
267
|
self
|
|
235
268
|
end
|
|
269
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
236
270
|
|
|
237
271
|
# Returns the string representation of the object
|
|
238
272
|
# @return [String] String presentation of the object
|
|
@@ -256,11 +290,11 @@ module OCI
|
|
|
256
290
|
|
|
257
291
|
# Outputs non-array value in the form of hash
|
|
258
292
|
# For object, use to_hash. Otherwise, just return the value
|
|
259
|
-
# @param [Object] value Any valid value
|
|
293
|
+
# @param [Object] value Any valid value
|
|
260
294
|
# @return [Hash] Returns the value in the form of hash
|
|
261
295
|
def _to_hash(value)
|
|
262
296
|
if value.is_a?(Array)
|
|
263
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
297
|
+
value.compact.map { |v| _to_hash(v) }
|
|
264
298
|
elsif value.is_a?(Hash)
|
|
265
299
|
{}.tap do |hash|
|
|
266
300
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -271,37 +305,6 @@ module OCI
|
|
|
271
305
|
value
|
|
272
306
|
end
|
|
273
307
|
end
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
278
|
-
def self.attribute_map
|
|
279
|
-
{
|
|
280
|
-
:'id' => :'id',
|
|
281
|
-
:'compartment_id' => :'compartmentId',
|
|
282
|
-
:'name' => :'name',
|
|
283
|
-
:'description' => :'description',
|
|
284
|
-
:'time_created' => :'timeCreated',
|
|
285
|
-
:'lifecycle_state' => :'lifecycleState',
|
|
286
|
-
:'inactive_status' => :'inactiveStatus',
|
|
287
|
-
:'freeform_tags' => :'freeformTags',
|
|
288
|
-
:'defined_tags' => :'definedTags'
|
|
289
|
-
}
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
# Attribute type mapping.
|
|
293
|
-
def self.swagger_types
|
|
294
|
-
{
|
|
295
|
-
:'id' => :'String',
|
|
296
|
-
:'compartment_id' => :'String',
|
|
297
|
-
:'name' => :'String',
|
|
298
|
-
:'description' => :'String',
|
|
299
|
-
:'time_created' => :'DateTime',
|
|
300
|
-
:'lifecycle_state' => :'String',
|
|
301
|
-
:'inactive_status' => :'Integer',
|
|
302
|
-
:'freeform_tags' => :'Hash<String, String>',
|
|
303
|
-
:'defined_tags' => :'Hash<String, Hash<String, Object>>'
|
|
304
|
-
}
|
|
305
|
-
end
|
|
306
308
|
end
|
|
307
309
|
end
|
|
310
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|