Class ProjectsResource.LocationsResource.InstancesResource.OsPolicyAssignmentsResource.ReportsResource.ListRequest
List OS policy assignment reports for all Compute Engine VM instances in the specified zone.
Inheritance
Inherited Members
Namespace: Google.Apis.OSConfig.v1
Assembly: Google.Apis.OSConfig.v1.dll
Syntax
public class ProjectsResource.LocationsResource.InstancesResource.OsPolicyAssignmentsResource.ReportsResource.ListRequest : OSConfigBaseServiceRequest<ListOSPolicyAssignmentReportsResponse>, IClientServiceRequest<ListOSPolicyAssignmentReportsResponse>, 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
If provided, this field specifies the criteria that must be met by the
OSPolicyAssignmentReport
API resource that is included in the response.
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
PageSize
The maximum number of results to return.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageToken
A pagination token returned from a previous call to the ListOSPolicyAssignmentReports
method that indicates where this listing should continue from.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
Parent
Required. The parent resource name. Format:
projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports
For {project}
, either project-number
or project-id
can be provided. For
{instance}
, either instance-name
, instance-id
, or -
can be provided. If '-' is
provided, the response will include OSPolicyAssignmentReports for all instances in the
project/location. For {assignment}
, either assignment-id
or -
can be provided. If
'-' is provided, the response will include OSPolicyAssignmentReports for all
OSPolicyAssignments in the project/location. Either {instance} or {assignment} must be
-
. For example:
projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports
returns all reports for the instance
projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports
returns all the reports for the given assignment across all instances.
projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports
returns all the reports for all assignments across all instances.
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()