Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1 API class Google::Cloud::Ces::V1::ApiKeyConfig.
Configurations for authentication with API key.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#api_key_secret_version
def api_key_secret_version() -> ::String-
(::String) — Required. The name of the SecretManager secret version resource storing the
API key. Format:
projects/{project}/secrets/{secret}/versions/{version}Note: You should grant
roles/secretmanager.secretAccessorrole to the CES service agentservice-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.
#api_key_secret_version=
def api_key_secret_version=(value) -> ::String-
value (::String) — Required. The name of the SecretManager secret version resource storing the
API key. Format:
projects/{project}/secrets/{secret}/versions/{version}Note: You should grant
roles/secretmanager.secretAccessorrole to the CES service agentservice-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.
-
(::String) — Required. The name of the SecretManager secret version resource storing the
API key. Format:
projects/{project}/secrets/{secret}/versions/{version}Note: You should grant
roles/secretmanager.secretAccessorrole to the CES service agentservice-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.
#key_name
def key_name() -> ::String- (::String) — Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key=
#key_name=
def key_name=(value) -> ::String- value (::String) — Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key=
- (::String) — Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key=
#request_location
def request_location() -> ::Google::Cloud::Ces::V1::ApiKeyConfig::RequestLocation- (::Google::Cloud::Ces::V1::ApiKeyConfig::RequestLocation) — Required. Key location in the request.
#request_location=
def request_location=(value) -> ::Google::Cloud::Ces::V1::ApiKeyConfig::RequestLocation- value (::Google::Cloud::Ces::V1::ApiKeyConfig::RequestLocation) — Required. Key location in the request.
- (::Google::Cloud::Ces::V1::ApiKeyConfig::RequestLocation) — Required. Key location in the request.