Class ProjectsResource.LocationsResource.SecretsResource.AddVersionRequest
Creates a new SecretVersion containing secret data and attaches it to an existing Secret.
Inheritance
ProjectsResource.LocationsResource.SecretsResource.AddVersionRequest
Inherited Members
Namespace: Google.Apis.SecretManager.v1beta2
Assembly: Google.Apis.SecretManager.v1beta2.dll
Syntax
public class ProjectsResource.LocationsResource.SecretsResource.AddVersionRequest : SecretManagerBaseServiceRequest<SecretVersion>, IClientServiceRequest<SecretVersion>, IClientServiceRequest
Constructors
AddVersionRequest(IClientService, AddSecretVersionRequest, string)
Constructs a new AddVersion request.
Declaration
public AddVersionRequest(IClientService service, AddSecretVersionRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
AddSecretVersionRequest | 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 Secret to associate with the SecretVersion in the format
projects/*/secrets/*
or projects/*/locations/*/secrets/*
.
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes AddVersion parameter list.
Declaration
protected override void InitParameters()