Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Config for authentication with API key.
Instance Attribute Summary collapse
-
#api_key_secret ⇒ String
Optional.
-
#api_key_string ⇒ String
Optional.
-
#http_element_location ⇒ String
Optional.
-
#name ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig
Returns a new instance of GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig.
2223 2224 2225 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2223 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_key_secret ⇒ String
Optional. The name of the SecretManager secret version resource storing the
API key. Format: projects/project/secrets/secrete/versions/version`-
If bothapi_key_secretandapi_key_stringare specified, this field takes
precedence overapi_key_string. - If specified, thesecretmanager.versions.
accesspermission should be granted to Vertex AI Extension Service Agent (
https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
on the specified resource.
Corresponds to the JSON propertyapiKeySecret`
2205 2206 2207 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2205 def api_key_secret @api_key_secret end |
#api_key_string ⇒ String
Optional. The API key to be used in the request directly.
Corresponds to the JSON property apiKeyString
2210 2211 2212 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2210 def api_key_string @api_key_string end |
#http_element_location ⇒ String
Optional. The location of the API key.
Corresponds to the JSON property httpElementLocation
2215 2216 2217 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2215 def http_element_location @http_element_location end |
#name ⇒ String
Optional. The parameter name of the API key. E.g. If the API request is "https:
//example.com/act?api_key=", "api_key" would be the parameter name.
Corresponds to the JSON property name
2221 2222 2223 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2221 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2228 2229 2230 2231 2232 2233 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2228 def update!(**args) @api_key_secret = args[:api_key_secret] if args.key?(:api_key_secret) @api_key_string = args[:api_key_string] if args.key?(:api_key_string) @http_element_location = args[:http_element_location] if args.key?(:http_element_location) @name = args[:name] if args.key?(:name) end |