oraclebmc 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/oraclebmc/core/blockstorage_client.rb +16 -11
  4. data/lib/oraclebmc/core/compute_client.rb +227 -37
  5. data/lib/oraclebmc/core/core.rb +11 -0
  6. data/lib/oraclebmc/core/models/attach_i_scsi_volume_details.rb +1 -2
  7. data/lib/oraclebmc/core/models/attach_vnic_details.rb +144 -0
  8. data/lib/oraclebmc/core/models/attach_volume_details.rb +5 -6
  9. data/lib/oraclebmc/core/models/capture_console_history_details.rb +1 -2
  10. data/lib/oraclebmc/core/models/console_history.rb +8 -8
  11. data/lib/oraclebmc/core/models/cpe.rb +7 -6
  12. data/lib/oraclebmc/core/models/create_cpe_details.rb +4 -5
  13. data/lib/oraclebmc/core/models/create_cross_connect_details.rb +9 -8
  14. data/lib/oraclebmc/core/models/create_cross_connect_group_details.rb +4 -3
  15. data/lib/oraclebmc/core/models/create_dhcp_details.rb +5 -6
  16. data/lib/oraclebmc/core/models/create_drg_attachment_details.rb +4 -5
  17. data/lib/oraclebmc/core/models/create_drg_details.rb +3 -4
  18. data/lib/oraclebmc/core/models/create_image_details.rb +19 -7
  19. data/lib/oraclebmc/core/models/create_internet_gateway_details.rb +5 -6
  20. data/lib/oraclebmc/core/models/create_ip_sec_connection_details.rb +6 -7
  21. data/lib/oraclebmc/core/models/create_private_ip_details.rb +173 -0
  22. data/lib/oraclebmc/core/models/create_route_table_details.rb +5 -6
  23. data/lib/oraclebmc/core/models/create_security_list_details.rb +6 -7
  24. data/lib/oraclebmc/core/models/create_subnet_details.rb +14 -15
  25. data/lib/oraclebmc/core/models/create_vcn_details.rb +6 -8
  26. data/lib/oraclebmc/core/models/create_virtual_circuit_details.rb +11 -12
  27. data/lib/oraclebmc/core/models/create_vnic_details.rb +39 -27
  28. data/lib/oraclebmc/core/models/create_volume_backup_details.rb +4 -3
  29. data/lib/oraclebmc/core/models/create_volume_details.rb +6 -6
  30. data/lib/oraclebmc/core/models/cross_connect.rb +11 -10
  31. data/lib/oraclebmc/core/models/cross_connect_group.rb +6 -6
  32. data/lib/oraclebmc/core/models/cross_connect_location.rb +2 -3
  33. data/lib/oraclebmc/core/models/cross_connect_mapping.rb +5 -6
  34. data/lib/oraclebmc/core/models/cross_connect_port_speed_shape.rb +2 -3
  35. data/lib/oraclebmc/core/models/cross_connect_status.rb +4 -5
  36. data/lib/oraclebmc/core/models/dhcp_dns_option.rb +2 -3
  37. data/lib/oraclebmc/core/models/dhcp_option.rb +1 -2
  38. data/lib/oraclebmc/core/models/dhcp_options.rb +9 -8
  39. data/lib/oraclebmc/core/models/dhcp_search_domain_option.rb +1 -2
  40. data/lib/oraclebmc/core/models/drg.rb +7 -6
  41. data/lib/oraclebmc/core/models/drg_attachment.rb +9 -8
  42. data/lib/oraclebmc/core/models/egress_security_rule.rb +6 -7
  43. data/lib/oraclebmc/core/models/export_image_details.rb +134 -0
  44. data/lib/oraclebmc/core/models/export_image_via_object_storage_tuple_details.rb +150 -0
  45. data/lib/oraclebmc/core/models/export_image_via_object_storage_uri_details.rb +130 -0
  46. data/lib/oraclebmc/core/models/fast_connect_provider_service.rb +3 -4
  47. data/lib/oraclebmc/core/models/i_scsi_volume_attachment.rb +5 -6
  48. data/lib/oraclebmc/core/models/icmp_options.rb +2 -3
  49. data/lib/oraclebmc/core/models/image.rb +12 -10
  50. data/lib/oraclebmc/core/models/image_source_details.rb +134 -0
  51. data/lib/oraclebmc/core/models/image_source_via_object_storage_tuple_details.rb +150 -0
  52. data/lib/oraclebmc/core/models/image_source_via_object_storage_uri_details.rb +128 -0
  53. data/lib/oraclebmc/core/models/ingress_security_rule.rb +6 -7
  54. data/lib/oraclebmc/core/models/instance.rb +13 -13
  55. data/lib/oraclebmc/core/models/instance_credentials.rb +2 -3
  56. data/lib/oraclebmc/core/models/internet_gateway.rb +9 -8
  57. data/lib/oraclebmc/core/models/ip_sec_connection.rb +10 -9
  58. data/lib/oraclebmc/core/models/ip_sec_connection_device_config.rb +4 -5
  59. data/lib/oraclebmc/core/models/ip_sec_connection_device_status.rb +4 -5
  60. data/lib/oraclebmc/core/models/launch_instance_details.rb +17 -15
  61. data/lib/oraclebmc/core/models/letter_of_authority.rb +6 -7
  62. data/lib/oraclebmc/core/models/port_range.rb +2 -3
  63. data/lib/oraclebmc/core/models/private_ip.rb +248 -0
  64. data/lib/oraclebmc/core/models/route_rule.rb +2 -3
  65. data/lib/oraclebmc/core/models/route_table.rb +9 -8
  66. data/lib/oraclebmc/core/models/security_list.rb +10 -9
  67. data/lib/oraclebmc/core/models/shape.rb +1 -2
  68. data/lib/oraclebmc/core/models/subnet.rb +21 -19
  69. data/lib/oraclebmc/core/models/tcp_options.rb +2 -3
  70. data/lib/oraclebmc/core/models/tunnel_config.rb +3 -4
  71. data/lib/oraclebmc/core/models/tunnel_status.rb +4 -5
  72. data/lib/oraclebmc/core/models/udp_options.rb +2 -3
  73. data/lib/oraclebmc/core/models/update_cpe_details.rb +3 -2
  74. data/lib/oraclebmc/core/models/update_cross_connect_details.rb +4 -3
  75. data/lib/oraclebmc/core/models/update_cross_connect_group_details.rb +3 -2
  76. data/lib/oraclebmc/core/models/update_dhcp_details.rb +4 -3
  77. data/lib/oraclebmc/core/models/update_drg_attachment_details.rb +3 -2
  78. data/lib/oraclebmc/core/models/update_drg_details.rb +3 -2
  79. data/lib/oraclebmc/core/models/update_image_details.rb +3 -3
  80. data/lib/oraclebmc/core/models/update_instance_details.rb +2 -2
  81. data/lib/oraclebmc/core/models/update_internet_gateway_details.rb +4 -3
  82. data/lib/oraclebmc/core/models/update_ip_sec_connection_details.rb +3 -2
  83. data/lib/oraclebmc/core/models/update_private_ip_details.rb +157 -0
  84. data/lib/oraclebmc/core/models/update_route_table_details.rb +4 -3
  85. data/lib/oraclebmc/core/models/update_security_list_details.rb +5 -4
  86. data/lib/oraclebmc/core/models/update_subnet_details.rb +3 -2
  87. data/lib/oraclebmc/core/models/update_vcn_details.rb +3 -2
  88. data/lib/oraclebmc/core/models/update_virtual_circuit_details.rb +8 -8
  89. data/lib/oraclebmc/core/models/update_vnic_details.rb +144 -0
  90. data/lib/oraclebmc/core/models/update_volume_backup_details.rb +3 -2
  91. data/lib/oraclebmc/core/models/update_volume_details.rb +2 -2
  92. data/lib/oraclebmc/core/models/vcn.rb +13 -12
  93. data/lib/oraclebmc/core/models/virtual_circuit.rb +18 -18
  94. data/lib/oraclebmc/core/models/virtual_circuit_bandwidth_shape.rb +2 -3
  95. data/lib/oraclebmc/core/models/vnic.rb +47 -19
  96. data/lib/oraclebmc/core/models/vnic_attachment.rb +33 -15
  97. data/lib/oraclebmc/core/models/volume.rb +8 -8
  98. data/lib/oraclebmc/core/models/volume_attachment.rb +10 -10
  99. data/lib/oraclebmc/core/models/volume_backup.rb +11 -10
  100. data/lib/oraclebmc/core/virtual_network_client.rb +364 -87
  101. data/lib/oraclebmc/errors.rb +19 -1
  102. data/lib/oraclebmc/identity/identity_client.rb +31 -31
  103. data/lib/oraclebmc/identity/models/add_user_to_group_details.rb +2 -3
  104. data/lib/oraclebmc/identity/models/api_key.rb +7 -8
  105. data/lib/oraclebmc/identity/models/availability_domain.rb +2 -3
  106. data/lib/oraclebmc/identity/models/compartment.rb +7 -8
  107. data/lib/oraclebmc/identity/models/create_api_key_details.rb +1 -2
  108. data/lib/oraclebmc/identity/models/create_compartment_details.rb +3 -4
  109. data/lib/oraclebmc/identity/models/create_group_details.rb +3 -4
  110. data/lib/oraclebmc/identity/models/create_identity_provider_details.rb +5 -6
  111. data/lib/oraclebmc/identity/models/create_idp_group_mapping_details.rb +2 -3
  112. data/lib/oraclebmc/identity/models/create_policy_details.rb +5 -6
  113. data/lib/oraclebmc/identity/models/create_region_subscription_details.rb +1 -2
  114. data/lib/oraclebmc/identity/models/create_saml2_identity_provider_details.rb +2 -3
  115. data/lib/oraclebmc/identity/models/create_swift_password_details.rb +1 -2
  116. data/lib/oraclebmc/identity/models/create_user_details.rb +3 -4
  117. data/lib/oraclebmc/identity/models/group.rb +7 -8
  118. data/lib/oraclebmc/identity/models/identity_provider.rb +9 -10
  119. data/lib/oraclebmc/identity/models/idp_group_mapping.rb +8 -9
  120. data/lib/oraclebmc/identity/models/policy.rb +9 -10
  121. data/lib/oraclebmc/identity/models/region.rb +2 -3
  122. data/lib/oraclebmc/identity/models/region_subscription.rb +4 -5
  123. data/lib/oraclebmc/identity/models/saml2_identity_provider.rb +3 -4
  124. data/lib/oraclebmc/identity/models/swift_password.rb +8 -9
  125. data/lib/oraclebmc/identity/models/tenancy.rb +4 -5
  126. data/lib/oraclebmc/identity/models/ui_password.rb +5 -6
  127. data/lib/oraclebmc/identity/models/update_compartment_details.rb +1 -2
  128. data/lib/oraclebmc/identity/models/update_group_details.rb +1 -2
  129. data/lib/oraclebmc/identity/models/update_identity_provider_details.rb +2 -3
  130. data/lib/oraclebmc/identity/models/update_idp_group_mapping_details.rb +2 -3
  131. data/lib/oraclebmc/identity/models/update_policy_details.rb +3 -4
  132. data/lib/oraclebmc/identity/models/update_saml2_identity_provider_details.rb +2 -3
  133. data/lib/oraclebmc/identity/models/update_state_details.rb +1 -2
  134. data/lib/oraclebmc/identity/models/update_swift_password_details.rb +1 -2
  135. data/lib/oraclebmc/identity/models/update_user_details.rb +1 -2
  136. data/lib/oraclebmc/identity/models/user.rb +7 -8
  137. data/lib/oraclebmc/identity/models/user_group_membership.rb +7 -8
  138. data/lib/oraclebmc/load_balancer/load_balancer_client.rb +11 -11
  139. data/lib/oraclebmc/load_balancer/models/backend.rb +7 -8
  140. data/lib/oraclebmc/load_balancer/models/backend_details.rb +6 -7
  141. data/lib/oraclebmc/load_balancer/models/backend_set.rb +6 -7
  142. data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +5 -6
  143. data/lib/oraclebmc/load_balancer/models/certificate.rb +3 -4
  144. data/lib/oraclebmc/load_balancer/models/certificate_details.rb +5 -6
  145. data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +6 -7
  146. data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +6 -7
  147. data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +5 -6
  148. data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +5 -6
  149. data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +8 -9
  150. data/lib/oraclebmc/load_balancer/models/health_checker.rb +8 -9
  151. data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +8 -9
  152. data/lib/oraclebmc/load_balancer/models/ip_address.rb +2 -3
  153. data/lib/oraclebmc/load_balancer/models/listener.rb +5 -6
  154. data/lib/oraclebmc/load_balancer/models/listener_details.rb +4 -5
  155. data/lib/oraclebmc/load_balancer/models/load_balancer.rb +12 -13
  156. data/lib/oraclebmc/load_balancer/models/load_balancer_policy.rb +1 -2
  157. data/lib/oraclebmc/load_balancer/models/load_balancer_protocol.rb +1 -2
  158. data/lib/oraclebmc/load_balancer/models/load_balancer_shape.rb +1 -2
  159. data/lib/oraclebmc/load_balancer/models/session_persistence_configuration_details.rb +2 -3
  160. data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +3 -4
  161. data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +3 -4
  162. data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +4 -5
  163. data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +5 -6
  164. data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +8 -9
  165. data/lib/oraclebmc/load_balancer/models/update_listener_details.rb +4 -5
  166. data/lib/oraclebmc/load_balancer/models/update_load_balancer_details.rb +1 -2
  167. data/lib/oraclebmc/load_balancer/models/work_request.rb +8 -9
  168. data/lib/oraclebmc/load_balancer/models/work_request_error.rb +2 -3
  169. data/lib/oraclebmc/version.rb +1 -1
  170. metadata +13 -2
