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,153 +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 Core::Models::CreateRouteTableDetails
|
7
|
-
# The OCID of the compartment to contain the route table.
|
8
|
-
# @return [String]
|
9
|
-
attr_accessor :compartment_id
|
10
|
-
|
11
|
-
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
12
|
-
# @return [String]
|
13
|
-
attr_accessor :display_name
|
14
|
-
|
15
|
-
# The collection of rules used for routing destination IPs to network devices.
|
16
|
-
# @return [Array<OracleBMC::Core::Models::RouteRule>]
|
17
|
-
attr_accessor :route_rules
|
18
|
-
|
19
|
-
# The OCID of the VCN the route table belongs to.
|
20
|
-
# @return [String]
|
21
|
-
attr_accessor :vcn_id
|
22
|
-
|
23
|
-
|
24
|
-
# Initializes the object
|
25
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
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[:'compartmentId']
|
33
|
-
self.compartment_id = attributes[:'compartmentId']
|
34
|
-
end
|
35
|
-
|
36
|
-
if attributes[:'displayName']
|
37
|
-
self.display_name = attributes[:'displayName']
|
38
|
-
end
|
39
|
-
|
40
|
-
if attributes[:'routeRules']
|
41
|
-
self.route_rules = attributes[:'routeRules']
|
42
|
-
end
|
43
|
-
|
44
|
-
if attributes[:'vcnId']
|
45
|
-
self.vcn_id = attributes[:'vcnId']
|
46
|
-
end
|
47
|
-
|
48
|
-
end
|
49
|
-
|
50
|
-
# Checks equality by comparing each attribute.
|
51
|
-
# @param [Object] other_object to be compared
|
52
|
-
def ==(other_object)
|
53
|
-
return true if self.equal?(other_object)
|
54
|
-
self.class == other_object.class &&
|
55
|
-
compartment_id == other_object.compartment_id &&
|
56
|
-
display_name == other_object.display_name &&
|
57
|
-
route_rules == other_object.route_rules &&
|
58
|
-
vcn_id == other_object.vcn_id
|
59
|
-
end
|
60
|
-
|
61
|
-
# @see the `==` method
|
62
|
-
# @param [Object] other_object to be compared
|
63
|
-
def eql?(other_object)
|
64
|
-
self == other_object
|
65
|
-
end
|
66
|
-
|
67
|
-
# Calculates hash code according to all attributes.
|
68
|
-
# @return [Fixnum] Hash code
|
69
|
-
def hash
|
70
|
-
[compartment_id, display_name, route_rules, vcn_id].hash
|
71
|
-
end
|
72
|
-
|
73
|
-
# Builds the object from hash
|
74
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
-
# @return [Object] Returns the model itself
|
76
|
-
def build_from_hash(attributes)
|
77
|
-
return nil unless attributes.is_a?(Hash)
|
78
|
-
self.class.swagger_types.each_pair do |key, type|
|
79
|
-
if type =~ /^Array<(.*)>/i
|
80
|
-
# check to ensure the input is an array given that the the attribute
|
81
|
-
# is documented as an array but the input is not
|
82
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
83
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
84
|
-
end
|
85
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
86
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
87
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
88
|
-
end
|
89
|
-
|
90
|
-
self
|
91
|
-
end
|
92
|
-
|
93
|
-
# Returns the string representation of the object
|
94
|
-
# @return [String] String presentation of the object
|
95
|
-
def to_s
|
96
|
-
to_hash.to_s
|
97
|
-
end
|
98
|
-
|
99
|
-
# Returns the object in the form of hash
|
100
|
-
# @return [Hash] Returns the object in the form of hash
|
101
|
-
def to_hash
|
102
|
-
hash = {}
|
103
|
-
self.class.attribute_map.each_pair do |attr, param|
|
104
|
-
value = self.send(attr)
|
105
|
-
next if value.nil?
|
106
|
-
hash[param] = _to_hash(value)
|
107
|
-
end
|
108
|
-
hash
|
109
|
-
end
|
110
|
-
|
111
|
-
private
|
112
|
-
|
113
|
-
# Outputs non-array value in the form of hash
|
114
|
-
# For object, use to_hash. Otherwise, just return the value
|
115
|
-
# @param [Object] value Any valid value
|
116
|
-
# @return [Hash] Returns the value in the form of hash
|
117
|
-
def _to_hash(value)
|
118
|
-
if value.is_a?(Array)
|
119
|
-
value.compact.map{ |v| _to_hash(v) }
|
120
|
-
elsif value.is_a?(Hash)
|
121
|
-
{}.tap do |hash|
|
122
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
123
|
-
end
|
124
|
-
elsif value.respond_to? :to_hash
|
125
|
-
value.to_hash
|
126
|
-
else
|
127
|
-
value
|
128
|
-
end
|
129
|
-
end
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
134
|
-
def self.attribute_map
|
135
|
-
{
|
136
|
-
:'compartment_id' => :'compartmentId',
|
137
|
-
:'display_name' => :'displayName',
|
138
|
-
:'route_rules' => :'routeRules',
|
139
|
-
:'vcn_id' => :'vcnId'
|
140
|
-
}
|
141
|
-
end
|
142
|
-
|
143
|
-
# Attribute type mapping.
|
144
|
-
def self.swagger_types
|
145
|
-
{
|
146
|
-
:'compartment_id' => :'String',
|
147
|
-
:'display_name' => :'String',
|
148
|
-
:'route_rules' => :'Array<OracleBMC::Core::Models::RouteRule>',
|
149
|
-
:'vcn_id' => :'String'
|
150
|
-
}
|
151
|
-
end
|
152
|
-
end
|
153
|
-
end
|
@@ -1,164 +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 Core::Models::CreateSecurityListDetails
|
7
|
-
# The OCID of the compartment to contain the security list.
|
8
|
-
# @return [String]
|
9
|
-
attr_accessor :compartment_id
|
10
|
-
|
11
|
-
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
12
|
-
# @return [String]
|
13
|
-
attr_accessor :display_name
|
14
|
-
|
15
|
-
# Rules for allowing egress IP packets.
|
16
|
-
# @return [Array<OracleBMC::Core::Models::EgressSecurityRule>]
|
17
|
-
attr_accessor :egress_security_rules
|
18
|
-
|
19
|
-
# Rules for allowing ingress IP packets.
|
20
|
-
# @return [Array<OracleBMC::Core::Models::IngressSecurityRule>]
|
21
|
-
attr_accessor :ingress_security_rules
|
22
|
-
|
23
|
-
# The OCID of the VCN the security list belongs to.
|
24
|
-
# @return [String]
|
25
|
-
attr_accessor :vcn_id
|
26
|
-
|
27
|
-
|
28
|
-
# Initializes the object
|
29
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
30
|
-
def initialize(attributes = {})
|
31
|
-
return unless attributes.is_a?(Hash)
|
32
|
-
|
33
|
-
# convert string to symbol for hash key
|
34
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
35
|
-
|
36
|
-
if attributes[:'compartmentId']
|
37
|
-
self.compartment_id = attributes[:'compartmentId']
|
38
|
-
end
|
39
|
-
|
40
|
-
if attributes[:'displayName']
|
41
|
-
self.display_name = attributes[:'displayName']
|
42
|
-
end
|
43
|
-
|
44
|
-
if attributes[:'egressSecurityRules']
|
45
|
-
self.egress_security_rules = attributes[:'egressSecurityRules']
|
46
|
-
end
|
47
|
-
|
48
|
-
if attributes[:'ingressSecurityRules']
|
49
|
-
self.ingress_security_rules = attributes[:'ingressSecurityRules']
|
50
|
-
end
|
51
|
-
|
52
|
-
if attributes[:'vcnId']
|
53
|
-
self.vcn_id = attributes[:'vcnId']
|
54
|
-
end
|
55
|
-
|
56
|
-
end
|
57
|
-
|
58
|
-
# Checks equality by comparing each attribute.
|
59
|
-
# @param [Object] other_object to be compared
|
60
|
-
def ==(other_object)
|
61
|
-
return true if self.equal?(other_object)
|
62
|
-
self.class == other_object.class &&
|
63
|
-
compartment_id == other_object.compartment_id &&
|
64
|
-
display_name == other_object.display_name &&
|
65
|
-
egress_security_rules == other_object.egress_security_rules &&
|
66
|
-
ingress_security_rules == other_object.ingress_security_rules &&
|
67
|
-
vcn_id == other_object.vcn_id
|
68
|
-
end
|
69
|
-
|
70
|
-
# @see the `==` method
|
71
|
-
# @param [Object] other_object to be compared
|
72
|
-
def eql?(other_object)
|
73
|
-
self == other_object
|
74
|
-
end
|
75
|
-
|
76
|
-
# Calculates hash code according to all attributes.
|
77
|
-
# @return [Fixnum] Hash code
|
78
|
-
def hash
|
79
|
-
[compartment_id, display_name, egress_security_rules, ingress_security_rules, vcn_id].hash
|
80
|
-
end
|
81
|
-
|
82
|
-
# Builds the object from hash
|
83
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
-
# @return [Object] Returns the model itself
|
85
|
-
def build_from_hash(attributes)
|
86
|
-
return nil unless attributes.is_a?(Hash)
|
87
|
-
self.class.swagger_types.each_pair do |key, type|
|
88
|
-
if type =~ /^Array<(.*)>/i
|
89
|
-
# check to ensure the input is an array given that the the attribute
|
90
|
-
# is documented as an array but the input is not
|
91
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
92
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
93
|
-
end
|
94
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
95
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
96
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
97
|
-
end
|
98
|
-
|
99
|
-
self
|
100
|
-
end
|
101
|
-
|
102
|
-
# Returns the string representation of the object
|
103
|
-
# @return [String] String presentation of the object
|
104
|
-
def to_s
|
105
|
-
to_hash.to_s
|
106
|
-
end
|
107
|
-
|
108
|
-
# Returns the object in the form of hash
|
109
|
-
# @return [Hash] Returns the object in the form of hash
|
110
|
-
def to_hash
|
111
|
-
hash = {}
|
112
|
-
self.class.attribute_map.each_pair do |attr, param|
|
113
|
-
value = self.send(attr)
|
114
|
-
next if value.nil?
|
115
|
-
hash[param] = _to_hash(value)
|
116
|
-
end
|
117
|
-
hash
|
118
|
-
end
|
119
|
-
|
120
|
-
private
|
121
|
-
|
122
|
-
# Outputs non-array value in the form of hash
|
123
|
-
# For object, use to_hash. Otherwise, just return the value
|
124
|
-
# @param [Object] value Any valid value
|
125
|
-
# @return [Hash] Returns the value in the form of hash
|
126
|
-
def _to_hash(value)
|
127
|
-
if value.is_a?(Array)
|
128
|
-
value.compact.map{ |v| _to_hash(v) }
|
129
|
-
elsif value.is_a?(Hash)
|
130
|
-
{}.tap do |hash|
|
131
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
132
|
-
end
|
133
|
-
elsif value.respond_to? :to_hash
|
134
|
-
value.to_hash
|
135
|
-
else
|
136
|
-
value
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
143
|
-
def self.attribute_map
|
144
|
-
{
|
145
|
-
:'compartment_id' => :'compartmentId',
|
146
|
-
:'display_name' => :'displayName',
|
147
|
-
:'egress_security_rules' => :'egressSecurityRules',
|
148
|
-
:'ingress_security_rules' => :'ingressSecurityRules',
|
149
|
-
:'vcn_id' => :'vcnId'
|
150
|
-
}
|
151
|
-
end
|
152
|
-
|
153
|
-
# Attribute type mapping.
|
154
|
-
def self.swagger_types
|
155
|
-
{
|
156
|
-
:'compartment_id' => :'String',
|
157
|
-
:'display_name' => :'String',
|
158
|
-
:'egress_security_rules' => :'Array<OracleBMC::Core::Models::EgressSecurityRule>',
|
159
|
-
:'ingress_security_rules' => :'Array<OracleBMC::Core::Models::IngressSecurityRule>',
|
160
|
-
:'vcn_id' => :'String'
|
161
|
-
}
|
162
|
-
end
|
163
|
-
end
|
164
|
-
end
|
@@ -1,257 +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 Core::Models::CreateSubnetDetails
|
7
|
-
# The Availability Domain to contain the subnet.
|
8
|
-
#
|
9
|
-
# Example: `Uocm:PHX-AD-1`
|
10
|
-
#
|
11
|
-
# @return [String]
|
12
|
-
attr_accessor :availability_domain
|
13
|
-
|
14
|
-
# The CIDR IP address range of the subnet.
|
15
|
-
#
|
16
|
-
# Example: `172.16.1.0/24`
|
17
|
-
#
|
18
|
-
# @return [String]
|
19
|
-
attr_accessor :cidr_block
|
20
|
-
|
21
|
-
# The OCID of the compartment to contain the subnet.
|
22
|
-
# @return [String]
|
23
|
-
attr_accessor :compartment_id
|
24
|
-
|
25
|
-
# The OCID of the set of DHCP options the subnet will use. If you don't
|
26
|
-
# provide a value, the subnet will use the VCN's default set of DHCP options.
|
27
|
-
#
|
28
|
-
# @return [String]
|
29
|
-
attr_accessor :dhcp_options_id
|
30
|
-
|
31
|
-
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
32
|
-
# @return [String]
|
33
|
-
attr_accessor :display_name
|
34
|
-
|
35
|
-
# A DNS label for the subnet, used in conjunction with the VNIC's hostname and
|
36
|
-
# VCN's DNS label to form a fully qualified domain name (FQDN) for each VNIC
|
37
|
-
# within this subnet (e.g., `bminstance-1.subnet123.vcn1.oraclevcn.com`).
|
38
|
-
# Must be an alphanumeric string that begins with a letter and is unique within the VCN.
|
39
|
-
# The value cannot be changed.
|
40
|
-
#
|
41
|
-
# This value must be set if you want to use the Internet and VCN Resolver to resolve the
|
42
|
-
# hostnames of instances in the subnet. It can only be set if the VCN itself
|
43
|
-
# was created with a DNS label.
|
44
|
-
#
|
45
|
-
# For more information, see
|
46
|
-
# [DNS in Your Virtual Cloud Network](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
|
47
|
-
#
|
48
|
-
# Example: `subnet123`
|
49
|
-
#
|
50
|
-
# @return [String]
|
51
|
-
attr_accessor :dns_label
|
52
|
-
|
53
|
-
# Whether VNICs within this subnet can have public IP addresses.
|
54
|
-
# Defaults to false, which means VNICs created in this subnet will
|
55
|
-
# automatically be assigned public IP addresses unless specified
|
56
|
-
# otherwise during instance launch or VNIC creation (with the
|
57
|
-
# `assignPublicIp` flag in {CreateVnicDetails}).
|
58
|
-
# If `prohibitPublicIpOnVnic` is set to true, VNICs created in this
|
59
|
-
# subnet cannot have public IP addresses (i.e., it's a private
|
60
|
-
# subnet).
|
61
|
-
#
|
62
|
-
# Example: `true`
|
63
|
-
#
|
64
|
-
# @return [BOOLEAN]
|
65
|
-
attr_accessor :prohibit_public_ip_on_vnic
|
66
|
-
|
67
|
-
# The OCID of the route table the subnet will use. If you don't provide a value,
|
68
|
-
# the subnet will use the VCN's default route table.
|
69
|
-
#
|
70
|
-
# @return [String]
|
71
|
-
attr_accessor :route_table_id
|
72
|
-
|
73
|
-
# OCIDs for the security lists to associate with the subnet. If you don't
|
74
|
-
# provide a value, the VCN's default security list will be associated with
|
75
|
-
# the subnet. Remember that security lists are associated at the subnet
|
76
|
-
# level, but the rules are applied to the individual VNICs in the subnet.
|
77
|
-
#
|
78
|
-
# @return [Array<String>]
|
79
|
-
attr_accessor :security_list_ids
|
80
|
-
|
81
|
-
# The OCID of the VCN to contain the subnet.
|
82
|
-
# @return [String]
|
83
|
-
attr_accessor :vcn_id
|
84
|
-
|
85
|
-
|
86
|
-
# Initializes the object
|
87
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
88
|
-
def initialize(attributes = {})
|
89
|
-
return unless attributes.is_a?(Hash)
|
90
|
-
|
91
|
-
# convert string to symbol for hash key
|
92
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
93
|
-
|
94
|
-
if attributes[:'availabilityDomain']
|
95
|
-
self.availability_domain = attributes[:'availabilityDomain']
|
96
|
-
end
|
97
|
-
|
98
|
-
if attributes[:'cidrBlock']
|
99
|
-
self.cidr_block = attributes[:'cidrBlock']
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes[:'compartmentId']
|
103
|
-
self.compartment_id = attributes[:'compartmentId']
|
104
|
-
end
|
105
|
-
|
106
|
-
if attributes[:'dhcpOptionsId']
|
107
|
-
self.dhcp_options_id = attributes[:'dhcpOptionsId']
|
108
|
-
end
|
109
|
-
|
110
|
-
if attributes[:'displayName']
|
111
|
-
self.display_name = attributes[:'displayName']
|
112
|
-
end
|
113
|
-
|
114
|
-
if attributes[:'dnsLabel']
|
115
|
-
self.dns_label = attributes[:'dnsLabel']
|
116
|
-
end
|
117
|
-
|
118
|
-
if attributes[:'prohibitPublicIpOnVnic']
|
119
|
-
self.prohibit_public_ip_on_vnic = attributes[:'prohibitPublicIpOnVnic']
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes[:'routeTableId']
|
123
|
-
self.route_table_id = attributes[:'routeTableId']
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes[:'securityListIds']
|
127
|
-
self.security_list_ids = attributes[:'securityListIds']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes[:'vcnId']
|
131
|
-
self.vcn_id = attributes[:'vcnId']
|
132
|
-
end
|
133
|
-
|
134
|
-
end
|
135
|
-
|
136
|
-
# Checks equality by comparing each attribute.
|
137
|
-
# @param [Object] other_object to be compared
|
138
|
-
def ==(other_object)
|
139
|
-
return true if self.equal?(other_object)
|
140
|
-
self.class == other_object.class &&
|
141
|
-
availability_domain == other_object.availability_domain &&
|
142
|
-
cidr_block == other_object.cidr_block &&
|
143
|
-
compartment_id == other_object.compartment_id &&
|
144
|
-
dhcp_options_id == other_object.dhcp_options_id &&
|
145
|
-
display_name == other_object.display_name &&
|
146
|
-
dns_label == other_object.dns_label &&
|
147
|
-
prohibit_public_ip_on_vnic == other_object.prohibit_public_ip_on_vnic &&
|
148
|
-
route_table_id == other_object.route_table_id &&
|
149
|
-
security_list_ids == other_object.security_list_ids &&
|
150
|
-
vcn_id == other_object.vcn_id
|
151
|
-
end
|
152
|
-
|
153
|
-
# @see the `==` method
|
154
|
-
# @param [Object] other_object to be compared
|
155
|
-
def eql?(other_object)
|
156
|
-
self == other_object
|
157
|
-
end
|
158
|
-
|
159
|
-
# Calculates hash code according to all attributes.
|
160
|
-
# @return [Fixnum] Hash code
|
161
|
-
def hash
|
162
|
-
[availability_domain, cidr_block, compartment_id, dhcp_options_id, display_name, dns_label, prohibit_public_ip_on_vnic, route_table_id, security_list_ids, vcn_id].hash
|
163
|
-
end
|
164
|
-
|
165
|
-
# Builds the object from hash
|
166
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
167
|
-
# @return [Object] Returns the model itself
|
168
|
-
def build_from_hash(attributes)
|
169
|
-
return nil unless attributes.is_a?(Hash)
|
170
|
-
self.class.swagger_types.each_pair do |key, type|
|
171
|
-
if type =~ /^Array<(.*)>/i
|
172
|
-
# check to ensure the input is an array given that the the attribute
|
173
|
-
# is documented as an array but the input is not
|
174
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
175
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
176
|
-
end
|
177
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
178
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
179
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
180
|
-
end
|
181
|
-
|
182
|
-
self
|
183
|
-
end
|
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 = self.send(attr)
|
197
|
-
next if value.nil?
|
198
|
-
hash[param] = _to_hash(value)
|
199
|
-
end
|
200
|
-
hash
|
201
|
-
end
|
202
|
-
|
203
|
-
private
|
204
|
-
|
205
|
-
# Outputs non-array value in the form of hash
|
206
|
-
# For object, use to_hash. Otherwise, just return the value
|
207
|
-
# @param [Object] value Any valid value
|
208
|
-
# @return [Hash] Returns the value in the form of hash
|
209
|
-
def _to_hash(value)
|
210
|
-
if value.is_a?(Array)
|
211
|
-
value.compact.map{ |v| _to_hash(v) }
|
212
|
-
elsif value.is_a?(Hash)
|
213
|
-
{}.tap do |hash|
|
214
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
215
|
-
end
|
216
|
-
elsif value.respond_to? :to_hash
|
217
|
-
value.to_hash
|
218
|
-
else
|
219
|
-
value
|
220
|
-
end
|
221
|
-
end
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
226
|
-
def self.attribute_map
|
227
|
-
{
|
228
|
-
:'availability_domain' => :'availabilityDomain',
|
229
|
-
:'cidr_block' => :'cidrBlock',
|
230
|
-
:'compartment_id' => :'compartmentId',
|
231
|
-
:'dhcp_options_id' => :'dhcpOptionsId',
|
232
|
-
:'display_name' => :'displayName',
|
233
|
-
:'dns_label' => :'dnsLabel',
|
234
|
-
:'prohibit_public_ip_on_vnic' => :'prohibitPublicIpOnVnic',
|
235
|
-
:'route_table_id' => :'routeTableId',
|
236
|
-
:'security_list_ids' => :'securityListIds',
|
237
|
-
:'vcn_id' => :'vcnId'
|
238
|
-
}
|
239
|
-
end
|
240
|
-
|
241
|
-
# Attribute type mapping.
|
242
|
-
def self.swagger_types
|
243
|
-
{
|
244
|
-
:'availability_domain' => :'String',
|
245
|
-
:'cidr_block' => :'String',
|
246
|
-
:'compartment_id' => :'String',
|
247
|
-
:'dhcp_options_id' => :'String',
|
248
|
-
:'display_name' => :'String',
|
249
|
-
:'dns_label' => :'String',
|
250
|
-
:'prohibit_public_ip_on_vnic' => :'BOOLEAN',
|
251
|
-
:'route_table_id' => :'String',
|
252
|
-
:'security_list_ids' => :'Array<String>',
|
253
|
-
:'vcn_id' => :'String'
|
254
|
-
}
|
255
|
-
end
|
256
|
-
end
|
257
|
-
end
|