Google Cloud Dialogflow v2beta1 API - Class Tool.Types.Authentication.Types.ApiKeyConfig (1.0.0-beta24)

public sealed class Tool.Types.Authentication.Types.ApiKeyConfig : IMessage<Tool.Types.Authentication.Types.ApiKeyConfig>, IEquatable<Tool.Types.Authentication.Types.ApiKeyConfig>, IDeepCloneable<Tool.Types.Authentication.Types.ApiKeyConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class Tool.Types.Authentication.Types.ApiKeyConfig.

Config for authentication with API key.

Inheritance

object > Tool.Types.Authentication.Types.ApiKeyConfig

Namespace

Google.Cloud.Dialogflow.V2Beta1

Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

Constructors

ApiKeyConfig()

public ApiKeyConfig()

ApiKeyConfig(ApiKeyConfig)

public ApiKeyConfig(Tool.Types.Authentication.Types.ApiKeyConfig other)
Parameter
Name Description
other ToolTypesAuthenticationTypesApiKeyConfig

Properties

ApiKey

public string ApiKey { get; set; }

Optional. The API key. If the secret_version_for_api_key field is set, this field will be ignored.

Property Value
Type Description
string

KeyName

public string KeyName { get; set; }

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=<API KEY>", "X-Api-Key" would be the parameter name.

Property Value
Type Description
string

RequestLocation

public Tool.Types.Authentication.Types.RequestLocation RequestLocation { get; set; }

Required. Key location in the request.

Property Value
Type Description
ToolTypesAuthenticationTypesRequestLocation

SecretVersionForApiKey

public string SecretVersionForApiKey { get; set; }

Optional. The name of the SecretManager secret version resource storing the API key. If this field is set, the api_key field will be ignored. Format: projects/{project}/secrets/{secret}/versions/{version}

Property Value
Type Description
string

SecretVersionForApiKeyAsSecretVersionName

public SecretVersionName SecretVersionForApiKeyAsSecretVersionName { get; set; }

SecretVersionName-typed view over the SecretVersionForApiKey resource name property.

Property Value
Type Description
SecretVersionName