Class ProjectsResource.LocationsResource.KeyRingsResource.CryptoKeysResource.CreateRequest
Create a new CryptoKey within a KeyRing. CryptoKey.purpose and CryptoKey.version_template.algorithm are required.
Inheritance
ProjectsResource.LocationsResource.KeyRingsResource.CryptoKeysResource.CreateRequest
Inherited Members
Namespace: Google.Apis.CloudKMS.v1
Assembly: Google.Apis.CloudKMS.v1.dll
Syntax
public class ProjectsResource.LocationsResource.KeyRingsResource.CryptoKeysResource.CreateRequest : CloudKMSBaseServiceRequest<CryptoKey>, IClientServiceRequest<CryptoKey>, IClientServiceRequest
Constructors
CreateRequest(IClientService, CryptoKey, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, CryptoKey body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CryptoKey | body | |
string | parent |
Properties
CryptoKeyId
Required. It must be unique within a KeyRing and match the regular expression
[a-zA-Z0-9_-]{1,63}
Declaration
[RequestParameter("cryptoKeyId", RequestParameterType.Query)]
public virtual string CryptoKeyId { get; set; }
Property Value
Type | Description |
---|---|
string |
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 name of the KeyRing associated with the CryptoKeys.
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
SkipInitialVersionCreation
If set to true, the request will create a CryptoKey without any CryptoKeyVersions. You must manually call CreateCryptoKeyVersion or ImportCryptoKeyVersion before you can use this CryptoKey.
Declaration
[RequestParameter("skipInitialVersionCreation", RequestParameterType.Query)]
public virtual bool? SkipInitialVersionCreation { get; set; }
Property Value
Type | Description |
---|---|
bool? |
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()