oraclebmc 1.2.4 → 2.0.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 → README_BMCS.md} +21 -26
- data/lib/oraclebmc.rb +1 -19
- metadata +16 -259
- data/lib/oraclebmc/api_client.rb +0 -306
- data/lib/oraclebmc/config.rb +0 -80
- data/lib/oraclebmc/config_file_loader.rb +0 -85
- data/lib/oraclebmc/core/blockstorage_client.rb +0 -460
- data/lib/oraclebmc/core/compute_client.rb +0 -1267
- data/lib/oraclebmc/core/core.rb +0 -112
- data/lib/oraclebmc/core/models/attach_i_scsi_volume_details.rb +0 -137
- data/lib/oraclebmc/core/models/attach_vnic_details.rb +0 -144
- data/lib/oraclebmc/core/models/attach_volume_details.rb +0 -165
- data/lib/oraclebmc/core/models/capture_console_history_details.rb +0 -120
- data/lib/oraclebmc/core/models/console_history.rb +0 -213
- data/lib/oraclebmc/core/models/cpe.rb +0 -169
- data/lib/oraclebmc/core/models/create_cpe_details.rb +0 -145
- data/lib/oraclebmc/core/models/create_cross_connect_details.rb +0 -204
- data/lib/oraclebmc/core/models/create_cross_connect_group_details.rb +0 -133
- data/lib/oraclebmc/core/models/create_dhcp_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_drg_attachment_details.rb +0 -142
- data/lib/oraclebmc/core/models/create_drg_details.rb +0 -131
- data/lib/oraclebmc/core/models/create_image_details.rb +0 -159
- data/lib/oraclebmc/core/models/create_internet_gateway_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_ip_sec_connection_details.rb +0 -168
- data/lib/oraclebmc/core/models/create_private_ip_details.rb +0 -173
- data/lib/oraclebmc/core/models/create_route_table_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_security_list_details.rb +0 -164
- data/lib/oraclebmc/core/models/create_subnet_details.rb +0 -257
- data/lib/oraclebmc/core/models/create_vcn_details.rb +0 -171
- data/lib/oraclebmc/core/models/create_virtual_circuit_details.rb +0 -260
- data/lib/oraclebmc/core/models/create_vnic_details.rb +0 -214
- data/lib/oraclebmc/core/models/create_volume_backup_details.rb +0 -133
- data/lib/oraclebmc/core/models/create_volume_details.rb +0 -170
- data/lib/oraclebmc/core/models/cross_connect.rb +0 -235
- data/lib/oraclebmc/core/models/cross_connect_group.rb +0 -187
- data/lib/oraclebmc/core/models/cross_connect_location.rb +0 -134
- data/lib/oraclebmc/core/models/cross_connect_mapping.rb +0 -190
- data/lib/oraclebmc/core/models/cross_connect_port_speed_shape.rb +0 -137
- data/lib/oraclebmc/core/models/cross_connect_status.rb +0 -200
- data/lib/oraclebmc/core/models/dhcp_dns_option.rb +0 -171
- data/lib/oraclebmc/core/models/dhcp_option.rb +0 -135
- data/lib/oraclebmc/core/models/dhcp_options.rb +0 -208
- data/lib/oraclebmc/core/models/dhcp_search_domain_option.rb +0 -141
- data/lib/oraclebmc/core/models/drg.rb +0 -186
- data/lib/oraclebmc/core/models/drg_attachment.rb +0 -208
- data/lib/oraclebmc/core/models/egress_security_rule.rb +0 -198
- data/lib/oraclebmc/core/models/export_image_details.rb +0 -134
- data/lib/oraclebmc/core/models/export_image_via_object_storage_tuple_details.rb +0 -150
- data/lib/oraclebmc/core/models/export_image_via_object_storage_uri_details.rb +0 -130
- data/lib/oraclebmc/core/models/fast_connect_provider_service.rb +0 -145
- data/lib/oraclebmc/core/models/i_scsi_volume_attachment.rb +0 -212
- data/lib/oraclebmc/core/models/icmp_options.rb +0 -131
- data/lib/oraclebmc/core/models/image.rb +0 -245
- data/lib/oraclebmc/core/models/image_source_details.rb +0 -134
- data/lib/oraclebmc/core/models/image_source_via_object_storage_tuple_details.rb +0 -150
- data/lib/oraclebmc/core/models/image_source_via_object_storage_uri_details.rb +0 -128
- data/lib/oraclebmc/core/models/ingress_security_rule.rb +0 -198
- data/lib/oraclebmc/core/models/instance.rb +0 -307
- data/lib/oraclebmc/core/models/instance_credentials.rb +0 -131
- data/lib/oraclebmc/core/models/internet_gateway.rb +0 -210
- data/lib/oraclebmc/core/models/ip_sec_connection.rb +0 -223
- data/lib/oraclebmc/core/models/ip_sec_connection_device_config.rb +0 -153
- data/lib/oraclebmc/core/models/ip_sec_connection_device_status.rb +0 -156
- data/lib/oraclebmc/core/models/launch_instance_details.rb +0 -336
- data/lib/oraclebmc/core/models/letter_of_authority.rb +0 -194
- data/lib/oraclebmc/core/models/port_range.rb +0 -133
- data/lib/oraclebmc/core/models/private_ip.rb +0 -248
- data/lib/oraclebmc/core/models/route_rule.rb +0 -135
- data/lib/oraclebmc/core/models/route_table.rb +0 -208
- data/lib/oraclebmc/core/models/security_list.rb +0 -219
- data/lib/oraclebmc/core/models/shape.rb +0 -122
- data/lib/oraclebmc/core/models/subnet.rb +0 -351
- data/lib/oraclebmc/core/models/tcp_options.rb +0 -135
- data/lib/oraclebmc/core/models/tunnel_config.rb +0 -151
- data/lib/oraclebmc/core/models/tunnel_status.rb +0 -178
- data/lib/oraclebmc/core/models/udp_options.rb +0 -135
- data/lib/oraclebmc/core/models/update_cpe_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_cross_connect_details.rb +0 -138
- data/lib/oraclebmc/core/models/update_cross_connect_group_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_dhcp_details.rb +0 -132
- data/lib/oraclebmc/core/models/update_drg_attachment_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_drg_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_image_details.rb +0 -124
- data/lib/oraclebmc/core/models/update_instance_details.rb +0 -124
- data/lib/oraclebmc/core/models/update_internet_gateway_details.rb +0 -133
- data/lib/oraclebmc/core/models/update_ip_sec_connection_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_private_ip_details.rb +0 -157
- data/lib/oraclebmc/core/models/update_route_table_details.rb +0 -133
- data/lib/oraclebmc/core/models/update_security_list_details.rb +0 -144
- data/lib/oraclebmc/core/models/update_subnet_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_vcn_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_virtual_circuit_details.rb +0 -240
- data/lib/oraclebmc/core/models/update_vnic_details.rb +0 -144
- data/lib/oraclebmc/core/models/update_volume_backup_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_volume_details.rb +0 -122
- data/lib/oraclebmc/core/models/vcn.rb +0 -276
- data/lib/oraclebmc/core/models/virtual_circuit.rb +0 -395
- data/lib/oraclebmc/core/models/virtual_circuit_bandwidth_shape.rb +0 -137
- data/lib/oraclebmc/core/models/vnic.rb +0 -287
- data/lib/oraclebmc/core/models/vnic_attachment.rb +0 -250
- data/lib/oraclebmc/core/models/volume.rb +0 -210
- data/lib/oraclebmc/core/models/volume_attachment.rb +0 -246
- data/lib/oraclebmc/core/models/volume_backup.rb +0 -235
- data/lib/oraclebmc/core/util.rb +0 -1
- data/lib/oraclebmc/core/virtual_network_client.rb +0 -3419
- data/lib/oraclebmc/errors.rb +0 -80
- data/lib/oraclebmc/global_context.rb +0 -21
- data/lib/oraclebmc/identity/identity.rb +0 -51
- data/lib/oraclebmc/identity/identity_client.rb +0 -1983
- data/lib/oraclebmc/identity/models/add_user_to_group_details.rb +0 -131
- data/lib/oraclebmc/identity/models/api_key.rb +0 -211
- data/lib/oraclebmc/identity/models/availability_domain.rb +0 -131
- data/lib/oraclebmc/identity/models/compartment.rb +0 -211
- data/lib/oraclebmc/identity/models/create_api_key_details.rb +0 -120
- data/lib/oraclebmc/identity/models/create_compartment_details.rb +0 -145
- data/lib/oraclebmc/identity/models/create_group_details.rb +0 -144
- data/lib/oraclebmc/identity/models/create_identity_provider_details.rb +0 -212
- data/lib/oraclebmc/identity/models/create_idp_group_mapping_details.rb +0 -133
- data/lib/oraclebmc/identity/models/create_policy_details.rb +0 -173
- data/lib/oraclebmc/identity/models/create_region_subscription_details.rb +0 -127
- data/lib/oraclebmc/identity/models/create_saml2_identity_provider_details.rb +0 -154
- data/lib/oraclebmc/identity/models/create_swift_password_details.rb +0 -121
- data/lib/oraclebmc/identity/models/create_user_details.rb +0 -144
- data/lib/oraclebmc/identity/models/group.rb +0 -211
- data/lib/oraclebmc/identity/models/identity_provider.rb +0 -256
- data/lib/oraclebmc/identity/models/idp_group_mapping.rb +0 -220
- data/lib/oraclebmc/identity/models/policy.rb +0 -237
- data/lib/oraclebmc/identity/models/region.rb +0 -141
- data/lib/oraclebmc/identity/models/region_subscription.rb +0 -178
- data/lib/oraclebmc/identity/models/saml2_identity_provider.rb +0 -180
- data/lib/oraclebmc/identity/models/swift_password.rb +0 -226
- data/lib/oraclebmc/identity/models/tenancy.rb +0 -158
- data/lib/oraclebmc/identity/models/ui_password.rb +0 -187
- data/lib/oraclebmc/identity/models/update_compartment_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_group_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_identity_provider_details.rb +0 -160
- data/lib/oraclebmc/identity/models/update_idp_group_mapping_details.rb +0 -131
- data/lib/oraclebmc/identity/models/update_policy_details.rb +0 -148
- data/lib/oraclebmc/identity/models/update_saml2_identity_provider_details.rb +0 -145
- data/lib/oraclebmc/identity/models/update_state_details.rb +0 -121
- data/lib/oraclebmc/identity/models/update_swift_password_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_user_details.rb +0 -120
- data/lib/oraclebmc/identity/models/user.rb +0 -217
- data/lib/oraclebmc/identity/models/user_group_membership.rb +0 -209
- data/lib/oraclebmc/identity/util.rb +0 -1
- data/lib/oraclebmc/internal/internal.rb +0 -11
- data/lib/oraclebmc/internal/util.rb +0 -69
- data/lib/oraclebmc/load_balancer/load_balancer.rb +0 -46
- data/lib/oraclebmc/load_balancer/load_balancer_client.rb +0 -1281
- data/lib/oraclebmc/load_balancer/models/backend.rb +0 -220
- data/lib/oraclebmc/load_balancer/models/backend_details.rb +0 -206
- data/lib/oraclebmc/load_balancer/models/backend_set.rb +0 -179
- data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +0 -165
- data/lib/oraclebmc/load_balancer/models/certificate.rb +0 -167
- data/lib/oraclebmc/load_balancer/models/certificate_details.rb +0 -203
- data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +0 -206
- data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +0 -178
- data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +0 -203
- data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +0 -174
- data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +0 -219
- data/lib/oraclebmc/load_balancer/models/health_checker.rb +0 -223
- data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +0 -222
- data/lib/oraclebmc/load_balancer/models/ip_address.rb +0 -139
- data/lib/oraclebmc/load_balancer/models/listener.rb +0 -174
- data/lib/oraclebmc/load_balancer/models/listener_details.rb +0 -160
- data/lib/oraclebmc/load_balancer/models/load_balancer.rb +0 -280
- data/lib/oraclebmc/load_balancer/models/load_balancer_policy.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/load_balancer_protocol.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/load_balancer_shape.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/session_persistence_configuration_details.rb +0 -141
- data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +0 -153
- data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +0 -153
- data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +0 -178
- data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +0 -165
- data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +0 -221
- data/lib/oraclebmc/load_balancer/models/update_listener_details.rb +0 -160
- data/lib/oraclebmc/load_balancer/models/update_load_balancer_details.rb +0 -123
- data/lib/oraclebmc/load_balancer/models/work_request.rb +0 -229
- data/lib/oraclebmc/load_balancer/models/work_request_error.rb +0 -145
- data/lib/oraclebmc/load_balancer/util.rb +0 -55
- data/lib/oraclebmc/regions.rb +0 -41
- data/lib/oraclebmc/response.rb +0 -86
- data/lib/oraclebmc/signer.rb +0 -119
- data/lib/oraclebmc/version.rb +0 -5
- data/lib/oraclebmc/waiter.rb +0 -111
@@ -1,144 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
module OracleBMC
|
6
|
-
class Identity::Models::CreateGroupDetails
|
7
|
-
# The OCID of the tenancy containing the group.
|
8
|
-
# @return [String]
|
9
|
-
attr_accessor :compartment_id
|
10
|
-
|
11
|
-
# The name you assign to the group during creation. The name must be unique across all groups
|
12
|
-
# in the tenancy and cannot be changed.
|
13
|
-
#
|
14
|
-
# @return [String]
|
15
|
-
attr_accessor :name
|
16
|
-
|
17
|
-
# The description you assign to the group during creation. Does not have to be unique, and it's changeable.
|
18
|
-
# @return [String]
|
19
|
-
attr_accessor :description
|
20
|
-
|
21
|
-
|
22
|
-
# Initializes the object
|
23
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
24
|
-
def initialize(attributes = {})
|
25
|
-
return unless attributes.is_a?(Hash)
|
26
|
-
|
27
|
-
# convert string to symbol for hash key
|
28
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
29
|
-
|
30
|
-
if attributes[:'compartmentId']
|
31
|
-
self.compartment_id = attributes[:'compartmentId']
|
32
|
-
end
|
33
|
-
|
34
|
-
if attributes[:'name']
|
35
|
-
self.name = attributes[:'name']
|
36
|
-
end
|
37
|
-
|
38
|
-
if attributes[:'description']
|
39
|
-
self.description = attributes[:'description']
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
43
|
-
|
44
|
-
# Checks equality by comparing each attribute.
|
45
|
-
# @param [Object] other_object to be compared
|
46
|
-
def ==(other_object)
|
47
|
-
return true if self.equal?(other_object)
|
48
|
-
self.class == other_object.class &&
|
49
|
-
compartment_id == other_object.compartment_id &&
|
50
|
-
name == other_object.name &&
|
51
|
-
description == other_object.description
|
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
|
-
[compartment_id, name, description].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
|
-
:'compartment_id' => :'compartmentId',
|
130
|
-
:'name' => :'name',
|
131
|
-
:'description' => :'description'
|
132
|
-
}
|
133
|
-
end
|
134
|
-
|
135
|
-
# Attribute type mapping.
|
136
|
-
def self.swagger_types
|
137
|
-
{
|
138
|
-
:'compartment_id' => :'String',
|
139
|
-
:'name' => :'String',
|
140
|
-
:'description' => :'String'
|
141
|
-
}
|
142
|
-
end
|
143
|
-
end
|
144
|
-
end
|
@@ -1,212 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
module OracleBMC
|
6
|
-
class Identity::Models::CreateIdentityProviderDetails
|
7
|
-
|
8
|
-
PRODUCT_TYPE_ENUM = [PRODUCT_TYPE_IDCS = 'IDCS']
|
9
|
-
|
10
|
-
|
11
|
-
PROTOCOL_ENUM = [PROTOCOL_SAML2 = 'SAML2']
|
12
|
-
|
13
|
-
# The OCID of your tenancy.
|
14
|
-
# @return [String]
|
15
|
-
attr_accessor :compartment_id
|
16
|
-
|
17
|
-
# The name you assign to the `IdentityProvider` during creation.
|
18
|
-
# The name must be unique across all `IdentityProvider` objects in the
|
19
|
-
# tenancy and cannot be changed.
|
20
|
-
#
|
21
|
-
# @return [String]
|
22
|
-
attr_accessor :name
|
23
|
-
|
24
|
-
# The description you assign to the `IdentityProvider` during creation.
|
25
|
-
# Does not have to be unique, and it's changeable.
|
26
|
-
#
|
27
|
-
# @return [String]
|
28
|
-
attr_accessor :description
|
29
|
-
|
30
|
-
# The identity provider service or product (e.g., Oracle Identity Cloud Service).
|
31
|
-
#
|
32
|
-
# Example: `IDCS`
|
33
|
-
#
|
34
|
-
# @return [String]
|
35
|
-
attr_accessor :product_type
|
36
|
-
|
37
|
-
# The protocol used for federation.
|
38
|
-
#
|
39
|
-
# Example: `SAML2`
|
40
|
-
#
|
41
|
-
# @return [String]
|
42
|
-
attr_accessor :protocol
|
43
|
-
|
44
|
-
|
45
|
-
# Given the hash representation of a subtype of this class,
|
46
|
-
# use the info in the hash to return the class of the subtype.
|
47
|
-
def self.get_subtype(object_hash)
|
48
|
-
type = object_hash[:'protocol']
|
49
|
-
|
50
|
-
return 'OracleBMC::Identity::Models::CreateSaml2IdentityProviderDetails' if type == 'SAML2'
|
51
|
-
|
52
|
-
# TODO: Log a warning when the subtype is not found.
|
53
|
-
return 'OracleBMC::Identity::Models::CreateIdentityProviderDetails'
|
54
|
-
end
|
55
|
-
|
56
|
-
# Initializes the object
|
57
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
-
def initialize(attributes = {})
|
59
|
-
return unless attributes.is_a?(Hash)
|
60
|
-
|
61
|
-
# convert string to symbol for hash key
|
62
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
63
|
-
|
64
|
-
if attributes[:'compartmentId']
|
65
|
-
self.compartment_id = attributes[:'compartmentId']
|
66
|
-
end
|
67
|
-
|
68
|
-
if attributes[:'name']
|
69
|
-
self.name = attributes[:'name']
|
70
|
-
end
|
71
|
-
|
72
|
-
if attributes[:'description']
|
73
|
-
self.description = attributes[:'description']
|
74
|
-
end
|
75
|
-
|
76
|
-
if attributes[:'productType']
|
77
|
-
self.product_type = attributes[:'productType']
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes[:'protocol']
|
81
|
-
self.protocol = attributes[:'protocol']
|
82
|
-
end
|
83
|
-
|
84
|
-
end
|
85
|
-
|
86
|
-
# Custom attribute writer method checking allowed values (enum).
|
87
|
-
# @param [Object] product_type Object to be assigned
|
88
|
-
def product_type=(product_type)
|
89
|
-
if product_type && !PRODUCT_TYPE_ENUM.include?(product_type)
|
90
|
-
fail "Invalid value for 'product_type': this must be one of the values in PRODUCT_TYPE_ENUM."
|
91
|
-
else
|
92
|
-
@product_type = product_type
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
# Custom attribute writer method checking allowed values (enum).
|
97
|
-
# @param [Object] protocol Object to be assigned
|
98
|
-
def protocol=(protocol)
|
99
|
-
if protocol && !PROTOCOL_ENUM.include?(protocol)
|
100
|
-
fail "Invalid value for 'protocol': this must be one of the values in PROTOCOL_ENUM."
|
101
|
-
else
|
102
|
-
@protocol = protocol
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
# Checks equality by comparing each attribute.
|
107
|
-
# @param [Object] other_object to be compared
|
108
|
-
def ==(other_object)
|
109
|
-
return true if self.equal?(other_object)
|
110
|
-
self.class == other_object.class &&
|
111
|
-
compartment_id == other_object.compartment_id &&
|
112
|
-
name == other_object.name &&
|
113
|
-
description == other_object.description &&
|
114
|
-
product_type == other_object.product_type &&
|
115
|
-
protocol == other_object.protocol
|
116
|
-
end
|
117
|
-
|
118
|
-
# @see the `==` method
|
119
|
-
# @param [Object] other_object to be compared
|
120
|
-
def eql?(other_object)
|
121
|
-
self == other_object
|
122
|
-
end
|
123
|
-
|
124
|
-
# Calculates hash code according to all attributes.
|
125
|
-
# @return [Fixnum] Hash code
|
126
|
-
def hash
|
127
|
-
[compartment_id, name, description, product_type, protocol].hash
|
128
|
-
end
|
129
|
-
|
130
|
-
# Builds the object from hash
|
131
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
132
|
-
# @return [Object] Returns the model itself
|
133
|
-
def build_from_hash(attributes)
|
134
|
-
return nil unless attributes.is_a?(Hash)
|
135
|
-
self.class.swagger_types.each_pair do |key, type|
|
136
|
-
if type =~ /^Array<(.*)>/i
|
137
|
-
# check to ensure the input is an array given that the the attribute
|
138
|
-
# is documented as an array but the input is not
|
139
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
140
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
141
|
-
end
|
142
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
143
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
144
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
145
|
-
end
|
146
|
-
|
147
|
-
self
|
148
|
-
end
|
149
|
-
|
150
|
-
# Returns the string representation of the object
|
151
|
-
# @return [String] String presentation of the object
|
152
|
-
def to_s
|
153
|
-
to_hash.to_s
|
154
|
-
end
|
155
|
-
|
156
|
-
# Returns the object in the form of hash
|
157
|
-
# @return [Hash] Returns the object in the form of hash
|
158
|
-
def to_hash
|
159
|
-
hash = {}
|
160
|
-
self.class.attribute_map.each_pair do |attr, param|
|
161
|
-
value = self.send(attr)
|
162
|
-
next if value.nil?
|
163
|
-
hash[param] = _to_hash(value)
|
164
|
-
end
|
165
|
-
hash
|
166
|
-
end
|
167
|
-
|
168
|
-
private
|
169
|
-
|
170
|
-
# Outputs non-array value in the form of hash
|
171
|
-
# For object, use to_hash. Otherwise, just return the value
|
172
|
-
# @param [Object] value Any valid value
|
173
|
-
# @return [Hash] Returns the value in the form of hash
|
174
|
-
def _to_hash(value)
|
175
|
-
if value.is_a?(Array)
|
176
|
-
value.compact.map{ |v| _to_hash(v) }
|
177
|
-
elsif value.is_a?(Hash)
|
178
|
-
{}.tap do |hash|
|
179
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
180
|
-
end
|
181
|
-
elsif value.respond_to? :to_hash
|
182
|
-
value.to_hash
|
183
|
-
else
|
184
|
-
value
|
185
|
-
end
|
186
|
-
end
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
191
|
-
def self.attribute_map
|
192
|
-
{
|
193
|
-
:'compartment_id' => :'compartmentId',
|
194
|
-
:'name' => :'name',
|
195
|
-
:'description' => :'description',
|
196
|
-
:'product_type' => :'productType',
|
197
|
-
:'protocol' => :'protocol'
|
198
|
-
}
|
199
|
-
end
|
200
|
-
|
201
|
-
# Attribute type mapping.
|
202
|
-
def self.swagger_types
|
203
|
-
{
|
204
|
-
:'compartment_id' => :'String',
|
205
|
-
:'name' => :'String',
|
206
|
-
:'description' => :'String',
|
207
|
-
:'product_type' => :'String',
|
208
|
-
:'protocol' => :'String'
|
209
|
-
}
|
210
|
-
end
|
211
|
-
end
|
212
|
-
end
|
@@ -1,133 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
module OracleBMC
|
6
|
-
class Identity::Models::CreateIdpGroupMappingDetails
|
7
|
-
# The name of the IdP group you want to map.
|
8
|
-
# @return [String]
|
9
|
-
attr_accessor :idp_group_name
|
10
|
-
|
11
|
-
# The OCID of the IAM Service {Group}
|
12
|
-
# you want to map to the IdP group.
|
13
|
-
#
|
14
|
-
# @return [String]
|
15
|
-
attr_accessor :group_id
|
16
|
-
|
17
|
-
|
18
|
-
# Initializes the object
|
19
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
20
|
-
def initialize(attributes = {})
|
21
|
-
return unless attributes.is_a?(Hash)
|
22
|
-
|
23
|
-
# convert string to symbol for hash key
|
24
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
25
|
-
|
26
|
-
if attributes[:'idpGroupName']
|
27
|
-
self.idp_group_name = attributes[:'idpGroupName']
|
28
|
-
end
|
29
|
-
|
30
|
-
if attributes[:'groupId']
|
31
|
-
self.group_id = attributes[:'groupId']
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
35
|
-
|
36
|
-
# Checks equality by comparing each attribute.
|
37
|
-
# @param [Object] other_object to be compared
|
38
|
-
def ==(other_object)
|
39
|
-
return true if self.equal?(other_object)
|
40
|
-
self.class == other_object.class &&
|
41
|
-
idp_group_name == other_object.idp_group_name &&
|
42
|
-
group_id == other_object.group_id
|
43
|
-
end
|
44
|
-
|
45
|
-
# @see the `==` method
|
46
|
-
# @param [Object] other_object to be compared
|
47
|
-
def eql?(other_object)
|
48
|
-
self == other_object
|
49
|
-
end
|
50
|
-
|
51
|
-
# Calculates hash code according to all attributes.
|
52
|
-
# @return [Fixnum] Hash code
|
53
|
-
def hash
|
54
|
-
[idp_group_name, group_id].hash
|
55
|
-
end
|
56
|
-
|
57
|
-
# Builds the object from hash
|
58
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
-
# @return [Object] Returns the model itself
|
60
|
-
def build_from_hash(attributes)
|
61
|
-
return nil unless attributes.is_a?(Hash)
|
62
|
-
self.class.swagger_types.each_pair do |key, type|
|
63
|
-
if type =~ /^Array<(.*)>/i
|
64
|
-
# check to ensure the input is an array given that the the attribute
|
65
|
-
# is documented as an array but the input is not
|
66
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
67
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
68
|
-
end
|
69
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
70
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
71
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
72
|
-
end
|
73
|
-
|
74
|
-
self
|
75
|
-
end
|
76
|
-
|
77
|
-
# Returns the string representation of the object
|
78
|
-
# @return [String] String presentation of the object
|
79
|
-
def to_s
|
80
|
-
to_hash.to_s
|
81
|
-
end
|
82
|
-
|
83
|
-
# Returns the object in the form of hash
|
84
|
-
# @return [Hash] Returns the object in the form of hash
|
85
|
-
def to_hash
|
86
|
-
hash = {}
|
87
|
-
self.class.attribute_map.each_pair do |attr, param|
|
88
|
-
value = self.send(attr)
|
89
|
-
next if value.nil?
|
90
|
-
hash[param] = _to_hash(value)
|
91
|
-
end
|
92
|
-
hash
|
93
|
-
end
|
94
|
-
|
95
|
-
private
|
96
|
-
|
97
|
-
# Outputs non-array value in the form of hash
|
98
|
-
# For object, use to_hash. Otherwise, just return the value
|
99
|
-
# @param [Object] value Any valid value
|
100
|
-
# @return [Hash] Returns the value in the form of hash
|
101
|
-
def _to_hash(value)
|
102
|
-
if value.is_a?(Array)
|
103
|
-
value.compact.map{ |v| _to_hash(v) }
|
104
|
-
elsif value.is_a?(Hash)
|
105
|
-
{}.tap do |hash|
|
106
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
107
|
-
end
|
108
|
-
elsif value.respond_to? :to_hash
|
109
|
-
value.to_hash
|
110
|
-
else
|
111
|
-
value
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
118
|
-
def self.attribute_map
|
119
|
-
{
|
120
|
-
:'idp_group_name' => :'idpGroupName',
|
121
|
-
:'group_id' => :'groupId'
|
122
|
-
}
|
123
|
-
end
|
124
|
-
|
125
|
-
# Attribute type mapping.
|
126
|
-
def self.swagger_types
|
127
|
-
{
|
128
|
-
:'idp_group_name' => :'String',
|
129
|
-
:'group_id' => :'String'
|
130
|
-
}
|
131
|
-
end
|
132
|
-
end
|
133
|
-
end
|