@@ -5,6 +5,8 @@ require 'date'
5
5
  module OracleBMC
6
6
  class Core::Models::UpdateVolumeBackupDetails
7
7
  # A friendly user-specified name for the volume backup.
8
+ # Avoid entering confidential information.
9
+ #
8
10
  # @return [String]
9
11
  attr_accessor :display_name
10
12
 
@@ -17,11 +19,10 @@ module OracleBMC
17
19
  # convert string to symbol for hash key
18
20
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
19
21
 
20
-
21
22
  if attributes[:'displayName']
22
23
  self.display_name = attributes[:'displayName']
23
24
  end
24
-
25
+
25
26
  end
26
27
 
27
28
  # Checks equality by comparing each attribute.
@@ -5,6 +5,7 @@ require 'date'
5
5
  module OracleBMC
6
6
  class Core::Models::UpdateVolumeDetails
7
7
  # A user-friendly name. Does not have to be unique, and it's changeable.
8
+ # Avoid entering confidential information.
8
9
  #
9
10
  # @return [String]
10
11
  attr_accessor :display_name
@@ -18,11 +19,10 @@ module OracleBMC
18
19
  # convert string to symbol for hash key
19
20
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
20
21
 
21
-
22
22
  if attributes[:'displayName']
23
23
  self.display_name = attributes[:'displayName']
