Secret Manager v1beta2 API - Class CreateSecretRequest (1.0.0-beta01)

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

Reference documentation and code samples for the Secret Manager v1beta2 API class CreateSecretRequest.

Request message for [SecretManagerService.CreateSecret][google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret].

Inheritance

object > CreateSecretRequest

Namespace

Google.Cloud.SecretManager.V1Beta2

Assembly

Google.Cloud.SecretManager.V1Beta2.dll

Constructors

CreateSecretRequest()

public CreateSecretRequest()

CreateSecretRequest(CreateSecretRequest)

public CreateSecretRequest(CreateSecretRequest other)
Parameter
NameDescription
otherCreateSecretRequest

Properties

Parent

public string Parent { get; set; }

Required. The resource name of the project to associate with the [Secret][google.cloud.secretmanager.v1beta2.Secret], in the format projects/* or projects/*/locations/*.

Property Value
TypeDescription
string

ParentAsLocationName

public LocationName ParentAsLocationName { get; set; }

LocationName-typed view over the Parent resource name property.

Property Value
TypeDescription
LocationName

ParentAsProjectName

public ProjectName ParentAsProjectName { get; set; }

ProjectName-typed view over the Parent resource name property.

Property Value
TypeDescription
ProjectName

ParentAsResourceName

public IResourceName ParentAsResourceName { get; set; }

IResourceName-typed view over the Parent resource name property.

Property Value
TypeDescription
IResourceName

Secret

public Secret Secret { get; set; }

Required. A [Secret][google.cloud.secretmanager.v1beta2.Secret] with initial field values.

Property Value
TypeDescription
Secret

SecretId

public string SecretId { get; set; }

Required. This must be unique within the project.

A secret ID is a string with a maximum length of 255 characters and can contain uppercase and lowercase letters, numerals, and the hyphen (-) and underscore (_) characters.

Property Value
TypeDescription
string