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,336 +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::LaunchInstanceDetails
|
7
|
-
# The Availability Domain of the instance.
|
8
|
-
#
|
9
|
-
# Example: `Uocm:PHX-AD-1`
|
10
|
-
#
|
11
|
-
# @return [String]
|
12
|
-
attr_accessor :availability_domain
|
13
|
-
|
14
|
-
# The OCID of the compartment.
|
15
|
-
# @return [String]
|
16
|
-
attr_accessor :compartment_id
|
17
|
-
|
18
|
-
# Details for the primary VNIC, which is automatically created and attached when
|
19
|
-
# the instance is launched.
|
20
|
-
#
|
21
|
-
# @return [OracleBMC::Core::Models::CreateVnicDetails]
|
22
|
-
attr_accessor :create_vnic_details
|
23
|
-
|
24
|
-
# A user-friendly name. Does not have to be unique, and it's changeable.
|
25
|
-
# Avoid entering confidential information.
|
26
|
-
#
|
27
|
-
# Example: `My bare metal instance`
|
28
|
-
#
|
29
|
-
# @return [String]
|
30
|
-
attr_accessor :display_name
|
31
|
-
|
32
|
-
# Additional metadata key/value pairs that you provide. They serve a similar purpose and functionality from fields in the 'metadata' object.
|
33
|
-
#
|
34
|
-
# They are distinguished from 'metadata' fields in that these can be nested JSON objects (whereas 'metadata' fields are string/string maps only).
|
35
|
-
#
|
36
|
-
# If you don't need nested metadata values, it is strongly advised to avoid using this object and use the Metadata object instead.
|
37
|
-
#
|
38
|
-
# @return [Hash<String, Object>]
|
39
|
-
attr_accessor :extended_metadata
|
40
|
-
|
41
|
-
# Deprecated. Instead use `hostnameLabel` in
|
42
|
-
# {CreateVnicDetails}.
|
43
|
-
# If you provide both, the values must match.
|
44
|
-
#
|
45
|
-
# @return [String]
|
46
|
-
attr_accessor :hostname_label
|
47
|
-
|
48
|
-
# The OCID of the image used to boot the instance.
|
49
|
-
# @return [String]
|
50
|
-
attr_accessor :image_id
|
51
|
-
|
52
|
-
# This is an advanced option.
|
53
|
-
#
|
54
|
-
# When an Oracle Bare Metal Cloud Services or virtual machine
|
55
|
-
# instance boots, the iPXE firmware that runs on the instance is
|
56
|
-
# configured to run an iPXE script to continue the boot process.
|
57
|
-
#
|
58
|
-
# If you want more control over the boot process, you can provide
|
59
|
-
# your own custom iPXE script that will run when the instance boots;
|
60
|
-
# however, you should be aware that the same iPXE script will run
|
61
|
-
# every time an instance boots; not only after the initial
|
62
|
-
# LaunchInstance call.
|
63
|
-
#
|
64
|
-
# The default iPXE script connects to the instance's local boot
|
65
|
-
# volume over iSCSI and performs a network boot. If you use a custom iPXE
|
66
|
-
# script and want to network-boot from the instance's local boot volume
|
67
|
-
# over iSCSI the same way as the default iPXE script, you should use the
|
68
|
-
# following iSCSI IP address: 169.254.0.2, and boot volume IQN:
|
69
|
-
# iqn.2015-02.oracle.boot.
|
70
|
-
#
|
71
|
-
# For more information about the Bring Your Own Image feature of
|
72
|
-
# Oracle Bare Metal Cloud Services, see
|
73
|
-
# [Bring Your Own Image](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/bringyourownimage.htm).
|
74
|
-
#
|
75
|
-
# For more information about iPXE, see http://ipxe.org.
|
76
|
-
#
|
77
|
-
# @return [String]
|
78
|
-
attr_accessor :ipxe_script
|
79
|
-
|
80
|
-
# Custom metadata key/value pairs that you provide, such as the SSH public key
|
81
|
-
# required to connect to the instance.
|
82
|
-
#
|
83
|
-
# A metadata service runs on every launched instance. The service is an HTTP
|
84
|
-
# endpoint listening on 169.254.169.254. You can use the service to:
|
85
|
-
#
|
86
|
-
# * Provide information to [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/)
|
87
|
-
# to be used for various system initialization tasks.
|
88
|
-
#
|
89
|
-
# * Get information about the instance, including the custom metadata that you
|
90
|
-
# provide when you launch the instance.
|
91
|
-
#
|
92
|
-
# **Providing Cloud-Init Metadata**
|
93
|
-
#
|
94
|
-
# You can use the following metadata key names to provide information to
|
95
|
-
# Cloud-Init:
|
96
|
-
#
|
97
|
-
# **\"ssh_authorized_keys\"** - Provide one or more public SSH keys to be
|
98
|
-
# included in the `~/.ssh/authorized_keys` file for the default user on the
|
99
|
-
# instance. Use a newline character to separate multiple keys. The SSH
|
100
|
-
# keys must be in the format necessary for the `authorized_keys` file, as shown
|
101
|
-
# in the example below.
|
102
|
-
#
|
103
|
-
# **\"user_data\"** - Provide your own base64-encoded data to be used by
|
104
|
-
# Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For
|
105
|
-
# information about how to take advantage of user data, see the
|
106
|
-
# [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html).
|
107
|
-
#
|
108
|
-
# **Note:** Cloud-Init does not pull this data from the `http://169.254.169.254/opc/v1/instance/metadata/`
|
109
|
-
# path. When the instance launches and either of these keys are provided, the key values are formatted as
|
110
|
-
# OpenStack metadata and copied to the following locations, which are recognized by Cloud-Init:
|
111
|
-
#
|
112
|
-
# `http://169.254.169.254/openstack/latest/meta_data.json` - This JSON blob
|
113
|
-
# contains, among other things, the SSH keys that you provided for
|
114
|
-
# **\"ssh_authorized_keys\"**.
|
115
|
-
#
|
116
|
-
# `http://169.254.169.254/openstack/latest/user_data` - Contains the
|
117
|
-
# base64-decoded data that you provided for **\"user_data\"**.
|
118
|
-
#
|
119
|
-
# **Metadata Example**
|
120
|
-
#
|
121
|
-
# \"metadata\" : {
|
122
|
-
# \"quake_bot_level\" : \"Severe\",
|
123
|
-
# \"ssh_authorized_keys\" : \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCZ06fccNTQfq+xubFlJ5ZR3kt+uzspdH9tXL+lAejSM1NXM+CFZev7MIxfEjas06y80ZBZ7DUTQO0GxJPeD8NCOb1VorF8M4xuLwrmzRtkoZzU16umt4y1W0Q4ifdp3IiiU0U8/WxczSXcUVZOLqkz5dc6oMHdMVpkimietWzGZ4LBBsH/LjEVY7E0V+a0sNchlVDIZcm7ErReBLcdTGDq0uLBiuChyl6RUkX1PNhusquTGwK7zc8OBXkRuubn5UKXhI3Ul9Nyk4XESkVWIGNKmw8mSpoJSjR8P9ZjRmcZVo8S+x4KVPMZKQEor== ryan.smith@company.com
|
124
|
-
# ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAzJSAtwEPoB3Jmr58IXrDGzLuDYkWAYg8AsLYlo6JZvKpjY1xednIcfEVQJm4T2DhVmdWhRrwQ8DmayVZvBkLt+zs2LdoAJEVimKwXcJFD/7wtH8Lnk17HiglbbbNXsemjDY0hea4JUE5CfvkIdZBITuMrfqSmA4n3VNoorXYdvtTMoGG8fxMub46RPtuxtqi9bG9Zqenordkg5FJt2mVNfQRqf83CWojcOkklUWq4CjyxaeLf5i9gv1fRoBo4QhiA8I6NCSppO8GnoV/6Ox6TNoh9BiifqGKC9VGYuC89RvUajRBTZSK2TK4DPfaT+2R+slPsFrwiT/oPEhhEK1S5Q== rsa-key-20160227\",
|
125
|
-
# \"user_data\" : \"SWYgeW91IGNhbiBzZWUgdGhpcywgdGhlbiBpdCB3b3JrZWQgbWF5YmUuCg==\"
|
126
|
-
# }
|
127
|
-
# **Getting Metadata on the Instance**
|
128
|
-
#
|
129
|
-
# To get information about your instance, connect to the instance using SSH and issue any of the
|
130
|
-
# following GET requests:
|
131
|
-
#
|
132
|
-
# curl http://169.254.169.254/opc/v1/instance/
|
133
|
-
# curl http://169.254.169.254/opc/v1/instance/metadata/
|
134
|
-
# curl http://169.254.169.254/opc/v1/instance/metadata/<any-key-name>
|
135
|
-
#
|
136
|
-
# You'll get back a response that includes all the instance information; only the metadata information; or
|
137
|
-
# the metadata information for the specified key name, respectively.
|
138
|
-
#
|
139
|
-
# @return [Hash<String, String>]
|
140
|
-
attr_accessor :metadata
|
141
|
-
|
142
|
-
# The shape of an instance. The shape determines the number of CPUs, amount of memory,
|
143
|
-
# and other resources allocated to the instance.
|
144
|
-
#
|
145
|
-
# You can enumerate all available shapes by calling {#list_shapes list_shapes}.
|
146
|
-
#
|
147
|
-
# @return [String]
|
148
|
-
attr_accessor :shape
|
149
|
-
|
150
|
-
# Deprecated. Instead use `subnetId` in
|
151
|
-
# {CreateVnicDetails}.
|
152
|
-
# At least one of them is required; if you provide both, the values must match.
|
153
|
-
#
|
154
|
-
# @return [String]
|
155
|
-
attr_accessor :subnet_id
|
156
|
-
|
157
|
-
|
158
|
-
# Initializes the object
|
159
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
160
|
-
def initialize(attributes = {})
|
161
|
-
return unless attributes.is_a?(Hash)
|
162
|
-
|
163
|
-
# convert string to symbol for hash key
|
164
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
165
|
-
|
166
|
-
if attributes[:'availabilityDomain']
|
167
|
-
self.availability_domain = attributes[:'availabilityDomain']
|
168
|
-
end
|
169
|
-
|
170
|
-
if attributes[:'compartmentId']
|
171
|
-
self.compartment_id = attributes[:'compartmentId']
|
172
|
-
end
|
173
|
-
|
174
|
-
if attributes[:'createVnicDetails']
|
175
|
-
self.create_vnic_details = attributes[:'createVnicDetails']
|
176
|
-
end
|
177
|
-
|
178
|
-
if attributes[:'displayName']
|
179
|
-
self.display_name = attributes[:'displayName']
|
180
|
-
end
|
181
|
-
|
182
|
-
if attributes[:'extendedMetadata']
|
183
|
-
self.extended_metadata = attributes[:'extendedMetadata']
|
184
|
-
end
|
185
|
-
|
186
|
-
if attributes[:'hostnameLabel']
|
187
|
-
self.hostname_label = attributes[:'hostnameLabel']
|
188
|
-
end
|
189
|
-
|
190
|
-
if attributes[:'imageId']
|
191
|
-
self.image_id = attributes[:'imageId']
|
192
|
-
end
|
193
|
-
|
194
|
-
if attributes[:'ipxeScript']
|
195
|
-
self.ipxe_script = attributes[:'ipxeScript']
|
196
|
-
end
|
197
|
-
|
198
|
-
if attributes[:'metadata']
|
199
|
-
self.metadata = attributes[:'metadata']
|
200
|
-
end
|
201
|
-
|
202
|
-
if attributes[:'shape']
|
203
|
-
self.shape = attributes[:'shape']
|
204
|
-
end
|
205
|
-
|
206
|
-
if attributes[:'subnetId']
|
207
|
-
self.subnet_id = attributes[:'subnetId']
|
208
|
-
end
|
209
|
-
|
210
|
-
end
|
211
|
-
|
212
|
-
# Checks equality by comparing each attribute.
|
213
|
-
# @param [Object] other_object to be compared
|
214
|
-
def ==(other_object)
|
215
|
-
return true if self.equal?(other_object)
|
216
|
-
self.class == other_object.class &&
|
217
|
-
availability_domain == other_object.availability_domain &&
|
218
|
-
compartment_id == other_object.compartment_id &&
|
219
|
-
create_vnic_details == other_object.create_vnic_details &&
|
220
|
-
display_name == other_object.display_name &&
|
221
|
-
extended_metadata == other_object.extended_metadata &&
|
222
|
-
hostname_label == other_object.hostname_label &&
|
223
|
-
image_id == other_object.image_id &&
|
224
|
-
ipxe_script == other_object.ipxe_script &&
|
225
|
-
metadata == other_object.metadata &&
|
226
|
-
shape == other_object.shape &&
|
227
|
-
subnet_id == other_object.subnet_id
|
228
|
-
end
|
229
|
-
|
230
|
-
# @see the `==` method
|
231
|
-
# @param [Object] other_object to be compared
|
232
|
-
def eql?(other_object)
|
233
|
-
self == other_object
|
234
|
-
end
|
235
|
-
|
236
|
-
# Calculates hash code according to all attributes.
|
237
|
-
# @return [Fixnum] Hash code
|
238
|
-
def hash
|
239
|
-
[availability_domain, compartment_id, create_vnic_details, display_name, extended_metadata, hostname_label, image_id, ipxe_script, metadata, shape, subnet_id].hash
|
240
|
-
end
|
241
|
-
|
242
|
-
# Builds the object from hash
|
243
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
244
|
-
# @return [Object] Returns the model itself
|
245
|
-
def build_from_hash(attributes)
|
246
|
-
return nil unless attributes.is_a?(Hash)
|
247
|
-
self.class.swagger_types.each_pair do |key, type|
|
248
|
-
if type =~ /^Array<(.*)>/i
|
249
|
-
# check to ensure the input is an array given that the the attribute
|
250
|
-
# is documented as an array but the input is not
|
251
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
252
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
253
|
-
end
|
254
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
255
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
256
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
257
|
-
end
|
258
|
-
|
259
|
-
self
|
260
|
-
end
|
261
|
-
|
262
|
-
# Returns the string representation of the object
|
263
|
-
# @return [String] String presentation of the object
|
264
|
-
def to_s
|
265
|
-
to_hash.to_s
|
266
|
-
end
|
267
|
-
|
268
|
-
# Returns the object in the form of hash
|
269
|
-
# @return [Hash] Returns the object in the form of hash
|
270
|
-
def to_hash
|
271
|
-
hash = {}
|
272
|
-
self.class.attribute_map.each_pair do |attr, param|
|
273
|
-
value = self.send(attr)
|
274
|
-
next if value.nil?
|
275
|
-
hash[param] = _to_hash(value)
|
276
|
-
end
|
277
|
-
hash
|
278
|
-
end
|
279
|
-
|
280
|
-
private
|
281
|
-
|
282
|
-
# Outputs non-array value in the form of hash
|
283
|
-
# For object, use to_hash. Otherwise, just return the value
|
284
|
-
# @param [Object] value Any valid value
|
285
|
-
# @return [Hash] Returns the value in the form of hash
|
286
|
-
def _to_hash(value)
|
287
|
-
if value.is_a?(Array)
|
288
|
-
value.compact.map{ |v| _to_hash(v) }
|
289
|
-
elsif value.is_a?(Hash)
|
290
|
-
{}.tap do |hash|
|
291
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
292
|
-
end
|
293
|
-
elsif value.respond_to? :to_hash
|
294
|
-
value.to_hash
|
295
|
-
else
|
296
|
-
value
|
297
|
-
end
|
298
|
-
end
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
303
|
-
def self.attribute_map
|
304
|
-
{
|
305
|
-
:'availability_domain' => :'availabilityDomain',
|
306
|
-
:'compartment_id' => :'compartmentId',
|
307
|
-
:'create_vnic_details' => :'createVnicDetails',
|
308
|
-
:'display_name' => :'displayName',
|
309
|
-
:'extended_metadata' => :'extendedMetadata',
|
310
|
-
:'hostname_label' => :'hostnameLabel',
|
311
|
-
:'image_id' => :'imageId',
|
312
|
-
:'ipxe_script' => :'ipxeScript',
|
313
|
-
:'metadata' => :'metadata',
|
314
|
-
:'shape' => :'shape',
|
315
|
-
:'subnet_id' => :'subnetId'
|
316
|
-
}
|
317
|
-
end
|
318
|
-
|
319
|
-
# Attribute type mapping.
|
320
|
-
def self.swagger_types
|
321
|
-
{
|
322
|
-
:'availability_domain' => :'String',
|
323
|
-
:'compartment_id' => :'String',
|
324
|
-
:'create_vnic_details' => :'OracleBMC::Core::Models::CreateVnicDetails',
|
325
|
-
:'display_name' => :'String',
|
326
|
-
:'extended_metadata' => :'Hash<String, Object>',
|
327
|
-
:'hostname_label' => :'String',
|
328
|
-
:'image_id' => :'String',
|
329
|
-
:'ipxe_script' => :'String',
|
330
|
-
:'metadata' => :'Hash<String, String>',
|
331
|
-
:'shape' => :'String',
|
332
|
-
:'subnet_id' => :'String'
|
333
|
-
}
|
334
|
-
end
|
335
|
-
end
|
336
|
-
end
|
@@ -1,194 +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::LetterOfAuthority
|
7
|
-
|
8
|
-
CIRCUIT_TYPE_ENUM = [CIRCUIT_TYPE_SINGLE_MODE_LC = 'Single_mode_LC',
|
9
|
-
CIRCUIT_TYPE_SINGLE_MODE_SC = 'Single_mode_SC',
|
10
|
-
CIRCUIT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
11
|
-
|
12
|
-
# The type of cross-connect fiber, termination, and optical specification.
|
13
|
-
# @return [String]
|
14
|
-
attr_accessor :circuit_type
|
15
|
-
|
16
|
-
# The OCID of the cross-connect.
|
17
|
-
# @return [String]
|
18
|
-
attr_accessor :cross_connect_id
|
19
|
-
|
20
|
-
# The address of the FastConnect location.
|
21
|
-
# @return [String]
|
22
|
-
attr_accessor :facility_location
|
23
|
-
|
24
|
-
# The meet-me room port for this cross-connect.
|
25
|
-
# @return [String]
|
26
|
-
attr_accessor :port_name
|
27
|
-
|
28
|
-
# The date and time when the Letter of Authority expires, in the format defined by RFC3339.
|
29
|
-
#
|
30
|
-
# @return [DateTime]
|
31
|
-
attr_accessor :time_expires
|
32
|
-
|
33
|
-
# The date and time the Letter of Authority was created, in the format defined by RFC3339.
|
34
|
-
#
|
35
|
-
# Example: `2016-08-25T21:10:29.600Z`
|
36
|
-
#
|
37
|
-
# @return [DateTime]
|
38
|
-
attr_accessor :time_issued
|
39
|
-
|
40
|
-
|
41
|
-
# Initializes the object
|
42
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
-
def initialize(attributes = {})
|
44
|
-
return unless attributes.is_a?(Hash)
|
45
|
-
|
46
|
-
# convert string to symbol for hash key
|
47
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
|
-
|
49
|
-
if attributes[:'circuitType']
|
50
|
-
self.circuit_type = attributes[:'circuitType']
|
51
|
-
end
|
52
|
-
|
53
|
-
if attributes[:'crossConnectId']
|
54
|
-
self.cross_connect_id = attributes[:'crossConnectId']
|
55
|
-
end
|
56
|
-
|
57
|
-
if attributes[:'facilityLocation']
|
58
|
-
self.facility_location = attributes[:'facilityLocation']
|
59
|
-
end
|
60
|
-
|
61
|
-
if attributes[:'portName']
|
62
|
-
self.port_name = attributes[:'portName']
|
63
|
-
end
|
64
|
-
|
65
|
-
if attributes[:'timeExpires']
|
66
|
-
self.time_expires = attributes[:'timeExpires']
|
67
|
-
end
|
68
|
-
|
69
|
-
if attributes[:'timeIssued']
|
70
|
-
self.time_issued = attributes[:'timeIssued']
|
71
|
-
end
|
72
|
-
|
73
|
-
end
|
74
|
-
|
75
|
-
# Custom attribute writer method checking allowed values (enum).
|
76
|
-
# @param [Object] circuit_type Object to be assigned
|
77
|
-
def circuit_type=(circuit_type)
|
78
|
-
if circuit_type && !CIRCUIT_TYPE_ENUM.include?(circuit_type)
|
79
|
-
@circuit_type = CIRCUIT_TYPE_UNKNOWN_ENUM_VALUE
|
80
|
-
else
|
81
|
-
@circuit_type = circuit_type
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
# Checks equality by comparing each attribute.
|
86
|
-
# @param [Object] other_object to be compared
|
87
|
-
def ==(other_object)
|
88
|
-
return true if self.equal?(other_object)
|
89
|
-
self.class == other_object.class &&
|
90
|
-
circuit_type == other_object.circuit_type &&
|
91
|
-
cross_connect_id == other_object.cross_connect_id &&
|
92
|
-
facility_location == other_object.facility_location &&
|
93
|
-
port_name == other_object.port_name &&
|
94
|
-
time_expires == other_object.time_expires &&
|
95
|
-
time_issued == other_object.time_issued
|
96
|
-
end
|
97
|
-
|
98
|
-
# @see the `==` method
|
99
|
-
# @param [Object] other_object to be compared
|
100
|
-
def eql?(other_object)
|
101
|
-
self == other_object
|
102
|
-
end
|
103
|
-
|
104
|
-
# Calculates hash code according to all attributes.
|
105
|
-
# @return [Fixnum] Hash code
|
106
|
-
def hash
|
107
|
-
[circuit_type, cross_connect_id, facility_location, port_name, time_expires, time_issued].hash
|
108
|
-
end
|
109
|
-
|
110
|
-
# Builds the object from hash
|
111
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
112
|
-
# @return [Object] Returns the model itself
|
113
|
-
def build_from_hash(attributes)
|
114
|
-
return nil unless attributes.is_a?(Hash)
|
115
|
-
self.class.swagger_types.each_pair do |key, type|
|
116
|
-
if type =~ /^Array<(.*)>/i
|
117
|
-
# check to ensure the input is an array given that the the attribute
|
118
|
-
# is documented as an array but the input is not
|
119
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
120
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
121
|
-
end
|
122
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
123
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
124
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
125
|
-
end
|
126
|
-
|
127
|
-
self
|
128
|
-
end
|
129
|
-
|
130
|
-
# Returns the string representation of the object
|
131
|
-
# @return [String] String presentation of the object
|
132
|
-
def to_s
|
133
|
-
to_hash.to_s
|
134
|
-
end
|
135
|
-
|
136
|
-
# Returns the object in the form of hash
|
137
|
-
# @return [Hash] Returns the object in the form of hash
|
138
|
-
def to_hash
|
139
|
-
hash = {}
|
140
|
-
self.class.attribute_map.each_pair do |attr, param|
|
141
|
-
value = self.send(attr)
|
142
|
-
next if value.nil?
|
143
|
-
hash[param] = _to_hash(value)
|
144
|
-
end
|
145
|
-
hash
|
146
|
-
end
|
147
|
-
|
148
|
-
private
|
149
|
-
|
150
|
-
# Outputs non-array value in the form of hash
|
151
|
-
# For object, use to_hash. Otherwise, just return the value
|
152
|
-
# @param [Object] value Any valid value
|
153
|
-
# @return [Hash] Returns the value in the form of hash
|
154
|
-
def _to_hash(value)
|
155
|
-
if value.is_a?(Array)
|
156
|
-
value.compact.map{ |v| _to_hash(v) }
|
157
|
-
elsif value.is_a?(Hash)
|
158
|
-
{}.tap do |hash|
|
159
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
160
|
-
end
|
161
|
-
elsif value.respond_to? :to_hash
|
162
|
-
value.to_hash
|
163
|
-
else
|
164
|
-
value
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
171
|
-
def self.attribute_map
|
172
|
-
{
|
173
|
-
:'circuit_type' => :'circuitType',
|
174
|
-
:'cross_connect_id' => :'crossConnectId',
|
175
|
-
:'facility_location' => :'facilityLocation',
|
176
|
-
:'port_name' => :'portName',
|
177
|
-
:'time_expires' => :'timeExpires',
|
178
|
-
:'time_issued' => :'timeIssued'
|
179
|
-
}
|
180
|
-
end
|
181
|
-
|
182
|
-
# Attribute type mapping.
|
183
|
-
def self.swagger_types
|
184
|
-
{
|
185
|
-
:'circuit_type' => :'String',
|
186
|
-
:'cross_connect_id' => :'String',
|
187
|
-
:'facility_location' => :'String',
|
188
|
-
:'port_name' => :'String',
|
189
|
-
:'time_expires' => :'DateTime',
|
190
|
-
:'time_issued' => :'DateTime'
|
191
|
-
}
|
192
|
-
end
|
193
|
-
end
|
194
|
-
end
|