google-cloud-error_reporting-v1beta1 0.1.2 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,6 +54,12 @@ module Google
54
54
  # This indicates that the field may be set once in a request to create a
55
55
  # resource, but may not be changed thereafter.
56
56
  IMMUTABLE = 5
57
+
58
+ # Denotes that a (repeated) field is an unordered list.
59
+ # This indicates that the service may provide the elements of the list
60
+ # in any arbitrary order, rather than the order the user originally
61
+ # provided. Additionally, the list's order may or may not be stable.
62
+ UNORDERED_LIST = 6
57
63
  end
58
64
  end
59
65
  end
@@ -43,12 +43,12 @@ module Google
43
43
  #
44
44
  # The ResourceDescriptor Yaml config will look like:
45
45
  #
46
- # resources:
47
- # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/\\{project}/topics/\\{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/\\{project}"
46
+ # resources:
47
+ # - type: "pubsub.googleapis.com/Topic"
48
+ # name_descriptor:
49
+ # - pattern: "projects/{project}/topics/{topic}"
50
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
+ # parent_name_extractor: "projects/{project}"
52
52
  #
53
53
  # Sometimes, resources have multiple patterns, typically because they can
54
54
  # live under multiple parents.
@@ -183,15 +183,24 @@ module Google
183
183
  # }
184
184
  # @!attribute [rw] plural
185
185
  # @return [::String]
186
- # The plural name used in the resource name, such as 'projects' for
187
- # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
- # field in k8s CRD spec
186
+ # The plural name used in the resource name and permission names, such as
187
+ # 'projects' for the resource name of 'projects/\\{project}' and the permission
188
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
189
+ # concept of the `plural` field in k8s CRD spec
189
190
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
191
+ #
192
+ # Note: The plural form is required even for singleton resources. See
193
+ # https://aip.dev/156
190
194
  # @!attribute [rw] singular
191
195
  # @return [::String]
192
196
  # The same concept of the `singular` field in k8s CRD spec
193
197
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
198
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
199
+ # @!attribute [rw] style
200
+ # @return [::Array<::Google::Api::ResourceDescriptor::Style>]
201
+ # Style flag(s) for this resource.
202
+ # These indicate that a resource is expected to conform to a given
203
+ # style. See the specific style flags for additional information.
195
204
  class ResourceDescriptor
196
205
  include ::Google::Protobuf::MessageExts
197
206
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -211,6 +220,22 @@ module Google
211
220
  # that from being necessary once there are multiple patterns.)
212
221
  FUTURE_MULTI_PATTERN = 2
213
222
  end
223
+
224
+ # A flag representing a specific style that a resource claims to conform to.
225
+ module Style
226
+ # The unspecified value. Do not use.
227
+ STYLE_UNSPECIFIED = 0
228
+
229
+ # This resource is intended to be "declarative-friendly".
230
+ #
231
+ # Declarative-friendly resources must be more strictly consistent, and
232
+ # setting this to true communicates to tools that this resource should
233
+ # adhere to declarative-friendly expectations.
234
+ #
235
+ # Note: This is used by the API linter (linter.aip.dev) to enable
236
+ # additional checks.
237
+ DECLARATIVE_FRIENDLY = 1
238
+ end
214
239
  end
215
240
 
216
241
  # Defines a proto annotation that describes a string field that refers to
@@ -226,6 +251,17 @@ module Google
226
251
  # type: "pubsub.googleapis.com/Topic"
227
252
  # }];
228
253
  # }
254
+ #
255
+ # Occasionally, a field may reference an arbitrary resource. In this case,
256
+ # APIs use the special value * in their resource reference.
257
+ #
258
+ # Example:
259
+ #
260
+ # message GetIamPolicyRequest {
261
+ # string resource = 2 [(google.api.resource_reference) = {
262
+ # type: "*"
263
+ # }];
264
+ # }
229
265
  # @!attribute [rw] child_type
230
266
  # @return [::String]
