target.apidocs.com.google.api.services.compute.Compute.ServiceAttachments.html Maven / Gradle / Ivy
Compute.ServiceAttachments (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute
Class Compute.ServiceAttachments
- java.lang.Object
-
- com.google.api.services.compute.Compute.ServiceAttachments
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.ServiceAttachments.Delete
class
Compute.ServiceAttachments.Get
class
Compute.ServiceAttachments.GetIamPolicy
class
Compute.ServiceAttachments.Insert
class
Compute.ServiceAttachments.List
class
Compute.ServiceAttachments.SetIamPolicy
class
Compute.ServiceAttachments.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
ServiceAttachments()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.ServiceAttachments.Delete
delete(String project,
String region,
String serviceAttachment)
Deletes the specified ServiceAttachment in the given scope
Create a request for the method "serviceAttachments.delete".
Compute.ServiceAttachments.Get
get(String project,
String region,
String serviceAttachment)
Returns the specified ServiceAttachment resource in the given scope.
Compute.ServiceAttachments.GetIamPolicy
getIamPolicy(String project,
String region,
String resource)
Gets the access control policy for a resource.
Compute.ServiceAttachments.Insert
insert(String project,
String region,
ServiceAttachment content)
Creates a ServiceAttachment in the specified project in the given scope using the parameters that
are included in the request.
Compute.ServiceAttachments.List
list(String project,
String region)
Lists the ServiceAttachments for a project in the given scope.
Compute.ServiceAttachments.SetIamPolicy
setIamPolicy(String project,
String region,
String resource,
RegionSetPolicyRequest content)
Sets the access control policy on the specified resource.
Compute.ServiceAttachments.TestIamPermissions
testIamPermissions(String project,
String region,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
-
-
Method Detail
-
delete
public Compute.ServiceAttachments.Delete delete(String project,
String region,
String serviceAttachment)
throws IOException
Deletes the specified ServiceAttachment in the given scope
Create a request for the method "serviceAttachments.delete".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region of this request.
serviceAttachment
- Name of the ServiceAttachment resource to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.ServiceAttachments.Get get(String project,
String region,
String serviceAttachment)
throws IOException
Returns the specified ServiceAttachment resource in the given scope.
Create a request for the method "serviceAttachments.get".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region of this request.
serviceAttachment
- Name of the ServiceAttachment resource to return.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public Compute.ServiceAttachments.GetIamPolicy getIamPolicy(String project,
String region,
String resource)
throws IOException
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Create a request for the method "serviceAttachments.getIamPolicy".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- The name of the region for this request.
resource
- Name or id of the resource for this request.
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.ServiceAttachments.Insert insert(String project,
String region,
ServiceAttachment content)
throws IOException
Creates a ServiceAttachment in the specified project in the given scope using the parameters that
are included in the request.
Create a request for the method "serviceAttachments.insert".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region of this request.
content
- the ServiceAttachment
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.ServiceAttachments.List list(String project,
String region)
throws IOException
Lists the ServiceAttachments for a project in the given scope.
Create a request for the method "serviceAttachments.list".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region of this request.
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public Compute.ServiceAttachments.SetIamPolicy setIamPolicy(String project,
String region,
String resource,
RegionSetPolicyRequest content)
throws IOException
Sets the access control policy on the specified resource. Replaces any existing policy.
Create a request for the method "serviceAttachments.setIamPolicy".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- The name of the region for this request.
resource
- Name or id of the resource for this request.
content
- the RegionSetPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public Compute.ServiceAttachments.TestIamPermissions testIamPermissions(String project,
String region,
String resource,
TestPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified resource.
Create a request for the method "serviceAttachments.testIamPermissions".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- The name of the region for this request.
resource
- Name or id of the resource for this request.
content
- the TestPermissionsRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy