oraclebmc 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -17,6 +17,7 @@ module OracleBMC
17
17
  attr_accessor :compartment_id
18
18
 
19
19
  # The display name of A user-friendly name. Does not have to be unique, and it's changeable.
20
+ # Avoid entering confidential information.
20
21
  #
21
22
  # @return [String]
22
23
  attr_accessor :display_name
@@ -45,27 +46,26 @@ module OracleBMC
45
46
  # convert string to symbol for hash key
46
47
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
47
48
 
48
-
49
49
  if attributes[:'compartmentId']
50
50
  self.compartment_id = attributes[:'compartmentId']
51
51
  end
52
-
52
+
53
53
  if attributes[:'displayName']
54
54
  self.display_name = attributes[:'displayName']
55
55
  end
56
-
56
+
57
57
  if attributes[:'id']
58
58
  self.id = attributes[:'id']
59
59
  end
60
-
60
+
61
61
  if attributes[:'lifecycleState']
62
62
  self.lifecycle_state = attributes[:'lifecycleState']
63
63
  end
64
-
64
+
65
65
  if attributes[:'timeCreated']
66
66
  self.time_created = attributes[:'timeCreated']
67
67
  end
68
-
68
+
69
69
  end
70
70
 
71
71
  # Custom attribute writer method checking allowed values (enum).
@@ -24,15 +24,14 @@ module OracleBMC
24
24
  # convert string to symbol for hash key
25
25
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
26
26
 
27
-
28
27
  if attributes[:'description']
29
28
  self.description = attributes[:'description']
30
29
  end
31
-
30
+
32
31
  if attributes[:'name']
33
32
  self.name = attributes[:'name']
34
33
  end
35
-
34
+
36
35
  end
37
36
 
38
37
  # Checks equality by comparing each attribute.
@@ -59,27 +59,26 @@ module OracleBMC
59
59
  # convert string to symbol for hash key
60
60
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
61
61
 
62
-
63
62
  if attributes[:'bgpMd5AuthKey']
64
63
  self.bgp_md5_auth_key = attributes[:'bgpMd5AuthKey']
65
64
  end
66
-
65
+
67
66
  if attributes[:'crossConnectOrCrossConnectGroupId']
68
67
  self.cross_connect_or_cross_connect_group_id = attributes[:'crossConnectOrCrossConnectGroupId']
69
68
  end
70
-
69
+
71
70
  if attributes[:'customerBgpPeeringIp']
72
71
  self.customer_bgp_peering_ip = attributes[:'customerBgpPeeringIp']
73
72
  end
74
-
73
+
75
74
  if attributes[:'oracleBgpPeeringIp']
76
75
  self.oracle_bgp_peering_ip = attributes[:'oracleBgpPeeringIp']
77
76
  end
78
-
77
+
79
78
  if attributes[:'vlan']
80
79
  self.vlan = attributes[:'vlan']
81
80
  end
82
-
81
+
83
82
  end
84
83
 
85
84
  # Checks equality by comparing each attribute.
@@ -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[:'name']
32
31
  self.name = attributes[:'name']
33
32
  end
34
-
33
+
35
34
  if attributes[:'portSpeedInGbps']
36
35
  self.port_speed_in_gbps = attributes[:'portSpeedInGbps']
37
36
  end
38
-
37
+
39
38
  end
40
39
 
41
40
  # Checks equality by comparing each attribute.
@@ -56,23 +56,22 @@ module OracleBMC
56
56
  # convert string to symbol for hash key
57
57
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
58
58
 
59
-
60
59
  if attributes[:'crossConnectId']
61
60
  self.cross_connect_id = attributes[:'crossConnectId']
62
61
  end
63
-
62
+
64
63
  if attributes[:'interfaceState']
65
64
  self.interface_state = attributes[:'interfaceState']
66
65
  end
67
-
66
+
68
67
  if attributes[:'lightLevelIndBm']
69
68
  self.light_level_ind_bm = attributes[:'lightLevelIndBm']
70
69
  end
71
-
70
+
72
71
  if attributes[:'lightLevelIndicator']
73
72
  self.light_level_indicator = attributes[:'lightLevelIndicator']
74
73
  end
75
-
74
+
76
75
  end
77
76
 
78
77
  # Custom attribute writer method checking allowed values (enum).
@@ -48,15 +48,14 @@ module OracleBMC
48
48
  # convert string to symbol for hash key
49
49
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
50
50
 
51
-
52
51
  if attributes[:'customDnsServers']
53
52
  self.custom_dns_servers = attributes[:'customDnsServers']
54
53
  end
55
-
54
+
56
55
  if attributes[:'serverType']
57
56
  self.server_type = attributes[:'serverType']
58
57
  end
59
-
58
+
60
59
  end
61
60
 
62
61
  # Custom attribute writer method checking allowed values (enum).
@@ -32,11 +32,10 @@ module OracleBMC
32
32
  # convert string to symbol for hash key
33
33
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
34
34
 
35
-
36
35
  if attributes[:'type']
37
36
  self.type = attributes[:'type']
38
37
  end
39
-
38
+
40
39
  end
41
40
 
