google-apis-cloudprofiler_v2 0.18.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35db360b100992b8b499217339dd0b22426468fd5bf5a905ca03a04c1e98a0a8
4
- data.tar.gz: 5f2e97c0669ab3f37cbdd19c71d5db9e3f6ad57949caac10b2a1c36dfed2e90d
3
+ metadata.gz: 4525c8349ee181acf0cb9aadceb33aac078e4732f9deb5b7400e4fdf0f9d3a1c
4
+ data.tar.gz: 5e6caacd7d337a39ca9b6f83c6440df9d71edb53c7f0bc5cbe10561776a2edf1
5
5
  SHA512:
6
- metadata.gz: fbd1a7538ff2f93d1af08aff0c866ef73ee7e732df34fa03f6fa8c4daad8aa84dde3e4cc822e3e3e9c26f53ba4e3bfc5dcb2379c003005ec27f791ce08cce186
7
- data.tar.gz: fa6f0cb405d67531b2e82ba7982cab56ee6b2dc7b958acb79233b3e361692a402c333f0cacf29bf72c22a43d502c26b26da89a0b6e313d8a9d07db9c580c7631
6
+ metadata.gz: 51e491f8f31cec0ade3c90c97f8b28913932acdbf8f2f696222643a96a0c3a8ec1253ecd68ed84bbc6f3f6e5ef36cd1b8622e40345c4f24825680b2e64306e03
7
+ data.tar.gz: df02d4be450b14e5f4c24ed56eeb193d69296b63c7f0d38f377528136b4657088a0c727e19337c506bbe64bf79ae351f67eb1d4d2e5af687ddbb2eb33cd93bf2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudprofiler_v2
2
2
 
3
+ ### v0.20.0 (2024-01-07)
4
+
5
+ * Regenerated from discovery document revision 20240101
6
+
7
+ ### v0.19.0 (2023-12-17)
8
+
9
+ * Regenerated from discovery document revision 20231213
10
+
3
11
  ### v0.18.0 (2023-04-02)
4
12
 
5
13
  * Regenerated from discovery document revision 20230327
@@ -94,6 +94,42 @@ module Google
94
94
  end
95
95
  end
96
96
 
97
+ # ListProfileResponse contains the list of collected profiles for deployments in
98
+ # projects which the user has permissions to view.
99
+ class ListProfilesResponse
100
+ include Google::Apis::Core::Hashable
101
+
102
+ # Token to receive the next page of results. This field maybe empty if there are
103
+ # no more profiles to fetch.
104
+ # Corresponds to the JSON property `nextPageToken`
105
+ # @return [String]
106
+ attr_accessor :next_page_token
107
+
108
+ # List of profiles fetched.
109
+ # Corresponds to the JSON property `profiles`
110
+ # @return [Array<Google::Apis::CloudprofilerV2::Profile>]
111
+ attr_accessor :profiles
112
+
113
+ # Number of profiles that were skipped in the current page since they were not
114
+ # able to be fetched successfully. This should typically be zero. A non-zero
115
+ # value may indicate a transient failure, in which case if the number is too
116
+ # high for your use case, the call may be retried.
117
+ # Corresponds to the JSON property `skippedProfiles`
118
+ # @return [Fixnum]
119
+ attr_accessor :skipped_profiles
120
+
121
+ def initialize(**args)
122
+ update!(**args)
123
+ end
124
+
125
+ # Update properties of this object
126
+ def update!(**args)
127
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
128
+ @profiles = args[:profiles] if args.key?(:profiles)
129
+ @skipped_profiles = args[:skipped_profiles] if args.key?(:skipped_profiles)
130
+ end
131
+ end
132
+
97
133
  # Profile resource.
98
134
  class Profile
99
135
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudprofilerV2
18
18
  # Version of the google-apis-cloudprofiler_v2 gem
19
- GEM_VERSION = "0.18.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230327"
25
+ REVISION = "20240101"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class ListProfilesResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class Profile
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -58,6 +64,16 @@ module Google
58
64
  end
59
65
  end
60
66
 
67
+ class ListProfilesResponse
68
+ # @private
69
+ class Representation < Google::Apis::Core::JsonRepresentation
70
+ property :next_page_token, as: 'nextPageToken'
71
+ collection :profiles, as: 'profiles', class: Google::Apis::CloudprofilerV2::Profile, decorator: Google::Apis::CloudprofilerV2::Profile::Representation
72
+
73
+ property :skipped_profiles, as: 'skippedProfiles'
74
+ end
75
+ end
76
+
61
77
  class Profile
62
78
  # @private
63
79
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -125,6 +125,47 @@ module Google
125
125
  execute_or_queue_command(command, &block)
126
126
  end
127
127
 
128
+ # Lists profiles which have been collected so far and for which the caller has
129
+ # permission to view.
130
+ # @param [String] parent
131
+ # Required. The parent, which owns this collection of profiles. Format: projects/
132
+ # `user_project_id`
133
+ # @param [Fixnum] page_size
134
+ # The maximum number of items to return. Default page_size is 1000. Max limit is
135
+ # 1000.
136
+ # @param [String] page_token
137
+ # The token to continue pagination and get profiles from a particular page. When
138
+ # paginating, all other parameters provided to `ListProfiles` must match the
139
+ # call that provided the page token.
140
+ # @param [String] fields
141
+ # Selector specifying which fields to include in a partial response.
142
+ # @param [String] quota_user
143
+ # Available to use for quota purposes for server-side applications. Can be any
144
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
145
+ # @param [Google::Apis::RequestOptions] options
146
+ # Request-specific options
147
+ #
148
+ # @yield [result, err] Result & error if block supplied
149
+ # @yieldparam result [Google::Apis::CloudprofilerV2::ListProfilesResponse] parsed result object
150
+ # @yieldparam err [StandardError] error object if request failed
151
+ #
152
+ # @return [Google::Apis::CloudprofilerV2::ListProfilesResponse]
153
+ #
154
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
155
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
157
+ def list_project_profiles(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
158
+ command = make_simple_command(:get, 'v2/{+parent}/profiles', options)
159
+ command.response_representation = Google::Apis::CloudprofilerV2::ListProfilesResponse::Representation
160
+ command.response_class = Google::Apis::CloudprofilerV2::ListProfilesResponse
161
+ command.params['parent'] = parent unless parent.nil?
162
+ command.query['pageSize'] = page_size unless page_size.nil?
163
+ command.query['pageToken'] = page_token unless page_token.nil?
164
+ command.query['fields'] = fields unless fields.nil?
165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
166
+ execute_or_queue_command(command, &block)
167
+ end
168
+
128
169
  # UpdateProfile updates the profile bytes and labels on the profile resource
129
170
  # created in the online mode. Updating the bytes for profiles created in the
130
171
  # offline mode is currently not supported: the profile content must be provided
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudprofiler_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-02 00:00:00.000000000 Z
11
+ date: 2024-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudprofiler_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudprofiler_v2/v0.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudprofiler_v2/v0.20.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudprofiler_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Profiler API V2