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.
4378 4379 4380 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4378 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
An optional description for the security scheme.
Corresponds to the JSON property description
4365 4366 4367 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4365 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
4371 4372 4373 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4371 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
4376 4377 4378 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4376 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4383 4384 4385 4386 4387 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4383 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 |