public class CloudKMS.Projects.Locations.KeyRings.CryptoKeys extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions
The "cryptoKeyVersions" collection of methods.
|
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIamPolicy |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIamPolicy |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIamPermissions |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion |
| Constructor and Description |
|---|
CryptoKeys() |
public CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create create(String parent, CryptoKey content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The name of the KeyRing associated with the
CryptoKeys.content - the CryptoKeyIOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt decrypt(String name, DecryptRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the CryptoKey to use for decryption.
The server will choose the
appropriate version.content - the DecryptRequestIOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt encrypt(String name, EncryptRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the CryptoKey or CryptoKeyVersion
to use for encryption.
If a
CryptoKey is specified, the server will use its
primary version.content - the EncryptRequestIOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The name of the CryptoKey to get.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIamPolicy getIamPolicy(String resource) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being requested.
See the operation documentation for
the appropriate value for this field.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The resource name of the KeyRing to list, in the format
`projects/locations/keyRings`.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch patch(String name, CryptoKey content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Output only. The resource name for this CryptoKey in the format
`projects/locations/keyRings/cryptoKeys`.content - the CryptoKeyIOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIamPolicy setIamPolicy(String resource, SetIamPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being specified.
See the operation documentation for
the appropriate value for this field.content - the SetIamPolicyRequestIOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIamPermissions testIamPermissions(String resource, TestIamPermissionsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy detail is being requested.
See the operation
documentation for the appropriate value for this field.content - the TestIamPermissionsRequestIOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion updatePrimaryVersion(String name, UpdateCryptoKeyPrimaryVersionRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.name - Required. The resource name of the CryptoKey to update.content - the UpdateCryptoKeyPrimaryVersionRequestIOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions cryptoKeyVersions()
The typical use is:
CloudKMS cloudkms = new CloudKMS(...);CloudKMS.CryptoKeyVersions.List request = cloudkms.cryptoKeyVersions().list(parameters ...)
Copyright © 2011–2020 Google. All rights reserved.