google-apis-observability_v1 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e10105d7dea22159630f1cfe148ae842f23e584f80dd76df2cd48063903dd7f
4
- data.tar.gz: 03ae4f11810e6869f03c4f1743a9a6d65c0305cdc83a5f29531dab9030cc1a3f
3
+ metadata.gz: 3cc8a900828b3a418a779509f4aeb56bae7bca327cc55d65ca3be85d6bf27999
4
+ data.tar.gz: d01c6444350bcb290df96ec0c0638e3f373d613a4a9aebea2c6e834dfa46e118
5
5
  SHA512:
6
- metadata.gz: 5be5642a02bfcc3391c594c733cb25cf6c43aaf7adef8cc4915fd60b6bbe8f0776c77a0aa9826898a2a37edc156e333d9da2118eaab8ad503f30f1764970a5ae
7
- data.tar.gz: 634c25d878cc71255d60e61abaf0d72dd3ebf42ec0b6ac30d1e1bc2769b58ea67aa62b6b912f55c7351d3ca8368319a69ffe55cf5eb5451c3bb4572fbccb824f
6
+ metadata.gz: da24f9deb7e30b80b2c057c44d94d1e67703d55418de8717d6d02629d8cab12a36f32101c07a02d7d01beb34bc45bc7b384aacc41c6e3322cc1d9c453b88c0c0
7
+ data.tar.gz: 50c79c426ca4410a4a4ad1ee6c9277cc9b8d517f67166119cadcef197984fde7ed242b94b6d84776556673b85235cdae42fd2ef79a657cfc02cd1a1a632d8c29
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-observability_v1
2
2
 
3
+ ### v0.6.0 (2025-08-31)
4
+
5
+ * Regenerated from discovery document revision 20250822
6
+
3
7
  ### v0.5.0 (2025-08-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20250814
@@ -101,6 +101,33 @@ module Google
101
101
  end
102
102
  end
103
103
 
104
+ # Response for listing TraceScopes.
105
+ class ListTraceScopesResponse
106
+ include Google::Apis::Core::Hashable
107
+
108
+ # Optional. If there might be more results than appear in this response, then `
109
+ # next_page_token` is included. To get the next set of results, call the same
110
+ # method again using the value of `next_page_token` as `page_token`.
111
+ # Corresponds to the JSON property `nextPageToken`
112
+ # @return [String]
113
+ attr_accessor :next_page_token
114
+
115
+ # Optional. A list of trace scopes.
116
+ # Corresponds to the JSON property `traceScopes`
117
+ # @return [Array<Google::Apis::ObservabilityV1::TraceScope>]
118
+ attr_accessor :trace_scopes
119
+
120
+ def initialize(**args)
121
+ update!(**args)
122
+ end
123
+
124
+ # Update properties of this object
125
+ def update!(**args)
126
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
127
+ @trace_scopes = args[:trace_scopes] if args.key?(:trace_scopes)
128
+ end
129
+ end
130
+
104
131
  # A resource that represents a Google Cloud location.
105
132
  class Location
106
133
  include Google::Apis::Core::Hashable
@@ -286,6 +313,12 @@ module Google
286
313
  # @return [String]
287
314
  attr_accessor :name
288
315
 
316
+ # Required. The resource name of the `TraceScope`. For example: projects/
317
+ # myproject/locations/global/traceScopes/my-trace-scope
318
+ # Corresponds to the JSON property `traceScope`
319
+ # @return [String]
320
+ attr_accessor :trace_scope
321
+
289
322
  # Output only. Update timestamp. Note: The Update timestamp for the default
290
323
  # scope is initially unset.
291
324
  # Corresponds to the JSON property `updateTime`
@@ -300,6 +333,7 @@ module Google
300
333
  def update!(**args)
301
334
  @log_scope = args[:log_scope] if args.key?(:log_scope)
302
335
  @name = args[:name] if args.key?(:name)
336
+ @trace_scope = args[:trace_scope] if args.key?(:trace_scope)
303
337
  @update_time = args[:update_time] if args.key?(:update_time)
304
338
  end
305
339
  end
@@ -342,6 +376,52 @@ module Google
342
376
  @message = args[:message] if args.key?(:message)
343
377
  end
344
378
  end