24
24
  end
25
-
25
+
26
26
  end
27
27
 
28
28
  # Checks equality by comparing each attribute.
@@ -36,6 +36,8 @@ module OracleBMC
36
36
  attr_accessor :default_security_list_id
37
37
 
38
38
  # A user-friendly name. Does not have to be unique, and it's changeable.
39
+ # Avoid entering confidential information.
40
+ #
39
41
  # @return [String]
40
42
  attr_accessor :display_name
41
43
 
@@ -91,51 +93,50 @@ module OracleBMC
91
93
  # convert string to symbol for hash key
92
94
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
93
95
 
94
-
95
96
  if attributes[:'cidrBlock']
96
97
  self.cidr_block = attributes[:'cidrBlock']
97
98
  end
98
-
99
+
99
100
  if attributes[:'compartmentId']
100
101
  self.compartment_id = attributes[:'compartmentId']
101
102
  end
102
-
103
+
103
104
  if attributes[:'defaultDhcpOptionsId']
104
105
  self.default_dhcp_options_id = attributes[:'defaultDhcpOptionsId']
105
106
  end
106
-
107
+
107
108
  if attributes[:'defaultRouteTableId']
108
109
  self.default_route_table_id = attributes[:'defaultRouteTableId']
109
110
  end
110
-
111
+
111
112
  if attributes[:'defaultSecurityListId']
