Class: DatadogAPIClient::V1::SyntheticsBasicAuthSigv4

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

Overview

Object to handle ‘SIGV4` authentication when performing the test.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SyntheticsBasicAuthSigv4

Initializes the object

Parameters:

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

    attributes Model attributes in the form of hash



84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb', line 84

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthSigv4` 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::SyntheticsBasicAuthSigv4`. 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?(:'access_key')
    self.access_key = attributes[:'access_key']
  end

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

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

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

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

  if attributes.key?(:'type')
    self.type = attributes[:'type']
  else
    self.type = 'sigv4'
  end
end

Instance Attribute Details

#access_keyObject

Access key for the ‘SIGV4` authentication.



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

def access_key
  @access_key
end

#regionObject

Region for the ‘SIGV4` authentication.



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

def region
  @region
end

#secret_keyObject

Secret key for the ‘SIGV4` authentication.



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

def secret_key
  @secret_key
end

#service_nameObject

Service name for the ‘SIGV4` authentication.



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

def service_name
  @service_name
end

#session_tokenObject

Session token for the ‘SIGV4` authentication.



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

def session_token
  @session_token
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end