target.apidocs.com.google.api.services.cloudkms.v1.CloudKMS.Projects.Locations.KeyHandles.html Maven / Gradle / Ivy
<span class="http"><span class="http"><span class="scala"><span class="hljs-type">CloudKMS</span>.<span class="hljs-type">Projects</span>.<span class="hljs-type">Locations</span>.<span class="hljs-type">KeyHandles</span> (<span class="hljs-type">Cloud</span> <span class="hljs-type">Key</span> <span class="hljs-type">Management</span> <span class="hljs-type">Service</span> (<span class="hljs-type">KMS</span>) <span class="hljs-type">API</span> v1-rev20240801<span class="hljs-number">-2.0</span><span class="hljs-number">.0</span>)</span></span></span>
com.google.api.services.cloudkms.v1
Class CloudKMS.Projects.Locations.KeyHandles
- java.lang.Object
-
- com.google.api.services.cloudkms.v1.CloudKMS.Projects.Locations.KeyHandles
-
- Enclosing class:
- CloudKMS.Projects.Locations
public class CloudKMS.Projects.Locations.KeyHandles
extends Object
The "keyHandles" collection of methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description class
CloudKMS.Projects.Locations.KeyHandles.Create
class
CloudKMS.Projects.Locations.KeyHandles.Get
class
CloudKMS.Projects.Locations.KeyHandles.List
-
Constructor Summary
Constructors Constructor and Description KeyHandles()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description CloudKMS.Projects.Locations.KeyHandles.Create
create(String parent,
KeyHandle content)
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.
CloudKMS.Projects.Locations.KeyHandles.Get
get(String name)
Returns the KeyHandle.
CloudKMS.Projects.Locations.KeyHandles.List
list(String parent)
Lists KeyHandles.
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
create
public CloudKMS.Projects.Locations.KeyHandles.Create create(String parent,
KeyHandle content)
throws IOException
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.
Create a request for the method "keyHandles.create".
This request holds the parameters needed by the cloudkms server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. Name of the resource project and location to create the KeyHandle in, e.g.
`projects/{PROJECT_ID}/locations/{LOCATION}`.
content
- the KeyHandle
- Returns:
- the request
- Throws:
IOException
-
get
public CloudKMS.Projects.Locations.KeyHandles.Get get(String name)
throws IOException
Returns the KeyHandle.
Create a request for the method "keyHandles.get".
This request holds the parameters needed by the cloudkms server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Name of the KeyHandle resource, e.g.
`projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`.
- Returns:
- the request
- Throws:
IOException
-
list
public CloudKMS.Projects.Locations.KeyHandles.List list(String parent)
throws IOException
Lists KeyHandles.
Create a request for the method "keyHandles.list".
This request holds the parameters needed by the cloudkms server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. Name of the resource project and location from which to list KeyHandles, e.g.
`projects/{PROJECT_ID}/locations/{LOCATION}`.
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.