112
113
  self.default_security_list_id = attributes[:'defaultSecurityListId']
113
114
  end
114
-
115
+
115
116
  if attributes[:'displayName']
116
117
  self.display_name = attributes[:'displayName']
117
118
  end
118
-
119
+
119
120
  if attributes[:'dnsLabel']
120
121
  self.dns_label = attributes[:'dnsLabel']
121
122
  end
122
-
123
+
123
124
  if attributes[:'id']
124
125
  self.id = attributes[:'id']
125
126
  end
126
-
127
+
127
128
  if attributes[:'lifecycleState']
128
129
  self.lifecycle_state = attributes[:'lifecycleState']
129
130
  end
130
-
131
+
131
132
  if attributes[:'timeCreated']
132
133
  self.time_created = attributes[:'timeCreated']
133
134
  end
134
-
135
+
135
136
  if attributes[:'vcnDomainName']
136
137
  self.vcn_domain_name = attributes[:'vcnDomainName']
137
138
  end
138
-
139
+
139
140
  end
140
141
 
141
142
  # Custom attribute writer method checking allowed values (enum).
@@ -59,6 +59,7 @@ module OracleBMC
59
59
  attr_accessor :customer_bgp_asn
60
60
 
61
61
  # A user-friendly name. Does not have to be unique, and it's changeable.
