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,171 +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::CreateVcnDetails
|
7
|
-
# The CIDR IP address block of the VCN.
|
8
|
-
#
|
9
|
-
# Example: `172.16.0.0/16`
|
10
|
-
#
|
11
|
-
# @return [String]
|
12
|
-
attr_accessor :cidr_block
|
13
|
-
|
14
|
-
# The OCID of the compartment to contain the VCN.
|
15
|
-
# @return [String]
|
16
|
-
attr_accessor :compartment_id
|
17
|
-
|
18
|
-
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
19
|
-
# @return [String]
|
20
|
-
attr_accessor :display_name
|
21
|
-
|
22
|
-
# A DNS label for the VCN, used in conjunction with the VNIC's hostname and
|
23
|
-
# subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC
|
24
|
-
# within this subnet (e.g., `bminstance-1.subnet123.vcn1.oraclevcn.com`).
|
25
|
-
# Not required to be unique, but it's a best practice to set unique DNS labels
|
26
|
-
# for VCNs in your tenancy. Must be an alphanumeric string that begins with a letter.
|
27
|
-
# The value cannot be changed.
|
28
|
-
#
|
29
|
-
# You must set this value if you want instances to be able to use hostnames to
|
30
|
-
# resolve other instances in the VCN. Otherwise the Internet and VCN Resolver
|
31
|
-
# will not work.
|
32
|
-
#
|
33
|
-
# For more information, see
|
34
|
-
# [DNS in Your Virtual Cloud Network](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
|
35
|
-
#
|
36
|
-
# Example: `vcn1`
|
37
|
-
#
|
38
|
-
# @return [String]
|
39
|
-
attr_accessor :dns_label
|
40
|
-
|
41
|
-
|
42
|
-
# Initializes the object
|
43
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
44
|
-
def initialize(attributes = {})
|
45
|
-
return unless attributes.is_a?(Hash)
|
46
|
-
|
47
|
-
# convert string to symbol for hash key
|
48
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
49
|
-
|
50
|
-
if attributes[:'cidrBlock']
|
51
|
-
self.cidr_block = attributes[:'cidrBlock']
|
52
|
-
end
|
53
|
-
|
54
|
-
if attributes[:'compartmentId']
|
55
|
-
self.compartment_id = attributes[:'compartmentId']
|
56
|
-
end
|
57
|
-
|
58
|
-
if attributes[:'displayName']
|
59
|
-
self.display_name = attributes[:'displayName']
|
60
|
-
end
|
61
|
-
|
62
|
-
if attributes[:'dnsLabel']
|
63
|
-
self.dns_label = attributes[:'dnsLabel']
|
64
|
-
end
|
65
|
-
|
66
|
-
end
|
67
|
-
|
68
|
-
# Checks equality by comparing each attribute.
|
69
|
-
# @param [Object] other_object to be compared
|
70
|
-
def ==(other_object)
|
71
|
-
return true if self.equal?(other_object)
|
72
|
-
self.class == other_object.class &&
|
73
|
-
cidr_block == other_object.cidr_block &&
|
74
|
-
compartment_id == other_object.compartment_id &&
|
75
|
-
display_name == other_object.display_name &&
|
76
|
-
dns_label == other_object.dns_label
|
77
|
-
end
|
78
|
-
|
79
|
-
# @see the `==` method
|
80
|
-
# @param [Object] other_object to be compared
|
81
|
-
def eql?(other_object)
|
82
|
-
self == other_object
|
83
|
-
end
|
84
|
-
|
85
|
-
# Calculates hash code according to all attributes.
|
86
|
-
# @return [Fixnum] Hash code
|
87
|
-
def hash
|
88
|
-
[cidr_block, compartment_id, display_name, dns_label].hash
|
89
|
-
end
|
90
|
-
|
91
|
-
# Builds the object from hash
|
92
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
93
|
-
# @return [Object] Returns the model itself
|
94
|
-
def build_from_hash(attributes)
|
95
|
-
return nil unless attributes.is_a?(Hash)
|
96
|
-
self.class.swagger_types.each_pair do |key, type|
|
97
|
-
if type =~ /^Array<(.*)>/i
|
98
|
-
# check to ensure the input is an array given that the the attribute
|
99
|
-
# is documented as an array but the input is not
|
100
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
101
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
102
|
-
end
|
103
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
104
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
105
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
106
|
-
end
|
107
|
-
|
108
|
-
self
|
109
|
-
end
|
110
|
-
|
111
|
-
# Returns the string representation of the object
|
112
|
-
# @return [String] String presentation of the object
|
113
|
-
def to_s
|
114
|
-
to_hash.to_s
|
115
|
-
end
|
116
|
-
|
117
|
-
# Returns the object in the form of hash
|
118
|
-
# @return [Hash] Returns the object in the form of hash
|
119
|
-
def to_hash
|
120
|
-
hash = {}
|
121
|
-
self.class.attribute_map.each_pair do |attr, param|
|
122
|
-
value = self.send(attr)
|
123
|
-
next if value.nil?
|
124
|
-
hash[param] = _to_hash(value)
|
125
|
-
end
|
126
|
-
hash
|
127
|
-
end
|
128
|
-
|
129
|
-
private
|
130
|
-
|
131
|
-
# Outputs non-array value in the form of hash
|
132
|
-
# For object, use to_hash. Otherwise, just return the value
|
133
|
-
# @param [Object] value Any valid value
|
134
|
-
# @return [Hash] Returns the value in the form of hash
|
135
|
-
def _to_hash(value)
|
136
|
-
if value.is_a?(Array)
|
137
|
-
value.compact.map{ |v| _to_hash(v) }
|
138
|
-
elsif value.is_a?(Hash)
|
139
|
-
{}.tap do |hash|
|
140
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
141
|
-
end
|
142
|
-
elsif value.respond_to? :to_hash
|
143
|
-
value.to_hash
|
144
|
-
else
|
145
|
-
value
|
146
|
-
end
|
147
|
-
end
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
152
|
-
def self.attribute_map
|
153
|
-
{
|
154
|
-
:'cidr_block' => :'cidrBlock',
|
155
|
-
:'compartment_id' => :'compartmentId',
|
156
|
-
:'display_name' => :'displayName',
|
157
|
-
:'dns_label' => :'dnsLabel'
|
158
|
-
}
|
159
|
-
end
|
160
|
-
|
161
|
-
# Attribute type mapping.
|
162
|
-
def self.swagger_types
|
163
|
-
{
|
164
|
-
:'cidr_block' => :'String',
|
165
|
-
:'compartment_id' => :'String',
|
166
|
-
:'display_name' => :'String',
|
167
|
-
:'dns_label' => :'String'
|
168
|
-
}
|
169
|
-
end
|
170
|
-
end
|
171
|
-
end
|
@@ -1,260 +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::CreateVirtualCircuitDetails
|
7
|
-
|
8
|
-
TYPE_ENUM = [TYPE_PUBLIC = 'PUBLIC',
|
9
|
-
TYPE_PRIVATE = 'PRIVATE']
|
10
|
-
|
11
|
-
# The provisioned data rate of the connection. To get a list of the
|
12
|
-
# available bandwidth levels (i.e., shapes), see
|
13
|
-
# {#list_virtual_circuit_bandwidth_shapes list_virtual_circuit_bandwidth_shapes}.
|
14
|
-
#
|
15
|
-
# Example: `10 Gbps`
|
16
|
-
#
|
17
|
-
# @return [String]
|
18
|
-
attr_accessor :bandwidth_shape_name
|
19
|
-
|
20
|
-
# The OCID of the compartment to contain the virtual circuit.
|
21
|
-
#
|
22
|
-
# @return [String]
|
23
|
-
attr_accessor :compartment_id
|
24
|
-
|
25
|
-
# Create a `CrossConnectMapping` for each cross-connect or cross-connect
|
26
|
-
# group this virtual circuit will run on.
|
27
|
-
#
|
28
|
-
# @return [Array<OracleBMC::Core::Models::CrossConnectMapping>]
|
29
|
-
attr_accessor :cross_connect_mappings
|
30
|
-
|
31
|
-
# Your BGP ASN (either public or private). Provide this value only if
|
32
|
-
# there's a BGP session that goes from your edge router to Oracle.
|
33
|
-
# Otherwise, leave this empty or null.
|
34
|
-
#
|
35
|
-
# @return [Integer]
|
36
|
-
attr_accessor :customer_bgp_asn
|
37
|
-
|
38
|
-
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
39
|
-
#
|
40
|
-
# @return [String]
|
41
|
-
attr_accessor :display_name
|
42
|
-
|
43
|
-
# The OCID of the {Drg}
|
44
|
-
# that this virtual circuit uses.
|
45
|
-
#
|
46
|
-
# @return [String]
|
47
|
-
attr_accessor :gateway_id
|
48
|
-
|
49
|
-
# The name of the provider (if you're connecting via a provider).
|
50
|
-
# To get a list of the provider names, see
|
51
|
-
# {#list_fast_connect_provider_services list_fast_connect_provider_services}.
|
52
|
-
#
|
53
|
-
# @return [String]
|
54
|
-
attr_accessor :provider_name
|
55
|
-
|
56
|
-
# The name of the service offered by the provider (if you're connecting
|
57
|
-
# via a provider). To get a list of the available service offerings, see
|
58
|
-
# {#list_fast_connect_provider_services list_fast_connect_provider_services}.
|
59
|
-
#
|
60
|
-
# @return [String]
|
61
|
-
attr_accessor :provider_service_name
|
62
|
-
|
63
|
-
# The Oracle Bare Metal Cloud Services region where this virtual
|
64
|
-
# circuit is located.
|
65
|
-
#
|
66
|
-
# Example: `phx`
|
67
|
-
#
|
68
|
-
# @return [String]
|
69
|
-
attr_accessor :region
|
70
|
-
|
71
|
-
# The type of IP addresses used in this virtual circuit. PRIVATE
|
72
|
-
# means [RFC 1918](https://tools.ietf.org/html/rfc1918) addresses
|
73
|
-
# (10.0.0.0/8, 172.16/12, and 192.168/16). Only PRIVATE is supported.
|
74
|
-
#
|
75
|
-
# @return [String]
|
76
|
-
attr_accessor :type
|
77
|
-
|
78
|
-
|
79
|
-
# Initializes the object
|
80
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
81
|
-
def initialize(attributes = {})
|
82
|
-
return unless attributes.is_a?(Hash)
|
83
|
-
|
84
|
-
# convert string to symbol for hash key
|
85
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
86
|
-
|
87
|
-
if attributes[:'bandwidthShapeName']
|
88
|
-
self.bandwidth_shape_name = attributes[:'bandwidthShapeName']
|
89
|
-
end
|
90
|
-
|
91
|
-
if attributes[:'compartmentId']
|
92
|
-
self.compartment_id = attributes[:'compartmentId']
|
93
|
-
end
|
94
|
-
|
95
|
-
if attributes[:'crossConnectMappings']
|
96
|
-
self.cross_connect_mappings = attributes[:'crossConnectMappings']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes[:'customerBgpAsn']
|
100
|
-
self.customer_bgp_asn = attributes[:'customerBgpAsn']
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes[:'displayName']
|
104
|
-
self.display_name = attributes[:'displayName']
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes[:'gatewayId']
|
108
|
-
self.gateway_id = attributes[:'gatewayId']
|
109
|
-
end
|
110
|
-
|
111
|
-
if attributes[:'providerName']
|
112
|
-
self.provider_name = attributes[:'providerName']
|
113
|
-
end
|
114
|
-
|
115
|
-
if attributes[:'providerServiceName']
|
116
|
-
self.provider_service_name = attributes[:'providerServiceName']
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes[:'region']
|
120
|
-
self.region = attributes[:'region']
|
121
|
-
end
|
122
|
-
|
123
|
-
if attributes[:'type']
|
124
|
-
self.type = attributes[:'type']
|
125
|
-
end
|
126
|
-
|
127
|
-
end
|
128
|
-
|
129
|
-
# Custom attribute writer method checking allowed values (enum).
|
130
|
-
# @param [Object] type Object to be assigned
|
131
|
-
def type=(type)
|
132
|
-
if type && !TYPE_ENUM.include?(type)
|
133
|
-
fail "Invalid value for 'type': this must be one of the values in TYPE_ENUM."
|
134
|
-
else
|
135
|
-
@type = type
|
136
|
-
end
|
137
|
-
end
|
138
|
-
|
139
|
-
# Checks equality by comparing each attribute.
|
140
|
-
# @param [Object] other_object to be compared
|
141
|
-
def ==(other_object)
|
142
|
-
return true if self.equal?(other_object)
|
143
|
-
self.class == other_object.class &&
|
144
|
-
bandwidth_shape_name == other_object.bandwidth_shape_name &&
|
145
|
-
compartment_id == other_object.compartment_id &&
|
146
|
-
cross_connect_mappings == other_object.cross_connect_mappings &&
|
147
|
-
customer_bgp_asn == other_object.customer_bgp_asn &&
|
148
|
-
display_name == other_object.display_name &&
|
149
|
-
gateway_id == other_object.gateway_id &&
|
150
|
-
provider_name == other_object.provider_name &&
|
151
|
-
provider_service_name == other_object.provider_service_name &&
|
152
|
-
region == other_object.region &&
|
153
|
-
type == other_object.type
|
154
|
-
end
|
155
|
-
|
156
|
-
# @see the `==` method
|
157
|
-
# @param [Object] other_object to be compared
|
158
|
-
def eql?(other_object)
|
159
|
-
self == other_object
|
160
|
-
end
|
161
|
-
|
162
|
-
# Calculates hash code according to all attributes.
|
163
|
-
# @return [Fixnum] Hash code
|
164
|
-
def hash
|
165
|
-
[bandwidth_shape_name, compartment_id, cross_connect_mappings, customer_bgp_asn, display_name, gateway_id, provider_name, provider_service_name, region, type].hash
|
166
|
-
end
|
167
|
-
|
168
|
-
# Builds the object from hash
|
169
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
170
|
-
# @return [Object] Returns the model itself
|
171
|
-
def build_from_hash(attributes)
|
172
|
-
return nil unless attributes.is_a?(Hash)
|
173
|
-
self.class.swagger_types.each_pair do |key, type|
|
174
|
-
if type =~ /^Array<(.*)>/i
|
175
|
-
# check to ensure the input is an array given that the the attribute
|
176
|
-
# is documented as an array but the input is not
|
177
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
178
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
179
|
-
end
|
180
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
181
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
182
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
183
|
-
end
|
184
|
-
|
185
|
-
self
|
186
|
-
end
|
187
|
-
|
188
|
-
# Returns the string representation of the object
|
189
|
-
# @return [String] String presentation of the object
|
190
|
-
def to_s
|
191
|
-
to_hash.to_s
|
192
|
-
end
|
193
|
-
|
194
|
-
# Returns the object in the form of hash
|
195
|
-
# @return [Hash] Returns the object in the form of hash
|
196
|
-
def to_hash
|
197
|
-
hash = {}
|
198
|
-
self.class.attribute_map.each_pair do |attr, param|
|
199
|
-
value = self.send(attr)
|
200
|
-
next if value.nil?
|
201
|
-
hash[param] = _to_hash(value)
|
202
|
-
end
|
203
|
-
hash
|
204
|
-
end
|
205
|
-
|
206
|
-
private
|
207
|
-
|
208
|
-
# Outputs non-array value in the form of hash
|
209
|
-
# For object, use to_hash. Otherwise, just return the value
|
210
|
-
# @param [Object] value Any valid value
|
211
|
-
# @return [Hash] Returns the value in the form of hash
|
212
|
-
def _to_hash(value)
|
213
|
-
if value.is_a?(Array)
|
214
|
-
value.compact.map{ |v| _to_hash(v) }
|
215
|
-
elsif value.is_a?(Hash)
|
216
|
-
{}.tap do |hash|
|
217
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
218
|
-
end
|
219
|
-
elsif value.respond_to? :to_hash
|
220
|
-
value.to_hash
|
221
|
-
else
|
222
|
-
value
|
223
|
-
end
|
224
|
-
end
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
229
|
-
def self.attribute_map
|
230
|
-
{
|
231
|
-
:'bandwidth_shape_name' => :'bandwidthShapeName',
|
232
|
-
:'compartment_id' => :'compartmentId',
|
233
|
-
:'cross_connect_mappings' => :'crossConnectMappings',
|
234
|
-
:'customer_bgp_asn' => :'customerBgpAsn',
|
235
|
-
:'display_name' => :'displayName',
|
236
|
-
:'gateway_id' => :'gatewayId',
|
237
|
-
:'provider_name' => :'providerName',
|
238
|
-
:'provider_service_name' => :'providerServiceName',
|
239
|
-
:'region' => :'region',
|
240
|
-
:'type' => :'type'
|
241
|
-
}
|
242
|
-
end
|
243
|
-
|
244
|
-
# Attribute type mapping.
|
245
|
-
def self.swagger_types
|
246
|
-
{
|
247
|
-
:'bandwidth_shape_name' => :'String',
|
248
|
-
:'compartment_id' => :'String',
|
249
|
-
:'cross_connect_mappings' => :'Array<OracleBMC::Core::Models::CrossConnectMapping>',
|
250
|
-
:'customer_bgp_asn' => :'Integer',
|
251
|
-
:'display_name' => :'String',
|
252
|
-
:'gateway_id' => :'String',
|
253
|
-
:'provider_name' => :'String',
|
254
|
-
:'provider_service_name' => :'String',
|
255
|
-
:'region' => :'String',
|
256
|
-
:'type' => :'String'
|
257
|
-
}
|
258
|
-
end
|
259
|
-
end
|
260
|
-
end
|
@@ -1,214 +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::CreateVnicDetails
|
7
|
-
# Whether the VNIC should be assigned a public IP address. Defaults to whether
|
8
|
-
# the subnet is public or private. If not set and the VNIC is being created
|
9
|
-
# in a private subnet (i.e., where `prohibitPublicIpOnVnic` = true in the
|
10
|
-
# {Subnet}), then no public IP address is assigned.
|
11
|
-
# If not set and the subnet is public (`prohibitPublicIpOnVnic` = false), then
|
12
|
-
# a public IP address is assigned. If set to true and
|
13
|
-
# `prohibitPublicIpOnVnic` = true, an error is returned.
|
14
|
-
#
|
15
|
-
# **Note:** This public IP address is associated with the primary private IP
|
16
|
-
# on the VNIC. Secondary private IPs cannot have public IP
|
17
|
-
# addresses associated with them. For more information, see
|
18
|
-
# [Managing IP Addresses](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPaddresses.htm).
|
19
|
-
#
|
20
|
-
# Example: `false`
|
21
|
-
#
|
22
|
-
# @return [BOOLEAN]
|
23
|
-
attr_accessor :assign_public_ip
|
24
|
-
|
25
|
-
# A user-friendly name for the VNIC. Does not have to be unique.
|
26
|
-
# Avoid entering confidential information.
|
27
|
-
#
|
28
|
-
# @return [String]
|
29
|
-
attr_accessor :display_name
|
30
|
-
|
31
|
-
# The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname
|
32
|
-
# portion of the primary private IP's fully qualified domain name (FQDN)
|
33
|
-
# (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`).
|
34
|
-
# Must be unique across all VNICs in the subnet and comply with
|
35
|
-
# [RFC 952](https://tools.ietf.org/html/rfc952) and
|
36
|
-
# [RFC 1123](https://tools.ietf.org/html/rfc1123).
|
37
|
-
# The value appears in the {Vnic} object and also the
|
38
|
-
# {PrivateIp} object returned by
|
39
|
-
# {#list_private_ips list_private_ips} and
|
40
|
-
# {#get_private_ip get_private_ip}.
|
41
|
-
#
|
42
|
-
# For more information, see
|
43
|
-
# [DNS in Your Virtual Cloud Network](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
|
44
|
-
#
|
45
|
-
# When launching an instance, use this `hostnameLabel` instead
|
46
|
-
# of the deprecated `hostnameLabel` in
|
47
|
-
# {#launch_instance_details launch_instance_details}.
|
48
|
-
# If you provide both, the values must match.
|
49
|
-
#
|
50
|
-
# Example: `bminstance-1`
|
51
|
-
#
|
52
|
-
# @return [String]
|
53
|
-
attr_accessor :hostname_label
|
54
|
-
|
55
|
-
# A private IP address of your choice to assign to the VNIC. Must be an
|
56
|
-
# available IP address within the subnet's CIDR. If you don't specify a
|
57
|
-
# value, Oracle automatically assigns a private IP address from the subnet.
|
58
|
-
# This is the VNIC's *primary* private IP address. The value appears in
|
59
|
-
# the {Vnic} object and also the
|
60
|
-
# {PrivateIp} object returned by
|
61
|
-
# {#list_private_ips list_private_ips} and
|
62
|
-
# {#get_private_ip get_private_ip}.
|
63
|
-
#
|
64
|
-
# Example: `10.0.3.3`
|
65
|
-
#
|
66
|
-
# @return [String]
|
67
|
-
attr_accessor :private_ip
|
68
|
-
|
69
|
-
# The OCID of the subnet to create the VNIC in. When launching an instance,
|
70
|
-
# use this `subnetId` instead of the deprecated `subnetId` in
|
71
|
-
# {#launch_instance_details launch_instance_details}.
|
72
|
-
# At least one of them is required; if you provide both, the values must match.
|
73
|
-
#
|
74
|
-
# @return [String]
|
75
|
-
attr_accessor :subnet_id
|
76
|
-
|
77
|
-
|
78
|
-
# Initializes the object
|
79
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
80
|
-
def initialize(attributes = {})
|
81
|
-
return unless attributes.is_a?(Hash)
|
82
|
-
|
83
|
-
# convert string to symbol for hash key
|
84
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
85
|
-
|
86
|
-
if attributes[:'assignPublicIp']
|
87
|
-
self.assign_public_ip = attributes[:'assignPublicIp']
|
88
|
-
end
|
89
|
-
|
90
|
-
if attributes[:'displayName']
|
91
|
-
self.display_name = attributes[:'displayName']
|
92
|
-
end
|
93
|
-
|
94
|
-
if attributes[:'hostnameLabel']
|
95
|
-
self.hostname_label = attributes[:'hostnameLabel']
|
96
|
-
end
|
97
|
-
|
98
|
-
if attributes[:'privateIp']
|
99
|
-
self.private_ip = attributes[:'privateIp']
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes[:'subnetId']
|
103
|
-
self.subnet_id = attributes[:'subnetId']
|
104
|
-
end
|
105
|
-
|
106
|
-
end
|
107
|
-
|
108
|
-
# Checks equality by comparing each attribute.
|
109
|
-
# @param [Object] other_object to be compared
|
110
|
-
def ==(other_object)
|
111
|
-
return true if self.equal?(other_object)
|
112
|
-
self.class == other_object.class &&
|
113
|
-
assign_public_ip == other_object.assign_public_ip &&
|
114
|
-
display_name == other_object.display_name &&
|
115
|
-
hostname_label == other_object.hostname_label &&
|
116
|
-
private_ip == other_object.private_ip &&
|
117
|
-
subnet_id == other_object.subnet_id
|
118
|
-
end
|
119
|
-
|
120
|
-
# @see the `==` method
|
121
|
-
# @param [Object] other_object to be compared
|
122
|
-
def eql?(other_object)
|
123
|
-
self == other_object
|
124
|
-
end
|
125
|
-
|
126
|
-
# Calculates hash code according to all attributes.
|
127
|
-
# @return [Fixnum] Hash code
|
128
|
-
def hash
|
129
|
-
[assign_public_ip, display_name, hostname_label, private_ip, subnet_id].hash
|
130
|
-
end
|
131
|
-
|
132
|
-
# Builds the object from hash
|
133
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
-
# @return [Object] Returns the model itself
|
135
|
-
def build_from_hash(attributes)
|
136
|
-
return nil unless attributes.is_a?(Hash)
|
137
|
-
self.class.swagger_types.each_pair do |key, type|
|
138
|
-
if type =~ /^Array<(.*)>/i
|
139
|
-
# check to ensure the input is an array given that the the attribute
|
140
|
-
# is documented as an array but the input is not
|
141
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
142
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
143
|
-
end
|
144
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
145
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
146
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
147
|
-
end
|
148
|
-
|
149
|
-
self
|
150
|
-
end
|
151
|
-
|
152
|
-
# Returns the string representation of the object
|
153
|
-
# @return [String] String presentation of the object
|
154
|
-
def to_s
|
155
|
-
to_hash.to_s
|
156
|
-
end
|
157
|
-
|
158
|
-
# Returns the object in the form of hash
|
159
|
-
# @return [Hash] Returns the object in the form of hash
|
160
|
-
def to_hash
|
161
|
-
hash = {}
|
162
|
-
self.class.attribute_map.each_pair do |attr, param|
|
163
|
-
value = self.send(attr)
|
164
|
-
next if value.nil?
|
165
|
-
hash[param] = _to_hash(value)
|
166
|
-
end
|
167
|
-
hash
|
168
|
-
end
|
169
|
-
|
170
|
-
private
|
171
|
-
|
172
|
-
# Outputs non-array value in the form of hash
|
173
|
-
# For object, use to_hash. Otherwise, just return the value
|
174
|
-
# @param [Object] value Any valid value
|
175
|
-
# @return [Hash] Returns the value in the form of hash
|
176
|
-
def _to_hash(value)
|
177
|
-
if value.is_a?(Array)
|
178
|
-
value.compact.map{ |v| _to_hash(v) }
|
179
|
-
elsif value.is_a?(Hash)
|
180
|
-
{}.tap do |hash|
|
181
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
182
|
-
end
|
183
|
-
elsif value.respond_to? :to_hash
|
184
|
-
value.to_hash
|
185
|
-
else
|
186
|
-
value
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
193
|
-
def self.attribute_map
|
194
|
-
{
|
195
|
-
:'assign_public_ip' => :'assignPublicIp',
|
196
|
-
:'display_name' => :'displayName',
|
197
|
-
:'hostname_label' => :'hostnameLabel',
|
198
|
-
:'private_ip' => :'privateIp',
|
199
|
-
:'subnet_id' => :'subnetId'
|
200
|
-
}
|
201
|
-
end
|
202
|
-
|
203
|
-
# Attribute type mapping.
|
204
|
-
def self.swagger_types
|
205
|
-
{
|
206
|
-
:'assign_public_ip' => :'BOOLEAN',
|
207
|
-
:'display_name' => :'String',
|
208
|
-
:'hostname_label' => :'String',
|
209
|
-
:'private_ip' => :'String',
|
210
|
-
:'subnet_id' => :'String'
|
211
|
-
}
|
212
|
-
end
|
213
|
-
end
|
214
|
-
end
|