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
data/lib/oraclebmc/core/core.rb
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
module OracleBMC
|
4
|
-
module Core
|
5
|
-
module Models
|
6
|
-
end
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
# Require models
|
11
|
-
require 'oraclebmc/core/models/attach_i_scsi_volume_details'
|
12
|
-
require 'oraclebmc/core/models/attach_vnic_details'
|
13
|
-
require 'oraclebmc/core/models/attach_volume_details'
|
14
|
-
require 'oraclebmc/core/models/capture_console_history_details'
|
15
|
-
require 'oraclebmc/core/models/console_history'
|
16
|
-
require 'oraclebmc/core/models/cpe'
|
17
|
-
require 'oraclebmc/core/models/create_cpe_details'
|
18
|
-
require 'oraclebmc/core/models/create_cross_connect_details'
|
19
|
-
require 'oraclebmc/core/models/create_cross_connect_group_details'
|
20
|
-
require 'oraclebmc/core/models/create_dhcp_details'
|
21
|
-
require 'oraclebmc/core/models/create_drg_attachment_details'
|
22
|
-
require 'oraclebmc/core/models/create_drg_details'
|
23
|
-
require 'oraclebmc/core/models/create_ip_sec_connection_details'
|
24
|
-
require 'oraclebmc/core/models/create_image_details'
|
25
|
-
require 'oraclebmc/core/models/create_internet_gateway_details'
|
26
|
-
require 'oraclebmc/core/models/create_private_ip_details'
|
27
|
-
require 'oraclebmc/core/models/create_route_table_details'
|
28
|
-
require 'oraclebmc/core/models/create_security_list_details'
|
29
|
-
require 'oraclebmc/core/models/create_subnet_details'
|
30
|
-
require 'oraclebmc/core/models/create_vcn_details'
|
31
|
-
require 'oraclebmc/core/models/create_virtual_circuit_details'
|
32
|
-
require 'oraclebmc/core/models/create_vnic_details'
|
33
|
-
require 'oraclebmc/core/models/create_volume_backup_details'
|
34
|
-
require 'oraclebmc/core/models/create_volume_details'
|
35
|
-
require 'oraclebmc/core/models/cross_connect'
|
36
|
-
require 'oraclebmc/core/models/cross_connect_group'
|
37
|
-
require 'oraclebmc/core/models/cross_connect_location'
|
38
|
-
require 'oraclebmc/core/models/cross_connect_mapping'
|
39
|
-
require 'oraclebmc/core/models/cross_connect_port_speed_shape'
|
40
|
-
require 'oraclebmc/core/models/cross_connect_status'
|
41
|
-
require 'oraclebmc/core/models/dhcp_dns_option'
|
42
|
-
require 'oraclebmc/core/models/dhcp_option'
|
43
|
-
require 'oraclebmc/core/models/dhcp_options'
|
44
|
-
require 'oraclebmc/core/models/dhcp_search_domain_option'
|
45
|
-
require 'oraclebmc/core/models/drg'
|
46
|
-
require 'oraclebmc/core/models/drg_attachment'
|
47
|
-
require 'oraclebmc/core/models/egress_security_rule'
|
48
|
-
require 'oraclebmc/core/models/export_image_details'
|
49
|
-
require 'oraclebmc/core/models/export_image_via_object_storage_tuple_details'
|
50
|
-
require 'oraclebmc/core/models/export_image_via_object_storage_uri_details'
|
51
|
-
require 'oraclebmc/core/models/fast_connect_provider_service'
|
52
|
-
require 'oraclebmc/core/models/ip_sec_connection'
|
53
|
-
require 'oraclebmc/core/models/ip_sec_connection_device_config'
|
54
|
-
require 'oraclebmc/core/models/ip_sec_connection_device_status'
|
55
|
-
require 'oraclebmc/core/models/i_scsi_volume_attachment'
|
56
|
-
require 'oraclebmc/core/models/icmp_options'
|
57
|
-
require 'oraclebmc/core/models/image'
|
58
|
-
require 'oraclebmc/core/models/image_source_details'
|
59
|
-
require 'oraclebmc/core/models/image_source_via_object_storage_tuple_details'
|
60
|
-
require 'oraclebmc/core/models/image_source_via_object_storage_uri_details'
|
61
|
-
require 'oraclebmc/core/models/ingress_security_rule'
|
62
|
-
require 'oraclebmc/core/models/instance'
|
63
|
-
require 'oraclebmc/core/models/instance_credentials'
|
64
|
-
require 'oraclebmc/core/models/internet_gateway'
|
65
|
-
require 'oraclebmc/core/models/launch_instance_details'
|
66
|
-
require 'oraclebmc/core/models/letter_of_authority'
|
67
|
-
require 'oraclebmc/core/models/port_range'
|
68
|
-
require 'oraclebmc/core/models/private_ip'
|
69
|
-
require 'oraclebmc/core/models/route_rule'
|
70
|
-
require 'oraclebmc/core/models/route_table'
|
71
|
-
require 'oraclebmc/core/models/security_list'
|
72
|
-
require 'oraclebmc/core/models/shape'
|
73
|
-
require 'oraclebmc/core/models/subnet'
|
74
|
-
require 'oraclebmc/core/models/tcp_options'
|
75
|
-
require 'oraclebmc/core/models/tunnel_config'
|
76
|
-
require 'oraclebmc/core/models/tunnel_status'
|
77
|
-
require 'oraclebmc/core/models/udp_options'
|
78
|
-
require 'oraclebmc/core/models/update_cpe_details'
|
79
|
-
require 'oraclebmc/core/models/update_cross_connect_details'
|
80
|
-
require 'oraclebmc/core/models/update_cross_connect_group_details'
|
81
|
-
require 'oraclebmc/core/models/update_dhcp_details'
|
82
|
-
require 'oraclebmc/core/models/update_drg_attachment_details'
|
83
|
-
require 'oraclebmc/core/models/update_drg_details'
|
84
|
-
require 'oraclebmc/core/models/update_ip_sec_connection_details'
|
85
|
-
require 'oraclebmc/core/models/update_image_details'
|
86
|
-
require 'oraclebmc/core/models/update_instance_details'
|
87
|
-
require 'oraclebmc/core/models/update_internet_gateway_details'
|
88
|
-
require 'oraclebmc/core/models/update_private_ip_details'
|
89
|
-
require 'oraclebmc/core/models/update_route_table_details'
|
90
|
-
require 'oraclebmc/core/models/update_security_list_details'
|
91
|
-
require 'oraclebmc/core/models/update_subnet_details'
|
92
|
-
require 'oraclebmc/core/models/update_vcn_details'
|
93
|
-
require 'oraclebmc/core/models/update_virtual_circuit_details'
|
94
|
-
require 'oraclebmc/core/models/update_vnic_details'
|
95
|
-
require 'oraclebmc/core/models/update_volume_backup_details'
|
96
|
-
require 'oraclebmc/core/models/update_volume_details'
|
97
|
-
require 'oraclebmc/core/models/vcn'
|
98
|
-
require 'oraclebmc/core/models/virtual_circuit'
|
99
|
-
require 'oraclebmc/core/models/virtual_circuit_bandwidth_shape'
|
100
|
-
require 'oraclebmc/core/models/vnic'
|
101
|
-
require 'oraclebmc/core/models/vnic_attachment'
|
102
|
-
require 'oraclebmc/core/models/volume'
|
103
|
-
require 'oraclebmc/core/models/volume_attachment'
|
104
|
-
require 'oraclebmc/core/models/volume_backup'
|
105
|
-
|
106
|
-
# Require generated clients
|
107
|
-
require 'oraclebmc/core/blockstorage_client'
|
108
|
-
require 'oraclebmc/core/compute_client'
|
109
|
-
require 'oraclebmc/core/virtual_network_client'
|
110
|
-
|
111
|
-
# Require service utilities
|
112
|
-
require 'oraclebmc/core/util'
|
@@ -1,137 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
require 'date'
|
4
|
-
require_relative 'attach_volume_details'
|
5
|
-
|
6
|
-
module OracleBMC
|
7
|
-
class Core::Models::AttachIScsiVolumeDetails < Core::Models::AttachVolumeDetails
|
8
|
-
# Whether to use CHAP authentication for the volume attachment. Defaults to false.
|
9
|
-
# @return [BOOLEAN]
|
10
|
-
attr_accessor :use_chap
|
11
|
-
|
12
|
-
|
13
|
-
# Initializes the object
|
14
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
15
|
-
def initialize(attributes = {})
|
16
|
-
return unless attributes.is_a?(Hash)
|
17
|
-
|
18
|
-
attributes['type'] = 'iscsi'
|
19
|
-
|
20
|
-
super(attributes)
|
21
|
-
|
22
|
-
# convert string to symbol for hash key
|
23
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
24
|
-
|
25
|
-
if attributes[:'useChap']
|
26
|
-
self.use_chap = attributes[:'useChap']
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
30
|
-
|
31
|
-
# Checks equality by comparing each attribute.
|
32
|
-
# @param [Object] other_object to be compared
|
33
|
-
def ==(other_object)
|
34
|
-
return true if self.equal?(other_object)
|
35
|
-
self.class == other_object.class &&
|
36
|
-
display_name == other_object.display_name &&
|
37
|
-
instance_id == other_object.instance_id &&
|
38
|
-
type == other_object.type &&
|
39
|
-
volume_id == other_object.volume_id &&
|
40
|
-
use_chap == other_object.use_chap
|
41
|
-
end
|
42
|
-
|
43
|
-
# @see the `==` method
|
44
|
-
# @param [Object] other_object to be compared
|
45
|
-
def eql?(other_object)
|
46
|
-
self == other_object
|
47
|
-
end
|
48
|
-
|
49
|
-
# Calculates hash code according to all attributes.
|
50
|
-
# @return [Fixnum] Hash code
|
51
|
-
def hash
|
52
|
-
[display_name, instance_id, type, volume_id, use_chap].hash
|
53
|
-
end
|
54
|
-
|
55
|
-
# Builds the object from hash
|
56
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
-
# @return [Object] Returns the model itself
|
58
|
-
def build_from_hash(attributes)
|
59
|
-
return nil unless attributes.is_a?(Hash)
|
60
|
-
self.class.swagger_types.each_pair do |key, type|
|
61
|
-
if type =~ /^Array<(.*)>/i
|
62
|
-
# check to ensure the input is an array given that the the attribute
|
63
|
-
# is documented as an array but the input is not
|
64
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
65
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
66
|
-
end
|
67
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
68
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
69
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
70
|
-
end
|
71
|
-
|
72
|
-
self
|
73
|
-
end
|
74
|
-
|
75
|
-
# Returns the string representation of the object
|
76
|
-
# @return [String] String presentation of the object
|
77
|
-
def to_s
|
78
|
-
to_hash.to_s
|
79
|
-
end
|
80
|
-
|
81
|
-
# Returns the object in the form of hash
|
82
|
-
# @return [Hash] Returns the object in the form of hash
|
83
|
-
def to_hash
|
84
|
-
hash = {}
|
85
|
-
self.class.attribute_map.each_pair do |attr, param|
|
86
|
-
value = self.send(attr)
|
87
|
-
next if value.nil?
|
88
|
-
hash[param] = _to_hash(value)
|
89
|
-
end
|
90
|
-
hash
|
91
|
-
end
|
92
|
-
|
93
|
-
private
|
94
|
-
|
95
|
-
# Outputs non-array value in the form of hash
|
96
|
-
# For object, use to_hash. Otherwise, just return the value
|
97
|
-
# @param [Object] value Any valid value
|
98
|
-
# @return [Hash] Returns the value in the form of hash
|
99
|
-
def _to_hash(value)
|
100
|
-
if value.is_a?(Array)
|
101
|
-
value.compact.map{ |v| _to_hash(v) }
|
102
|
-
elsif value.is_a?(Hash)
|
103
|
-
{}.tap do |hash|
|
104
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
105
|
-
end
|
106
|
-
elsif value.respond_to? :to_hash
|
107
|
-
value.to_hash
|
108
|
-
else
|
109
|
-
value
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
116
|
-
def self.attribute_map
|
117
|
-
{
|
118
|
-
:'display_name' => :'displayName',
|
119
|
-
:'instance_id' => :'instanceId',
|
120
|
-
:'type' => :'type',
|
121
|
-
:'volume_id' => :'volumeId',
|
122
|
-
:'use_chap' => :'useChap'
|
123
|
-
}
|
124
|
-
end
|
125
|
-
|
126
|
-
# Attribute type mapping.
|
127
|
-
def self.swagger_types
|
128
|
-
{
|
129
|
-
:'display_name' => :'String',
|
130
|
-
:'instance_id' => :'String',
|
131
|
-
:'type' => :'String',
|
132
|
-
:'volume_id' => :'String',
|
133
|
-
:'use_chap' => :'BOOLEAN'
|
134
|
-
}
|
135
|
-
end
|
136
|
-
end
|
137
|
-
end
|
@@ -1,144 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
module OracleBMC
|
6
|
-
class Core::Models::AttachVnicDetails
|
7
|
-
# Details for creating a new VNIC.
|
8
|
-
#
|
9
|
-
# @return [OracleBMC::Core::Models::CreateVnicDetails]
|
10
|
-
attr_accessor :create_vnic_details
|
11
|
-
|
12
|
-
# A user-friendly name for the attachment. Does not have to be unique, and it cannot be changed.
|
13
|
-
#
|
14
|
-
# @return [String]
|
15
|
-
attr_accessor :display_name
|
16
|
-
|
17
|
-
# The OCID of the instance.
|
18
|
-
# @return [String]
|
19
|
-
attr_accessor :instance_id
|
20
|
-
|
21
|
-
|
22
|
-
# Initializes the object
|
23
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
24
|
-
def initialize(attributes = {})
|
25
|
-
return unless attributes.is_a?(Hash)
|
26
|
-
|
27
|
-
# convert string to symbol for hash key
|
28
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
29
|
-
|
30
|
-
if attributes[:'createVnicDetails']
|
31
|
-
self.create_vnic_details = attributes[:'createVnicDetails']
|
32
|
-
end
|
33
|
-
|
34
|
-
if attributes[:'displayName']
|
35
|
-
self.display_name = attributes[:'displayName']
|
36
|
-
end
|
37
|
-
|
38
|
-
if attributes[:'instanceId']
|
39
|
-
self.instance_id = attributes[:'instanceId']
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
43
|
-
|
44
|
-
# Checks equality by comparing each attribute.
|
45
|
-
# @param [Object] other_object to be compared
|
46
|
-
def ==(other_object)
|
47
|
-
return true if self.equal?(other_object)
|
48
|
-
self.class == other_object.class &&
|
49
|
-
create_vnic_details == other_object.create_vnic_details &&
|
50
|
-
display_name == other_object.display_name &&
|
51
|
-
instance_id == other_object.instance_id
|
52
|
-
end
|
53
|
-
|
54
|
-
# @see the `==` method
|
55
|
-
# @param [Object] other_object to be compared
|
56
|
-
def eql?(other_object)
|
57
|
-
self == other_object
|
58
|
-
end
|
59
|
-
|
60
|
-
# Calculates hash code according to all attributes.
|
61
|
-
# @return [Fixnum] Hash code
|
62
|
-
def hash
|
63
|
-
[create_vnic_details, display_name, instance_id].hash
|
64
|
-
end
|
65
|
-
|
66
|
-
# Builds the object from hash
|
67
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
-
# @return [Object] Returns the model itself
|
69
|
-
def build_from_hash(attributes)
|
70
|
-
return nil unless attributes.is_a?(Hash)
|
71
|
-
self.class.swagger_types.each_pair do |key, type|
|
72
|
-
if type =~ /^Array<(.*)>/i
|
73
|
-
# check to ensure the input is an array given that the the attribute
|
74
|
-
# is documented as an array but the input is not
|
75
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
76
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
77
|
-
end
|
78
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
79
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
80
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
81
|
-
end
|
82
|
-
|
83
|
-
self
|
84
|
-
end
|
85
|
-
|
86
|
-
# Returns the string representation of the object
|
87
|
-
# @return [String] String presentation of the object
|
88
|
-
def to_s
|
89
|
-
to_hash.to_s
|
90
|
-
end
|
91
|
-
|
92
|
-
# Returns the object in the form of hash
|
93
|
-
# @return [Hash] Returns the object in the form of hash
|
94
|
-
def to_hash
|
95
|
-
hash = {}
|
96
|
-
self.class.attribute_map.each_pair do |attr, param|
|
97
|
-
value = self.send(attr)
|
98
|
-
next if value.nil?
|
99
|
-
hash[param] = _to_hash(value)
|
100
|
-
end
|
101
|
-
hash
|
102
|
-
end
|
103
|
-
|
104
|
-
private
|
105
|
-
|
106
|
-
# Outputs non-array value in the form of hash
|
107
|
-
# For object, use to_hash. Otherwise, just return the value
|
108
|
-
# @param [Object] value Any valid value
|
109
|
-
# @return [Hash] Returns the value in the form of hash
|
110
|
-
def _to_hash(value)
|
111
|
-
if value.is_a?(Array)
|
112
|
-
value.compact.map{ |v| _to_hash(v) }
|
113
|
-
elsif value.is_a?(Hash)
|
114
|
-
{}.tap do |hash|
|
115
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
116
|
-
end
|
117
|
-
elsif value.respond_to? :to_hash
|
118
|
-
value.to_hash
|
119
|
-
else
|
120
|
-
value
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
127
|
-
def self.attribute_map
|
128
|
-
{
|
129
|
-
:'create_vnic_details' => :'createVnicDetails',
|
130
|
-
:'display_name' => :'displayName',
|
131
|
-
:'instance_id' => :'instanceId'
|
132
|
-
}
|
133
|
-
end
|
134
|
-
|
135
|
-
# Attribute type mapping.
|
136
|
-
def self.swagger_types
|
137
|
-
{
|
138
|
-
:'create_vnic_details' => :'OracleBMC::Core::Models::CreateVnicDetails',
|
139
|
-
:'display_name' => :'String',
|
140
|
-
:'instance_id' => :'String'
|
141
|
-
}
|
142
|
-
end
|
143
|
-
end
|
144
|
-
end
|
@@ -1,165 +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::AttachVolumeDetails
|
7
|
-
# A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information.
|
8
|
-
#
|
9
|
-
# @return [String]
|
10
|
-
attr_accessor :display_name
|
11
|
-
|
12
|
-
# The OCID of the instance.
|
13
|
-
# @return [String]
|
14
|
-
attr_accessor :instance_id
|
15
|
-
|
16
|
-
# The type of volume. The only supported value is \"iscsi\".
|
17
|
-
# @return [String]
|
18
|
-
attr_accessor :type
|
19
|
-
|
20
|
-
# The OCID of the volume.
|
21
|
-
# @return [String]
|
22
|
-
attr_accessor :volume_id
|
23
|
-
|
24
|
-
|
25
|
-
# Given the hash representation of a subtype of this class,
|
26
|
-
# use the info in the hash to return the class of the subtype.
|
27
|
-
def self.get_subtype(object_hash)
|
28
|
-
type = object_hash[:'type']
|
29
|
-
|
30
|
-
return 'OracleBMC::Core::Models::AttachIScsiVolumeDetails' if type == 'iscsi'
|
31
|
-
|
32
|
-
# TODO: Log a warning when the subtype is not found.
|
33
|
-
return 'OracleBMC::Core::Models::AttachVolumeDetails'
|
34
|
-
end
|
35
|
-
|
36
|
-
# Initializes the object
|
37
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
38
|
-
def initialize(attributes = {})
|
39
|
-
return unless attributes.is_a?(Hash)
|
40
|
-
|
41
|
-
# convert string to symbol for hash key
|
42
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
43
|
-
|
44
|
-
if attributes[:'displayName']
|
45
|
-
self.display_name = attributes[:'displayName']
|
46
|
-
end
|
47
|
-
|
48
|
-
if attributes[:'instanceId']
|
49
|
-
self.instance_id = attributes[:'instanceId']
|
50
|
-
end
|
51
|
-
|
52
|
-
if attributes[:'type']
|
53
|
-
self.type = attributes[:'type']
|
54
|
-
end
|
55
|
-
|
56
|
-
if attributes[:'volumeId']
|
57
|
-
self.volume_id = attributes[:'volumeId']
|
58
|
-
end
|
59
|
-
|
60
|
-
end
|
61
|
-
|
62
|
-
# Checks equality by comparing each attribute.
|
63
|
-
# @param [Object] other_object to be compared
|
64
|
-
def ==(other_object)
|
65
|
-
return true if self.equal?(other_object)
|
66
|
-
self.class == other_object.class &&
|
67
|
-
display_name == other_object.display_name &&
|
68
|
-
instance_id == other_object.instance_id &&
|
69
|
-
type == other_object.type &&
|
70
|
-
volume_id == other_object.volume_id
|
71
|
-
end
|
72
|
-
|
73
|
-
# @see the `==` method
|
74
|
-
# @param [Object] other_object to be compared
|
75
|
-
def eql?(other_object)
|
76
|
-
self == other_object
|
77
|
-
end
|
78
|
-
|
79
|
-
# Calculates hash code according to all attributes.
|
80
|
-
# @return [Fixnum] Hash code
|
81
|
-
def hash
|
82
|
-
[display_name, instance_id, type, volume_id].hash
|
83
|
-
end
|
84
|
-
|
85
|
-
# Builds the object from hash
|
86
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
-
# @return [Object] Returns the model itself
|
88
|
-
def build_from_hash(attributes)
|
89
|
-
return nil unless attributes.is_a?(Hash)
|
90
|
-
self.class.swagger_types.each_pair do |key, type|
|
91
|
-
if type =~ /^Array<(.*)>/i
|
92
|
-
# check to ensure the input is an array given that the the attribute
|
93
|
-
# is documented as an array but the input is not
|
94
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
95
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
96
|
-
end
|
97
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
98
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
99
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
100
|
-
end
|
101
|
-
|
102
|
-
self
|
103
|
-
end
|
104
|
-
|
105
|
-
# Returns the string representation of the object
|
106
|
-
# @return [String] String presentation of the object
|
107
|
-
def to_s
|
108
|
-
to_hash.to_s
|
109
|
-
end
|
110
|
-
|
111
|
-
# Returns the object in the form of hash
|
112
|
-
# @return [Hash] Returns the object in the form of hash
|
113
|
-
def to_hash
|
114
|
-
hash = {}
|
115
|
-
self.class.attribute_map.each_pair do |attr, param|
|
116
|
-
value = self.send(attr)
|
117
|
-
next if value.nil?
|
118
|
-
hash[param] = _to_hash(value)
|
119
|
-
end
|
120
|
-
hash
|
121
|
-
end
|
122
|
-
|
123
|
-
private
|
124
|
-
|
125
|
-
# Outputs non-array value in the form of hash
|
126
|
-
# For object, use to_hash. Otherwise, just return the value
|
127
|
-
# @param [Object] value Any valid value
|
128
|
-
# @return [Hash] Returns the value in the form of hash
|
129
|
-
def _to_hash(value)
|
130
|
-
if value.is_a?(Array)
|
131
|
-
value.compact.map{ |v| _to_hash(v) }
|
132
|
-
elsif value.is_a?(Hash)
|
133
|
-
{}.tap do |hash|
|
134
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
135
|
-
end
|
136
|
-
elsif value.respond_to? :to_hash
|
137
|
-
value.to_hash
|
138
|
-
else
|
139
|
-
value
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
146
|
-
def self.attribute_map
|
147
|
-
{
|
148
|
-
:'display_name' => :'displayName',
|
149
|
-
:'instance_id' => :'instanceId',
|
150
|
-
:'type' => :'type',
|
151
|
-
:'volume_id' => :'volumeId'
|
152
|
-
}
|
153
|
-
end
|
154
|
-
|
155
|
-
# Attribute type mapping.
|
156
|
-
def self.swagger_types
|
157
|
-
{
|
158
|
-
:'display_name' => :'String',
|
159
|
-
:'instance_id' => :'String',
|
160
|
-
:'type' => :'String',
|
161
|
-
:'volume_id' => :'String'
|
162
|
-
}
|
163
|
-
end
|
164
|
-
end
|
165
|
-
end
|