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.



198
199
200
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 198

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)


191
192
193
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 191

def next_page_token
  @next_page_token
end

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

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



196
197
198
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 196

def violations
  @violations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



203
204
205
206
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 203

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