Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListViolationsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/assuredworkloads_v1/classes.rb,
lib/google/apis/assuredworkloads_v1/representations.rb,
lib/google/apis/assuredworkloads_v1/representations.rb

Overview

Response of ListViolations endpoint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1ListViolationsResponse

Returns a new instance of GoogleCloudAssuredworkloadsV1ListViolationsResponse.



1056
1057
1058
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1056

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#next_page_tokenString

The next page token. Returns empty if reached the last page. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1044
1045
1046
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1044

def next_page_token
  @next_page_token
end

#total_sizeFixnum

The total number of violations. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


1049
1050
1051
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1049

def total_size
  @total_size
end

#violationsArray<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Violation>

List of Violations under a Workload. Corresponds to the JSON property violations



1054
1055
1056
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1054

def violations
  @violations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1061
1062
1063
1064
1065
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1061

def update!(**args)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @total_size = args[:total_size] if args.key?(:total_size)
  @violations = args[:violations] if args.key?(:violations)
end