62
+ # Avoid entering confidential information.
62
63
  #
63
64
  # @return [String]
64
65
  attr_accessor :display_name
@@ -139,75 +140,74 @@ module OracleBMC
139
140
  # convert string to symbol for hash key
140
141
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
141
142
 
142
-
143
143
  if attributes[:'bandwidthShapeName']
144
144
  self.bandwidth_shape_name = attributes[:'bandwidthShapeName']
145
145
  end
146
-
146
+
147
147
  if attributes[:'bgpSessionState']
148
148
  self.bgp_session_state = attributes[:'bgpSessionState']
149
149
  end
150
-
150
+
151
151
  if attributes[:'compartmentId']
152
152
  self.compartment_id = attributes[:'compartmentId']
153
153
  end
154
-
154
+
155
155
  if attributes[:'crossConnectMappings']
156
156
  self.cross_connect_mappings = attributes[:'crossConnectMappings']
157
157
  end
158
-
158
+
159
159
  if attributes[:'customerBgpAsn']
160
160
  self.customer_bgp_asn = attributes[:'customerBgpAsn']
161
161
  end
162
-
162
+
163
163
  if attributes[:'displayName']
164
164
  self.display_name = attributes[:'displayName']
165
165
  end
166
-
166
+
167
167
  if attributes[:'gatewayId']
168
168
  self.gateway_id = attributes[:'gatewayId']
169
169
  end
170
-
170
+
171
171
  if attributes[:'id']
172
172
  self.id = attributes[:'id']
173
173
  end
174
-
174
+
175
175
  if attributes[:'lifecycleState']
176
176
  self.lifecycle_state = attributes[:'lifecycleState']
177
177
  end
178
-
178
+
179
179
  if attributes[:'oracleBgpAsn']
180
180
  self.oracle_bgp_asn = attributes[:'oracleBgpAsn']
181
181
  end
182
-
182
+
183
183
  if attributes[:'providerName']
184
184
  self.provider_name = attributes[:'providerName']
185
185
  end
186
-
186
+
187
187
  if attributes[:'providerServiceName']
188
188
  self.provider_service_name = attributes[:'providerServiceName']
189
189
  end
190
-
190
+
191
191
  if attributes[:'providerState']
192
192
  self.provider_state = attributes[:'providerState']
193
193
  end
194
-
194
+
195
195
  if attributes[:'referenceComment']
196
196
  self.reference_comment = attributes[:'referenceComment']
197
197
  end
198
-
198
+
199
199
  if attributes[:'region']
200
200
  self.region = attributes[:'region']
201
201
  end
