NAME

Google::Cloud::Cloudcontrolspartner::V1::Violations - Compiled Protocol Buffers messages for google/cloud/cloudcontrolspartner/v1/violations.proto

SYNOPSIS

use Google::Cloud::Cloudcontrolspartner::V1::Violations;

my $msg = Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation->new({
    name => $name,
    description => $description,
    begin_time => $begin_time,
    update_time => $update_time,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/cloudcontrolspartner/v1/violations.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation

Details of resource Violation

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`

  • $msg->description() / $msg->description($value)

    Type: String

    Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.

  • $msg->begin_time() / $msg->begin_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time of the event which triggered the Violation.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The last time when the Violation record was updated.

  • $msg->resolve_time() / $msg->resolve_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty.

  • $msg->category() / $msg->category($value)

    Type: String

    Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Cloudcontrolspartner::V1::Violation::State)

    Output only. State of the violation

  • $msg->non_compliant_org_policy() / $msg->non_compliant_org_policy($value)

    Type: String

    Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and resulted this violation. Format: `projects/{project_number}/policies/{constraint_name}` `folders/{folder_id}/policies/{constraint_name}` `organizations/{organization_id}/policies/{constraint_name}`

  • $msg->folder_id() / $msg->folder_id($value)

    Type: Int64

    The folder_id of the violation

  • $msg->remediation() / $msg->remediation($value)

    Type: Message (Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation::Remediation)

    Output only. Compliance violation remediation

Enum: Violation::State

  • STATE_UNSPECIFIED => 0

  • RESOLVED => 1

  • UNRESOLVED => 2

  • EXCEPTION => 3

Google::Cloud::Cloudcontrolspartner::V1::Violations::ListViolationsRequest

Message for requesting list of Violations

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Parent resource Format `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of customers row to return. The service may return fewer than this value. If unspecified, at most 10 customers will be returned.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListViolations` call. Provide this to retrieve the subsequent page.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. Filtering results

  • $msg->order_by() / $msg->order_by($value)

    Type: String

    Optional. Hint for how to order the results

  • $msg->interval() / $msg->interval($value)

    Type: Message (Google::Type::Interval::Interval)

    Optional. Specifies the interval for retrieving violations. if unspecified, all violations will be returned.

Google::Cloud::Cloudcontrolspartner::V1::Violations::ListViolationsResponse

Response message for list customer violation requests

Inherits from Protobuf::Message.

Accessors

  • $msg->violations() / $msg->violations($value)

    Type: Message (Google::Cloud::Cloudcontrolspartner::V1::Violations::Violation)

    List of violation

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    Workloads that could not be reached due to permission errors or any other error. Ref: https://google.aip.dev/217

Google::Cloud::Cloudcontrolspartner::V1::Violations::GetViolationRequest

Message for getting a Violation

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Cloudcontrolspartner::V1::Violations::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.