Class: DatadogAPIClient::V1::SyntheticsSSLCertificate

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb

Overview

Object describing the SSL certificate used for a Synthetic test.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SyntheticsSSLCertificate

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    attributes Model attributes in the form of hash



113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 113

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsSSLCertificate` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsSSLCertificate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'cipher')
    self.cipher = attributes[:'cipher']
  end

  if attributes.key?(:'exponent')
    self.exponent = attributes[:'exponent']
  end

  if attributes.key?(:'ext_key_usage')
    if (value = attributes[:'ext_key_usage']).is_a?(Array)
      self.ext_key_usage = value
    end
  end

  if attributes.key?(:'fingerprint')
    self.fingerprint = attributes[:'fingerprint']
  end

  if attributes.key?(:'fingerprint256')
    self.fingerprint256 = attributes[:'fingerprint256']
  end

  if attributes.key?(:'issuer')
    self.issuer = attributes[:'issuer']
  end

  if attributes.key?(:'modulus')
    self.modulus = attributes[:'modulus']
  end

  if attributes.key?(:'protocol')
    self.protocol = attributes[:'protocol']
  end

  if attributes.key?(:'serial_number')
    self.serial_number = attributes[:'serial_number']
  end

  if attributes.key?(:'subject')
    self.subject = attributes[:'subject']
  end

  if attributes.key?(:'valid_from')
    self.valid_from = attributes[:'valid_from']
  end

  if attributes.key?(:'valid_to')
    self.valid_to = attributes[:'valid_to']
  end
end

Instance Attribute Details

#cipherObject

Cipher used for the connection.



27
28
29
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 27

def cipher
  @cipher
end

#exponentObject

Exponent associated to the certificate.



30
31
32
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 30

def exponent
  @exponent
end

#ext_key_usageObject

Array of extensions and details used for the certificate.



33
34
35
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 33

def ext_key_usage
  @ext_key_usage
end

#fingerprintObject

MD5 digest of the DER-encoded Certificate information.



36
37
38
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 36

def fingerprint
  @fingerprint
end

#fingerprint256Object

SHA-1 digest of the DER-encoded Certificate information.



39
40
41
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 39

def fingerprint256
  @fingerprint256
end

#issuerObject

Returns the value of attribute issuer.



41
42
43
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 41

def issuer
  @issuer
end

#modulusObject

Modulus associated to the SSL certificate private key.



44
45
46
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 44

def modulus
  @modulus
end

#protocolObject

TLS protocol used for the test.



47
48
49
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 47

def protocol
  @protocol
end

#serial_numberObject

Serial Number assigned by Symantec to the SSL certificate.



50
51
52
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 50

def serial_number
  @serial_number
end

#subjectObject

Returns the value of attribute subject.



52
53
54
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 52

def subject
  @subject
end

#valid_fromObject

Date from which the SSL certificate is valid.



55
56
57
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 55

def valid_from
  @valid_from
end

#valid_toObject

Date until which the SSL certificate is valid.



58
59
60
# File 'lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb', line 58

def valid_to
  @valid_to
end