oci 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -1
- data/lib/oci.rb +4 -7
- data/lib/oci/api_client.rb +51 -6
- data/lib/oci/auth/auth.rb +5 -2
- data/lib/oci/auth/federation_client.rb +2 -2
- data/lib/oci/auth/internal/auth_token_request_signer.rb +2 -2
- data/lib/oci/auth/security_token_container.rb +2 -2
- data/lib/oci/auth/session_key_supplier.rb +3 -4
- data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +30 -17
- data/lib/oci/auth/signers/security_token_signer.rb +13 -6
- data/lib/oci/auth/signers/x509_federation_client_based_security_token_signer.rb +8 -4
- data/lib/oci/auth/url_based_certificate_retriever.rb +3 -4
- data/lib/oci/auth/util.rb +6 -4
- data/lib/oci/base_signer.rb +54 -50
- data/lib/oci/config_file_loader.rb +3 -11
- data/lib/oci/core/blockstorage_client.rb +211 -0
- data/lib/oci/core/compute_client.rb +4 -2
- data/lib/oci/core/core.rb +9 -0
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +5 -1
- data/lib/oci/core/models/attach_volume_details.rb +13 -1
- data/lib/oci/core/models/create_public_ip_details.rb +186 -0
- data/lib/oci/core/models/create_vnic_details.rb +8 -2
- data/lib/oci/core/models/create_volume_backup_details.rb +27 -1
- data/lib/oci/core/models/create_volume_backup_policy_assignment_details.rb +133 -0
- data/lib/oci/core/models/create_volume_details.rb +15 -1
- data/lib/oci/core/models/get_public_ip_by_ip_address_details.rb +125 -0
- data/lib/oci/core/models/get_public_ip_by_private_ip_id_details.rb +124 -0
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -1
- data/lib/oci/core/models/public_ip.rb +328 -0
- data/lib/oci/core/models/update_public_ip_details.rb +140 -0
- data/lib/oci/core/models/volume_attachment.rb +13 -1
- data/lib/oci/core/models/volume_backup.rb +72 -1
- data/lib/oci/core/models/volume_backup_policy.rb +161 -0
- data/lib/oci/core/models/volume_backup_policy_assignment.rb +159 -0
- data/lib/oci/core/models/volume_backup_schedule.rb +191 -0
- data/lib/oci/core/virtual_network_client.rb +374 -4
- data/lib/oci/database/database_client.rb +3 -1
- data/lib/oci/dns/dns.rb +34 -0
- data/lib/oci/dns/dns_client.rb +985 -0
- data/lib/oci/dns/models/create_zone_details.rb +174 -0
- data/lib/oci/dns/models/external_master.rb +145 -0
- data/lib/oci/dns/models/patch_domain_records_details.rb +120 -0
- data/lib/oci/dns/models/patch_rr_set_details.rb +120 -0
- data/lib/oci/dns/models/patch_zone_records_details.rb +120 -0
- data/lib/oci/dns/models/record.rb +204 -0
- data/lib/oci/dns/models/record_collection.rb +121 -0
- data/lib/oci/dns/models/record_details.rb +204 -0
- data/lib/oci/dns/models/record_operation.rb +253 -0
- data/lib/oci/dns/models/rr_set.rb +123 -0
- data/lib/oci/dns/models/sort_order.rb +12 -0
- data/lib/oci/dns/models/tsig.rb +149 -0
- data/lib/oci/dns/models/update_domain_records_details.rb +120 -0
- data/lib/oci/dns/models/update_rr_set_details.rb +120 -0
- data/lib/oci/dns/models/update_zone_details.rb +122 -0
- data/lib/oci/dns/models/update_zone_records_details.rb +120 -0
- data/lib/oci/dns/models/zone.rb +272 -0
- data/lib/oci/dns/models/zone_summary.rb +230 -0
- data/lib/oci/dns/util.rb +2 -0
- data/lib/oci/errors.rb +20 -0
- data/lib/oci/identity/identity_client.rb +1 -0
- data/lib/oci/identity/models/create_dynamic_group_details.rb +4 -2
- data/lib/oci/identity/models/dynamic_group.rb +9 -6
- data/lib/oci/identity/models/update_dynamic_group_details.rb +4 -2
- data/lib/oci/load_balancer/load_balancer.rb +6 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +219 -0
- data/lib/oci/load_balancer/models/create_listener_details.rb +17 -1
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +12 -1
- data/lib/oci/load_balancer/models/create_path_route_set_details.rb +138 -0
- data/lib/oci/load_balancer/models/listener.rb +17 -1
- data/lib/oci/load_balancer/models/listener_details.rb +17 -1
- data/lib/oci/load_balancer/models/load_balancer.rb +12 -1
- data/lib/oci/load_balancer/models/path_match_type.rb +153 -0
- data/lib/oci/load_balancer/models/path_route.rb +161 -0
- data/lib/oci/load_balancer/models/path_route_set.rb +139 -0
- data/lib/oci/load_balancer/models/path_route_set_details.rb +122 -0
- data/lib/oci/load_balancer/models/update_listener_details.rb +17 -1
- data/lib/oci/load_balancer/models/update_path_route_set_details.rb +122 -0
- data/lib/oci/load_balancer/util.rb +1 -3
- data/lib/oci/object_storage/transfer/multipart/internal/file_part_io_wrapper.rb +111 -0
- data/lib/oci/object_storage/transfer/multipart/internal/multipart_upload_parts_collection.rb +41 -0
- data/lib/oci/object_storage/transfer/multipart/internal/seekable_non_file_part_io_wrapper.rb +48 -0
- data/lib/oci/object_storage/transfer/multipart/internal/stdin_part_io_wrapper.rb +54 -0
- data/lib/oci/object_storage/transfer/multipart/multipart_object_assembler.rb +545 -0
- data/lib/oci/object_storage/transfer/transfer.rb +31 -0
- data/lib/oci/object_storage/transfer/upload_manager.rb +212 -0
- data/lib/oci/object_storage/transfer/upload_manager_config.rb +60 -0
- data/lib/oci/regions.rb +3 -1
- data/lib/oci/response.rb +1 -3
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waiter.rb +16 -11
- data/lib/oraclebmc.rb +1 -1
- metadata +46 -2
@@ -0,0 +1,161 @@
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module OCI
|
6
|
+
# A \"path route rule\" to evaluate an incoming URI path, and then route a matching request to the specified backend set.
|
7
|
+
#
|
8
|
+
# Path route rules apply only to HTTP and HTTPS requests. They have no effect on TCP requests.
|
9
|
+
#
|
10
|
+
class LoadBalancer::Models::PathRoute
|
11
|
+
# **[Required]** The name of the target backend set for requests where the incoming URI matches the specified path.
|
12
|
+
#
|
13
|
+
# Example: `My_backend_set`
|
14
|
+
#
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :backend_set_name
|
17
|
+
|
18
|
+
# **[Required]** The path string to match against the incoming URI path.
|
19
|
+
#
|
20
|
+
# * Path strings are case-insensitive.
|
21
|
+
#
|
22
|
+
# * Asterisk (*) wildcards are not supported.
|
23
|
+
#
|
24
|
+
# * Regular expressions are not supported.
|
25
|
+
#
|
26
|
+
# Example: `/example/video/123`
|
27
|
+
#
|
28
|
+
# @return [String]
|
29
|
+
attr_accessor :path
|
30
|
+
|
31
|
+
# **[Required]** The type of matching to apply to incoming URIs.
|
32
|
+
# @return [OCI::LoadBalancer::Models::PathMatchType]
|
33
|
+
attr_accessor :path_match_type
|
34
|
+
|
35
|
+
|
36
|
+
# Initializes the object
|
37
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
38
|
+
# @option attributes [String] :backendSetName The value to assign to the {#backend_set_name} property
|
39
|
+
# @option attributes [String] :path The value to assign to the {#path} property
|
40
|
+
# @option attributes [OCI::LoadBalancer::Models::PathMatchType] :pathMatchType The value to assign to the {#path_match_type} property
|
41
|
+
def initialize(attributes = {})
|
42
|
+
return unless attributes.is_a?(Hash)
|
43
|
+
|
44
|
+
# convert string to symbol for hash key
|
45
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
46
|
+
|
47
|
+
if attributes[:'backendSetName']
|
48
|
+
self.backend_set_name = attributes[:'backendSetName']
|
49
|
+
end
|
50
|
+
|
51
|
+
if attributes[:'path']
|
52
|
+
self.path = attributes[:'path']
|
53
|
+
end
|
54
|
+
|
55
|
+
if attributes[:'pathMatchType']
|
56
|
+
self.path_match_type = attributes[:'pathMatchType']
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
# Checks equality by comparing each attribute.
|
62
|
+
# @param [Object] other_object to be compared
|
63
|
+
def ==(other_object)
|
64
|
+
return true if self.equal?(other_object)
|
65
|
+
self.class == other_object.class &&
|
66
|
+
backend_set_name == other_object.backend_set_name &&
|
67
|
+
path == other_object.path &&
|
68
|
+
path_match_type == other_object.path_match_type
|
69
|
+
end
|
70
|
+
|
71
|
+
# @see the `==` method
|
72
|
+
# @param [Object] other_object to be compared
|
73
|
+
def eql?(other_object)
|
74
|
+
self == other_object
|
75
|
+
end
|
76
|
+
|
77
|
+
# Calculates hash code according to all attributes.
|
78
|
+
# @return [Fixnum] Hash code
|
79
|
+
def hash
|
80
|
+
[backend_set_name, path, path_match_type].hash
|
81
|
+
end
|
82
|
+
|
83
|
+
# Builds the object from hash
|
84
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
85
|
+
# @return [Object] Returns the model itself
|
86
|
+
def build_from_hash(attributes)
|
87
|
+
return nil unless attributes.is_a?(Hash)
|
88
|
+
self.class.swagger_types.each_pair do |key, type|
|
89
|
+
if type =~ /^Array<(.*)>/i
|
90
|
+
# check to ensure the input is an array given that the the attribute
|
91
|
+
# is documented as an array but the input is not
|
92
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
93
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
94
|
+
end
|
95
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
96
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
97
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
98
|
+
end
|
99
|
+
|
100
|
+
self
|
101
|
+
end
|
102
|
+
|
103
|
+
# Returns the string representation of the object
|
104
|
+
# @return [String] String presentation of the object
|
105
|
+
def to_s
|
106
|
+
to_hash.to_s
|
107
|
+
end
|
108
|
+
|
109
|
+
# Returns the object in the form of hash
|
110
|
+
# @return [Hash] Returns the object in the form of hash
|
111
|
+
def to_hash
|
112
|
+
hash = {}
|
113
|
+
self.class.attribute_map.each_pair do |attr, param|
|
114
|
+
value = public_method(attr).call
|
115
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
116
|
+
hash[param] = _to_hash(value)
|
117
|
+
end
|
118
|
+
hash
|
119
|
+
end
|
120
|
+
|
121
|
+
private
|
122
|
+
|
123
|
+
# Outputs non-array value in the form of hash
|
124
|
+
# For object, use to_hash. Otherwise, just return the value
|
125
|
+
# @param [Object] value Any valid value
|
126
|
+
# @return [Hash] Returns the value in the form of hash
|
127
|
+
def _to_hash(value)
|
128
|
+
if value.is_a?(Array)
|
129
|
+
value.compact.map{ |v| _to_hash(v) }
|
130
|
+
elsif value.is_a?(Hash)
|
131
|
+
{}.tap do |hash|
|
132
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
133
|
+
end
|
134
|
+
elsif value.respond_to? :to_hash
|
135
|
+
value.to_hash
|
136
|
+
else
|
137
|
+
value
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
144
|
+
def self.attribute_map
|
145
|
+
{
|
146
|
+
:'backend_set_name' => :'backendSetName',
|
147
|
+
:'path' => :'path',
|
148
|
+
:'path_match_type' => :'pathMatchType'
|
149
|
+
}
|
150
|
+
end
|
151
|
+
|
152
|
+
# Attribute type mapping.
|
153
|
+
def self.swagger_types
|
154
|
+
{
|
155
|
+
:'backend_set_name' => :'String',
|
156
|
+
:'path' => :'String',
|
157
|
+
:'path_match_type' => :'OCI::LoadBalancer::Models::PathMatchType'
|
158
|
+
}
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module OCI
|
6
|
+
# A named set of path route rules. For more information, see
|
7
|
+
# [Managing Request Routing](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingrequest.htm).
|
8
|
+
#
|
9
|
+
class LoadBalancer::Models::PathRouteSet
|
10
|
+
# **[Required]** The unique name for this set of path route rules. Avoid entering confidential information.
|
11
|
+
#
|
12
|
+
# Example: `path-route-set-001`
|
13
|
+
#
|
14
|
+
# @return [String]
|
15
|
+
attr_accessor :name
|
16
|
+
|
17
|
+
# **[Required]** The set of path route rules.
|
18
|
+
# @return [Array<OCI::LoadBalancer::Models::PathRoute>]
|
19
|
+
attr_accessor :path_routes
|
20
|
+
|
21
|
+
|
22
|
+
# Initializes the object
|
23
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
24
|
+
# @option attributes [String] :name The value to assign to the {#name} property
|
25
|
+
# @option attributes [Array<OCI::LoadBalancer::Models::PathRoute>] :pathRoutes The value to assign to the {#path_routes} property
|
26
|
+
def initialize(attributes = {})
|
27
|
+
return unless attributes.is_a?(Hash)
|
28
|
+
|
29
|
+
# convert string to symbol for hash key
|
30
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
31
|
+
|
32
|
+
if attributes[:'name']
|
33
|
+
self.name = attributes[:'name']
|
34
|
+
end
|
35
|
+
|
36
|
+
if attributes[:'pathRoutes']
|
37
|
+
self.path_routes = attributes[:'pathRoutes']
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
# Checks equality by comparing each attribute.
|
43
|
+
# @param [Object] other_object to be compared
|
44
|
+
def ==(other_object)
|
45
|
+
return true if self.equal?(other_object)
|
46
|
+
self.class == other_object.class &&
|
47
|
+
name == other_object.name &&
|
48
|
+
path_routes == other_object.path_routes
|
49
|
+
end
|
50
|
+
|
51
|
+
# @see the `==` method
|
52
|
+
# @param [Object] other_object to be compared
|
53
|
+
def eql?(other_object)
|
54
|
+
self == other_object
|
55
|
+
end
|
56
|
+
|
57
|
+
# Calculates hash code according to all attributes.
|
58
|
+
# @return [Fixnum] Hash code
|
59
|
+
def hash
|
60
|
+
[name, path_routes].hash
|
61
|
+
end
|
62
|
+
|
63
|
+
# Builds the object from hash
|
64
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
65
|
+
# @return [Object] Returns the model itself
|
66
|
+
def build_from_hash(attributes)
|
67
|
+
return nil unless attributes.is_a?(Hash)
|
68
|
+
self.class.swagger_types.each_pair do |key, type|
|
69
|
+
if type =~ /^Array<(.*)>/i
|
70
|
+
# check to ensure the input is an array given that the the attribute
|
71
|
+
# is documented as an array but the input is not
|
72
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
73
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
74
|
+
end
|
75
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
76
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
77
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
78
|
+
end
|
79
|
+
|
80
|
+
self
|
81
|
+
end
|
82
|
+
|
83
|
+
# Returns the string representation of the object
|
84
|
+
# @return [String] String presentation of the object
|
85
|
+
def to_s
|
86
|
+
to_hash.to_s
|
87
|
+
end
|
88
|
+
|
89
|
+
# Returns the object in the form of hash
|
90
|
+
# @return [Hash] Returns the object in the form of hash
|
91
|
+
def to_hash
|
92
|
+
hash = {}
|
93
|
+
self.class.attribute_map.each_pair do |attr, param|
|
94
|
+
value = public_method(attr).call
|
95
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
96
|
+
hash[param] = _to_hash(value)
|
97
|
+
end
|
98
|
+
hash
|
99
|
+
end
|
100
|
+
|
101
|
+
private
|
102
|
+
|
103
|
+
# Outputs non-array value in the form of hash
|
104
|
+
# For object, use to_hash. Otherwise, just return the value
|
105
|
+
# @param [Object] value Any valid value
|
106
|
+
# @return [Hash] Returns the value in the form of hash
|
107
|
+
def _to_hash(value)
|
108
|
+
if value.is_a?(Array)
|
109
|
+
value.compact.map{ |v| _to_hash(v) }
|
110
|
+
elsif value.is_a?(Hash)
|
111
|
+
{}.tap do |hash|
|
112
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
113
|
+
end
|
114
|
+
elsif value.respond_to? :to_hash
|
115
|
+
value.to_hash
|
116
|
+
else
|
117
|
+
value
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
124
|
+
def self.attribute_map
|
125
|
+
{
|
126
|
+
:'name' => :'name',
|
127
|
+
:'path_routes' => :'pathRoutes'
|
128
|
+
}
|
129
|
+
end
|
130
|
+
|
131
|
+
# Attribute type mapping.
|
132
|
+
def self.swagger_types
|
133
|
+
{
|
134
|
+
:'name' => :'String',
|
135
|
+
:'path_routes' => :'Array<OCI::LoadBalancer::Models::PathRoute>'
|
136
|
+
}
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
@@ -0,0 +1,122 @@
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module OCI
|
6
|
+
# A set of path route rules.
|
7
|
+
class LoadBalancer::Models::PathRouteSetDetails
|
8
|
+
# **[Required]** The set of path route rules.
|
9
|
+
# @return [Array<OCI::LoadBalancer::Models::PathRoute>]
|
10
|
+
attr_accessor :path_routes
|
11
|
+
|
12
|
+
|
13
|
+
# Initializes the object
|
14
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
15
|
+
# @option attributes [Array<OCI::LoadBalancer::Models::PathRoute>] :pathRoutes The value to assign to the {#path_routes} property
|
16
|
+
def initialize(attributes = {})
|
17
|
+
return unless attributes.is_a?(Hash)
|
18
|
+
|
19
|
+
# convert string to symbol for hash key
|
20
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
21
|
+
|
22
|
+
if attributes[:'pathRoutes']
|
23
|
+
self.path_routes = attributes[:'pathRoutes']
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
# Checks equality by comparing each attribute.
|
29
|
+
# @param [Object] other_object to be compared
|
30
|
+
def ==(other_object)
|
31
|
+
return true if self.equal?(other_object)
|
32
|
+
self.class == other_object.class &&
|
33
|
+
path_routes == other_object.path_routes
|
34
|
+
end
|
35
|
+
|
36
|
+
# @see the `==` method
|
37
|
+
# @param [Object] other_object to be compared
|
38
|
+
def eql?(other_object)
|
39
|
+
self == other_object
|
40
|
+
end
|
41
|
+
|
42
|
+
# Calculates hash code according to all attributes.
|
43
|
+
# @return [Fixnum] Hash code
|
44
|
+
def hash
|
45
|
+
[path_routes].hash
|
46
|
+
end
|
47
|
+
|
48
|
+
# Builds the object from hash
|
49
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
50
|
+
# @return [Object] Returns the model itself
|
51
|
+
def build_from_hash(attributes)
|
52
|
+
return nil unless attributes.is_a?(Hash)
|
53
|
+
self.class.swagger_types.each_pair do |key, type|
|
54
|
+
if type =~ /^Array<(.*)>/i
|
55
|
+
# check to ensure the input is an array given that the the attribute
|
56
|
+
# is documented as an array but the input is not
|
57
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
58
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
59
|
+
end
|
60
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
61
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
62
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
63
|
+
end
|
64
|
+
|
65
|
+
self
|
66
|
+
end
|
67
|
+
|
68
|
+
# Returns the string representation of the object
|
69
|
+
# @return [String] String presentation of the object
|
70
|
+
def to_s
|
71
|
+
to_hash.to_s
|
72
|
+
end
|
73
|
+
|
74
|
+
# Returns the object in the form of hash
|
75
|
+
# @return [Hash] Returns the object in the form of hash
|
76
|
+
def to_hash
|
77
|
+
hash = {}
|
78
|
+
self.class.attribute_map.each_pair do |attr, param|
|
79
|
+
value = public_method(attr).call
|
80
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
81
|
+
hash[param] = _to_hash(value)
|
82
|
+
end
|
83
|
+
hash
|
84
|
+
end
|
85
|
+
|
86
|
+
private
|
87
|
+
|
88
|
+
# Outputs non-array value in the form of hash
|
89
|
+
# For object, use to_hash. Otherwise, just return the value
|
90
|
+
# @param [Object] value Any valid value
|
91
|
+
# @return [Hash] Returns the value in the form of hash
|
92
|
+
def _to_hash(value)
|
93
|
+
if value.is_a?(Array)
|
94
|
+
value.compact.map{ |v| _to_hash(v) }
|
95
|
+
elsif value.is_a?(Hash)
|
96
|
+
{}.tap do |hash|
|
97
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
98
|
+
end
|
99
|
+
elsif value.respond_to? :to_hash
|
100
|
+
value.to_hash
|
101
|
+
else
|
102
|
+
value
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
109
|
+
def self.attribute_map
|
110
|
+
{
|
111
|
+
:'path_routes' => :'pathRoutes'
|
112
|
+
}
|
113
|
+
end
|
114
|
+
|
115
|
+
# Attribute type mapping.
|
116
|
+
def self.swagger_types
|
117
|
+
{
|
118
|
+
:'path_routes' => :'Array<OCI::LoadBalancer::Models::PathRoute>'
|
119
|
+
}
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
@@ -15,6 +15,14 @@ module OCI
|
|
15
15
|
# @return [String]
|
16
16
|
attr_accessor :default_backend_set_name
|
17
17
|
|
18
|
+
# The name of the set of path-based routing rules, {PathRouteSet},
|
19
|
+
# applied to this listener's traffic.
|
20
|
+
#
|
21
|
+
# Example: `path-route-set-001`
|
22
|
+
#
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :path_route_set_name
|
25
|
+
|
18
26
|
# **[Required]** The communication port for the listener.
|
19
27
|
#
|
20
28
|
# Example: `80`
|
@@ -39,6 +47,7 @@ module OCI
|
|
39
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
40
48
|
# @option attributes [OCI::LoadBalancer::Models::ConnectionConfiguration] :connectionConfiguration The value to assign to the {#connection_configuration} property
|
41
49
|
# @option attributes [String] :defaultBackendSetName The value to assign to the {#default_backend_set_name} property
|
50
|
+
# @option attributes [String] :pathRouteSetName The value to assign to the {#path_route_set_name} property
|
42
51
|
# @option attributes [Integer] :port The value to assign to the {#port} property
|
43
52
|
# @option attributes [String] :protocol The value to assign to the {#protocol} property
|
44
53
|
# @option attributes [OCI::LoadBalancer::Models::SSLConfigurationDetails] :sslConfiguration The value to assign to the {#ssl_configuration} property
|
@@ -56,6 +65,10 @@ module OCI
|
|
56
65
|
self.default_backend_set_name = attributes[:'defaultBackendSetName']
|
57
66
|
end
|
58
67
|
|
68
|
+
if attributes[:'pathRouteSetName']
|
69
|
+
self.path_route_set_name = attributes[:'pathRouteSetName']
|
70
|
+
end
|
71
|
+
|
59
72
|
if attributes[:'port']
|
60
73
|
self.port = attributes[:'port']
|
61
74
|
end
|
@@ -77,6 +90,7 @@ module OCI
|
|
77
90
|
self.class == other_object.class &&
|
78
91
|
connection_configuration == other_object.connection_configuration &&
|
79
92
|
default_backend_set_name == other_object.default_backend_set_name &&
|
93
|
+
path_route_set_name == other_object.path_route_set_name &&
|
80
94
|
port == other_object.port &&
|
81
95
|
protocol == other_object.protocol &&
|
82
96
|
ssl_configuration == other_object.ssl_configuration
|
@@ -91,7 +105,7 @@ module OCI
|
|
91
105
|
# Calculates hash code according to all attributes.
|
92
106
|
# @return [Fixnum] Hash code
|
93
107
|
def hash
|
94
|
-
[connection_configuration, default_backend_set_name, port, protocol, ssl_configuration].hash
|
108
|
+
[connection_configuration, default_backend_set_name, path_route_set_name, port, protocol, ssl_configuration].hash
|
95
109
|
end
|
96
110
|
|
97
111
|
# Builds the object from hash
|
@@ -159,6 +173,7 @@ module OCI
|
|
159
173
|
{
|
160
174
|
:'connection_configuration' => :'connectionConfiguration',
|
161
175
|
:'default_backend_set_name' => :'defaultBackendSetName',
|
176
|
+
:'path_route_set_name' => :'pathRouteSetName',
|
162
177
|
:'port' => :'port',
|
163
178
|
:'protocol' => :'protocol',
|
164
179
|
:'ssl_configuration' => :'sslConfiguration'
|
@@ -170,6 +185,7 @@ module OCI
|
|
170
185
|
{
|
171
186
|
:'connection_configuration' => :'OCI::LoadBalancer::Models::ConnectionConfiguration',
|
172
187
|
:'default_backend_set_name' => :'String',
|
188
|
+
:'path_route_set_name' => :'String',
|
173
189
|
:'port' => :'Integer',
|
174
190
|
:'protocol' => :'String',
|
175
191
|
:'ssl_configuration' => :'OCI::LoadBalancer::Models::SSLConfigurationDetails'
|