oraclebmc 1.2.0 → 1.2.1
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.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/lib/oraclebmc/core/models/console_history.rb +5 -3
- data/lib/oraclebmc/core/models/dhcp_dns_option.rb +5 -3
- data/lib/oraclebmc/core/models/dhcp_options.rb +5 -3
- data/lib/oraclebmc/core/models/drg.rb +5 -3
- data/lib/oraclebmc/core/models/drg_attachment.rb +5 -3
- data/lib/oraclebmc/core/models/image.rb +5 -3
- data/lib/oraclebmc/core/models/instance.rb +5 -3
- data/lib/oraclebmc/core/models/internet_gateway.rb +5 -3
- data/lib/oraclebmc/core/models/ip_sec_connection.rb +5 -3
- data/lib/oraclebmc/core/models/route_table.rb +5 -3
- data/lib/oraclebmc/core/models/security_list.rb +5 -3
- data/lib/oraclebmc/core/models/subnet.rb +5 -3
- data/lib/oraclebmc/core/models/tunnel_status.rb +5 -3
- data/lib/oraclebmc/core/models/vcn.rb +5 -3
- data/lib/oraclebmc/core/models/vnic.rb +5 -3
- data/lib/oraclebmc/core/models/vnic_attachment.rb +5 -3
- data/lib/oraclebmc/core/models/volume.rb +5 -3
- data/lib/oraclebmc/core/models/volume_attachment.rb +5 -3
- data/lib/oraclebmc/core/models/volume_backup.rb +5 -3
- data/lib/oraclebmc/identity/models/api_key.rb +5 -3
- data/lib/oraclebmc/identity/models/compartment.rb +5 -3
- data/lib/oraclebmc/identity/models/group.rb +5 -3
- data/lib/oraclebmc/identity/models/policy.rb +5 -3
- data/lib/oraclebmc/identity/models/swift_password.rb +5 -3
- data/lib/oraclebmc/identity/models/ui_password.rb +5 -3
- data/lib/oraclebmc/identity/models/user.rb +5 -3
- data/lib/oraclebmc/identity/models/user_group_membership.rb +5 -3
- data/lib/oraclebmc/load_balancer/load_balancer_client.rb +70 -0
- data/lib/oraclebmc/load_balancer/models/backend.rb +62 -62
- data/lib/oraclebmc/load_balancer/models/backend_details.rb +49 -49
- data/lib/oraclebmc/load_balancer/models/backend_set.rb +21 -21
- data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +14 -14
- data/lib/oraclebmc/load_balancer/models/certificate.rb +26 -26
- data/lib/oraclebmc/load_balancer/models/certificate_details.rb +40 -40
- data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +49 -49
- data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +21 -21
- data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +40 -40
- data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +18 -18
- data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +32 -32
- data/lib/oraclebmc/load_balancer/models/health_checker.rb +54 -54
- data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +54 -54
- data/lib/oraclebmc/load_balancer/models/listener.rb +12 -12
- data/lib/oraclebmc/load_balancer/models/load_balancer.rb +61 -59
- data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +18 -18
- data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +18 -18
- data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +22 -22
- data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +14 -14
- data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +53 -53
- data/lib/oraclebmc/load_balancer/models/work_request.rb +35 -33
- data/lib/oraclebmc/load_balancer/models/work_request_error.rb +5 -3
- data/lib/oraclebmc/version.rb +1 -1
- metadata +8 -8
@@ -4,6 +4,28 @@ require 'date'
|
|
4
4
|
|
5
5
|
module OracleBMC
|
6
6
|
class LoadBalancer::Models::CertificateDetails
|
7
|
+
# The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
|
8
|
+
#
|
9
|
+
# Example:
|
10
|
+
#
|
11
|
+
# -----BEGIN CERTIFICATE-----
|
12
|
+
# MIIEczCCA1ugAwIBAgIBADANBgkqhkiG9w0BAQQFAD..AkGA1UEBhMCR0Ix
|
13
|
+
# EzARBgNVBAgTClNvbWUtU3RhdGUxFDASBgNVBAoTC0..0EgTHRkMTcwNQYD
|
14
|
+
# VQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcn..XRpb24gQXV0aG9y
|
15
|
+
# aXR5MRQwEgYDVQQDEwtCZXN0IENBIEx0ZDAeFw0wMD..TUwMTZaFw0wMTAy
|
16
|
+
# ...
|
17
|
+
# -----END CERTIFICATE-----
|
18
|
+
#
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :ca_certificate
|
21
|
+
|
22
|
+
# A friendly name for the certificate bundle. It must be unique and it cannot be changed.
|
23
|
+
#
|
24
|
+
# Example: `My certificate bundle`
|
25
|
+
#
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :certificate_name
|
28
|
+
|
7
29
|
# A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.
|
8
30
|
#
|
9
31
|
# Example: `Mysecretunlockingcode42!1!`
|
@@ -41,28 +63,6 @@ module OracleBMC
|
|
41
63
|
# @return [String]
|
42
64
|
attr_accessor :public_certificate
|
43
65
|
|
44
|
-
# The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
|
45
|
-
#
|
46
|
-
# Example:
|
47
|
-
#
|
48
|
-
# -----BEGIN CERTIFICATE-----
|
49
|
-
# MIIEczCCA1ugAwIBAgIBADANBgkqhkiG9w0BAQQFAD..AkGA1UEBhMCR0Ix
|
50
|
-
# EzARBgNVBAgTClNvbWUtU3RhdGUxFDASBgNVBAoTC0..0EgTHRkMTcwNQYD
|
51
|
-
# VQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcn..XRpb24gQXV0aG9y
|
52
|
-
# aXR5MRQwEgYDVQQDEwtCZXN0IENBIEx0ZDAeFw0wMD..TUwMTZaFw0wMTAy
|
53
|
-
# ...
|
54
|
-
# -----END CERTIFICATE-----
|
55
|
-
#
|
56
|
-
# @return [String]
|
57
|
-
attr_accessor :ca_certificate
|
58
|
-
|
59
|
-
# A friendly name for the certificate bundle. It must be unique and it cannot be changed.
|
60
|
-
#
|
61
|
-
# Example: `My certificate bundle`
|
62
|
-
#
|
63
|
-
# @return [String]
|
64
|
-
attr_accessor :certificate_name
|
65
|
-
|
66
66
|
|
67
67
|
# Initializes the object
|
68
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -73,6 +73,14 @@ module OracleBMC
|
|
73
73
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
74
74
|
|
75
75
|
|
76
|
+
if attributes[:'caCertificate']
|
77
|
+
self.ca_certificate = attributes[:'caCertificate']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes[:'certificateName']
|
81
|
+
self.certificate_name = attributes[:'certificateName']
|
82
|
+
end
|
83
|
+
|
76
84
|
if attributes[:'passphrase']
|
77
85
|
self.passphrase = attributes[:'passphrase']
|
78
86
|
end
|
@@ -85,14 +93,6 @@ module OracleBMC
|
|
85
93
|
self.public_certificate = attributes[:'publicCertificate']
|
86
94
|
end
|
87
95
|
|
88
|
-
if attributes[:'caCertificate']
|
89
|
-
self.ca_certificate = attributes[:'caCertificate']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes[:'certificateName']
|
93
|
-
self.certificate_name = attributes[:'certificateName']
|
94
|
-
end
|
95
|
-
|
96
96
|
end
|
97
97
|
|
98
98
|
# Checks equality by comparing each attribute.
|
@@ -100,11 +100,11 @@ module OracleBMC
|
|
100
100
|
def ==(other_object)
|
101
101
|
return true if self.equal?(other_object)
|
102
102
|
self.class == other_object.class &&
|
103
|
+
ca_certificate == other_object.ca_certificate &&
|
104
|
+
certificate_name == other_object.certificate_name &&
|
103
105
|
passphrase == other_object.passphrase &&
|
104
106
|
private_key == other_object.private_key &&
|
105
|
-
public_certificate == other_object.public_certificate
|
106
|
-
ca_certificate == other_object.ca_certificate &&
|
107
|
-
certificate_name == other_object.certificate_name
|
107
|
+
public_certificate == other_object.public_certificate
|
108
108
|
end
|
109
109
|
|
110
110
|
# @see the `==` method
|
@@ -116,7 +116,7 @@ module OracleBMC
|
|
116
116
|
# Calculates hash code according to all attributes.
|
117
117
|
# @return [Fixnum] Hash code
|
118
118
|
def hash
|
119
|
-
[
|
119
|
+
[ca_certificate, certificate_name, passphrase, private_key, public_certificate].hash
|
120
120
|
end
|
121
121
|
|
122
122
|
# Builds the object from hash
|
@@ -182,22 +182,22 @@ module OracleBMC
|
|
182
182
|
# Attribute mapping from ruby-style variable name to JSON key.
|
183
183
|
def self.attribute_map
|
184
184
|
{
|
185
|
+
:'ca_certificate' => :'caCertificate',
|
186
|
+
:'certificate_name' => :'certificateName',
|
185
187
|
:'passphrase' => :'passphrase',
|
186
188
|
:'private_key' => :'privateKey',
|
187
|
-
:'public_certificate' => :'publicCertificate'
|
188
|
-
:'ca_certificate' => :'caCertificate',
|
189
|
-
:'certificate_name' => :'certificateName'
|
189
|
+
:'public_certificate' => :'publicCertificate'
|
190
190
|
}
|
191
191
|
end
|
192
192
|
|
193
193
|
# Attribute type mapping.
|
194
194
|
def self.swagger_types
|
195
195
|
{
|
196
|
+
:'ca_certificate' => :'String',
|
197
|
+
:'certificate_name' => :'String',
|
196
198
|
:'passphrase' => :'String',
|
197
199
|
:'private_key' => :'String',
|
198
|
-
:'public_certificate' => :'String'
|
199
|
-
:'ca_certificate' => :'String',
|
200
|
-
:'certificate_name' => :'String'
|
200
|
+
:'public_certificate' => :'String'
|
201
201
|
}
|
202
202
|
end
|
203
203
|
end
|
@@ -4,6 +4,22 @@ require 'date'
|
|
4
4
|
|
5
5
|
module OracleBMC
|
6
6
|
class LoadBalancer::Models::CreateBackendDetails
|
7
|
+
# Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
8
|
+
# traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
9
|
+
#
|
10
|
+
# Example: `true`
|
11
|
+
#
|
12
|
+
# @return [BOOLEAN]
|
13
|
+
attr_accessor :backup
|
14
|
+
|
15
|
+
# Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
16
|
+
# incoming traffic.
|
17
|
+
#
|
18
|
+
# Example: `true`
|
19
|
+
#
|
20
|
+
# @return [BOOLEAN]
|
21
|
+
attr_accessor :drain
|
22
|
+
|
7
23
|
# The IP address of the backend server.
|
8
24
|
#
|
9
25
|
# Example: `10.10.10.4`
|
@@ -11,6 +27,14 @@ module OracleBMC
|
|
11
27
|
# @return [String]
|
12
28
|
attr_accessor :ip_address
|
13
29
|
|
30
|
+
# Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
31
|
+
# traffic.
|
32
|
+
#
|
33
|
+
# Example: `true`
|
34
|
+
#
|
35
|
+
# @return [BOOLEAN]
|
36
|
+
attr_accessor :offline
|
37
|
+
|
14
38
|
# The communication port for the backend server.
|
15
39
|
#
|
16
40
|
# Example: `8080`
|
@@ -29,30 +53,6 @@ module OracleBMC
|
|
29
53
|
# @return [Integer]
|
30
54
|
attr_accessor :weight
|
31
55
|
|
32
|
-
# Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
33
|
-
# traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
34
|
-
#
|
35
|
-
# Example: `true`
|
36
|
-
#
|
37
|
-
# @return [BOOLEAN]
|
38
|
-
attr_accessor :backup
|
39
|
-
|
40
|
-
# Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
41
|
-
# incoming traffic.
|
42
|
-
#
|
43
|
-
# Example: `true`
|
44
|
-
#
|
45
|
-
# @return [BOOLEAN]
|
46
|
-
attr_accessor :drain
|
47
|
-
|
48
|
-
# Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
49
|
-
# traffic.
|
50
|
-
#
|
51
|
-
# Example: `true`
|
52
|
-
#
|
53
|
-
# @return [BOOLEAN]
|
54
|
-
attr_accessor :offline
|
55
|
-
|
56
56
|
|
57
57
|
# Initializes the object
|
58
58
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -63,18 +63,6 @@ module OracleBMC
|
|
63
63
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
64
64
|
|
65
65
|
|
66
|
-
if attributes[:'ipAddress']
|
67
|
-
self.ip_address = attributes[:'ipAddress']
|
68
|
-
end
|
69
|
-
|
70
|
-
if attributes[:'port']
|
71
|
-
self.port = attributes[:'port']
|
72
|
-
end
|
73
|
-
|
74
|
-
if attributes[:'weight']
|
75
|
-
self.weight = attributes[:'weight']
|
76
|
-
end
|
77
|
-
|
78
66
|
if attributes[:'backup']
|
79
67
|
self.backup = attributes[:'backup']
|
80
68
|
else
|
@@ -87,12 +75,24 @@ module OracleBMC
|
|
87
75
|
self.drain = false
|
88
76
|
end
|
89
77
|
|
78
|
+
if attributes[:'ipAddress']
|
79
|
+
self.ip_address = attributes[:'ipAddress']
|
80
|
+
end
|
81
|
+
|
90
82
|
if attributes[:'offline']
|
91
83
|
self.offline = attributes[:'offline']
|
92
84
|
else
|
93
85
|
self.offline = false
|
94
86
|
end
|
95
87
|
|
88
|
+
if attributes[:'port']
|
89
|
+
self.port = attributes[:'port']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes[:'weight']
|
93
|
+
self.weight = attributes[:'weight']
|
94
|
+
end
|
95
|
+
|
96
96
|
end
|
97
97
|
|
98
98
|
# Checks equality by comparing each attribute.
|
@@ -100,12 +100,12 @@ module OracleBMC
|
|
100
100
|
def ==(other_object)
|
101
101
|
return true if self.equal?(other_object)
|
102
102
|
self.class == other_object.class &&
|
103
|
-
ip_address == other_object.ip_address &&
|
104
|
-
port == other_object.port &&
|
105
|
-
weight == other_object.weight &&
|
106
103
|
backup == other_object.backup &&
|
107
104
|
drain == other_object.drain &&
|
108
|
-
|
105
|
+
ip_address == other_object.ip_address &&
|
106
|
+
offline == other_object.offline &&
|
107
|
+
port == other_object.port &&
|
108
|
+
weight == other_object.weight
|
109
109
|
end
|
110
110
|
|
111
111
|
# @see the `==` method
|
@@ -117,7 +117,7 @@ module OracleBMC
|
|
117
117
|
# Calculates hash code according to all attributes.
|
118
118
|
# @return [Fixnum] Hash code
|
119
119
|
def hash
|
120
|
-
[
|
120
|
+
[backup, drain, ip_address, offline, port, weight].hash
|
121
121
|
end
|
122
122
|
|
123
123
|
# Builds the object from hash
|
@@ -183,24 +183,24 @@ module OracleBMC
|
|
183
183
|
# Attribute mapping from ruby-style variable name to JSON key.
|
184
184
|
def self.attribute_map
|
185
185
|
{
|
186
|
-
:'ip_address' => :'ipAddress',
|
187
|
-
:'port' => :'port',
|
188
|
-
:'weight' => :'weight',
|
189
186
|
:'backup' => :'backup',
|
190
187
|
:'drain' => :'drain',
|
191
|
-
:'
|
188
|
+
:'ip_address' => :'ipAddress',
|
189
|
+
:'offline' => :'offline',
|
190
|
+
:'port' => :'port',
|
191
|
+
:'weight' => :'weight'
|
192
192
|
}
|
193
193
|
end
|
194
194
|
|
195
195
|
# Attribute type mapping.
|
196
196
|
def self.swagger_types
|
197
197
|
{
|
198
|
-
:'ip_address' => :'String',
|
199
|
-
:'port' => :'Integer',
|
200
|
-
:'weight' => :'Integer',
|
201
198
|
:'backup' => :'BOOLEAN',
|
202
199
|
:'drain' => :'BOOLEAN',
|
203
|
-
:'
|
200
|
+
:'ip_address' => :'String',
|
201
|
+
:'offline' => :'BOOLEAN',
|
202
|
+
:'port' => :'Integer',
|
203
|
+
:'weight' => :'Integer'
|
204
204
|
}
|
205
205
|
end
|
206
206
|
end
|
@@ -4,6 +4,12 @@ require 'date'
|
|
4
4
|
|
5
5
|
module OracleBMC
|
6
6
|
class LoadBalancer::Models::CreateBackendSetDetails
|
7
|
+
# @return [Array<OracleBMC::LoadBalancer::Models::BackendDetails>]
|
8
|
+
attr_accessor :backends
|
9
|
+
|
10
|
+
# @return [OracleBMC::LoadBalancer::Models::HealthCheckerDetails]
|
11
|
+
attr_accessor :health_checker
|
12
|
+
|
7
13
|
# A friendly name for the backend set. It must be unique and it cannot be changed.
|
8
14
|
#
|
9
15
|
# Example: `My backend set`
|
@@ -19,12 +25,6 @@ module OracleBMC
|
|
19
25
|
# @return [String]
|
20
26
|
attr_accessor :policy
|
21
27
|
|
22
|
-
# @return [Array<OracleBMC::LoadBalancer::Models::BackendDetails>]
|
23
|
-
attr_accessor :backends
|
24
|
-
|
25
|
-
# @return [OracleBMC::LoadBalancer::Models::HealthCheckerDetails]
|
26
|
-
attr_accessor :health_checker
|
27
|
-
|
28
28
|
# @return [OracleBMC::LoadBalancer::Models::SSLConfigurationDetails]
|
29
29
|
attr_accessor :ssl_configuration
|
30
30
|
|
@@ -38,14 +38,6 @@ module OracleBMC
|
|
38
38
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
39
|
|
40
40
|
|
41
|
-
if attributes[:'name']
|
42
|
-
self.name = attributes[:'name']
|
43
|
-
end
|
44
|
-
|
45
|
-
if attributes[:'policy']
|
46
|
-
self.policy = attributes[:'policy']
|
47
|
-
end
|
48
|
-
|
49
41
|
if attributes[:'backends']
|
50
42
|
self.backends = attributes[:'backends']
|
51
43
|
end
|
@@ -54,6 +46,14 @@ module OracleBMC
|
|
54
46
|
self.health_checker = attributes[:'healthChecker']
|
55
47
|
end
|
56
48
|
|
49
|
+
if attributes[:'name']
|
50
|
+
self.name = attributes[:'name']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes[:'policy']
|
54
|
+
self.policy = attributes[:'policy']
|
55
|
+
end
|
56
|
+
|
57
57
|
if attributes[:'sslConfiguration']
|
58
58
|
self.ssl_configuration = attributes[:'sslConfiguration']
|
59
59
|
end
|
@@ -65,10 +65,10 @@ module OracleBMC
|
|
65
65
|
def ==(other_object)
|
66
66
|
return true if self.equal?(other_object)
|
67
67
|
self.class == other_object.class &&
|
68
|
-
name == other_object.name &&
|
69
|
-
policy == other_object.policy &&
|
70
68
|
backends == other_object.backends &&
|
71
69
|
health_checker == other_object.health_checker &&
|
70
|
+
name == other_object.name &&
|
71
|
+
policy == other_object.policy &&
|
72
72
|
ssl_configuration == other_object.ssl_configuration
|
73
73
|
end
|
74
74
|
|
@@ -81,7 +81,7 @@ module OracleBMC
|
|
81
81
|
# Calculates hash code according to all attributes.
|
82
82
|
# @return [Fixnum] Hash code
|
83
83
|
def hash
|
84
|
-
[
|
84
|
+
[backends, health_checker, name, policy, ssl_configuration].hash
|
85
85
|
end
|
86
86
|
|
87
87
|
# Builds the object from hash
|
@@ -147,10 +147,10 @@ module OracleBMC
|
|
147
147
|
# Attribute mapping from ruby-style variable name to JSON key.
|
148
148
|
def self.attribute_map
|
149
149
|
{
|
150
|
-
:'name' => :'name',
|
151
|
-
:'policy' => :'policy',
|
152
150
|
:'backends' => :'backends',
|
153
151
|
:'health_checker' => :'healthChecker',
|
152
|
+
:'name' => :'name',
|
153
|
+
:'policy' => :'policy',
|
154
154
|
:'ssl_configuration' => :'sslConfiguration'
|
155
155
|
}
|
156
156
|
end
|
@@ -158,10 +158,10 @@ module OracleBMC
|
|
158
158
|
# Attribute type mapping.
|
159
159
|
def self.swagger_types
|
160
160
|
{
|
161
|
-
:'name' => :'String',
|
162
|
-
:'policy' => :'String',
|
163
161
|
:'backends' => :'Array<OracleBMC::LoadBalancer::Models::BackendDetails>',
|
164
162
|
:'health_checker' => :'OracleBMC::LoadBalancer::Models::HealthCheckerDetails',
|
163
|
+
:'name' => :'String',
|
164
|
+
:'policy' => :'String',
|
165
165
|
:'ssl_configuration' => :'OracleBMC::LoadBalancer::Models::SSLConfigurationDetails'
|
166
166
|
}
|
167
167
|
end
|
@@ -4,6 +4,28 @@ require 'date'
|
|
4
4
|
|
5
5
|
module OracleBMC
|
6
6
|
class LoadBalancer::Models::CreateCertificateDetails
|
7
|
+
# The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
|
8
|
+
#
|
9
|
+
# Example:
|
10
|
+
#
|
11
|
+
# -----BEGIN CERTIFICATE-----
|
12
|
+
# MIIEczCCA1ugAwIBAgIBADANBgkqhkiG9w0BAQQFAD..AkGA1UEBhMCR0Ix
|
13
|
+
# EzARBgNVBAgTClNvbWUtU3RhdGUxFDASBgNVBAoTC0..0EgTHRkMTcwNQYD
|
14
|
+
# VQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcn..XRpb24gQXV0aG9y
|
15
|
+
# aXR5MRQwEgYDVQQDEwtCZXN0IENBIEx0ZDAeFw0wMD..TUwMTZaFw0wMTAy
|
16
|
+
# ...
|
17
|
+
# -----END CERTIFICATE-----
|
18
|
+
#
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :ca_certificate
|
21
|
+
|
22
|
+
# A friendly name for the certificate bundle. It must be unique and it cannot be changed.
|
23
|
+
#
|
24
|
+
# Example: `My certificate bundle`
|
25
|
+
#
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :certificate_name
|
28
|
+
|
7
29
|
# A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.
|
8
30
|
#
|
9
31
|
# Example: `Mysecretunlockingcode42!1!`
|
@@ -41,28 +63,6 @@ module OracleBMC
|
|
41
63
|
# @return [String]
|
42
64
|
attr_accessor :public_certificate
|
43
65
|
|
44
|
-
# The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
|
45
|
-
#
|
46
|
-
# Example:
|
47
|
-
#
|
48
|
-
# -----BEGIN CERTIFICATE-----
|
49
|
-
# MIIEczCCA1ugAwIBAgIBADANBgkqhkiG9w0BAQQFAD..AkGA1UEBhMCR0Ix
|
50
|
-
# EzARBgNVBAgTClNvbWUtU3RhdGUxFDASBgNVBAoTC0..0EgTHRkMTcwNQYD
|
51
|
-
# VQQLEy5DbGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcn..XRpb24gQXV0aG9y
|
52
|
-
# aXR5MRQwEgYDVQQDEwtCZXN0IENBIEx0ZDAeFw0wMD..TUwMTZaFw0wMTAy
|
53
|
-
# ...
|
54
|
-
# -----END CERTIFICATE-----
|
55
|
-
#
|
56
|
-
# @return [String]
|
57
|
-
attr_accessor :ca_certificate
|
58
|
-
|
59
|
-
# A friendly name for the certificate bundle. It must be unique and it cannot be changed.
|
60
|
-
#
|
61
|
-
# Example: `My certificate bundle`
|
62
|
-
#
|
63
|
-
# @return [String]
|
64
|
-
attr_accessor :certificate_name
|
65
|
-
|
66
66
|
|
67
67
|
# Initializes the object
|
68
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -73,6 +73,14 @@ module OracleBMC
|
|
73
73
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
74
74
|
|
75
75
|
|
76
|
+
if attributes[:'caCertificate']
|
77
|
+
self.ca_certificate = attributes[:'caCertificate']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes[:'certificateName']
|
81
|
+
self.certificate_name = attributes[:'certificateName']
|
82
|
+
end
|
83
|
+
|
76
84
|
if attributes[:'passphrase']
|
77
85
|
self.passphrase = attributes[:'passphrase']
|
78
86
|
end
|
@@ -85,14 +93,6 @@ module OracleBMC
|
|
85
93
|
self.public_certificate = attributes[:'publicCertificate']
|
86
94
|
end
|
87
95
|
|
88
|
-
if attributes[:'caCertificate']
|
89
|
-
self.ca_certificate = attributes[:'caCertificate']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes[:'certificateName']
|
93
|
-
self.certificate_name = attributes[:'certificateName']
|
94
|
-
end
|
95
|
-
|
96
96
|
end
|
97
97
|
|
98
98
|
# Checks equality by comparing each attribute.
|
@@ -100,11 +100,11 @@ module OracleBMC
|
|
100
100
|
def ==(other_object)
|
101
101
|
return true if self.equal?(other_object)
|
102
102
|
self.class == other_object.class &&
|
103
|
+
ca_certificate == other_object.ca_certificate &&
|
104
|
+
certificate_name == other_object.certificate_name &&
|
103
105
|
passphrase == other_object.passphrase &&
|
104
106
|
private_key == other_object.private_key &&
|
105
|
-
public_certificate == other_object.public_certificate
|
106
|
-
ca_certificate == other_object.ca_certificate &&
|
107
|
-
certificate_name == other_object.certificate_name
|
107
|
+
public_certificate == other_object.public_certificate
|
108
108
|
end
|
109
109
|
|
110
110
|
# @see the `==` method
|
@@ -116,7 +116,7 @@ module OracleBMC
|
|
116
116
|
# Calculates hash code according to all attributes.
|
117
117
|
# @return [Fixnum] Hash code
|
118
118
|
def hash
|
119
|
-
[
|
119
|
+
[ca_certificate, certificate_name, passphrase, private_key, public_certificate].hash
|
120
120
|
end
|
121
121
|
|
122
122
|
# Builds the object from hash
|
@@ -182,22 +182,22 @@ module OracleBMC
|
|
182
182
|
# Attribute mapping from ruby-style variable name to JSON key.
|
183
183
|
def self.attribute_map
|
184
184
|
{
|
185
|
+
:'ca_certificate' => :'caCertificate',
|
186
|
+
:'certificate_name' => :'certificateName',
|
185
187
|
:'passphrase' => :'passphrase',
|
186
188
|
:'private_key' => :'privateKey',
|
187
|
-
:'public_certificate' => :'publicCertificate'
|
188
|
-
:'ca_certificate' => :'caCertificate',
|
189
|
-
:'certificate_name' => :'certificateName'
|
189
|
+
:'public_certificate' => :'publicCertificate'
|
190
190
|
}
|
191
191
|
end
|
192
192
|
|
193
193
|
# Attribute type mapping.
|
194
194
|
def self.swagger_types
|
195
195
|
{
|
196
|
+
:'ca_certificate' => :'String',
|
197
|
+
:'certificate_name' => :'String',
|
196
198
|
:'passphrase' => :'String',
|
197
199
|
:'private_key' => :'String',
|
198
|
-
:'public_certificate' => :'String'
|
199
|
-
:'ca_certificate' => :'String',
|
200
|
-
:'certificate_name' => :'String'
|
200
|
+
:'public_certificate' => :'String'
|
201
201
|
}
|
202
202
|
end
|
203
203
|
end
|