Class BackendServicesResource
The "backendServices" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class BackendServicesResource
Constructors
BackendServicesResource(IClientService)
Constructs a new resource.
Declaration
public BackendServicesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AddSignedUrlKey(SignedUrlKey, string, string)
Adds a key for validating requests with signed URLs for this backend service.
Declaration
public virtual BackendServicesResource.AddSignedUrlKeyRequest AddSignedUrlKey(SignedUrlKey body, string project, string backendService)
Parameters
Type | Name | Description |
---|---|---|
SignedUrlKey | body | The body of the request. |
string | project | Project ID for this request. |
string | backendService | Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. |
Returns
Type | Description |
---|---|
BackendServicesResource.AddSignedUrlKeyRequest |
AggregatedList(string)
Retrieves the list of all BackendService resources, regional and global, available to the specified project.
To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Declaration
public virtual BackendServicesResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Name of the project scoping this request. |
Returns
Type | Description |
---|---|
BackendServicesResource.AggregatedListRequest |
Delete(string, string)
Deletes the specified BackendService resource.
Declaration
public virtual BackendServicesResource.DeleteRequest Delete(string project, string backendService)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | backendService | Name of the BackendService resource to delete. |
Returns
Type | Description |
---|---|
BackendServicesResource.DeleteRequest |
DeleteSignedUrlKey(string, string, string)
Deletes a key for validating requests with signed URLs for this backend service.
Declaration
public virtual BackendServicesResource.DeleteSignedUrlKeyRequest DeleteSignedUrlKey(string project, string backendService, string keyName)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | backendService | Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. |
string | keyName | The name of the Signed URL Key to delete. |
Returns
Type | Description |
---|---|
BackendServicesResource.DeleteSignedUrlKeyRequest |
Get(string, string)
Returns the specified BackendService resource.
Declaration
public virtual BackendServicesResource.GetRequest Get(string project, string backendService)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | backendService | Name of the BackendService resource to return. |
Returns
Type | Description |
---|---|
BackendServicesResource.GetRequest |
GetHealth(ResourceGroupReference, string, string)
Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" }
Declaration
public virtual BackendServicesResource.GetHealthRequest GetHealth(ResourceGroupReference body, string project, string backendService)
Parameters
Type | Name | Description |
---|---|---|
ResourceGroupReference | body | The body of the request. |
string | project |
|
string | backendService | Name of the BackendService resource to which the queried instance belongs. |
Returns
Type | Description |
---|---|
BackendServicesResource.GetHealthRequest |
GetIamPolicy(string, string)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Declaration
public virtual BackendServicesResource.GetIamPolicyRequest GetIamPolicy(string project, string resource)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
BackendServicesResource.GetIamPolicyRequest |
Insert(BackendService, string)
Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .
Declaration
public virtual BackendServicesResource.InsertRequest Insert(BackendService body, string project)
Parameters
Type | Name | Description |
---|---|---|
BackendService | body | The body of the request. |
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
BackendServicesResource.InsertRequest |
List(string)
Retrieves the list of BackendService resources available to the specified project.
Declaration
public virtual BackendServicesResource.ListRequest List(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
BackendServicesResource.ListRequest |
ListUsable(string)
Retrieves a list of all usable backend services in the specified project.
Declaration
public virtual BackendServicesResource.ListUsableRequest ListUsable(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
BackendServicesResource.ListUsableRequest |
Patch(BackendService, string, string)
Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
Declaration
public virtual BackendServicesResource.PatchRequest Patch(BackendService body, string project, string backendService)
Parameters
Type | Name | Description |
---|---|---|
BackendService | body | The body of the request. |
string | project | Project ID for this request. |
string | backendService | Name of the BackendService resource to patch. |
Returns
Type | Description |
---|---|
BackendServicesResource.PatchRequest |
SetEdgeSecurityPolicy(SecurityPolicyReference, string, string)
Sets the edge security policy for the specified backend service.
Declaration
public virtual BackendServicesResource.SetEdgeSecurityPolicyRequest SetEdgeSecurityPolicy(SecurityPolicyReference body, string project, string backendService)
Parameters
Type | Name | Description |
---|---|---|
SecurityPolicyReference | body | The body of the request. |
string | project | Project ID for this request. |
string | backendService | Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035. |
Returns
Type | Description |
---|---|
BackendServicesResource.SetEdgeSecurityPolicyRequest |
SetIamPolicy(GlobalSetPolicyRequest, string, string)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual BackendServicesResource.SetIamPolicyRequest SetIamPolicy(GlobalSetPolicyRequest body, string project, string resource)
Parameters
Type | Name | Description |
---|---|---|
GlobalSetPolicyRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
BackendServicesResource.SetIamPolicyRequest |
SetSecurityPolicy(SecurityPolicyReference, string, string)
Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
Declaration
public virtual BackendServicesResource.SetSecurityPolicyRequest SetSecurityPolicy(SecurityPolicyReference body, string project, string backendService)
Parameters
Type | Name | Description |
---|---|---|
SecurityPolicyReference | body | The body of the request. |
string | project | Project ID for this request. |
string | backendService | Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. |
Returns
Type | Description |
---|---|
BackendServicesResource.SetSecurityPolicyRequest |
TestIamPermissions(TestPermissionsRequest, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual BackendServicesResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestPermissionsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
BackendServicesResource.TestIamPermissionsRequest |
Update(BackendService, string, string)
Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.
Declaration
public virtual BackendServicesResource.UpdateRequest Update(BackendService body, string project, string backendService)
Parameters
Type | Name | Description |
---|---|---|
BackendService | body | The body of the request. |
string | project | Project ID for this request. |
string | backendService | Name of the BackendService resource to update. |
Returns
Type | Description |
---|---|
BackendServicesResource.UpdateRequest |