API Keys v2 API - Class CreateKeyRequest (1.3.0)

public sealed class CreateKeyRequest : IMessage<CreateKeyRequest>, IEquatable<CreateKeyRequest>, IDeepCloneable<CreateKeyRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the API Keys v2 API class CreateKeyRequest.

Request message for CreateKey method.

Inheritance

object > CreateKeyRequest

Namespace

Google.Cloud.ApiKeys.V2

Assembly

Google.Cloud.ApiKeys.V2.dll

Constructors

CreateKeyRequest()

public CreateKeyRequest()

CreateKeyRequest(CreateKeyRequest)

public CreateKeyRequest(CreateKeyRequest other)
Parameter
NameDescription
otherCreateKeyRequest

Properties

Key

public Key Key { get; set; }

Required. The API key fields to set at creation time. You can configure only the display_name, restrictions, and annotations fields.

Property Value
TypeDescription
Key

KeyId

public string KeyId { get; set; }

User specified key id (optional). If specified, it will become the final component of the key resource name.

The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

The id must NOT be a UUID-like string.

Property Value
TypeDescription
string

Parent

public string Parent { get; set; }

Required. The project in which the API key is created.

Property Value
TypeDescription
string

ParentAsLocationName

public LocationName ParentAsLocationName { get; set; }

LocationName-typed view over the Parent resource name property.

Property Value
TypeDescription
LocationName