Class: Google::Apis::CesV1::LfA2aV1ApiKeySecurityScheme

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

Defines a security scheme using an API key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LfA2aV1ApiKeySecurityScheme

Returns a new instance of LfA2aV1ApiKeySecurityScheme.



4364
4365
4366
# File 'lib/google/apis/ces_v1/classes.rb', line 4364

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

An optional description for the security scheme. Corresponds to the JSON property description

Returns:

  • (String)


4351
4352
4353
# File 'lib/google/apis/ces_v1/classes.rb', line 4351

def description
  @description
end

#locationString

Required. The location of the API key. Valid values are "query", "header", or " cookie". Corresponds to the JSON property location

Returns:

  • (String)


4357
4358
4359
# File 'lib/google/apis/ces_v1/classes.rb', line 4357

def location
  @location
end

#nameString

Required. The name of the header, query, or cookie parameter to be used. Corresponds to the JSON property name

Returns:

  • (String)


4362
4363
4364
# File 'lib/google/apis/ces_v1/classes.rb', line 4362

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4369
4370
4371
4372
4373
# File 'lib/google/apis/ces_v1/classes.rb', line 4369

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
end