Class: Google::Apis::SecuritycenterV1p1beta1::GroupAssetsResponse

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

Overview

Response message for grouping by assets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GroupAssetsResponse

Returns a new instance of GroupAssetsResponse.



977
978
979
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 977

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

Instance Attribute Details

#group_by_resultsArray<Google::Apis::SecuritycenterV1p1beta1::GroupResult>

Group results. There exists an element for each existing unique combination of property/values. The element contains a count for the number of times those specific property/values appear. Corresponds to the JSON property groupByResults



959
960
961
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 959

def group_by_results
  @group_by_results
end

#next_page_tokenString

Token to retrieve the next page of results, or empty if there are no more results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


965
966
967
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 965

def next_page_token
  @next_page_token
end

#read_timeString

Time used for executing the groupBy request. Corresponds to the JSON property readTime

Returns:

  • (String)


970
971
972
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 970

def read_time
  @read_time
end

#total_sizeFixnum

The total number of results matching the query. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


975
976
977
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 975

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



982
983
984
985
986
987
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 982

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