202
-
202
+
203
203
  if attributes[:'timeCreated']
204
204
  self.time_created = attributes[:'timeCreated']
205
205
  end
206
-
206
+
207
207
  if attributes[:'type']
208
208
  self.type = attributes[:'type']
209
209
  end
210
-
210
+
211
211
  end
212
212
 
213
213
  # Custom attribute writer method checking allowed values (enum).
@@ -27,15 +27,14 @@ module OracleBMC
27
27
  # convert string to symbol for hash key
28
28
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
29
29
 
30
-
31
30
  if attributes[:'bandwidthInMbps']
32
31
  self.bandwidth_in_mbps = attributes[:'bandwidthInMbps']
33
32
  end
34
-
33
+
35
34
  if attributes[:'name']
36
35
  self.name = attributes[:'name']
37
36
  end
38
-
37
+
39
38
  end
40
39
 
41
40
  # Checks equality by comparing each attribute.
@@ -23,17 +23,17 @@ module OracleBMC
23
23
  attr_accessor :compartment_id
24
24
 
25
25
  # A user-friendly name. Does not have to be unique.
26
+ # Avoid entering confidential information.
27
+ #
26
28
  # @return [String]
27
29
  attr_accessor :display_name
28
30
 
29
- # The hostname for the VNIC that is created during instance launch.
30
- # Used for DNS. The value is the hostname portion of the instance's
31
- # fully qualified domain name (FQDN) (e.g., `bminstance-1` in FQDN
32
- # `bminstance-1.subnet123.vcn1.oraclevcn.com`).
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
+ # (e.g., `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`).
33
34
  # Must be unique across all VNICs in the subnet and comply with
34
35
  # [RFC 952](https://tools.ietf.org/html/rfc952) and
35
36
  # [RFC 1123](https://tools.ietf.org/html/rfc1123).
36
- # The value cannot be changed.
37
37
  #
38
38
  # For more information, see
39
39
  # [DNS in Your Virtual Cloud Network](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
@@ -47,12 +47,27 @@ module OracleBMC
47
47
  # @return [String]
48
48
  attr_accessor :id
49
49
 
50
+ # Whether the VNIC is the primary VNIC (the VNIC that is automatically created
51
+ # and attached during instance launch).
52
+ #
53
+ # @return [BOOLEAN]
54
+ attr_accessor :is_primary
55
+
50
56
  # The current state of the VNIC.
51
57
  # @return [String]
52
58
  attr_accessor :lifecycle_state
53
59
 
54
- # The private IP address of the VNIC. The address is within the subnet's CIDR
55
- # and is accessible within the VCN.
60
+ # The MAC address of the VNIC.
61
+ #
62
+ # Example: `00:00:17:B6:4D:DD`
63
+ #
64
+ # @return [String]
65
+ attr_accessor :mac_address
66
+
67
+ # The private IP address of the primary `privateIp` object on the VNIC.
68
+ # The address is within the CIDR of the VNIC's subnet.
69
+ #
70
+ # Example: `10.0.3.3`
56
71
  #
57
72
  # @return [String]
58
73
  attr_accessor :private_ip
@@ -82,47 +97,54 @@ module OracleBMC
82
97
  # convert string to symbol for hash key
83
98
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
84
99
 
85
-
86
100
  if attributes[:'availabilityDomain']
87
101
  self.availability_domain = attributes[:'availabilityDomain']
88
102
  end
89
-
103
+
90
104
  if attributes[:'compartmentId']
91
105
  self.compartment_id = attributes[:'compartmentId']
92
106
  end
93
-
107
+
94
108
  if attributes[:'displayName']
95
109
  self.display_name = attributes[:'displayName']
96
110
  end
97
-
111
+
98
112
  if attributes[:'hostnameLabel']
99
113
  self.hostname_label = attributes[:'hostnameLabel']
100
114
  end
101
-
115
+
102
116
  if attributes[:'id']
103
117
  self.id = attributes[:'id']
104
118
  end
105
-
119
+
120
+ if attributes[:'isPrimary']
121
+ self.is_primary = attributes[:'isPrimary']
122
+ end
123
+
106
124
  if attributes[:'lifecycleState']
