Class ProjectsResource.SecretsResource.CreateRequest
Creates a new Secret containing no SecretVersions.
Inheritance
ProjectsResource.SecretsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.SecretManager.v1beta2
Assembly: Google.Apis.SecretManager.v1beta2.dll
Syntax
public class ProjectsResource.SecretsResource.CreateRequest : SecretManagerBaseServiceRequest<Secret>, IClientServiceRequest<Secret>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Secret, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Secret body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Secret | body | |
| string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Parent
Required. The resource name of the project to associate with the Secret, in the format projects/*
or projects/*/locations/*.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
SecretId
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.
Declaration
[RequestParameter("secretId", RequestParameterType.Query)]
public virtual string SecretId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()