Class OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.ListRequest
Lists the Violations in the AssuredWorkload Environment. Callers may also choose to read across
multiple Workloads as per AIP-159 by using '-' (the hyphen or dash
character) as a wildcard character instead of workload-id in the parent. Format
organizations/{org_id}/locations/{location}/workloads/-
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Assuredworkloads.v1
Assembly: Google.Apis.Assuredworkloads.v1.dll
Syntax
public class OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.ListRequest : AssuredworkloadsBaseServiceRequest<GoogleCloudAssuredworkloadsV1ListViolationsResponse>, IClientServiceRequest<GoogleCloudAssuredworkloadsV1ListViolationsResponse>, 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 restricts the violations that are returned. The syntax
follows AIP-160. Only the equality operator (=) is
supported, and expressions can be combined with AND, OR, and NOT. When view is
VIOLATION_VIEW_DATA_BOUNDARY, the following fields are supported: violationId,
category, state (UNRESOLVED, RESOLVED, or EXCEPTION), violationType
(ORG_POLICY or RESOURCE), resourceType, resourceName, project,
associatedOrgPolicyViolationId, cloudControlName, workloadDisplayName, and
complianceType (a framework ID). Example: state = "UNRESOLVED" AND complianceType = "builtin-fedramp-high"
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
IntervalEndTime
object representation of IntervalEndTimeRaw.
Declaration
[Obsolete("This property is obsolete and may behave unexpectedly; please use IntervalEndTimeDateTimeOffset instead.")]
public virtual object IntervalEndTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
IntervalEndTimeDateTimeOffset
Declaration
public virtual DateTimeOffset? IntervalEndTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
IntervalEndTimeRaw
String representation of IntervalEndTimeDateTimeOffset, formatted for inclusion in the HTTP request.
Declaration
[RequestParameter("interval.endTime", RequestParameterType.Query)]
public virtual string IntervalEndTimeRaw { get; }
Property Value
| Type | Description |
|---|---|
| string |
IntervalStartTime
object representation of IntervalStartTimeRaw.
Declaration
[Obsolete("This property is obsolete and may behave unexpectedly; please use IntervalStartTimeDateTimeOffset instead.")]
public virtual object IntervalStartTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
IntervalStartTimeDateTimeOffset
Declaration
public virtual DateTimeOffset? IntervalStartTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
IntervalStartTimeRaw
String representation of IntervalStartTimeDateTimeOffset, formatted for inclusion in the HTTP request.
Declaration
[RequestParameter("interval.startTime", RequestParameterType.Query)]
public virtual string IntervalStartTimeRaw { get; }
Property Value
| Type | Description |
|---|---|
| string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
OrderBy
Optional. A comma-separated list of fields to sort the results by. The default sort order is
ascending; to sort in descending order, append desc to the field name. For example,
update_time desc,category. When view is VIOLATION_VIEW_DATA_BOUNDARY, the following
fields are supported: begin_time, update_time, resource_type, state, and category.
If not specified, results are sorted by begin_time in descending order.
Declaration
[RequestParameter("orderBy", RequestParameterType.Query)]
public virtual string OrderBy { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PageSize
Optional. The maximum number of violations to return. The service might return fewer violations than this value. If unspecified, at most 100 violations are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
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 ListViolations call. Provide this token
to retrieve the subsequent page. When paginating, all other parameters that are provided to
ListViolations must match the call that provided the page token.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Parent
Required. The workload to list violations for. To list violations across all workloads in an
organization, use - as the workload ID. When view is VIOLATION_VIEW_DATA_BOUNDARY,
violations are listed for the entire organization and location, and the workload ID is
ignored. Format: organizations/{organization}/locations/{location}/workloads/{workload}
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
View
Optional. The violation view (VIOLATION_VIEW_ASSURED_WORKLOADS or
VIOLATION_VIEW_DATA_BOUNDARY) to list violations for. If not specified,
VIOLATION_VIEW_ASSURED_WORKLOADS is used.
Declaration
[RequestParameter("view", RequestParameterType.Query)]
public virtual OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.ListRequest.ViewEnum? View { get; set; }
Property Value
| Type | Description |
|---|---|
| OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.ListRequest.ViewEnum? |
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()