107
125
  self.lifecycle_state = attributes[:'lifecycleState']
108
126
  end
109
-
127
+
128
+ if attributes[:'macAddress']
129
+ self.mac_address = attributes[:'macAddress']
130
+ end
131
+
110
132
  if attributes[:'privateIp']
111
133
  self.private_ip = attributes[:'privateIp']
112
134
  end
113
-
135
+
114
136
  if attributes[:'publicIp']
115
137
  self.public_ip = attributes[:'publicIp']
116
138
  end
117
-
139
+
118
140
  if attributes[:'subnetId']
119
141
  self.subnet_id = attributes[:'subnetId']
120
142
  end
121
-
143
+
122
144
  if attributes[:'timeCreated']
123
145
  self.time_created = attributes[:'timeCreated']
124
146
  end
125
-
147
+
126
148
  end
127
149
 
128
150
  # Custom attribute writer method checking allowed values (enum).
@@ -145,7 +167,9 @@ module OracleBMC
145
167
  display_name == other_object.display_name &&
146
168
  hostname_label == other_object.hostname_label &&
147
169
  id == other_object.id &&
170
+ is_primary == other_object.is_primary &&
148
171
  lifecycle_state == other_object.lifecycle_state &&
172
+ mac_address == other_object.mac_address &&
149
173
  private_ip == other_object.private_ip &&
150
174
  public_ip == other_object.public_ip &&
151
175
  subnet_id == other_object.subnet_id &&
@@ -161,7 +185,7 @@ module OracleBMC
161
185
  # Calculates hash code according to all attributes.
162
186
  # @return [Fixnum] Hash code
163
187
  def hash
164
- [availability_domain, compartment_id, display_name, hostname_label, id, lifecycle_state, private_ip, public_ip, subnet_id, time_created].hash
188
+ [availability_domain, compartment_id, display_name, hostname_label, id, is_primary, lifecycle_state, mac_address, private_ip, public_ip, subnet_id, time_created].hash
165
189
  end
166
190
 
167
191
  # Builds the object from hash
@@ -232,7 +256,9 @@ module OracleBMC
232
256
  :'display_name' => :'displayName',
233
257
  :'hostname_label' => :'hostnameLabel',
234
258
  :'id' => :'id',
259
+ :'is_primary' => :'isPrimary',
235
260
  :'lifecycle_state' => :'lifecycleState',
261
+ :'mac_address' => :'macAddress',
236
262
  :'private_ip' => :'privateIp',
237
263
  :'public_ip' => :'publicIp',
238
264
  :'subnet_id' => :'subnetId',
@@ -248,7 +274,9 @@ module OracleBMC
248
274
  :'display_name' => :'String',
249
275
  :'hostname_label' => :'String',
250
276
  :'id' => :'String',
277
+ :'is_primary' => :'BOOLEAN',
251
278
  :'lifecycle_state' => :'String',
279
+ :'mac_address' => :'String',
252
280
  :'private_ip' => :'String',
253
281
  :'public_ip' => :'String',
254
282
  :'subnet_id' => :'String',
@@ -11,18 +11,22 @@ module OracleBMC
11
11
  LIFECYCLE_STATE_DETACHED = 'DETACHED',
12
12
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
13
13
 
14
- # The Availability Domain of an instance.
14
+ # The Availability Domain of the instance.
15
15
  #
16
16
  # Example: `Uocm:PHX-AD-1`
17
17
  #
18
18
  # @return [String]
19
19
  attr_accessor :availability_domain
20
20
 
21
- # The OCID of the compartment.
21
+ # The OCID of the compartment the VNIC attachment is in, which is the same
22
+ # compartment the instance is in.
23
+ #
22
24
  # @return [String]
23
25
  attr_accessor :compartment_id
24
26
 
25
27
  # A user-friendly name. Does not have to be unique.
28
+ # Avoid entering confidential information.
29
+ #
26
30
  # @return [String]
27
31
  attr_accessor :display_name
28
32
 
@@ -38,7 +42,7 @@ module OracleBMC
38
42
  # @return [String]
39
43
  attr_accessor :lifecycle_state
40
44
 
