target.apidocs.com.google.api.services.compute.Compute.Firewalls.html Maven / Gradle / Ivy
Compute.Firewalls (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute
Class Compute.Firewalls
- java.lang.Object
-
- com.google.api.services.compute.Compute.Firewalls
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.Firewalls.Delete
class
Compute.Firewalls.Get
class
Compute.Firewalls.Insert
class
Compute.Firewalls.List
class
Compute.Firewalls.Patch
class
Compute.Firewalls.TestIamPermissions
class
Compute.Firewalls.Update
-
Constructor Summary
Constructors
Constructor and Description
Firewalls()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.Firewalls.Delete
delete(String project,
String firewall)
Deletes the specified firewall.
Compute.Firewalls.Get
get(String project,
String firewall)
Returns the specified firewall.
Compute.Firewalls.Insert
insert(String project,
Firewall content)
Creates a firewall rule in the specified project using the data included in the request.
Compute.Firewalls.List
list(String project)
Retrieves the list of firewall rules available to the specified project.
Compute.Firewalls.Patch
patch(String project,
String firewall,
Firewall content)
Updates the specified firewall rule with the data included in the request.
Compute.Firewalls.TestIamPermissions
testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
Compute.Firewalls.Update
update(String project,
String firewall,
Firewall content)
Updates the specified firewall rule with the data included in the request.
-
-
Method Detail
-
delete
public Compute.Firewalls.Delete delete(String project,
String firewall)
throws IOException
Deletes the specified firewall.
Create a request for the method "firewalls.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.
firewall
- Name of the firewall rule to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.Firewalls.Get get(String project,
String firewall)
throws IOException
Returns the specified firewall.
Create a request for the method "firewalls.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.
firewall
- Name of the firewall rule to return.
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.Firewalls.Insert insert(String project,
Firewall content)
throws IOException
Creates a firewall rule in the specified project using the data included in the request.
Create a request for the method "firewalls.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 Firewall
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.Firewalls.List list(String project)
throws IOException
Retrieves the list of firewall rules available to the specified project.
Create a request for the method "firewalls.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.Firewalls.Patch patch(String project,
String firewall,
Firewall content)
throws IOException
Updates the specified firewall rule with the data included in the request. This method supports
PATCH semantics and uses the JSON merge patch format and processing rules.
Create a request for the method "firewalls.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.
firewall
- Name of the firewall rule to patch.
content
- the Firewall
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public Compute.Firewalls.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 "firewalls.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
-
update
public Compute.Firewalls.Update update(String project,
String firewall,
Firewall content)
throws IOException
Updates the specified firewall rule with the data included in the request. Note that all fields
will be updated if using PUT, even fields that are not specified. To update individual fields,
please use PATCH instead.
Create a request for the method "firewalls.update".
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.
firewall
- Name of the firewall rule to update.
content
- the Firewall
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy