oci 2.0.1 → 2.0.2
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 +3 -2
- data/lib/oci.rb +2 -1
- data/lib/oci/audit/audit.rb +19 -0
- data/lib/oci/audit/audit_client.rb +176 -0
- data/lib/oci/audit/models/audit_event.rb +307 -0
- data/lib/oci/audit/models/configuration.rb +120 -0
- data/lib/oci/audit/models/update_configuration_details.rb +120 -0
- data/lib/oci/audit/util.rb +1 -0
- data/lib/oci/core/blockstorage_client.rb +69 -1
- data/lib/oci/core/compute_client.rb +106 -16
- data/lib/oci/core/core.rb +3 -0
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +2 -2
- data/lib/oci/core/models/attach_vnic_details.rb +2 -2
- data/lib/oci/core/models/attach_volume_details.rb +2 -2
- data/lib/oci/core/models/capture_console_history_details.rb +2 -2
- data/lib/oci/core/models/console_history.rb +2 -2
- data/lib/oci/core/models/cpe.rb +2 -2
- data/lib/oci/core/models/create_cpe_details.rb +2 -2
- data/lib/oci/core/models/create_cross_connect_details.rb +2 -2
- data/lib/oci/core/models/create_cross_connect_group_details.rb +2 -2
- data/lib/oci/core/models/create_dhcp_details.rb +2 -2
- data/lib/oci/core/models/create_drg_attachment_details.rb +2 -2
- data/lib/oci/core/models/create_drg_details.rb +2 -2
- data/lib/oci/core/models/create_image_details.rb +2 -2
- data/lib/oci/core/models/create_instance_console_connection_details.rb +2 -2
- data/lib/oci/core/models/create_internet_gateway_details.rb +2 -2
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +2 -2
- data/lib/oci/core/models/create_private_ip_details.rb +2 -2
- data/lib/oci/core/models/create_route_table_details.rb +2 -2
- data/lib/oci/core/models/create_security_list_details.rb +2 -2
- data/lib/oci/core/models/create_subnet_details.rb +2 -2
- data/lib/oci/core/models/create_vcn_details.rb +2 -2
- data/lib/oci/core/models/create_virtual_circuit_details.rb +5 -6
- data/lib/oci/core/models/create_vnic_details.rb +2 -2
- data/lib/oci/core/models/create_volume_backup_details.rb +2 -2
- data/lib/oci/core/models/create_volume_details.rb +20 -4
- data/lib/oci/core/models/cross_connect.rb +2 -2
- data/lib/oci/core/models/cross_connect_group.rb +2 -2
- data/lib/oci/core/models/cross_connect_location.rb +2 -2
- data/lib/oci/core/models/cross_connect_mapping.rb +2 -2
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +2 -2
- data/lib/oci/core/models/cross_connect_status.rb +2 -2
- data/lib/oci/core/models/dhcp_dns_option.rb +2 -2
- data/lib/oci/core/models/dhcp_option.rb +2 -2
- data/lib/oci/core/models/dhcp_options.rb +2 -2
- data/lib/oci/core/models/dhcp_search_domain_option.rb +2 -2
- data/lib/oci/core/models/drg.rb +2 -2
- data/lib/oci/core/models/drg_attachment.rb +2 -2
- data/lib/oci/core/models/egress_security_rule.rb +2 -2
- data/lib/oci/core/models/export_image_details.rb +3 -3
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +5 -5
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +3 -3
- data/lib/oci/core/models/fast_connect_provider_service.rb +2 -2
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +2 -2
- data/lib/oci/core/models/icmp_options.rb +2 -2
- data/lib/oci/core/models/image.rb +2 -2
- data/lib/oci/core/models/image_source_details.rb +3 -3
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +5 -5
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +3 -3
- data/lib/oci/core/models/ingress_security_rule.rb +2 -2
- data/lib/oci/core/models/instance.rb +4 -4
- data/lib/oci/core/models/instance_console_connection.rb +2 -2
- data/lib/oci/core/models/instance_credentials.rb +2 -2
- data/lib/oci/core/models/internet_gateway.rb +2 -2
- data/lib/oci/core/models/ip_sec_connection.rb +2 -2
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +2 -2
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +2 -2
- data/lib/oci/core/models/launch_instance_details.rb +4 -4
- data/lib/oci/core/models/letter_of_authority.rb +2 -2
- data/lib/oci/core/models/port_range.rb +2 -2
- data/lib/oci/core/models/private_ip.rb +2 -2
- data/lib/oci/core/models/route_rule.rb +2 -2
- data/lib/oci/core/models/route_table.rb +2 -2
- data/lib/oci/core/models/security_list.rb +2 -2
- data/lib/oci/core/models/shape.rb +2 -2
- data/lib/oci/core/models/subnet.rb +2 -2
- data/lib/oci/core/models/tcp_options.rb +2 -2
- data/lib/oci/core/models/tunnel_config.rb +2 -2
- data/lib/oci/core/models/tunnel_status.rb +2 -2
- data/lib/oci/core/models/udp_options.rb +2 -2
- data/lib/oci/core/models/update_console_history_details.rb +2 -2
- data/lib/oci/core/models/update_cpe_details.rb +2 -2
- data/lib/oci/core/models/update_cross_connect_details.rb +2 -2
- data/lib/oci/core/models/update_cross_connect_group_details.rb +2 -2
- data/lib/oci/core/models/update_dhcp_details.rb +2 -2
- data/lib/oci/core/models/update_drg_attachment_details.rb +2 -2
- data/lib/oci/core/models/update_drg_details.rb +2 -2
- data/lib/oci/core/models/update_image_details.rb +2 -2
- data/lib/oci/core/models/update_instance_details.rb +2 -2
- data/lib/oci/core/models/update_internet_gateway_details.rb +2 -2
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +2 -2
- data/lib/oci/core/models/update_private_ip_details.rb +2 -2
- data/lib/oci/core/models/update_route_table_details.rb +2 -2
- data/lib/oci/core/models/update_security_list_details.rb +2 -2
- data/lib/oci/core/models/update_subnet_details.rb +2 -2
- data/lib/oci/core/models/update_vcn_details.rb +2 -2
- data/lib/oci/core/models/update_virtual_circuit_details.rb +2 -3
- data/lib/oci/core/models/update_vnic_details.rb +2 -2
- data/lib/oci/core/models/update_volume_backup_details.rb +2 -2
- data/lib/oci/core/models/update_volume_details.rb +2 -2
- data/lib/oci/core/models/vcn.rb +2 -2
- data/lib/oci/core/models/virtual_circuit.rb +5 -5
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +2 -2
- data/lib/oci/core/models/vnic.rb +2 -2
- data/lib/oci/core/models/vnic_attachment.rb +2 -2
- data/lib/oci/core/models/volume.rb +29 -5
- data/lib/oci/core/models/volume_attachment.rb +2 -2
- data/lib/oci/core/models/volume_backup.rb +2 -2
- data/lib/oci/core/models/volume_source_details.rb +131 -0
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +128 -0
- data/lib/oci/core/models/volume_source_from_volume_details.rb +128 -0
- data/lib/oci/core/virtual_network_client.rb +312 -10
- data/lib/oci/database/database.rb +7 -0
- data/lib/oci/database/database_client.rb +228 -4
- data/lib/oci/database/models/backup.rb +253 -0
- data/lib/oci/database/models/backup_summary.rb +253 -0
- data/lib/oci/database/models/create_backup_details.rb +131 -0
- data/lib/oci/database/models/create_data_guard_association_details.rb +2 -2
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +2 -2
- data/lib/oci/database/models/create_database_details.rb +13 -3
- data/lib/oci/database/models/create_db_home_details.rb +2 -2
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +2 -2
- data/lib/oci/database/models/data_guard_association.rb +2 -2
- data/lib/oci/database/models/data_guard_association_summary.rb +374 -0
- data/lib/oci/database/models/database.rb +15 -3
- data/lib/oci/database/models/database_summary.rb +15 -3
- data/lib/oci/database/models/db_backup_config.rb +120 -0
- data/lib/oci/database/models/db_home.rb +2 -2
- data/lib/oci/database/models/db_home_summary.rb +2 -2
- data/lib/oci/database/models/db_node.rb +2 -2
- data/lib/oci/database/models/db_node_summary.rb +2 -2
- data/lib/oci/database/models/db_system.rb +9 -9
- data/lib/oci/database/models/db_system_shape_summary.rb +2 -2
- data/lib/oci/database/models/db_system_summary.rb +9 -9
- data/lib/oci/database/models/db_version_summary.rb +2 -2
- data/lib/oci/database/models/failover_data_guard_association_details.rb +2 -2
- data/lib/oci/database/models/launch_db_system_details.rb +2 -2
- data/lib/oci/database/models/patch.rb +4 -2
- data/lib/oci/database/models/patch_details.rb +4 -3
- data/lib/oci/database/models/patch_history_entry.rb +3 -2
- data/lib/oci/database/models/patch_history_entry_summary.rb +3 -2
- data/lib/oci/database/models/patch_summary.rb +4 -2
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +2 -2
- data/lib/oci/database/models/restore_database_details.rb +145 -0
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +2 -2
- data/lib/oci/database/models/update_database_details.rb +119 -0
- data/lib/oci/database/models/update_db_home_details.rb +2 -2
- data/lib/oci/database/models/update_db_system_details.rb +9 -9
- data/lib/oci/identity/identity_client.rb +6 -5
- data/lib/oci/identity/models/add_user_to_group_details.rb +2 -2
- data/lib/oci/identity/models/api_key.rb +2 -2
- data/lib/oci/identity/models/availability_domain.rb +2 -2
- data/lib/oci/identity/models/compartment.rb +3 -3
- data/lib/oci/identity/models/create_api_key_details.rb +2 -2
- data/lib/oci/identity/models/create_compartment_details.rb +2 -2
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +2 -2
- data/lib/oci/identity/models/create_group_details.rb +2 -2
- data/lib/oci/identity/models/create_identity_provider_details.rb +2 -2
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +2 -2
- data/lib/oci/identity/models/create_policy_details.rb +2 -2
- data/lib/oci/identity/models/create_region_subscription_details.rb +2 -2
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +2 -2
- data/lib/oci/identity/models/create_swift_password_details.rb +2 -2
- data/lib/oci/identity/models/create_user_details.rb +2 -2
- data/lib/oci/identity/models/customer_secret_key.rb +2 -2
- data/lib/oci/identity/models/customer_secret_key_summary.rb +2 -2
- data/lib/oci/identity/models/group.rb +2 -2
- data/lib/oci/identity/models/identity_provider.rb +4 -4
- data/lib/oci/identity/models/idp_group_mapping.rb +2 -2
- data/lib/oci/identity/models/policy.rb +2 -2
- data/lib/oci/identity/models/region.rb +4 -4
- data/lib/oci/identity/models/region_subscription.rb +4 -4
- data/lib/oci/identity/models/saml2_identity_provider.rb +2 -2
- data/lib/oci/identity/models/swift_password.rb +2 -2
- data/lib/oci/identity/models/tenancy.rb +2 -2
- data/lib/oci/identity/models/ui_password.rb +2 -2
- data/lib/oci/identity/models/update_compartment_details.rb +2 -2
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +2 -2
- data/lib/oci/identity/models/update_group_details.rb +2 -2
- data/lib/oci/identity/models/update_identity_provider_details.rb +2 -2
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +2 -2
- data/lib/oci/identity/models/update_policy_details.rb +2 -2
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +2 -2
- data/lib/oci/identity/models/update_state_details.rb +2 -2
- data/lib/oci/identity/models/update_swift_password_details.rb +2 -2
- data/lib/oci/identity/models/update_user_details.rb +2 -2
- data/lib/oci/identity/models/user.rb +2 -2
- data/lib/oci/identity/models/user_group_membership.rb +2 -2
- data/lib/oci/load_balancer/load_balancer_client.rb +1 -1
- data/lib/oci/load_balancer/models/backend.rb +2 -2
- data/lib/oci/load_balancer/models/backend_details.rb +2 -2
- data/lib/oci/load_balancer/models/backend_health.rb +2 -2
- data/lib/oci/load_balancer/models/backend_set.rb +2 -2
- data/lib/oci/load_balancer/models/backend_set_details.rb +2 -2
- data/lib/oci/load_balancer/models/backend_set_health.rb +2 -2
- data/lib/oci/load_balancer/models/certificate.rb +2 -2
- data/lib/oci/load_balancer/models/certificate_details.rb +2 -2
- data/lib/oci/load_balancer/models/create_backend_details.rb +2 -2
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +2 -2
- data/lib/oci/load_balancer/models/create_certificate_details.rb +2 -2
- data/lib/oci/load_balancer/models/create_listener_details.rb +2 -2
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +2 -2
- data/lib/oci/load_balancer/models/health_check_result.rb +2 -2
- data/lib/oci/load_balancer/models/health_checker.rb +2 -2
- data/lib/oci/load_balancer/models/health_checker_details.rb +2 -2
- data/lib/oci/load_balancer/models/ip_address.rb +2 -2
- data/lib/oci/load_balancer/models/listener.rb +2 -2
- data/lib/oci/load_balancer/models/listener_details.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer_health.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +2 -2
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +2 -2
- data/lib/oci/load_balancer/models/ssl_configuration.rb +2 -2
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +2 -2
- data/lib/oci/load_balancer/models/update_backend_details.rb +2 -2
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +2 -2
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +2 -2
- data/lib/oci/load_balancer/models/update_listener_details.rb +2 -2
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +2 -2
- data/lib/oci/load_balancer/models/work_request.rb +2 -2
- data/lib/oci/load_balancer/models/work_request_error.rb +2 -2
- data/lib/oci/object_storage/models/bucket.rb +44 -12
- data/lib/oci/object_storage/models/bucket_summary.rb +6 -4
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +2 -2
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +2 -2
- data/lib/oci/object_storage/models/create_bucket_details.rb +41 -11
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +9 -7
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +6 -7
- data/lib/oci/object_storage/models/list_objects.rb +4 -3
- data/lib/oci/object_storage/models/multipart_upload.rb +3 -3
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +6 -6
- data/lib/oci/object_storage/models/namespace_metadata.rb +142 -0
- data/lib/oci/object_storage/models/object_summary.rb +6 -4
- data/lib/oci/object_storage/models/preauthenticated_request.rb +13 -11
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +8 -10
- data/lib/oci/object_storage/models/rename_object_details.rb +164 -0
- data/lib/oci/object_storage/models/restore_objects_details.rb +120 -0
- data/lib/oci/object_storage/models/update_bucket_details.rb +20 -8
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +131 -0
- data/lib/oci/object_storage/object_storage.rb +4 -0
- data/lib/oci/object_storage/object_storage_client.rb +206 -94
- data/lib/oci/regions.rb +2 -1
- data/lib/oci/version.rb +1 -1
- metadata +22 -2
|
@@ -162,8 +162,8 @@ module OCI
|
|
|
162
162
|
def to_hash
|
|
163
163
|
hash = {}
|
|
164
164
|
self.class.attribute_map.each_pair do |attr, param|
|
|
165
|
-
value =
|
|
166
|
-
next if value.nil?
|
|
165
|
+
value = send(attr)
|
|
166
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
167
167
|
hash[param] = _to_hash(value)
|
|
168
168
|
end
|
|
169
169
|
hash
|
|
@@ -108,8 +108,8 @@ module OCI
|
|
|
108
108
|
def to_hash
|
|
109
109
|
hash = {}
|
|
110
110
|
self.class.attribute_map.each_pair do |attr, param|
|
|
111
|
-
value =
|
|
112
|
-
next if value.nil?
|
|
111
|
+
value = send(attr)
|
|
112
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
113
113
|
hash[param] = _to_hash(value)
|
|
114
114
|
end
|
|
115
115
|
hash
|
|
@@ -78,8 +78,8 @@ module OCI
|
|
|
78
78
|
def to_hash
|
|
79
79
|
hash = {}
|
|
80
80
|
self.class.attribute_map.each_pair do |attr, param|
|
|
81
|
-
value =
|
|
82
|
-
next if value.nil?
|
|
81
|
+
value = send(attr)
|
|
82
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
83
83
|
hash[param] = _to_hash(value)
|
|
84
84
|
end
|
|
85
85
|
hash
|
|
@@ -169,8 +169,8 @@ module OCI
|
|
|
169
169
|
def to_hash
|
|
170
170
|
hash = {}
|
|
171
171
|
self.class.attribute_map.each_pair do |attr, param|
|
|
172
|
-
value =
|
|
173
|
-
next if value.nil?
|
|
172
|
+
value = send(attr)
|
|
173
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
174
174
|
hash[param] = _to_hash(value)
|
|
175
175
|
end
|
|
176
176
|
hash
|
|
@@ -97,8 +97,8 @@ module OCI
|
|
|
97
97
|
def to_hash
|
|
98
98
|
hash = {}
|
|
99
99
|
self.class.attribute_map.each_pair do |attr, param|
|
|
100
|
-
value =
|
|
101
|
-
next if value.nil?
|
|
100
|
+
value = send(attr)
|
|
101
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
102
102
|
hash[param] = _to_hash(value)
|
|
103
103
|
end
|
|
104
104
|
hash
|
|
@@ -9,11 +9,18 @@ module OCI
|
|
|
9
9
|
PUBLIC_ACCESS_TYPE_OBJECT_READ = 'ObjectRead',
|
|
10
10
|
PUBLIC_ACCESS_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
STORAGE_TIER_ENUM = [STORAGE_TIER_STANDARD = 'Standard',
|
|
14
|
+
STORAGE_TIER_ARCHIVE = 'Archive',
|
|
15
|
+
STORAGE_TIER_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
|
16
|
+
|
|
12
17
|
# The namespace in which the bucket lives.
|
|
13
18
|
# @return [String]
|
|
14
19
|
attr_accessor :namespace
|
|
15
20
|
|
|
16
|
-
# The name of the bucket.
|
|
21
|
+
# The name of the bucket. Avoid entering confidential information.
|
|
22
|
+
# Example: my-new-bucket1
|
|
23
|
+
#
|
|
17
24
|
# @return [String]
|
|
18
25
|
attr_accessor :name
|
|
19
26
|
|
|
@@ -29,7 +36,7 @@ module OCI
|
|
|
29
36
|
# @return [String]
|
|
30
37
|
attr_accessor :created_by
|
|
31
38
|
|
|
32
|
-
# The date and time
|
|
39
|
+
# The date and time the bucket was created, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.29.
|
|
33
40
|
# @return [DateTime]
|
|
34
41
|
attr_accessor :time_created
|
|
35
42
|
|
|
@@ -37,14 +44,22 @@ module OCI
|
|
|
37
44
|
# @return [String]
|
|
38
45
|
attr_accessor :etag
|
|
39
46
|
|
|
40
|
-
# The type of public access
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
#
|
|
47
|
+
# The type of public access enabled on this bucket.
|
|
48
|
+
# A bucket is set to `NoPublicAccess` by default, which only allows an authenticated caller to access the
|
|
49
|
+
# bucket and its contents. When `ObjectRead` is enabled on the bucket, public access is allowed for the
|
|
50
|
+
# `GetObject`, `HeadObject`, and `ListObjects` operations.
|
|
44
51
|
#
|
|
45
52
|
# @return [String]
|
|
46
53
|
attr_accessor :public_access_type
|
|
47
54
|
|
|
55
|
+
# The type of storage tier of this bucket.
|
|
56
|
+
# A bucket is set to 'Standard' tier by default, which means the bucket will be put in the standard storage tier.
|
|
57
|
+
# When 'Archive' tier type is set explicitly, the bucket is put in the Archive Storage tier. The 'storageTier'
|
|
58
|
+
# property is immutable once the bucket is created.
|
|
59
|
+
#
|
|
60
|
+
# @return [String]
|
|
61
|
+
attr_accessor :storage_tier
|
|
62
|
+
|
|
48
63
|
|
|
49
64
|
# Initializes the object
|
|
50
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -86,6 +101,10 @@ module OCI
|
|
|
86
101
|
self.public_access_type = attributes[:'publicAccessType']
|
|
87
102
|
end
|
|
88
103
|
|
|
104
|
+
if attributes[:'storageTier']
|
|
105
|
+
self.storage_tier = attributes[:'storageTier']
|
|
106
|
+
end
|
|
107
|
+
|
|
89
108
|
end
|
|
90
109
|
|
|
91
110
|
# Custom attribute writer method checking allowed values (enum).
|
|
@@ -98,6 +117,16 @@ module OCI
|
|
|
98
117
|
end
|
|
99
118
|
end
|
|
100
119
|
|
|
120
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
121
|
+
# @param [Object] storage_tier Object to be assigned
|
|
122
|
+
def storage_tier=(storage_tier)
|
|
123
|
+
if storage_tier && !STORAGE_TIER_ENUM.include?(storage_tier)
|
|
124
|
+
@storage_tier = STORAGE_TIER_UNKNOWN_ENUM_VALUE
|
|
125
|
+
else
|
|
126
|
+
@storage_tier = storage_tier
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
101
130
|
# Checks equality by comparing each attribute.
|
|
102
131
|
# @param [Object] other_object to be compared
|
|
103
132
|
def ==(other_object)
|
|
@@ -110,7 +139,8 @@ module OCI
|
|
|
110
139
|
created_by == other_object.created_by &&
|
|
111
140
|
time_created == other_object.time_created &&
|
|
112
141
|
etag == other_object.etag &&
|
|
113
|
-
public_access_type == other_object.public_access_type
|
|
142
|
+
public_access_type == other_object.public_access_type &&
|
|
143
|
+
storage_tier == other_object.storage_tier
|
|
114
144
|
end
|
|
115
145
|
|
|
116
146
|
# @see the `==` method
|
|
@@ -122,7 +152,7 @@ module OCI
|
|
|
122
152
|
# Calculates hash code according to all attributes.
|
|
123
153
|
# @return [Fixnum] Hash code
|
|
124
154
|
def hash
|
|
125
|
-
[namespace, name, compartment_id, metadata, created_by, time_created, etag, public_access_type].hash
|
|
155
|
+
[namespace, name, compartment_id, metadata, created_by, time_created, etag, public_access_type, storage_tier].hash
|
|
126
156
|
end
|
|
127
157
|
|
|
128
158
|
# Builds the object from hash
|
|
@@ -156,8 +186,8 @@ module OCI
|
|
|
156
186
|
def to_hash
|
|
157
187
|
hash = {}
|
|
158
188
|
self.class.attribute_map.each_pair do |attr, param|
|
|
159
|
-
value =
|
|
160
|
-
next if value.nil?
|
|
189
|
+
value = send(attr)
|
|
190
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
161
191
|
hash[param] = _to_hash(value)
|
|
162
192
|
end
|
|
163
193
|
hash
|
|
@@ -195,7 +225,8 @@ module OCI
|
|
|
195
225
|
:'created_by' => :'createdBy',
|
|
196
226
|
:'time_created' => :'timeCreated',
|
|
197
227
|
:'etag' => :'etag',
|
|
198
|
-
:'public_access_type' => :'publicAccessType'
|
|
228
|
+
:'public_access_type' => :'publicAccessType',
|
|
229
|
+
:'storage_tier' => :'storageTier'
|
|
199
230
|
}
|
|
200
231
|
end
|
|
201
232
|
|
|
@@ -209,7 +240,8 @@ module OCI
|
|
|
209
240
|
:'created_by' => :'String',
|
|
210
241
|
:'time_created' => :'DateTime',
|
|
211
242
|
:'etag' => :'String',
|
|
212
|
-
:'public_access_type' => :'String'
|
|
243
|
+
:'public_access_type' => :'String',
|
|
244
|
+
:'storage_tier' => :'String'
|
|
213
245
|
}
|
|
214
246
|
end
|
|
215
247
|
end
|
|
@@ -8,7 +8,9 @@ module OCI
|
|
|
8
8
|
# @return [String]
|
|
9
9
|
attr_accessor :namespace
|
|
10
10
|
|
|
11
|
-
# The name of the bucket.
|
|
11
|
+
# The name of the bucket. Avoid entering confidential information.
|
|
12
|
+
# Example: my-new-bucket1
|
|
13
|
+
#
|
|
12
14
|
# @return [String]
|
|
13
15
|
attr_accessor :name
|
|
14
16
|
|
|
@@ -20,7 +22,7 @@ module OCI
|
|
|
20
22
|
# @return [String]
|
|
21
23
|
attr_accessor :created_by
|
|
22
24
|
|
|
23
|
-
# The date and time
|
|
25
|
+
# The date and time the bucket was created, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.29.
|
|
24
26
|
# @return [DateTime]
|
|
25
27
|
attr_accessor :time_created
|
|
26
28
|
|
|
@@ -119,8 +121,8 @@ module OCI
|
|
|
119
121
|
def to_hash
|
|
120
122
|
hash = {}
|
|
121
123
|
self.class.attribute_map.each_pair do |attr, param|
|
|
122
|
-
value =
|
|
123
|
-
next if value.nil?
|
|
124
|
+
value = send(attr)
|
|
125
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
124
126
|
hash[param] = _to_hash(value)
|
|
125
127
|
end
|
|
126
128
|
hash
|
|
@@ -85,8 +85,8 @@ module OCI
|
|
|
85
85
|
def to_hash
|
|
86
86
|
hash = {}
|
|
87
87
|
self.class.attribute_map.each_pair do |attr, param|
|
|
88
|
-
value =
|
|
89
|
-
next if value.nil?
|
|
88
|
+
value = send(attr)
|
|
89
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
90
90
|
hash[param] = _to_hash(value)
|
|
91
91
|
end
|
|
92
92
|
hash
|
|
@@ -83,8 +83,8 @@ module OCI
|
|
|
83
83
|
def to_hash
|
|
84
84
|
hash = {}
|
|
85
85
|
self.class.attribute_map.each_pair do |attr, param|
|
|
86
|
-
value =
|
|
87
|
-
next if value.nil?
|
|
86
|
+
value = send(attr)
|
|
87
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
88
88
|
hash[param] = _to_hash(value)
|
|
89
89
|
end
|
|
90
90
|
hash
|
|
@@ -8,8 +8,13 @@ module OCI
|
|
|
8
8
|
PUBLIC_ACCESS_TYPE_ENUM = [PUBLIC_ACCESS_TYPE_NO_PUBLIC_ACCESS = 'NoPublicAccess',
|
|
9
9
|
PUBLIC_ACCESS_TYPE_OBJECT_READ = 'ObjectRead']
|
|
10
10
|
|
|
11
|
+
|
|
12
|
+
STORAGE_TIER_ENUM = [STORAGE_TIER_STANDARD = 'Standard',
|
|
13
|
+
STORAGE_TIER_ARCHIVE = 'Archive']
|
|
14
|
+
|
|
11
15
|
# The name of the bucket. Valid characters are uppercase or lowercase letters,
|
|
12
|
-
# numbers, and dashes. Bucket names must be unique within the namespace.
|
|
16
|
+
# numbers, and dashes. Bucket names must be unique within the namespace. Avoid entering confidential information.
|
|
17
|
+
# example: Example: my-new-bucket1
|
|
13
18
|
#
|
|
14
19
|
# @return [String]
|
|
15
20
|
attr_accessor :name
|
|
@@ -22,14 +27,22 @@ module OCI
|
|
|
22
27
|
# @return [Hash<String, String>]
|
|
23
28
|
attr_accessor :metadata
|
|
24
29
|
|
|
25
|
-
# The type of public access
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
#
|
|
30
|
+
# The type of public access enabled on this bucket.
|
|
31
|
+
# A bucket is set to `NoPublicAccess` by default, which only allows an authenticated caller to access the
|
|
32
|
+
# bucket and its contents. When `ObjectRead` is enabled on the bucket, public access is allowed for the
|
|
33
|
+
# `GetObject`, `HeadObject`, and `ListObjects` operations.
|
|
29
34
|
#
|
|
30
35
|
# @return [String]
|
|
31
36
|
attr_accessor :public_access_type
|
|
32
37
|
|
|
38
|
+
# The type of storage tier of this bucket.
|
|
39
|
+
# A bucket is set to 'Standard' tier by default, which means the bucket will be put in the standard storage tier.
|
|
40
|
+
# When 'Archive' tier type is set explicitly, the bucket is put in the Archive Storage tier. The 'storageTier'
|
|
41
|
+
# property is immutable after bucket is created.
|
|
42
|
+
#
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :storage_tier
|
|
45
|
+
|
|
33
46
|
|
|
34
47
|
# Initializes the object
|
|
35
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -55,6 +68,10 @@ module OCI
|
|
|
55
68
|
self.public_access_type = attributes[:'publicAccessType']
|
|
56
69
|
end
|
|
57
70
|
|
|
71
|
+
if attributes[:'storageTier']
|
|
72
|
+
self.storage_tier = attributes[:'storageTier']
|
|
73
|
+
end
|
|
74
|
+
|
|
58
75
|
end
|
|
59
76
|
|
|
60
77
|
# Custom attribute writer method checking allowed values (enum).
|
|
@@ -67,6 +84,16 @@ module OCI
|
|
|
67
84
|
end
|
|
68
85
|
end
|
|
69
86
|
|
|
87
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
88
|
+
# @param [Object] storage_tier Object to be assigned
|
|
89
|
+
def storage_tier=(storage_tier)
|
|
90
|
+
if storage_tier && !STORAGE_TIER_ENUM.include?(storage_tier)
|
|
91
|
+
fail "Invalid value for 'storage_tier': this must be one of the values in STORAGE_TIER_ENUM."
|
|
92
|
+
else
|
|
93
|
+
@storage_tier = storage_tier
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
70
97
|
# Checks equality by comparing each attribute.
|
|
71
98
|
# @param [Object] other_object to be compared
|
|
72
99
|
def ==(other_object)
|
|
@@ -75,7 +102,8 @@ module OCI
|
|
|
75
102
|
name == other_object.name &&
|
|
76
103
|
compartment_id == other_object.compartment_id &&
|
|
77
104
|
metadata == other_object.metadata &&
|
|
78
|
-
public_access_type == other_object.public_access_type
|
|
105
|
+
public_access_type == other_object.public_access_type &&
|
|
106
|
+
storage_tier == other_object.storage_tier
|
|
79
107
|
end
|
|
80
108
|
|
|
81
109
|
# @see the `==` method
|
|
@@ -87,7 +115,7 @@ module OCI
|
|
|
87
115
|
# Calculates hash code according to all attributes.
|
|
88
116
|
# @return [Fixnum] Hash code
|
|
89
117
|
def hash
|
|
90
|
-
[name, compartment_id, metadata, public_access_type].hash
|
|
118
|
+
[name, compartment_id, metadata, public_access_type, storage_tier].hash
|
|
91
119
|
end
|
|
92
120
|
|
|
93
121
|
# Builds the object from hash
|
|
@@ -121,8 +149,8 @@ module OCI
|
|
|
121
149
|
def to_hash
|
|
122
150
|
hash = {}
|
|
123
151
|
self.class.attribute_map.each_pair do |attr, param|
|
|
124
|
-
value =
|
|
125
|
-
next if value.nil?
|
|
152
|
+
value = send(attr)
|
|
153
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
126
154
|
hash[param] = _to_hash(value)
|
|
127
155
|
end
|
|
128
156
|
hash
|
|
@@ -156,7 +184,8 @@ module OCI
|
|
|
156
184
|
:'name' => :'name',
|
|
157
185
|
:'compartment_id' => :'compartmentId',
|
|
158
186
|
:'metadata' => :'metadata',
|
|
159
|
-
:'public_access_type' => :'publicAccessType'
|
|
187
|
+
:'public_access_type' => :'publicAccessType',
|
|
188
|
+
:'storage_tier' => :'storageTier'
|
|
160
189
|
}
|
|
161
190
|
end
|
|
162
191
|
|
|
@@ -166,7 +195,8 @@ module OCI
|
|
|
166
195
|
:'name' => :'String',
|
|
167
196
|
:'compartment_id' => :'String',
|
|
168
197
|
:'metadata' => :'Hash<String, String>',
|
|
169
|
-
:'public_access_type' => :'String'
|
|
198
|
+
:'public_access_type' => :'String',
|
|
199
|
+
:'storage_tier' => :'String'
|
|
170
200
|
}
|
|
171
201
|
end
|
|
172
202
|
end
|
|
@@ -4,24 +4,26 @@ require 'date'
|
|
|
4
4
|
|
|
5
5
|
module OCI
|
|
6
6
|
class ObjectStorage::Models::CreateMultipartUploadDetails
|
|
7
|
-
#
|
|
7
|
+
# The name of the object to which this multi-part upload is targeted. Avoid entering confidential information.
|
|
8
|
+
# Example: test/object1.log
|
|
9
|
+
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
attr_accessor :object
|
|
10
12
|
|
|
11
|
-
#
|
|
13
|
+
# The content type of the object to upload.
|
|
12
14
|
# @return [String]
|
|
13
15
|
attr_accessor :content_type
|
|
14
16
|
|
|
15
|
-
#
|
|
17
|
+
# The content language of the object to upload.
|
|
16
18
|
# @return [String]
|
|
17
19
|
attr_accessor :content_language
|
|
18
20
|
|
|
19
|
-
#
|
|
21
|
+
# The content encoding of the object to upload.
|
|
20
22
|
# @return [String]
|
|
21
23
|
attr_accessor :content_encoding
|
|
22
24
|
|
|
23
25
|
# Arbitrary string keys and values for the user-defined metadata for the object.
|
|
24
|
-
# Keys must be in \"opc-meta-*\" format.
|
|
26
|
+
# Keys must be in \"opc-meta-*\" format. Avoid entering confidential information.
|
|
25
27
|
#
|
|
26
28
|
# @return [Hash<String, String>]
|
|
27
29
|
attr_accessor :metadata
|
|
@@ -112,8 +114,8 @@ module OCI
|
|
|
112
114
|
def to_hash
|
|
113
115
|
hash = {}
|
|
114
116
|
self.class.attribute_map.each_pair do |attr, param|
|
|
115
|
-
value =
|
|
116
|
-
next if value.nil?
|
|
117
|
+
value = send(attr)
|
|
118
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
117
119
|
hash[param] = _to_hash(value)
|
|
118
120
|
end
|
|
119
121
|
hash
|
|
@@ -10,20 +10,19 @@ module OCI
|
|
|
10
10
|
ACCESS_TYPE_OBJECT_READ_WRITE = 'ObjectReadWrite',
|
|
11
11
|
ACCESS_TYPE_ANY_OBJECT_WRITE = 'AnyObjectWrite']
|
|
12
12
|
|
|
13
|
-
# user
|
|
13
|
+
# A user-specified name for the pre-authenticated request. Helpful for management purposes.
|
|
14
14
|
# @return [String]
|
|
15
15
|
attr_accessor :name
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# The name of object that is being granted access to by the pre-authenticated request. This can be null and if it is, the pre-authenticated request grants access to the entire bucket.
|
|
18
18
|
# @return [String]
|
|
19
19
|
attr_accessor :object_name
|
|
20
20
|
|
|
21
|
-
#
|
|
21
|
+
# The operation that can be performed on this resource.
|
|
22
22
|
# @return [String]
|
|
23
23
|
attr_accessor :access_type
|
|
24
24
|
|
|
25
|
-
# The expiration date
|
|
26
|
-
# [RFC 3339](https://tools.ietf.org/rfc/rfc3339)
|
|
25
|
+
# The expiration date for the pre-authenticated request as per [RFC 3339](https://tools.ietf.org/rfc/rfc3339). After this date the pre-authenticated request will no longer be valid.
|
|
27
26
|
#
|
|
28
27
|
# @return [DateTime]
|
|
29
28
|
attr_accessor :time_expires
|
|
@@ -119,8 +118,8 @@ module OCI
|
|
|
119
118
|
def to_hash
|
|
120
119
|
hash = {}
|
|
121
120
|
self.class.attribute_map.each_pair do |attr, param|
|
|
122
|
-
value =
|
|
123
|
-
next if value.nil?
|
|
121
|
+
value = send(attr)
|
|
122
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
124
123
|
hash[param] = _to_hash(value)
|
|
125
124
|
end
|
|
126
125
|
hash
|
|
@@ -15,7 +15,8 @@ module OCI
|
|
|
15
15
|
attr_accessor :prefixes
|
|
16
16
|
|
|
17
17
|
# The name of the object to use in the 'startWith' parameter to obtain the next page of
|
|
18
|
-
# a truncated ListObjects response.
|
|
18
|
+
# a truncated ListObjects response. Avoid entering confidential information.
|
|
19
|
+
# Example: test/object1.log
|
|
19
20
|
#
|
|
20
21
|
# @return [String]
|
|
21
22
|
attr_accessor :next_start_with
|
|
@@ -96,8 +97,8 @@ module OCI
|
|
|
96
97
|
def to_hash
|
|
97
98
|
hash = {}
|
|
98
99
|
self.class.attribute_map.each_pair do |attr, param|
|
|
99
|
-
value =
|
|
100
|
-
next if value.nil?
|
|
100
|
+
value = send(attr)
|
|
101
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
101
102
|
hash[param] = _to_hash(value)
|
|
102
103
|
end
|
|
103
104
|
hash
|