Class ProjectsResource.LocationsResource.AutoProtectionPoliciesResource.ListRequest
Lists AutoProtectionPolicies for a given project and location.
Inheritance
Inherited Members
Namespace: Google.Apis.Backupdr.v1
Assembly: Google.Apis.Backupdr.v1.dll
Syntax
public class ProjectsResource.LocationsResource.AutoProtectionPoliciesResource.ListRequest : BackupdrBaseServiceRequest<ListAutoProtectionPoliciesResponse>, IClientServiceRequest<ListAutoProtectionPoliciesResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | parent |
Properties
Filter
Optional. A filter expression that filters resources listed in the response. Filtering follows
AIP-160 (https://google.aip.dev/160). The following fields are filterable: * name *
description * state * create_time * update_time * backup_plan_details.resource_type *
backup_plan_details.backup_plan * criteria.matching_conditions.label_condition.key *
criteria.matching_conditions.label_condition.values * binding_summary.project_count *
policy_evaluation_summary.matching_resource_count *
policy_evaluation_summary.protected_resource_count *
policy_evaluation_summary.failed_resource_count Note: backup_plan_details and
criteria.matching_conditions are repeated fields, so filters on their subfields must use the
: (has) operator rather than = (for example,
backup_plan_details.resource_type:"compute.googleapis.com/Disk" or
criteria.matching_conditions.label_condition.key:"env"). Examples: * state:ACTIVE *
backup_plan_details.resource_type:"compute.googleapis.com/Disk" *
criteria.matching_conditions.label_condition.key:"env" *
policy_evaluation_summary.protected_resource_count>0
Declaration
[RequestParameter("filter", RequestParameterType.Query)]
public virtual string Filter { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
OrderBy
Optional. An expression that sorts the results in the response. The following fields are sortable:
Declaration
[RequestParameter("orderBy", RequestParameterType.Query)]
public virtual string OrderBy { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PageSize
Optional. The maximum number of policies to return in a single page. If unspecified, a server-default value will be used.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
PageToken
Optional. A page token, received from a previous ListAutoProtectionPolicies call. Provide this
to retrieve the subsequent page.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Parent
Required. The project and location for which to retrieve the list of policies. Format: projects/{project}/locations/{location}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()