oraclebmc 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/lib/oraclebmc/core/blockstorage_client.rb +2 -2
- data/lib/oraclebmc/core/compute_client.rb +8 -7
- data/lib/oraclebmc/core/core.rb +17 -0
- data/lib/oraclebmc/core/models/create_cross_connect_details.rb +203 -0
- data/lib/oraclebmc/core/models/create_cross_connect_group_details.rb +132 -0
- data/lib/oraclebmc/core/models/create_subnet_details.rb +24 -3
- data/lib/oraclebmc/core/models/create_vcn_details.rb +2 -2
- data/lib/oraclebmc/core/models/create_virtual_circuit_details.rb +261 -0
- data/lib/oraclebmc/core/models/create_vnic_details.rb +202 -0
- data/lib/oraclebmc/core/models/cross_connect.rb +234 -0
- data/lib/oraclebmc/core/models/cross_connect_group.rb +187 -0
- data/lib/oraclebmc/core/models/cross_connect_location.rb +135 -0
- data/lib/oraclebmc/core/models/cross_connect_mapping.rb +191 -0
- data/lib/oraclebmc/core/models/cross_connect_port_speed_shape.rb +138 -0
- data/lib/oraclebmc/core/models/cross_connect_status.rb +201 -0
- data/lib/oraclebmc/core/models/dhcp_dns_option.rb +7 -7
- data/lib/oraclebmc/core/models/dhcp_option.rb +1 -1
- data/lib/oraclebmc/core/models/dhcp_search_domain_option.rb +6 -7
- data/lib/oraclebmc/core/models/fast_connect_provider_service.rb +146 -0
- data/lib/oraclebmc/core/models/image.rb +1 -1
- data/lib/oraclebmc/core/models/instance.rb +6 -7
- data/lib/oraclebmc/core/models/launch_instance_details.rb +22 -19
- data/lib/oraclebmc/core/models/letter_of_authority.rb +195 -0
- data/lib/oraclebmc/core/models/subnet.rb +26 -5
- data/lib/oraclebmc/core/models/update_cross_connect_details.rb +137 -0
- data/lib/oraclebmc/core/models/update_cross_connect_group_details.rb +121 -0
- data/lib/oraclebmc/core/models/update_virtual_circuit_details.rb +240 -0
- data/lib/oraclebmc/core/models/vcn.rb +4 -4
- data/lib/oraclebmc/core/models/virtual_circuit.rb +395 -0
- data/lib/oraclebmc/core/models/virtual_circuit_bandwidth_shape.rb +138 -0
- data/lib/oraclebmc/core/models/vnic.rb +4 -4
- data/lib/oraclebmc/core/virtual_network_client.rb +962 -85
- data/lib/oraclebmc/identity/identity.rb +13 -0
- data/lib/oraclebmc/identity/identity_client.rb +533 -8
- data/lib/oraclebmc/identity/models/create_identity_provider_details.rb +213 -0
- data/lib/oraclebmc/identity/models/create_idp_group_mapping_details.rb +134 -0
- data/lib/oraclebmc/identity/models/create_region_subscription_details.rb +128 -0
- data/lib/oraclebmc/identity/models/create_saml2_identity_provider_details.rb +155 -0
- data/lib/oraclebmc/identity/models/create_user_details.rb +1 -1
- data/lib/oraclebmc/identity/models/identity_provider.rb +257 -0
- data/lib/oraclebmc/identity/models/idp_group_mapping.rb +221 -0
- data/lib/oraclebmc/identity/models/region.rb +142 -0
- data/lib/oraclebmc/identity/models/region_subscription.rb +179 -0
- data/lib/oraclebmc/identity/models/saml2_identity_provider.rb +181 -0
- data/lib/oraclebmc/identity/models/tenancy.rb +159 -0
- data/lib/oraclebmc/identity/models/update_identity_provider_details.rb +161 -0
- data/lib/oraclebmc/identity/models/update_idp_group_mapping_details.rb +132 -0
- data/lib/oraclebmc/identity/models/update_saml2_identity_provider_details.rb +146 -0
- data/lib/oraclebmc/regions.rb +1 -1
- data/lib/oraclebmc/version.rb +1 -1
- metadata +32 -2
@@ -0,0 +1,146 @@
|
|
1
|
+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
require_relative 'update_identity_provider_details'
|
5
|
+
|
6
|
+
module OracleBMC
|
7
|
+
class Identity::Models::UpdateSaml2IdentityProviderDetails < Identity::Models::UpdateIdentityProviderDetails
|
8
|
+
# The URL for retrieving the identity provider's metadata,
|
9
|
+
# which contains information required for federating.
|
10
|
+
#
|
11
|
+
# @return [String]
|
12
|
+
attr_accessor :metadata_url
|
13
|
+
|
14
|
+
# The XML that contains the information required for federating.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :metadata
|
18
|
+
|
19
|
+
|
20
|
+
# Initializes the object
|
21
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
22
|
+
def initialize(attributes = {})
|
23
|
+
return unless attributes.is_a?(Hash)
|
24
|
+
|
25
|
+
attributes['protocol'] = 'SAML2'
|
26
|
+
|
27
|
+
super(attributes)
|
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
|
+
|
33
|
+
if attributes[:'metadataUrl']
|
34
|
+
self.metadata_url = attributes[:'metadataUrl']
|
35
|
+
end
|
36
|
+
|
37
|
+
if attributes[:'metadata']
|
38
|
+
self.metadata = attributes[:'metadata']
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
# Checks equality by comparing each attribute.
|
44
|
+
# @param [Object] other_object to be compared
|
45
|
+
def ==(other_object)
|
46
|
+
return true if self.equal?(other_object)
|
47
|
+
self.class == other_object.class &&
|
48
|
+
protocol == other_object.protocol &&
|
49
|
+
description == other_object.description &&
|
50
|
+
metadata_url == other_object.metadata_url &&
|
51
|
+
metadata == other_object.metadata
|
52
|
+
end
|
53
|
+
|
54
|
+
# @see the `==` method
|
55
|
+
# @param [Object] other_object to be compared
|
56
|
+
def eql?(other_object)
|
57
|
+
self == other_object
|
58
|
+
end
|
59
|
+
|
60
|
+
# Calculates hash code according to all attributes.
|
61
|
+
# @return [Fixnum] Hash code
|
62
|
+
def hash
|
63
|
+
[protocol, description, metadata_url, metadata].hash
|
64
|
+
end
|
65
|
+
|
66
|
+
# Builds the object from hash
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
+
# @return [Object] Returns the model itself
|
69
|
+
def build_from_hash(attributes)
|
70
|
+
return nil unless attributes.is_a?(Hash)
|
71
|
+
self.class.swagger_types.each_pair do |key, type|
|
72
|
+
if type =~ /^Array<(.*)>/i
|
73
|
+
# check to ensure the input is an array given that the the attribute
|
74
|
+
# is documented as an array but the input is not
|
75
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
76
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
77
|
+
end
|
78
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
79
|
+
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
80
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
81
|
+
end
|
82
|
+
|
83
|
+
self
|
84
|
+
end
|
85
|
+
|
86
|
+
# Returns the string representation of the object
|
87
|
+
# @return [String] String presentation of the object
|
88
|
+
def to_s
|
89
|
+
to_hash.to_s
|
90
|
+
end
|
91
|
+
|
92
|
+
# Returns the object in the form of hash
|
93
|
+
# @return [Hash] Returns the object in the form of hash
|
94
|
+
def to_hash
|
95
|
+
hash = {}
|
96
|
+
self.class.attribute_map.each_pair do |attr, param|
|
97
|
+
value = self.send(attr)
|
98
|
+
next if value.nil?
|
99
|
+
hash[param] = _to_hash(value)
|
100
|
+
end
|
101
|
+
hash
|
102
|
+
end
|
103
|
+
|
104
|
+
private
|
105
|
+
|
106
|
+
# Outputs non-array value in the form of hash
|
107
|
+
# For object, use to_hash. Otherwise, just return the value
|
108
|
+
# @param [Object] value Any valid value
|
109
|
+
# @return [Hash] Returns the value in the form of hash
|
110
|
+
def _to_hash(value)
|
111
|
+
if value.is_a?(Array)
|
112
|
+
value.compact.map{ |v| _to_hash(v) }
|
113
|
+
elsif value.is_a?(Hash)
|
114
|
+
{}.tap do |hash|
|
115
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
116
|
+
end
|
117
|
+
elsif value.respond_to? :to_hash
|
118
|
+
value.to_hash
|
119
|
+
else
|
120
|
+
value
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
127
|
+
def self.attribute_map
|
128
|
+
{
|
129
|
+
:'protocol' => :'protocol',
|
130
|
+
:'description' => :'description',
|
131
|
+
:'metadata_url' => :'metadataUrl',
|
132
|
+
:'metadata' => :'metadata'
|
133
|
+
}
|
134
|
+
end
|
135
|
+
|
136
|
+
# Attribute type mapping.
|
137
|
+
def self.swagger_types
|
138
|
+
{
|
139
|
+
:'protocol' => :'String',
|
140
|
+
:'description' => :'String',
|
141
|
+
:'metadata_url' => :'String',
|
142
|
+
:'metadata' => :'String'
|
143
|
+
}
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
data/lib/oraclebmc/regions.rb
CHANGED
data/lib/oraclebmc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oraclebmc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oracle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -110,6 +110,8 @@ files:
|
|
110
110
|
- "./lib/oraclebmc/core/models/console_history.rb"
|
111
111
|
- "./lib/oraclebmc/core/models/cpe.rb"
|
112
112
|
- "./lib/oraclebmc/core/models/create_cpe_details.rb"
|
113
|
+
- "./lib/oraclebmc/core/models/create_cross_connect_details.rb"
|
114
|
+
- "./lib/oraclebmc/core/models/create_cross_connect_group_details.rb"
|
113
115
|
- "./lib/oraclebmc/core/models/create_dhcp_details.rb"
|
114
116
|
- "./lib/oraclebmc/core/models/create_drg_attachment_details.rb"
|
115
117
|
- "./lib/oraclebmc/core/models/create_drg_details.rb"
|
@@ -120,8 +122,16 @@ files:
|
|
120
122
|
- "./lib/oraclebmc/core/models/create_security_list_details.rb"
|
121
123
|
- "./lib/oraclebmc/core/models/create_subnet_details.rb"
|
122
124
|
- "./lib/oraclebmc/core/models/create_vcn_details.rb"
|
125
|
+
- "./lib/oraclebmc/core/models/create_virtual_circuit_details.rb"
|
126
|
+
- "./lib/oraclebmc/core/models/create_vnic_details.rb"
|
123
127
|
- "./lib/oraclebmc/core/models/create_volume_backup_details.rb"
|
124
128
|
- "./lib/oraclebmc/core/models/create_volume_details.rb"
|
129
|
+
- "./lib/oraclebmc/core/models/cross_connect.rb"
|
130
|
+
- "./lib/oraclebmc/core/models/cross_connect_group.rb"
|
131
|
+
- "./lib/oraclebmc/core/models/cross_connect_location.rb"
|
132
|
+
- "./lib/oraclebmc/core/models/cross_connect_mapping.rb"
|
133
|
+
- "./lib/oraclebmc/core/models/cross_connect_port_speed_shape.rb"
|
134
|
+
- "./lib/oraclebmc/core/models/cross_connect_status.rb"
|
125
135
|
- "./lib/oraclebmc/core/models/dhcp_dns_option.rb"
|
126
136
|
- "./lib/oraclebmc/core/models/dhcp_option.rb"
|
127
137
|
- "./lib/oraclebmc/core/models/dhcp_options.rb"
|
@@ -129,6 +139,7 @@ files:
|
|
129
139
|
- "./lib/oraclebmc/core/models/drg.rb"
|
130
140
|
- "./lib/oraclebmc/core/models/drg_attachment.rb"
|
131
141
|
- "./lib/oraclebmc/core/models/egress_security_rule.rb"
|
142
|
+
- "./lib/oraclebmc/core/models/fast_connect_provider_service.rb"
|
132
143
|
- "./lib/oraclebmc/core/models/i_scsi_volume_attachment.rb"
|
133
144
|
- "./lib/oraclebmc/core/models/icmp_options.rb"
|
134
145
|
- "./lib/oraclebmc/core/models/image.rb"
|
@@ -140,6 +151,7 @@ files:
|
|
140
151
|
- "./lib/oraclebmc/core/models/ip_sec_connection_device_config.rb"
|
141
152
|
- "./lib/oraclebmc/core/models/ip_sec_connection_device_status.rb"
|
142
153
|
- "./lib/oraclebmc/core/models/launch_instance_details.rb"
|
154
|
+
- "./lib/oraclebmc/core/models/letter_of_authority.rb"
|
143
155
|
- "./lib/oraclebmc/core/models/port_range.rb"
|
144
156
|
- "./lib/oraclebmc/core/models/route_rule.rb"
|
145
157
|
- "./lib/oraclebmc/core/models/route_table.rb"
|
@@ -151,6 +163,8 @@ files:
|
|
151
163
|
- "./lib/oraclebmc/core/models/tunnel_status.rb"
|
152
164
|
- "./lib/oraclebmc/core/models/udp_options.rb"
|
153
165
|
- "./lib/oraclebmc/core/models/update_cpe_details.rb"
|
166
|
+
- "./lib/oraclebmc/core/models/update_cross_connect_details.rb"
|
167
|
+
- "./lib/oraclebmc/core/models/update_cross_connect_group_details.rb"
|
154
168
|
- "./lib/oraclebmc/core/models/update_dhcp_details.rb"
|
155
169
|
- "./lib/oraclebmc/core/models/update_drg_attachment_details.rb"
|
156
170
|
- "./lib/oraclebmc/core/models/update_drg_details.rb"
|
@@ -162,9 +176,12 @@ files:
|
|
162
176
|
- "./lib/oraclebmc/core/models/update_security_list_details.rb"
|
163
177
|
- "./lib/oraclebmc/core/models/update_subnet_details.rb"
|
164
178
|
- "./lib/oraclebmc/core/models/update_vcn_details.rb"
|
179
|
+
- "./lib/oraclebmc/core/models/update_virtual_circuit_details.rb"
|
165
180
|
- "./lib/oraclebmc/core/models/update_volume_backup_details.rb"
|
166
181
|
- "./lib/oraclebmc/core/models/update_volume_details.rb"
|
167
182
|
- "./lib/oraclebmc/core/models/vcn.rb"
|
183
|
+
- "./lib/oraclebmc/core/models/virtual_circuit.rb"
|
184
|
+
- "./lib/oraclebmc/core/models/virtual_circuit_bandwidth_shape.rb"
|
168
185
|
- "./lib/oraclebmc/core/models/vnic.rb"
|
169
186
|
- "./lib/oraclebmc/core/models/vnic_attachment.rb"
|
170
187
|
- "./lib/oraclebmc/core/models/volume.rb"
|
@@ -183,16 +200,29 @@ files:
|
|
183
200
|
- "./lib/oraclebmc/identity/models/create_api_key_details.rb"
|
184
201
|
- "./lib/oraclebmc/identity/models/create_compartment_details.rb"
|
185
202
|
- "./lib/oraclebmc/identity/models/create_group_details.rb"
|
203
|
+
- "./lib/oraclebmc/identity/models/create_identity_provider_details.rb"
|
204
|
+
- "./lib/oraclebmc/identity/models/create_idp_group_mapping_details.rb"
|
186
205
|
- "./lib/oraclebmc/identity/models/create_policy_details.rb"
|
206
|
+
- "./lib/oraclebmc/identity/models/create_region_subscription_details.rb"
|
207
|
+
- "./lib/oraclebmc/identity/models/create_saml2_identity_provider_details.rb"
|
187
208
|
- "./lib/oraclebmc/identity/models/create_swift_password_details.rb"
|
188
209
|
- "./lib/oraclebmc/identity/models/create_user_details.rb"
|
189
210
|
- "./lib/oraclebmc/identity/models/group.rb"
|
211
|
+
- "./lib/oraclebmc/identity/models/identity_provider.rb"
|
212
|
+
- "./lib/oraclebmc/identity/models/idp_group_mapping.rb"
|
190
213
|
- "./lib/oraclebmc/identity/models/policy.rb"
|
214
|
+
- "./lib/oraclebmc/identity/models/region.rb"
|
215
|
+
- "./lib/oraclebmc/identity/models/region_subscription.rb"
|
216
|
+
- "./lib/oraclebmc/identity/models/saml2_identity_provider.rb"
|
191
217
|
- "./lib/oraclebmc/identity/models/swift_password.rb"
|
218
|
+
- "./lib/oraclebmc/identity/models/tenancy.rb"
|
192
219
|
- "./lib/oraclebmc/identity/models/ui_password.rb"
|
193
220
|
- "./lib/oraclebmc/identity/models/update_compartment_details.rb"
|
194
221
|
- "./lib/oraclebmc/identity/models/update_group_details.rb"
|
222
|
+
- "./lib/oraclebmc/identity/models/update_identity_provider_details.rb"
|
223
|
+
- "./lib/oraclebmc/identity/models/update_idp_group_mapping_details.rb"
|
195
224
|
- "./lib/oraclebmc/identity/models/update_policy_details.rb"
|
225
|
+
- "./lib/oraclebmc/identity/models/update_saml2_identity_provider_details.rb"
|
196
226
|
- "./lib/oraclebmc/identity/models/update_state_details.rb"
|
197
227
|
- "./lib/oraclebmc/identity/models/update_swift_password_details.rb"
|
198
228
|
- "./lib/oraclebmc/identity/models/update_user_details.rb"
|