Class: Google::Apis::CloudprofilerV2::ListProfilesResponse

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

Overview

ListProfileResponse contains the list of collected profiles for deployments in projects which the user has permissions to view.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListProfilesResponse

Returns a new instance of ListProfilesResponse.



121
122
123
# File 'lib/google/apis/cloudprofiler_v2/classes.rb', line 121

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

Instance Attribute Details

#next_page_tokenString

Token to receive the next page of results. This field maybe empty if there are no more profiles to fetch. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


106
107
108
# File 'lib/google/apis/cloudprofiler_v2/classes.rb', line 106

def next_page_token
  @next_page_token
end

#profilesArray<Google::Apis::CloudprofilerV2::Profile>

List of profiles fetched. Corresponds to the JSON property profiles



111
112
113
# File 'lib/google/apis/cloudprofiler_v2/classes.rb', line 111

def profiles
  @profiles
end

#skipped_profilesFixnum

Number of profiles that were skipped in the current page since they were not able to be fetched successfully. This should typically be zero. A non-zero value may indicate a transient failure, in which case if the number is too high for your use case, the call may be retried. Corresponds to the JSON property skippedProfiles

Returns:

  • (Fixnum)


119
120
121
# File 'lib/google/apis/cloudprofiler_v2/classes.rb', line 119

def skipped_profiles
  @skipped_profiles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



126
127
128
129
130
# File 'lib/google/apis/cloudprofiler_v2/classes.rb', line 126

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