Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse

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

Overview

Response of ListViolations endpoint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse

Returns a new instance of GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse.



409
410
411
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 409

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)


397
398
399
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 397

def next_page_token
  @next_page_token
end

#total_sizeFixnum

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

Returns:

  • (Fixnum)


402
403
404
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 402

def total_size
  @total_size
end

#violationsArray<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Violation>

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



407
408
409
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 407

def violations
  @violations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



414
415
416
417
418
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 414

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