379
+
380
+ # A trace scope is a collection of resources whose traces are queried together.
381
+ class TraceScope
382
+ include Google::Apis::Core::Hashable
383
+
384
+ # Output only. The creation timestamp of the trace scope.
385
+ # Corresponds to the JSON property `createTime`
386
+ # @return [String]
387
+ attr_accessor :create_time
388
+
389
+ # Optional. Describes this trace scope. The maximum length of the description is
390
+ # 8000 characters.
391
+ # Corresponds to the JSON property `description`
392
+ # @return [String]
393
+ attr_accessor :description
394
+
395
+ # Identifier. The resource name of the trace scope. For example: projects/my-
396
+ # project/locations/global/traceScopes/my-trace-scope
397
+ # Corresponds to the JSON property `name`
398
+ # @return [String]
399
+ attr_accessor :name
400
+
401
+ # Required. Names of the projects that are included in this trace scope. * `
402
+ # projects/[PROJECT_ID]` A trace scope can include a maximum of 20 projects.
403
+ # Corresponds to the JSON property `resourceNames`
404
+ # @return [Array<String>]
405
+ attr_accessor :resource_names
406
+
407
+ # Output only. The last update timestamp of the trace scope.
408
+ # Corresponds to the JSON property `updateTime`
409
+ # @return [String]
410
+ attr_accessor :update_time
411
+
412
+ def initialize(**args)
413
+ update!(**args)
414
+ end
415
+
416
+ # Update properties of this object
417
+ def update!(**args)
418
+ @create_time = args[:create_time] if args.key?(:create_time)
419
+ @description = args[:description] if args.key?(:description)
420
+ @name = args[:name] if args.key?(:name)
421
+ @resource_names = args[:resource_names] if args.key?(:resource_names)
422
+ @update_time = args[:update_time] if args.key?(:update_time)
423
+ end
424
+ end
345
425
  end
346
426
  end
347
427
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ObservabilityV1
18
18
  # Version of the google-apis-observability_v1 gem
19
- GEM_VERSION = "0.5.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250814"
25
+ REVISION = "20250822"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class ListTraceScopesResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class Location
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -76,6 +82,12 @@ module Google
76
82
  include Google::Apis::Core::JsonObjectSupport
77
83
  end
78
84
 
85
+ class TraceScope
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
79
91
  class CancelOperationRequest
80
92
  # @private
81
93
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -106,6 +118,15 @@ module Google
106
118
  end
107
119
  end
108
120
 
121
+ class ListTraceScopesResponse
122
+ # @private
123
+ class Representation < Google::Apis::Core::JsonRepresentation
124
+ property :next_page_token, as: 'nextPageToken'
125
+ collection :trace_scopes, as: 'traceScopes', class: Google::Apis::ObservabilityV1::TraceScope, decorator: Google::Apis::ObservabilityV1::TraceScope::Representation
126
+
127
+ end
128
+ end
129
+
109
130
  class Location
110
131
  # @private
111
132
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -147,6 +168,7 @@ module Google
147
168
  class Representation < Google::Apis::Core::JsonRepresentation
148
169
  property :log_scope, as: 'logScope'
149
170
  property :name, as: 'name'
171
+ property :trace_scope, as: 'traceScope'
150
172
  property :update_time, as: 'updateTime'
151
173
  end
152
174
  end
@@ -159,6 +181,17 @@ module Google
159
181
  property :message, as: 'message'
160
182
  end
161
183
  end
184
+
185
+ class TraceScope
186
+ # @private
187
+ class Representation < Google::Apis::Core::JsonRepresentation
188
+ property :create_time, as: 'createTime'
189
+ property :description, as: 'description'
190
+ property :name, as: 'name'
191
+ collection :resource_names, as: 'resourceNames'
192
+ property :update_time, as: 'updateTime'
193
+ end
194
+ end
162
195
  end
163
196
  end
164
197
  end
@@ -345,6 +345,188 @@ module Google
345
345
  command.query['quotaUser'] = quota_user unless quota_user.nil?
346
346
  execute_or_queue_command(command, &block)
347
347
  end
