Class: Google::Apis::CesV1::LfA2aV1ApiKeySecurityScheme
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::LfA2aV1ApiKeySecurityScheme
- 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
-
#description ⇒ String
An optional description for the security scheme.
-
#location ⇒ String
Required.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LfA2aV1ApiKeySecurityScheme
constructor
A new instance of LfA2aV1ApiKeySecurityScheme.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#description ⇒ String
An optional description for the security scheme.
Corresponds to the JSON property description
4351 4352 4353 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4351 def description @description end |
#location ⇒ String
Required. The location of the API key. Valid values are "query", "header", or "
cookie".
Corresponds to the JSON property location
4357 4358 4359 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4357 def location @location end |
#name ⇒ String
Required. The name of the header, query, or cookie parameter to be used.
Corresponds to the JSON property name
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 |