231
267
  # The resource type of a child collection that the annotated field
@@ -234,11 +270,11 @@ module Google
234
270
  #
235
271
  # Example:
236
272
  #
237
- # message ListLogEntriesRequest {
238
- # string parent = 1 [(google.api.resource_reference) = {
239
- # child_type: "logging.googleapis.com/LogEntry"
240
- # };
241
- # }
273
+ # message ListLogEntriesRequest {
274
+ # string parent = 1 [(google.api.resource_reference) = {
275
+ # child_type: "logging.googleapis.com/LogEntry"
276
+ # };
277
+ # }
242
278
  class ResourceReference
243
279
  include ::Google::Protobuf::MessageExts
244
280
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -25,7 +25,7 @@ module Google
25
25
  # @!attribute [rw] name
26
26
  # @return [::String]
27
27
  # The group resource name.
28
- # Example: <code>projects/my-project-123/groups/my-groupid</code>
28
+ # Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
29
29
  # @!attribute [rw] group_id
30
30
  # @return [::String]
31
31
  # Group IDs are unique for a given project. If the same kind of error
@@ -33,6 +33,10 @@ module Google
33
33
  # @!attribute [rw] tracking_issues
34
34
  # @return [::Array<::Google::Cloud::ErrorReporting::V1beta1::TrackingIssue>]
35
35
  # Associated tracking issues.
36
+ # @!attribute [rw] resolution_status
37
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::ResolutionStatus]
38
+ # Error group's resolution status.
39
+ # An unspecified resolution status will be interpreted as OPEN
36
40
  class ErrorGroup
37
41
  include ::Google::Protobuf::MessageExts
38
42
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -177,6 +181,27 @@ module Google
177
181
  include ::Google::Protobuf::MessageExts
178
182
  extend ::Google::Protobuf::MessageExts::ClassMethods
179
183
  end
184
+
185
+ # Resolution status of an error group.
186
+ module ResolutionStatus
187
+ # Status is unknown. When left unspecified in requests, it is treated like
188
+ # OPEN.
189
+ RESOLUTION_STATUS_UNSPECIFIED = 0
190
+
191
+ # The error group is not being addressed. This is the default for
192
+ # new groups. It is also used for errors re-occurring after marked RESOLVED.
193
+ OPEN = 1
194
+
195
+ # Error Group manually acknowledged, it can have an issue link attached.
196
+ ACKNOWLEDGED = 2
197
+
198
+ # Error Group manually resolved, more events for this group are not expected
199
+ # to occur.
200
+ RESOLVED = 3
201
+
202
+ # The error group is muted and excluded by default on group stats requests.
203
+ MUTED = 4
204
+ end
180
205
  end
181
206
  end
182
207
  end
@@ -24,7 +24,7 @@ module Google
24
24
  # A request to return an individual group.
25
25
  # @!attribute [rw] group_name
26
26
  # @return [::String]
27
- # The group resource name. Written as
27
+ # Required. The group resource name. Written as
28
28
  # `projects/{projectID}/groups/{group_name}`. Call
29
29
  # [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
30
30
  # to return a list of groups belonging to this project.
@@ -25,11 +25,11 @@ module Google
25
25
  # @!attribute [rw] project_name
26
26
  # @return [::String]
27
27
  # Required. The resource name of the Google Cloud Platform project. Written
28
- # as <code>projects/</code> plus the
29
- # <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
30
- # Platform project ID</a>.
28
+ # as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
29
+ # and `{projectNumber}` can be found in the
30
+ # [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
31
31
  #
32
- # Example: <code>projects/my-project-123</code>.
32
+ # Examples: `projects/my-project-123`, `projects/5551234`.
33
33
  # @!attribute [rw] group_id
34
34
  # @return [::Array<::String>]
35
35
  # Optional. List all <code>ErrorGroupStats</code> with these IDs.
@@ -181,9 +181,10 @@ module Google
181
181
  # @!attribute [rw] project_name
182
182
  # @return [::String]
183
183
  # Required. The resource name of the Google Cloud Platform project. Written
184
- # as `projects/` plus the
184
+ # as `projects/{projectID}`, where `{projectID}` is the
185
185
  # [Google Cloud Platform project
186
186
  # ID](https://support.google.com/cloud/answer/6158840).
187
+ #
187
188
  # Example: `projects/my-project-123`.
188
189
  # @!attribute [rw] group_id
189
190
  # @return [::String]
@@ -287,9 +288,10 @@ module Google
287
288
  # @!attribute [rw] project_name
288
289
  # @return [::String]
289
290
  # Required. The resource name of the Google Cloud Platform project. Written
290
- # as `projects/` plus the
291
+ # as `projects/{projectID}`, where `{projectID}` is the
291
292
  # [Google Cloud Platform project
292
293
  # ID](https://support.google.com/cloud/answer/6158840).
294
+ #
293
295
  # Example: `projects/my-project-123`.
294
296
  class DeleteEventsRequest
295
297
  include ::Google::Protobuf::MessageExts
@@ -25,10 +25,11 @@ module Google
25
25
  # @!attribute [rw] project_name
26
26
  # @return [::String]
27
27
  # Required. The resource name of the Google Cloud Platform project. Written
28
- # as `projects/` plus the
28
+ # as `projects/{projectId}`, where `{projectId}` is the
29
29
  # [Google Cloud Platform project
30
- # ID](https://support.google.com/cloud/answer/6158840). Example:
31
- # `projects/my-project-123`.
30
+ # ID](https://support.google.com/cloud/answer/6158840).
31
+ #
32
+ # Example: // `projects/my-project-123`.
32
33
  # @!attribute [rw] event
33
34
  # @return [::Google::Cloud::ErrorReporting::V1beta1::ReportedErrorEvent]
34
35
  # Required. The error event to be reported.
@@ -70,7 +70,16 @@ module Google
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
72
  #
73
- # Example 5: Compute Timestamp from current time in Python.
73
+ # Example 5: Compute Timestamp from Java `Instant.now()`.
74
+ #
75
+ # Instant now = Instant.now();
76
+ #
77
+ # Timestamp timestamp =
78
+ # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
+ # .setNanos(now.getNano()).build();
80
+ #
81
+ #
82
+ # Example 6: Compute Timestamp from current time in Python.
74
83
  #
75
84
  # timestamp = Timestamp()
76
85
  # timestamp.GetCurrentTime()
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-error_reporting-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-10 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.5'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.3'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.5'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.3'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +50,14 @@ dependencies:
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: 1.24.0
53
+ version: 1.25.1
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: 1.24.0
60
+ version: 1.25.1
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: minitest
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -152,6 +158,9 @@ dependencies:
152
158
  version: '0.9'
153
159
  description: The Error Reporting API provides a simple endpoint to report errors from
154
160
  your running service, and read access to error groups and their associated errors.
161
+ Note that google-cloud-error_reporting-v1beta1 is a version-specific client library.
162
+ For most uses, we recommend installing the main client library google-cloud-error_reporting
163
+ instead. See the readme for more details.
155
164
  email: googleapis-packages@google.com
156
165
  executables: []
157
166
  extensions: []
@@ -204,14 +213,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
204
213
  requirements:
205
214
  - - ">="
206
215
  - !ruby/object:Gem::Version
207
- version: '2.4'
216
+ version: '2.5'
208
217
  required_rubygems_version: !ruby/object:Gem::Requirement
209
218
  requirements:
210
219
  - - ">="
211
220
  - !ruby/object:Gem::Version
212
221
  version: '0'
213
222
  requirements: []
214
- rubygems_version: 3.1.3
223
+ rubygems_version: 3.2.17
215
224
  signing_key:
216
225
  specification_version: 4
217
226
  summary: API Client library for the Cloud Error Reporting V1beta1 API