41
- # The OCID of the subnet of the VNIC.
45
+ # The OCID of the VNIC's subnet.
42
46
  # @return [String]
43
47
  attr_accessor :subnet_id
44
48
 
@@ -49,7 +53,15 @@ module OracleBMC
49
53
  # @return [DateTime]
50
54
  attr_accessor :time_created
51
55
 
52
- # The OCID of the VNIC.
56
+ # The Oracle-assigned VLAN tag of the attached VNIC. Available after the
57
+ # attachment process is complete.
58
+ #
59
+ # Example: `0`
60
+ #
61
+ # @return [Integer]
62
+ attr_accessor :vlan_tag
63
+
64
+ # The OCID of the VNIC. Available after the attachment process is complete.
53
65
  # @return [String]
54
66
  attr_accessor :vnic_id
55
67
 
@@ -62,43 +74,46 @@ module OracleBMC
62
74
  # convert string to symbol for hash key
63
75
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
64
76
 
65
-
66
77
  if attributes[:'availabilityDomain']
67
78
  self.availability_domain = attributes[:'availabilityDomain']
68
79
  end
69
-
80
+
70
81
  if attributes[:'compartmentId']
71
82
  self.compartment_id = attributes[:'compartmentId']
72
83
  end
73
-
84
+
74
85
  if attributes[:'displayName']
75
86
  self.display_name = attributes[:'displayName']
76
87
  end
77
-
88
+
78
89
  if attributes[:'id']
79
90
  self.id = attributes[:'id']
80
91
  end
81
-
92
+
82
93
  if attributes[:'instanceId']
83
94
  self.instance_id = attributes[:'instanceId']
84
95
  end
85
-
96
+
86
97
  if attributes[:'lifecycleState']
87
98
  self.lifecycle_state = attributes[:'lifecycleState']
88
99
  end
89
-
100
+
90
101
  if attributes[:'subnetId']
91
102
  self.subnet_id = attributes[:'subnetId']
92
103
  end
93
-
104
+
94
105
  if attributes[:'timeCreated']
95
106
  self.time_created = attributes[:'timeCreated']
96
107
  end
97
-
108
+
109
+ if attributes[:'vlanTag']
110
+ self.vlan_tag = attributes[:'vlanTag']
111
+ end
112
+
98
113
  if attributes[:'vnicId']
99
114
  self.vnic_id = attributes[:'vnicId']
100
115
  end
101
-
116
+
102
117
  end
103
118
 
104
119
  # Custom attribute writer method checking allowed values (enum).
@@ -124,6 +139,7 @@ module OracleBMC
124
139
  lifecycle_state == other_object.lifecycle_state &&
125
140
  subnet_id == other_object.subnet_id &&
126
141
  time_created == other_object.time_created &&
142
+ vlan_tag == other_object.vlan_tag &&
127
143
  vnic_id == other_object.vnic_id
128
144
  end
129
145
 
@@ -136,7 +152,7 @@ module OracleBMC
136
152
  # Calculates hash code according to all attributes.
137
153
  # @return [Fixnum] Hash code
138
154
  def hash
139
- [availability_domain, compartment_id, display_name, id, instance_id, lifecycle_state, subnet_id, time_created, vnic_id].hash
155
+ [availability_domain, compartment_id, display_name, id, instance_id, lifecycle_state, subnet_id, time_created, vlan_tag, vnic_id].hash
140
156
  end
141
157
 
142
158
  # Builds the object from hash
@@ -210,6 +226,7 @@ module OracleBMC
210
226
  :'lifecycle_state' => :'lifecycleState',
211
227
  :'subnet_id' => :'subnetId',
212
228
  :'time_created' => :'timeCreated',
229
+ :'vlan_tag' => :'vlanTag',
213
230
  :'vnic_id' => :'vnicId'
214
231
  }
215
232
  end
@@ -225,6 +242,7 @@ module OracleBMC
225
242
  :'lifecycle_state' => :'String',
226
243
  :'subnet_id' => :'String',
227
244
  :'time_created' => :'DateTime',
245
+ :'vlan_tag' => :'Integer',
228
246
  :'vnic_id' => :'String'
229
247
  }
230
248
  end