42
41
  # Checks equality by comparing each attribute.
@@ -16,6 +16,8 @@ module OracleBMC
16
16
  attr_accessor :compartment_id
17
17
 
18
18
  # A user-friendly name. Does not have to be unique, and it's changeable.
19
+ # Avoid entering confidential information.
20
+ #
19
21
  # @return [String]
20
22
  attr_accessor :display_name
21
23
 
@@ -51,35 +53,34 @@ module OracleBMC
51
53
  # convert string to symbol for hash key
52
54
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
55
 
54
-
55
56
  if attributes[:'compartmentId']
56
57
  self.compartment_id = attributes[:'compartmentId']
57
58
  end
58
-
59
+
59
60
  if attributes[:'displayName']
60
61
  self.display_name = attributes[:'displayName']
61
62
  end
62
-
63
+
63
64
  if attributes[:'id']
64
65
  self.id = attributes[:'id']
65
66
  end
66
-
67
+
67
68
  if attributes[:'lifecycleState']
68
69
  self.lifecycle_state = attributes[:'lifecycleState']
69
70
  end
70
-
71
+
71
72
  if attributes[:'options']
72
73
  self.options = attributes[:'options']
73
74
  end
74
-
75
+
75
76
  if attributes[:'timeCreated']
76
77
  self.time_created = attributes[:'timeCreated']
77
78
  end
78
-
79
+
79
80
  if attributes[:'vcnId']
80
81
  self.vcn_id = attributes[:'vcnId']
81
82
  end
82
-
83
+
83
84
  end
84
85
 
85
86
  # Custom attribute writer method checking allowed values (enum).
@@ -35,11 +35,10 @@ module OracleBMC
35
35
  # convert string to symbol for hash key
36
36
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
37
37
 
38
-
39
38
  if attributes[:'searchDomainNames']
40
39
  self.search_domain_names = attributes[:'searchDomainNames']
41
40
  end
42
-
41
+
43
42
  end
44
43
 
45
44
  # Checks equality by comparing each attribute.
@@ -16,6 +16,8 @@ module OracleBMC
16
16
  attr_accessor :compartment_id
17
17
 
18
18
  # A user-friendly name. Does not have to be unique, and it's changeable.
19
+ # Avoid entering confidential information.
20
+ #
19
21
  # @return [String]
20
22
  attr_accessor :display_name
21
23
 
@@ -43,27 +45,26 @@ module OracleBMC
43
45
  # convert string to symbol for hash key
44
46
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
47
 
46
-
47
48
  if attributes[:'compartmentId']
48
49
  self.compartment_id = attributes[:'compartmentId']
49
50
  end
50
-
51
+
51
52
  if attributes[:'displayName']
52
53
  self.display_name = attributes[:'displayName']
53
54
  end
54
-
55
+
55
56
  if attributes[:'id']
56
57
  self.id = attributes[:'id']
57
58
  end
58
-
59
+
59
60
  if attributes[:'lifecycleState']
60
61
  self.lifecycle_state = attributes[:'lifecycleState']
61
62
  end
62
-
63
+
63
64
  if attributes[:'timeCreated']
64
65
  self.time_created = attributes[:'timeCreated']
65
66
  end
66
-
67
+
67
68
  end
68
69
 
69
70
  # Custom attribute writer method checking allowed values (enum).
@@ -16,6 +16,8 @@ module OracleBMC
16
16
  attr_accessor :compartment_id
17
17
 
18
18
  # A user-friendly name. Does not have to be unique, and it's changeable.
19
+ # Avoid entering confidential information.
20
+ #
19
21
  # @return [String]
20
22
  attr_accessor :display_name
21
23
 
@@ -51,35 +53,34 @@ module OracleBMC
51
53
  # convert string to symbol for hash key
52
54
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
55
 
54
-
55
56
  if attributes[:'compartmentId']
56
57
  self.compartment_id = attributes[:'compartmentId']
57
58
  end
58
-
59
+
59
60
  if attributes[:'displayName']
60
61
  self.display_name = attributes[:'displayName']
61
62
  end
62
-
63
+
63
64
  if attributes[:'drgId']
64
65
  self.drg_id = attributes[:'drgId']
65
66
  end
66
-
67
+
67
68
  if attributes[:'id']
68
69
  self.id = attributes[:'id']
69
70
  end
70
-
71
+
71
72
  if attributes[:'lifecycleState']
72
73
  self.lifecycle_state = attributes[:'lifecycleState']
73
74
  end
74
-
75
+
75
76
  if attributes[:'timeCreated']
76
77
  self.time_created = attributes[:'timeCreated']
77
78
  end
78
-
79
+
79
80
  if attributes[:'vcnId']
80
81
  self.vcn_id = attributes[:'vcnId']
81
82
  end
82
-
83
+
83
84
  end
84
85
 
85
86
  # Custom attribute writer method checking allowed values (enum).
@@ -60,31 +60,30 @@ module OracleBMC
60
60
  # convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
62
62
 
63
-
64
63
  if attributes[:'destination']
65
64
  self.destination = attributes[:'destination']
66
65
  end
67
-
66
+
68
67
  if attributes[:'icmpOptions']
69
68
  self.icmp_options = attributes[:'icmpOptions']
70
69
  end
71
-
70
+
72
71
  if attributes[:'isStateless']
73
72
  self.is_stateless = attributes[:'isStateless']
74
73
  end
75
-
74
+
76
75
  if attributes[:'protocol']
77
76
  self.protocol = attributes[:'protocol']
78
77
  end
79
-
78
+
80
79
  if attributes[:'tcpOptions']
81
80
  self.tcp_options = attributes[:'tcpOptions']
82
81
  end
83
-
82
+
84
83
  if attributes[:'udpOptions']
85
84
  self.udp_options = attributes[:'udpOptions']
86
85
  end
87
-
86
+
88
87
  end
89
88
 
90
89
  # Checks equality by comparing each attribute.
@@ -0,0 +1,134 @@
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::ExportImageDetails
7
+ # The destination type. Use `objectStorageTuple` when specifying the namespace, bucket name, and object name.
8
+ # Use `objectStorageUri` when specifying the Object Storage Service URL.
9
+ #
10
+ # @return [String]
11
+ attr_accessor :destination_type
12
+
13
+
14
+ # Given the hash representation of a subtype of this class,
15
+ # use the info in the hash to return the class of the subtype.
16
+ def self.get_subtype(object_hash)
17
+ type = object_hash[:'destinationType']
18
+
19
+ return 'OracleBMC::Core::Models::ExportImageViaObjectStorageUriDetails' if type == 'objectStorageUri'
20
+ return 'OracleBMC::Core::Models::ExportImageViaObjectStorageTupleDetails' if type == 'objectStorageTuple'
21
+
22
+ # TODO: Log a warning when the subtype is not found.
23
+ return 'OracleBMC::Core::Models::ExportImageDetails'
24
+ end
25
+
26
+ # Initializes the object
27
+ # @param [Hash] attributes Model attributes in the form of hash
28
+ def initialize(attributes = {})
29
+ return unless attributes.is_a?(Hash)
30
+
31
+ # convert string to symbol for hash key
32
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
33
+
34
+ if attributes[:'destinationType']
35
+ self.destination_type = attributes[:'destinationType']
36
+ end
37
+
38
+ end
39
+
40
+ # Checks equality by comparing each attribute.
41
+ # @param [Object] other_object to be compared
42
+ def ==(other_object)
43
+ return true if self.equal?(other_object)
44
+ self.class == other_object.class &&
45
+ destination_type == other_object.destination_type
46
+ end
47
+
48
+ # @see the `==` method
49
+ # @param [Object] other_object to be compared
50
+ def eql?(other_object)
51
+ self == other_object
52
+ end
53
+
54
+ # Calculates hash code according to all attributes.
55
+ # @return [Fixnum] Hash code
56
+ def hash
57
+ [destination_type].hash
58
+ end
59
+
60
+ # Builds the object from hash
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ # @return [Object] Returns the model itself
63
+ def build_from_hash(attributes)
64
+ return nil unless attributes.is_a?(Hash)
65
+ self.class.swagger_types.each_pair do |key, type|
66
+ if type =~ /^Array<(.*)>/i
67
+ # check to ensure the input is an array given that the the attribute
68
+ # is documented as an array but the input is not
69
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
70
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
71
+ end
72
+ elsif !attributes[self.class.attribute_map[key]].nil?
73
+ self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
74
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
75
+ end
76
+
77
+ self
78
+ end
79
+
80
+ # Returns the string representation of the object
81
+ # @return [String] String presentation of the object
82
+ def to_s
83
+ to_hash.to_s
84
+ end
85
+
86
+ # Returns the object in the form of hash
87
+ # @return [Hash] Returns the object in the form of hash
88
+ def to_hash
89
+ hash = {}
90
+ self.class.attribute_map.each_pair do |attr, param|
91
+ value = self.send(attr)
92
+ next if value.nil?
93
+ hash[param] = _to_hash(value)
94
+ end
95
+ hash
96
+ end
97
+
98
+ private
99
+
100
+ # Outputs non-array value in the form of hash
101
+ # For object, use to_hash. Otherwise, just return the value
102
+ # @param [Object] value Any valid value
103
+ # @return [Hash] Returns the value in the form of hash
104
+ def _to_hash(value)
105
+ if value.is_a?(Array)
106
+ value.compact.map{ |v| _to_hash(v) }
107
+ elsif value.is_a?(Hash)
108
+ {}.tap do |hash|
109
+ value.each { |k, v| hash[k] = _to_hash(v) }
110
+ end
111
+ elsif value.respond_to? :to_hash
112
+ value.to_hash
113
+ else
114
+ value
115
+ end
116
+ end
117
+
118
+
119
+
120
+ # Attribute mapping from ruby-style variable name to JSON key.
121
+ def self.attribute_map
122
+ {
123
+ :'destination_type' => :'destinationType'
124
+ }
125
+ end
126
+
127
+ # Attribute type mapping.
128
+ def self.swagger_types
129
+ {
130
+ :'destination_type' => :'String'
131
+ }
132
+ end
133
+ end
134
+ end