target.apidocs.com.google.api.services.compute.Compute.GlobalForwardingRules.html Maven / Gradle / Ivy
Compute.GlobalForwardingRules (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute
Class Compute.GlobalForwardingRules
- java.lang.Object
-
- com.google.api.services.compute.Compute.GlobalForwardingRules
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.GlobalForwardingRules.Delete
class
Compute.GlobalForwardingRules.Get
class
Compute.GlobalForwardingRules.Insert
class
Compute.GlobalForwardingRules.List
class
Compute.GlobalForwardingRules.Patch
class
Compute.GlobalForwardingRules.SetLabels
class
Compute.GlobalForwardingRules.SetTarget
class
Compute.GlobalForwardingRules.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
GlobalForwardingRules()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.GlobalForwardingRules.Delete
delete(String project,
String forwardingRule)
Deletes the specified GlobalForwardingRule resource.
Compute.GlobalForwardingRules.Get
get(String project,
String forwardingRule)
Returns the specified GlobalForwardingRule resource.
Compute.GlobalForwardingRules.Insert
insert(String project,
ForwardingRule content)
Creates a GlobalForwardingRule resource in the specified project using the data included in the
request.
Compute.GlobalForwardingRules.List
list(String project)
Retrieves a list of GlobalForwardingRule resources available to the specified project.
Compute.GlobalForwardingRules.Patch
patch(String project,
String forwardingRule,
ForwardingRule content)
Updates the specified forwarding rule with the data included in the request.
Compute.GlobalForwardingRules.SetLabels
setLabels(String project,
String resource,
GlobalSetLabelsRequest content)
Sets the labels on the specified resource.
Compute.GlobalForwardingRules.SetTarget
setTarget(String project,
String forwardingRule,
TargetReference content)
Changes target URL for the GlobalForwardingRule resource.
Compute.GlobalForwardingRules.TestIamPermissions
testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
-
-
Method Detail
-
delete
public Compute.GlobalForwardingRules.Delete delete(String project,
String forwardingRule)
throws IOException
Deletes the specified GlobalForwardingRule resource.
Create a request for the method "globalForwardingRules.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.
forwardingRule
- Name of the ForwardingRule resource to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.GlobalForwardingRules.Get get(String project,
String forwardingRule)
throws IOException
Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by
making a list() request.
Create a request for the method "globalForwardingRules.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.
forwardingRule
- Name of the ForwardingRule resource to return.
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.GlobalForwardingRules.Insert insert(String project,
ForwardingRule content)
throws IOException
Creates a GlobalForwardingRule resource in the specified project using the data included in the
request.
Create a request for the method "globalForwardingRules.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.
content
- the ForwardingRule
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.GlobalForwardingRules.List list(String project)
throws IOException
Retrieves a list of GlobalForwardingRule resources available to the specified project.
Create a request for the method "globalForwardingRules.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.
- Returns:
- the request
- Throws:
IOException
-
patch
public Compute.GlobalForwardingRules.Patch patch(String project,
String forwardingRule,
ForwardingRule content)
throws IOException
Updates the specified forwarding rule with the data included in the request. This method supports
PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can
only patch the network_tier field.
Create a request for the method "globalForwardingRules.patch".
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.
forwardingRule
- Name of the ForwardingRule resource to patch.
content
- the ForwardingRule
- Returns:
- the request
- Throws:
IOException
-
setLabels
public Compute.GlobalForwardingRules.SetLabels setLabels(String project,
String resource,
GlobalSetLabelsRequest content)
throws IOException
Sets the labels on the specified resource. To learn more about labels, read the Labeling
Resources documentation.
Create a request for the method "globalForwardingRules.setLabels".
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.
resource
- Name or id of the resource for this request.
content
- the GlobalSetLabelsRequest
- Returns:
- the request
- Throws:
IOException
-
setTarget
public Compute.GlobalForwardingRules.SetTarget setTarget(String project,
String forwardingRule,
TargetReference content)
throws IOException
Changes target URL for the GlobalForwardingRule resource. The new target should be of the same
type as the old target.
Create a request for the method "globalForwardingRules.setTarget".
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.
forwardingRule
- Name of the ForwardingRule resource in which target is to be set.
content
- the TargetReference
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public Compute.GlobalForwardingRules.TestIamPermissions testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified resource.
Create a request for the method "globalForwardingRules.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.
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