348
+
349
+ # Create a new TraceScope.
350
+ # @param [String] parent
351
+ # Required. The full resource name of the location where the trace scope should
352
+ # be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/
353
+ # my-project/locations/global
354
+ # @param [Google::Apis::ObservabilityV1::TraceScope] trace_scope_object
355
+ # @param [String] trace_scope_id
356
+ # Required. A client-assigned identifier for the trace scope.
357
+ # @param [String] fields
358
+ # Selector specifying which fields to include in a partial response.
359
+ # @param [String] quota_user
360
+ # Available to use for quota purposes for server-side applications. Can be any
361
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
362
+ # @param [Google::Apis::RequestOptions] options
363
+ # Request-specific options
364
+ #
365
+ # @yield [result, err] Result & error if block supplied
366
+ # @yieldparam result [Google::Apis::ObservabilityV1::TraceScope] parsed result object
367
+ # @yieldparam err [StandardError] error object if request failed
368
+ #
369
+ # @return [Google::Apis::ObservabilityV1::TraceScope]
370
+ #
371
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
372
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
373
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
374
+ def create_project_location_trace_scope(parent, trace_scope_object = nil, trace_scope_id: nil, fields: nil, quota_user: nil, options: nil, &block)
375
+ command = make_simple_command(:post, 'v1/{+parent}/traceScopes', options)
376
+ command.request_representation = Google::Apis::ObservabilityV1::TraceScope::Representation
377
+ command.request_object = trace_scope_object
378
+ command.response_representation = Google::Apis::ObservabilityV1::TraceScope::Representation
379
+ command.response_class = Google::Apis::ObservabilityV1::TraceScope
380
+ command.params['parent'] = parent unless parent.nil?
381
+ command.query['traceScopeId'] = trace_scope_id unless trace_scope_id.nil?
382
+ command.query['fields'] = fields unless fields.nil?
383
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
384
+ execute_or_queue_command(command, &block)
385
+ end
386
+
387
+ # Delete a TraceScope.
388
+ # @param [String] name
389
+ # Required. The full resource name of the trace scope to delete: projects/[
390
+ # PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example:
391
+ # projects/my-project/locations/global/traceScopes/my-trace-scope
392
+ # @param [String] fields
393
+ # Selector specifying which fields to include in a partial response.
394
+ # @param [String] quota_user
395
+ # Available to use for quota purposes for server-side applications. Can be any
396
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
397
+ # @param [Google::Apis::RequestOptions] options
398
+ # Request-specific options
399
+ #
400
+ # @yield [result, err] Result & error if block supplied
401
+ # @yieldparam result [Google::Apis::ObservabilityV1::Empty] parsed result object
402
+ # @yieldparam err [StandardError] error object if request failed
403
+ #
404
+ # @return [Google::Apis::ObservabilityV1::Empty]
405
+ #
406
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
407
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
408
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
409
+ def delete_project_location_trace_scope(name, fields: nil, quota_user: nil, options: nil, &block)
410
+ command = make_simple_command(:delete, 'v1/{+name}', options)
411
+ command.response_representation = Google::Apis::ObservabilityV1::Empty::Representation
412
+ command.response_class = Google::Apis::ObservabilityV1::Empty
413
+ command.params['name'] = name unless name.nil?
414
+ command.query['fields'] = fields unless fields.nil?
415
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
416
+ execute_or_queue_command(command, &block)
417
+ end
418
+
419
+ # Get TraceScope resource.
420
+ # @param [String] name
421
+ # Required. The resource name of the trace scope: projects/[PROJECT_ID]/
422
+ # locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-
423
+ # project/locations/global/traceScopes/my-trace-scope
424
+ # @param [String] fields
425
+ # Selector specifying which fields to include in a partial response.
426
+ # @param [String] quota_user
427
+ # Available to use for quota purposes for server-side applications. Can be any
428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
429
+ # @param [Google::Apis::RequestOptions] options
430
+ # Request-specific options
431
+ #
432
+ # @yield [result, err] Result & error if block supplied
433
+ # @yieldparam result [Google::Apis::ObservabilityV1::TraceScope] parsed result object
434
+ # @yieldparam err [StandardError] error object if request failed
435
+ #
436
+ # @return [Google::Apis::ObservabilityV1::TraceScope]
437
+ #
438
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
439
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
440
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
441
+ def get_project_location_trace_scope(name, fields: nil, quota_user: nil, options: nil, &block)
442
+ command = make_simple_command(:get, 'v1/{+name}', options)
443
+ command.response_representation = Google::Apis::ObservabilityV1::TraceScope::Representation
444
+ command.response_class = Google::Apis::ObservabilityV1::TraceScope
445
+ command.params['name'] = name unless name.nil?
446
+ command.query['fields'] = fields unless fields.nil?
447
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
448
+ execute_or_queue_command(command, &block)
449
+ end
450
+
451
+ # List TraceScopes of a project in a particular location.
452
+ # @param [String] parent
453
+ # Required. The full resource name of the location to look for trace scopes:
454
+ # projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/
455
+ # locations/global
456
+ # @param [Fixnum] page_size
457
+ # Optional. The maximum number of results to return from this request. Non-
458
+ # positive values are ignored. The presence of `next_page_token` in the response
459
+ # indicates that more results might be available.
460
+ # @param [String] page_token
461
+ # Optional. If present, then retrieve the next batch of results from the
462
+ # preceding call to this method. `page_token` must be the value of `
463
+ # next_page_token` from the previous response. The values of other method
464
+ # parameters should be identical to those in the previous call.
465
+ # @param [String] fields
466
+ # Selector specifying which fields to include in a partial response.
467
+ # @param [String] quota_user
468
+ # Available to use for quota purposes for server-side applications. Can be any
469
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
470
+ # @param [Google::Apis::RequestOptions] options
471
+ # Request-specific options
472
+ #
473
+ # @yield [result, err] Result & error if block supplied
474
+ # @yieldparam result [Google::Apis::ObservabilityV1::ListTraceScopesResponse] parsed result object
475
+ # @yieldparam err [StandardError] error object if request failed
476
+ #
477
+ # @return [Google::Apis::ObservabilityV1::ListTraceScopesResponse]
478
+ #
479
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
480
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
481
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
482
+ def list_project_location_trace_scopes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
483
+ command = make_simple_command(:get, 'v1/{+parent}/traceScopes', options)
484
+ command.response_representation = Google::Apis::ObservabilityV1::ListTraceScopesResponse::Representation
485
+ command.response_class = Google::Apis::ObservabilityV1::ListTraceScopesResponse
486
+ command.params['parent'] = parent unless parent.nil?
487
+ command.query['pageSize'] = page_size unless page_size.nil?
488
+ command.query['pageToken'] = page_token unless page_token.nil?
489
+ command.query['fields'] = fields unless fields.nil?
490
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
491
+ execute_or_queue_command(command, &block)
492
+ end
493
+
494
+ # Update a TraceScope.
495
+ # @param [String] name
496
+ # Identifier. The resource name of the trace scope. For example: projects/my-
497
+ # project/locations/global/traceScopes/my-trace-scope
498
+ # @param [Google::Apis::ObservabilityV1::TraceScope] trace_scope_object
499
+ # @param [String] update_mask
500
+ # Optional. The list of fields to update.
501
+ # @param [String] fields
502
+ # Selector specifying which fields to include in a partial response.
503
+ # @param [String] quota_user
504
+ # Available to use for quota purposes for server-side applications. Can be any
505
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
506
+ # @param [Google::Apis::RequestOptions] options
507
+ # Request-specific options
508
+ #
509
+ # @yield [result, err] Result & error if block supplied
510
+ # @yieldparam result [Google::Apis::ObservabilityV1::TraceScope] parsed result object
511
+ # @yieldparam err [StandardError] error object if request failed
512
+ #
513
+ # @return [Google::Apis::ObservabilityV1::TraceScope]
514
+ #
515
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
516
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
517
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
518
+ def patch_project_location_trace_scope(name, trace_scope_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
519
+ command = make_simple_command(:patch, 'v1/{+name}', options)
520
+ command.request_representation = Google::Apis::ObservabilityV1::TraceScope::Representation
521
+ command.request_object = trace_scope_object
522
+ command.response_representation = Google::Apis::ObservabilityV1::TraceScope::Representation
523
+ command.response_class = Google::Apis::ObservabilityV1::TraceScope
524
+ command.params['name'] = name unless name.nil?
525
+ command.query['updateMask'] = update_mask unless update_mask.nil?
526
+ command.query['fields'] = fields unless fields.nil?
527
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
528
+ execute_or_queue_command(command, &block)
529
+ end
348
530
 
349
531
  protected
350
532
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-observability_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-observability_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-observability_v1/v0.5.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-observability_v1/v0.6.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-observability_v1
62
62
  rdoc_options: []
63
63
  require_paths: