oci 2.5.11 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/oci.rb +1 -0
- data/lib/oci/auth/federation_client.rb +2 -1
- data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +6 -1
- data/lib/oci/auth/url_based_certificate_retriever.rb +6 -2
- data/lib/oci/auth/util.rb +18 -0
- data/lib/oci/core/compute_client.rb +730 -48
- data/lib/oci/core/compute_client_composite_operations.rb +119 -0
- data/lib/oci/core/compute_management_client.rb +11 -4
- data/lib/oci/core/core.rb +13 -0
- data/lib/oci/core/models/add_security_rule_details.rb +4 -2
- data/lib/oci/core/models/attach_vnic_details.rb +1 -0
- data/lib/oci/core/models/capture_console_history_details.rb +1 -0
- data/lib/oci/core/models/change_dedicated_vm_host_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_dhcp_options_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_internet_gateway_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_local_peering_gateway_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_network_security_group_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_public_ip_compartment_details.rb +155 -0
- data/lib/oci/core/models/create_dedicated_vm_host_details.rb +262 -0
- data/lib/oci/core/models/create_drg_attachment_details.rb +4 -2
- data/lib/oci/core/models/create_image_details.rb +1 -1
- data/lib/oci/core/models/create_instance_configuration_base.rb +16 -6
- data/lib/oci/core/models/create_instance_configuration_details.rb +1 -1
- data/lib/oci/core/models/create_instance_configuration_from_instance_details.rb +3 -2
- data/lib/oci/core/models/create_instance_pool_details.rb +3 -1
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +1 -1
- data/lib/oci/core/models/create_service_gateway_details.rb +1 -1
- data/lib/oci/core/models/create_volume_group_backup_details.rb +3 -1
- data/lib/oci/core/models/create_volume_group_details.rb +1 -1
- data/lib/oci/core/models/cross_connect_mapping.rb +4 -0
- data/lib/oci/core/models/dedicated_vm_host.rb +359 -0
- data/lib/oci/core/models/dedicated_vm_host_instance_shape_summary.rb +170 -0
- data/lib/oci/core/models/dedicated_vm_host_instance_summary.rb +215 -0
- data/lib/oci/core/models/dedicated_vm_host_shape_summary.rb +171 -0
- data/lib/oci/core/models/dedicated_vm_host_summary.rb +325 -0
- data/lib/oci/core/models/drg_attachment.rb +6 -3
- data/lib/oci/core/models/egress_security_rule.rb +1 -0
- data/lib/oci/core/models/image.rb +2 -0
- data/lib/oci/core/models/ingress_security_rule.rb +2 -1
- data/lib/oci/core/models/instance.rb +16 -1
- data/lib/oci/core/models/instance_configuration.rb +10 -7
- data/lib/oci/core/models/ipv6.rb +2 -0
- data/lib/oci/core/models/launch_instance_details.rb +16 -1
- data/lib/oci/core/models/launch_options.rb +3 -2
- data/lib/oci/core/models/local_peering_gateway.rb +4 -3
- data/lib/oci/core/models/route_rule.rb +2 -1
- data/lib/oci/core/models/security_rule.rb +3 -1
- data/lib/oci/core/models/service_gateway.rb +4 -3
- data/lib/oci/core/models/subnet.rb +2 -1
- data/lib/oci/core/models/update_console_history_details.rb +1 -0
- data/lib/oci/core/models/update_dedicated_vm_host_details.rb +194 -0
- data/lib/oci/core/models/update_drg_attachment_details.rb +6 -3
- data/lib/oci/core/models/update_instance_pool_details.rb +3 -1
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -3
- data/lib/oci/core/models/update_network_security_group_details.rb +2 -0
- data/lib/oci/core/models/update_security_rule_details.rb +4 -2
- data/lib/oci/core/models/update_service_gateway_details.rb +4 -3
- data/lib/oci/core/models/update_vnic_details.rb +2 -0
- data/lib/oci/core/models/update_volume_backup_details.rb +1 -1
- data/lib/oci/core/models/update_volume_group_backup_details.rb +2 -1
- data/lib/oci/core/models/update_volume_group_details.rb +2 -1
- data/lib/oci/core/models/vcn.rb +2 -1
- data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
- data/lib/oci/core/virtual_network_client.rb +396 -59
- data/lib/oci/dts/dts.rb +57 -0
- data/lib/oci/dts/models/attach_devices_details.rb +153 -0
- data/lib/oci/dts/models/change_transfer_job_compartment_details.rb +154 -0
- data/lib/oci/dts/models/create_transfer_appliance_details.rb +152 -0
- data/lib/oci/dts/models/create_transfer_appliance_entitlement_details.rb +178 -0
- data/lib/oci/dts/models/create_transfer_device_details.rb +165 -0
- data/lib/oci/dts/models/create_transfer_job_details.rb +238 -0
- data/lib/oci/dts/models/create_transfer_package_details.rb +178 -0
- data/lib/oci/dts/models/detach_devices_details.rb +153 -0
- data/lib/oci/dts/models/multiple_transfer_appliances.rb +153 -0
- data/lib/oci/dts/models/multiple_transfer_devices.rb +153 -0
- data/lib/oci/dts/models/multiple_transfer_packages.rb +153 -0
- data/lib/oci/dts/models/new_transfer_device.rb +246 -0
- data/lib/oci/dts/models/shipping_address.rb +263 -0
- data/lib/oci/dts/models/shipping_vendors.rb +149 -0
- data/lib/oci/dts/models/transfer_appliance.rb +367 -0
- data/lib/oci/dts/models/transfer_appliance_certificate.rb +148 -0
- data/lib/oci/dts/models/transfer_appliance_encryption_passphrase.rb +152 -0
- data/lib/oci/dts/models/transfer_appliance_entitlement.rb +240 -0
- data/lib/oci/dts/models/transfer_appliance_public_key.rb +152 -0
- data/lib/oci/dts/models/transfer_appliance_summary.rb +223 -0
- data/lib/oci/dts/models/transfer_device.rb +268 -0
- data/lib/oci/dts/models/transfer_device_summary.rb +254 -0
- data/lib/oci/dts/models/transfer_job.rb +356 -0
- data/lib/oci/dts/models/transfer_job_summary.rb +296 -0
- data/lib/oci/dts/models/transfer_package.rb +281 -0
- data/lib/oci/dts/models/transfer_package_summary.rb +201 -0
- data/lib/oci/dts/models/update_transfer_appliance_details.rb +180 -0
- data/lib/oci/dts/models/update_transfer_device_details.rb +166 -0
- data/lib/oci/dts/models/update_transfer_job_details.rb +237 -0
- data/lib/oci/dts/models/update_transfer_package_details.rb +204 -0
- data/lib/oci/dts/shipping_vendors_client.rb +165 -0
- data/lib/oci/dts/shipping_vendors_client_composite_operations.rb +24 -0
- data/lib/oci/dts/transfer_appliance_client.rb +569 -0
- data/lib/oci/dts/transfer_appliance_client_composite_operations.rb +104 -0
- data/lib/oci/dts/transfer_appliance_entitlement_client.rb +223 -0
- data/lib/oci/dts/transfer_appliance_entitlement_client_composite_operations.rb +24 -0
- data/lib/oci/dts/transfer_device_client.rb +402 -0
- data/lib/oci/dts/transfer_device_client_composite_operations.rb +65 -0
- data/lib/oci/dts/transfer_job_client.rb +458 -0
- data/lib/oci/dts/transfer_job_client_composite_operations.rb +143 -0
- data/lib/oci/dts/transfer_package_client.rb +515 -0
- data/lib/oci/dts/transfer_package_client_composite_operations.rb +104 -0
- data/lib/oci/dts/util.rb +2 -0
- data/lib/oci/file_storage/models/create_file_system_details.rb +19 -4
- data/lib/oci/file_storage/models/file_system.rb +19 -4
- data/lib/oci/file_storage/models/file_system_summary.rb +19 -4
- data/lib/oci/file_storage/models/update_file_system_details.rb +22 -4
- data/lib/oci/limits/limits.rb +5 -0
- data/lib/oci/limits/limits_client.rb +444 -0
- data/lib/oci/limits/limits_client_composite_operations.rb +24 -0
- data/lib/oci/limits/models/create_quota_details.rb +1 -1
- data/lib/oci/limits/models/limit_definition_summary.rb +241 -0
- data/lib/oci/limits/models/limit_value_summary.rb +210 -0
- data/lib/oci/limits/models/quota.rb +1 -1
- data/lib/oci/limits/models/resource_availability.rb +163 -0
- data/lib/oci/limits/models/service_summary.rb +159 -0
- data/lib/oci/limits/models/update_quota_details.rb +1 -1
- data/lib/oci/limits/quotas_client.rb +12 -11
- data/lib/oci/monitoring/models/alarm.rb +20 -1
- data/lib/oci/monitoring/models/create_alarm_details.rb +20 -1
- data/lib/oci/monitoring/models/list_metrics_details.rb +23 -3
- data/lib/oci/monitoring/models/metric.rb +20 -1
- data/lib/oci/monitoring/models/metric_data.rb +20 -1
- data/lib/oci/monitoring/models/metric_data_details.rb +20 -1
- data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +20 -1
- data/lib/oci/monitoring/models/update_alarm_details.rb +20 -1
- data/lib/oci/regions.rb +14 -8
- data/lib/oci/streaming/models/archiver.rb +291 -0
- data/lib/oci/streaming/models/archiver_error.rb +159 -0
- data/lib/oci/streaming/models/archiver_lifecycle_state.rb +14 -0
- data/lib/oci/streaming/models/archiver_start_position.rb +10 -0
- data/lib/oci/streaming/models/create_archiver_details.rb +223 -0
- data/lib/oci/streaming/models/update_archiver_details.rb +222 -0
- data/lib/oci/streaming/stream_admin_client.rb +304 -0
- data/lib/oci/streaming/stream_admin_client_composite_operations.rb +162 -0
- data/lib/oci/streaming/streaming.rb +6 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/models/access_rule.rb +121 -4
- data/lib/oci/waas/models/access_rule_criteria.rb +12 -0
- data/lib/oci/waas/models/address_list.rb +289 -0
- data/lib/oci/waas/models/address_list_summary.rb +279 -0
- data/lib/oci/waas/models/caching_rule.rb +243 -0
- data/lib/oci/waas/models/caching_rule_criteria.rb +194 -0
- data/lib/oci/waas/models/caching_rule_summary.rb +246 -0
- data/lib/oci/waas/models/certificate.rb +22 -9
- data/lib/oci/waas/models/certificate_extensions.rb +3 -0
- data/lib/oci/waas/models/certificate_issuer_name.rb +225 -0
- data/lib/oci/waas/models/certificate_public_key_info.rb +4 -1
- data/lib/oci/waas/models/certificate_subject_name.rb +8 -1
- data/lib/oci/waas/models/certificate_summary.rb +10 -2
- data/lib/oci/waas/models/change_address_list_compartment_details.rb +154 -0
- data/lib/oci/waas/models/change_custom_protection_rule_compartment_details.rb +154 -0
- data/lib/oci/waas/models/create_address_list_details.rb +213 -0
- data/lib/oci/waas/models/create_certificate_details.rb +22 -3
- data/lib/oci/waas/models/create_custom_protection_rule_details.rb +251 -0
- data/lib/oci/waas/models/create_waas_policy_details.rb +26 -4
- data/lib/oci/waas/models/custom_protection_rule.rb +326 -0
- data/lib/oci/waas/models/custom_protection_rule_setting.rb +180 -0
- data/lib/oci/waas/models/custom_protection_rule_summary.rb +279 -0
- data/lib/oci/waas/models/origin_group.rb +149 -0
- data/lib/oci/waas/models/origin_group_origins.rb +159 -0
- data/lib/oci/waas/models/policy_config.rb +201 -4
- data/lib/oci/waas/models/protection_rule_exclusion.rb +2 -2
- data/lib/oci/waas/models/purge_cache.rb +149 -0
- data/lib/oci/waas/models/update_address_list_details.rb +199 -0
- data/lib/oci/waas/models/update_certificate_details.rb +10 -2
- data/lib/oci/waas/models/update_custom_protection_rule_details.rb +237 -0
- data/lib/oci/waas/models/update_waas_policy_details.rb +26 -4
- data/lib/oci/waas/models/waas_policy.rb +25 -3
- data/lib/oci/waas/models/waas_policy_custom_protection_rule_summary.rb +207 -0
- data/lib/oci/waas/models/waas_policy_summary.rb +10 -2
- data/lib/oci/waas/models/waf_config.rb +43 -1
- data/lib/oci/waas/models/waf_config_details.rb +43 -1
- data/lib/oci/waas/models/waf_log.rb +3 -3
- data/lib/oci/waas/models/work_request.rb +4 -1
- data/lib/oci/waas/models/work_request_operation_types.rb +4 -1
- data/lib/oci/waas/models/work_request_summary.rb +4 -1
- data/lib/oci/waas/waas.rb +19 -0
- data/lib/oci/waas/waas_client.rb +1147 -61
- data/lib/oci/waas/waas_client_composite_operations.rb +386 -0
- metadata +90 -2
@@ -6,12 +6,15 @@ require 'date'
|
|
6
6
|
module OCI
|
7
7
|
# CertificateExtensions model.
|
8
8
|
class Waas::Models::CertificateExtensions
|
9
|
+
# The certificate extension name.
|
9
10
|
# @return [String]
|
10
11
|
attr_accessor :name
|
11
12
|
|
13
|
+
# The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
|
12
14
|
# @return [BOOLEAN]
|
13
15
|
attr_accessor :is_critical
|
14
16
|
|
17
|
+
# The certificate extension value.
|
15
18
|
# @return [String]
|
16
19
|
attr_accessor :value
|
17
20
|
|
@@ -0,0 +1,225 @@
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
6
|
+
module OCI
|
7
|
+
# The issuer of the certificate.
|
8
|
+
class Waas::Models::CertificateIssuerName
|
9
|
+
# ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see [ISO's website](https://www.iso.org/obp/ui/#search/code/).
|
10
|
+
# @return [String]
|
11
|
+
attr_accessor :country
|
12
|
+
|
13
|
+
# The province where the organization is located.
|
14
|
+
# @return [String]
|
15
|
+
attr_accessor :state_province
|
16
|
+
|
17
|
+
# The city in which the organization is located.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :locality
|
20
|
+
|
21
|
+
# The organization name.
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :organization
|
24
|
+
|
25
|
+
# The field to differentiate between divisions within an organization.
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :organizational_unit
|
28
|
+
|
29
|
+
# The Certificate Authority (CA) name.
|
30
|
+
# @return [String]
|
31
|
+
attr_accessor :common_name
|
32
|
+
|
33
|
+
# The email address of the server's administrator.
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :email_address
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
# rubocop:disable Style/SymbolLiteral
|
41
|
+
'country': :'country',
|
42
|
+
'state_province': :'stateProvince',
|
43
|
+
'locality': :'locality',
|
44
|
+
'organization': :'organization',
|
45
|
+
'organizational_unit': :'organizationalUnit',
|
46
|
+
'common_name': :'commonName',
|
47
|
+
'email_address': :'emailAddress'
|
48
|
+
# rubocop:enable Style/SymbolLiteral
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# Attribute type mapping.
|
53
|
+
def self.swagger_types
|
54
|
+
{
|
55
|
+
# rubocop:disable Style/SymbolLiteral
|
56
|
+
'country': :'String',
|
57
|
+
'state_province': :'String',
|
58
|
+
'locality': :'String',
|
59
|
+
'organization': :'String',
|
60
|
+
'organizational_unit': :'String',
|
61
|
+
'common_name': :'String',
|
62
|
+
'email_address': :'String'
|
63
|
+
# rubocop:enable Style/SymbolLiteral
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
68
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
69
|
+
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
# @option attributes [String] :country The value to assign to the {#country} property
|
74
|
+
# @option attributes [String] :state_province The value to assign to the {#state_province} property
|
75
|
+
# @option attributes [String] :locality The value to assign to the {#locality} property
|
76
|
+
# @option attributes [String] :organization The value to assign to the {#organization} property
|
77
|
+
# @option attributes [String] :organizational_unit The value to assign to the {#organizational_unit} property
|
78
|
+
# @option attributes [String] :common_name The value to assign to the {#common_name} property
|
79
|
+
# @option attributes [String] :email_address The value to assign to the {#email_address} property
|
80
|
+
def initialize(attributes = {})
|
81
|
+
return unless attributes.is_a?(Hash)
|
82
|
+
|
83
|
+
# convert string to symbol for hash key
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
85
|
+
|
86
|
+
self.country = attributes[:'country'] if attributes[:'country']
|
87
|
+
|
88
|
+
self.state_province = attributes[:'stateProvince'] if attributes[:'stateProvince']
|
89
|
+
|
90
|
+
raise 'You cannot provide both :stateProvince and :state_province' if attributes.key?(:'stateProvince') && attributes.key?(:'state_province')
|
91
|
+
|
92
|
+
self.state_province = attributes[:'state_province'] if attributes[:'state_province']
|
93
|
+
|
94
|
+
self.locality = attributes[:'locality'] if attributes[:'locality']
|
95
|
+
|
96
|
+
self.organization = attributes[:'organization'] if attributes[:'organization']
|
97
|
+
|
98
|
+
self.organizational_unit = attributes[:'organizationalUnit'] if attributes[:'organizationalUnit']
|
99
|
+
|
100
|
+
raise 'You cannot provide both :organizationalUnit and :organizational_unit' if attributes.key?(:'organizationalUnit') && attributes.key?(:'organizational_unit')
|
101
|
+
|
102
|
+
self.organizational_unit = attributes[:'organizational_unit'] if attributes[:'organizational_unit']
|
103
|
+
|
104
|
+
self.common_name = attributes[:'commonName'] if attributes[:'commonName']
|
105
|
+
|
106
|
+
raise 'You cannot provide both :commonName and :common_name' if attributes.key?(:'commonName') && attributes.key?(:'common_name')
|
107
|
+
|
108
|
+
self.common_name = attributes[:'common_name'] if attributes[:'common_name']
|
109
|
+
|
110
|
+
self.email_address = attributes[:'emailAddress'] if attributes[:'emailAddress']
|
111
|
+
|
112
|
+
raise 'You cannot provide both :emailAddress and :email_address' if attributes.key?(:'emailAddress') && attributes.key?(:'email_address')
|
113
|
+
|
114
|
+
self.email_address = attributes[:'email_address'] if attributes[:'email_address']
|
115
|
+
end
|
116
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
117
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
118
|
+
|
119
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
120
|
+
|
121
|
+
|
122
|
+
# Checks equality by comparing each attribute.
|
123
|
+
# @param [Object] other the other object to be compared
|
124
|
+
def ==(other)
|
125
|
+
return true if equal?(other)
|
126
|
+
|
127
|
+
self.class == other.class &&
|
128
|
+
country == other.country &&
|
129
|
+
state_province == other.state_province &&
|
130
|
+
locality == other.locality &&
|
131
|
+
organization == other.organization &&
|
132
|
+
organizational_unit == other.organizational_unit &&
|
133
|
+
common_name == other.common_name &&
|
134
|
+
email_address == other.email_address
|
135
|
+
end
|
136
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
137
|
+
|
138
|
+
# @see the `==` method
|
139
|
+
# @param [Object] other the other object to be compared
|
140
|
+
def eql?(other)
|
141
|
+
self == other
|
142
|
+
end
|
143
|
+
|
144
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
145
|
+
|
146
|
+
|
147
|
+
# Calculates hash code according to all attributes.
|
148
|
+
# @return [Fixnum] Hash code
|
149
|
+
def hash
|
150
|
+
[country, state_province, locality, organization, organizational_unit, common_name, email_address].hash
|
151
|
+
end
|
152
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
153
|
+
|
154
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
155
|
+
|
156
|
+
|
157
|
+
# Builds the object from hash
|
158
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
159
|
+
# @return [Object] Returns the model itself
|
160
|
+
def build_from_hash(attributes)
|
161
|
+
return nil unless attributes.is_a?(Hash)
|
162
|
+
|
163
|
+
self.class.swagger_types.each_pair do |key, type|
|
164
|
+
if type =~ /^Array<(.*)>/i
|
165
|
+
# check to ensure the input is an array given that the the attribute
|
166
|
+
# is documented as an array but the input is not
|
167
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
168
|
+
public_method("#{key}=").call(
|
169
|
+
attributes[self.class.attribute_map[key]]
|
170
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
171
|
+
)
|
172
|
+
end
|
173
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
174
|
+
public_method("#{key}=").call(
|
175
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
176
|
+
)
|
177
|
+
end
|
178
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
179
|
+
end
|
180
|
+
|
181
|
+
self
|
182
|
+
end
|
183
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
184
|
+
|
185
|
+
# Returns the string representation of the object
|
186
|
+
# @return [String] String presentation of the object
|
187
|
+
def to_s
|
188
|
+
to_hash.to_s
|
189
|
+
end
|
190
|
+
|
191
|
+
# Returns the object in the form of hash
|
192
|
+
# @return [Hash] Returns the object in the form of hash
|
193
|
+
def to_hash
|
194
|
+
hash = {}
|
195
|
+
self.class.attribute_map.each_pair do |attr, param|
|
196
|
+
value = public_method(attr).call
|
197
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
198
|
+
|
199
|
+
hash[param] = _to_hash(value)
|
200
|
+
end
|
201
|
+
hash
|
202
|
+
end
|
203
|
+
|
204
|
+
private
|
205
|
+
|
206
|
+
# Outputs non-array value in the form of hash
|
207
|
+
# For object, use to_hash. Otherwise, just return the value
|
208
|
+
# @param [Object] value Any valid value
|
209
|
+
# @return [Hash] Returns the value in the form of hash
|
210
|
+
def _to_hash(value)
|
211
|
+
if value.is_a?(Array)
|
212
|
+
value.compact.map { |v| _to_hash(v) }
|
213
|
+
elsif value.is_a?(Hash)
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
216
|
+
end
|
217
|
+
elsif value.respond_to? :to_hash
|
218
|
+
value.to_hash
|
219
|
+
else
|
220
|
+
value
|
221
|
+
end
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|
225
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -4,14 +4,17 @@ require 'date'
|
|
4
4
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
6
6
|
module OCI
|
7
|
-
#
|
7
|
+
# Information about the public key and the algorithm used by the public key.
|
8
8
|
class Waas::Models::CertificatePublicKeyInfo
|
9
|
+
# The algorithm identifier and parameters for the public key.
|
9
10
|
# @return [String]
|
10
11
|
attr_accessor :algorithm
|
11
12
|
|
13
|
+
# The private key exponent.
|
12
14
|
# @return [Integer]
|
13
15
|
attr_accessor :exponent
|
14
16
|
|
17
|
+
# The number of bits in a key used by a cryptographic algorithm.
|
15
18
|
# @return [Integer]
|
16
19
|
attr_accessor :key_size
|
17
20
|
|
@@ -4,26 +4,33 @@ require 'date'
|
|
4
4
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
6
6
|
module OCI
|
7
|
-
#
|
7
|
+
# The entity to be secured by the certificate.
|
8
8
|
class Waas::Models::CertificateSubjectName
|
9
|
+
# ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see [ISO's website](https://www.iso.org/obp/ui/#search/code/).
|
9
10
|
# @return [String]
|
10
11
|
attr_accessor :country
|
11
12
|
|
13
|
+
# The province where the organization is located.
|
12
14
|
# @return [String]
|
13
15
|
attr_accessor :state_province
|
14
16
|
|
17
|
+
# The city in which the organization is located.
|
15
18
|
# @return [String]
|
16
19
|
attr_accessor :locality
|
17
20
|
|
21
|
+
# The organization name.
|
18
22
|
# @return [String]
|
19
23
|
attr_accessor :organization
|
20
24
|
|
25
|
+
# The field to differentiate between divisions within an organization.
|
21
26
|
# @return [String]
|
22
27
|
attr_accessor :organizational_unit
|
23
28
|
|
29
|
+
# The fully qualified domain name used for DNS lookups of the server.
|
24
30
|
# @return [String]
|
25
31
|
attr_accessor :common_name
|
26
32
|
|
33
|
+
# The email address of the server's administrator.
|
27
34
|
# @return [String]
|
28
35
|
attr_accessor :email_address
|
29
36
|
|
@@ -34,11 +34,19 @@ module OCI
|
|
34
34
|
# @return [DateTime]
|
35
35
|
attr_accessor :time_not_valid_after
|
36
36
|
|
37
|
-
#
|
37
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
38
|
+
# For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
39
|
+
#
|
40
|
+
# Example: `{\"Department\": \"Finance\"}`
|
41
|
+
#
|
38
42
|
# @return [Hash<String, String>]
|
39
43
|
attr_accessor :freeform_tags
|
40
44
|
|
41
|
-
#
|
45
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
46
|
+
# For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
47
|
+
#
|
48
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
49
|
+
#
|
42
50
|
# @return [Hash<String, Hash<String, Object>>]
|
43
51
|
attr_accessor :defined_tags
|
44
52
|
|
@@ -0,0 +1,154 @@
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
6
|
+
module OCI
|
7
|
+
# ChangeAddressListCompartmentDetails model.
|
8
|
+
class Waas::Models::ChangeAddressListCompartmentDetails
|
9
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment into which the resource should be moved.
|
10
|
+
#
|
11
|
+
# @return [String]
|
12
|
+
attr_accessor :compartment_id
|
13
|
+
|
14
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
15
|
+
def self.attribute_map
|
16
|
+
{
|
17
|
+
# rubocop:disable Style/SymbolLiteral
|
18
|
+
'compartment_id': :'compartmentId'
|
19
|
+
# rubocop:enable Style/SymbolLiteral
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
# Attribute type mapping.
|
24
|
+
def self.swagger_types
|
25
|
+
{
|
26
|
+
# rubocop:disable Style/SymbolLiteral
|
27
|
+
'compartment_id': :'String'
|
28
|
+
# rubocop:enable Style/SymbolLiteral
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
33
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
34
|
+
|
35
|
+
|
36
|
+
# Initializes the object
|
37
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
38
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return unless attributes.is_a?(Hash)
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
|
+
|
45
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
46
|
+
|
47
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
48
|
+
|
49
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
50
|
+
end
|
51
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
52
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
53
|
+
|
54
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
55
|
+
|
56
|
+
|
57
|
+
# Checks equality by comparing each attribute.
|
58
|
+
# @param [Object] other the other object to be compared
|
59
|
+
def ==(other)
|
60
|
+
return true if equal?(other)
|
61
|
+
|
62
|
+
self.class == other.class &&
|
63
|
+
compartment_id == other.compartment_id
|
64
|
+
end
|
65
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
66
|
+
|
67
|
+
# @see the `==` method
|
68
|
+
# @param [Object] other the other object to be compared
|
69
|
+
def eql?(other)
|
70
|
+
self == other
|
71
|
+
end
|
72
|
+
|
73
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
74
|
+
|
75
|
+
|
76
|
+
# Calculates hash code according to all attributes.
|
77
|
+
# @return [Fixnum] Hash code
|
78
|
+
def hash
|
79
|
+
[compartment_id].hash
|
80
|
+
end
|
81
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
82
|
+
|
83
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
84
|
+
|
85
|
+
|
86
|
+
# Builds the object from hash
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
88
|
+
# @return [Object] Returns the model itself
|
89
|
+
def build_from_hash(attributes)
|
90
|
+
return nil unless attributes.is_a?(Hash)
|
91
|
+
|
92
|
+
self.class.swagger_types.each_pair do |key, type|
|
93
|
+
if type =~ /^Array<(.*)>/i
|
94
|
+
# check to ensure the input is an array given that the the attribute
|
95
|
+
# is documented as an array but the input is not
|
96
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
97
|
+
public_method("#{key}=").call(
|
98
|
+
attributes[self.class.attribute_map[key]]
|
99
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
100
|
+
)
|
101
|
+
end
|
102
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
103
|
+
public_method("#{key}=").call(
|
104
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
105
|
+
)
|
106
|
+
end
|
107
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
108
|
+
end
|
109
|
+
|
110
|
+
self
|
111
|
+
end
|
112
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
113
|
+
|
114
|
+
# Returns the string representation of the object
|
115
|
+
# @return [String] String presentation of the object
|
116
|
+
def to_s
|
117
|
+
to_hash.to_s
|
118
|
+
end
|
119
|
+
|
120
|
+
# Returns the object in the form of hash
|
121
|
+
# @return [Hash] Returns the object in the form of hash
|
122
|
+
def to_hash
|
123
|
+
hash = {}
|
124
|
+
self.class.attribute_map.each_pair do |attr, param|
|
125
|
+
value = public_method(attr).call
|
126
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
127
|
+
|
128
|
+
hash[param] = _to_hash(value)
|
129
|
+
end
|
130
|
+
hash
|
131
|
+
end
|
132
|
+
|
133
|
+
private
|
134
|
+
|
135
|
+
# Outputs non-array value in the form of hash
|
136
|
+
# For object, use to_hash. Otherwise, just return the value
|
137
|
+
# @param [Object] value Any valid value
|
138
|
+
# @return [Hash] Returns the value in the form of hash
|
139
|
+
def _to_hash(value)
|
140
|
+
if value.is_a?(Array)
|
141
|
+
value.compact.map { |v| _to_hash(v) }
|
142
|
+
elsif value.is_a?(Hash)
|
143
|
+
{}.tap do |hash|
|
144
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
145
|
+
end
|
146
|
+
elsif value.respond_to? :to_hash
|
147
|
+
value.to_hash
|
148
|
+
else
|
149
|
+
value
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|