Class ProjectsResource.LocationsResource.KeyHandlesResource.CreateRequest
Creates a new KeyHandle, triggering the provisioning of a new CryptoKey for CMEK use with the given resource type in the configured key project and the same location. GetOperation should be used to resolve the resulting long-running operation and get the resulting KeyHandle and CryptoKey.
Inheritance
ProjectsResource.LocationsResource.KeyHandlesResource.CreateRequest
Inherited Members
Namespace: Google.Apis.CloudKMS.v1
Assembly: Google.Apis.CloudKMS.v1.dll
Syntax
public class ProjectsResource.LocationsResource.KeyHandlesResource.CreateRequest : CloudKMSBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, KeyHandle, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, KeyHandle body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
KeyHandle | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
KeyHandleId
Optional. Id of the KeyHandle. Must be unique to the resource project and location. If not provided by the caller, a new UUID is used.
Declaration
[RequestParameter("keyHandleId", RequestParameterType.Query)]
public virtual string KeyHandleId { get; set; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. Name of the resource project and location to create the KeyHandle in, e.g.
projects/{PROJECT_ID}/locations/{LOCATION}
.
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 Create parameter list.
Declaration
protected override void InitParameters()