google-apis-logging_v2 0.27.0 → 0.30.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: 5e01abae38029bc4dc41d3f4d0ad3ebe0be31e7a9f0faa128b032b7eac4c601f
4
- data.tar.gz: 6979ab2cd5b6837113b1b70b4a8c734784e915900c6d8ebbfd2c4d0746c0dd18
3
+ metadata.gz: 495456aa2bdc50214a0f870431453ef97fef83f3d0d948cfb41b02294138af15
4
+ data.tar.gz: 5ef353877d1e145dec3fe0820f8efc9fb36278aaba6f79876064cc6dd8713a4b
5
5
  SHA512:
6
- metadata.gz: 781430021a6c7b6144368a2482f3c770b2d19b2c1f340a5b314154ed0d9ce70631c390df43368f1a96ad808baa47fd931de4977e4e6042685fd8583f4e2bfdb9
7
- data.tar.gz: 6d3a0da5fcb5b1eeb998d36cf8ba22f72517ecee11a1d492f15530d96ac0c62dcc2282a46731aa1d56482334819c265b2a79d22a06c2dc7e6de43672fd0a70eb
6
+ metadata.gz: bd944e6d78dddb71e8191a8a68e2d275ff989bfaaf914d9206c9eab0519c4205725d4e7c0b8683926e33dc0aa7097179e0aa4ae940cd1be800cfc7fde259bbd5
7
+ data.tar.gz: 376fb13bfbddecd20f7bd466b1dab2fbe36fc7174eabaa3b1edb2f3d6ca14051ebe5588c9f3a49c9b4a036cdf3147e05574762a2baefe7d93ecfef8443a26aa5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-logging_v2
2
2
 
3
+ ### v0.30.0 (2022-06-04)
4
+
5
+ * Regenerated from discovery document revision 20220527
6
+ * Regenerated using generator version 0.5.0
7
+
8
+ ### v0.29.0 (2022-04-23)
9
+
10
+ * Regenerated from discovery document revision 20220414
11
+
12
+ ### v0.28.0 (2022-04-16)
13
+
14
+ * Regenerated from discovery document revision 20220408
15
+
3
16
  ### v0.27.0 (2022-04-09)
4
17
 
5
18
  * Regenerated from discovery document revision 20220401
@@ -2335,6 +2335,11 @@ module Google
2335
2335
  # @return [Array<Google::Apis::LoggingV2::SourceReference>]
2336
2336
  attr_accessor :source_reference
2337
2337
 
2338
+ # Stackdriver Trace span identifier for this request.
2339
+ # Corresponds to the JSON property `spanId`
2340
+ # @return [String]
2341
+ attr_accessor :span_id
2342
+
2338
2343
  # Time when the request started.
2339
2344
  # Corresponds to the JSON property `startTime`
2340
2345
  # @return [String]
@@ -2417,6 +2422,7 @@ module Google
2417
2422
  @resource = args[:resource] if args.key?(:resource)
2418
2423
  @response_size = args[:response_size] if args.key?(:response_size)
2419
2424
  @source_reference = args[:source_reference] if args.key?(:source_reference)
2425
+ @span_id = args[:span_id] if args.key?(:span_id)
2420
2426
  @start_time = args[:start_time] if args.key?(:start_time)
2421
2427
  @status = args[:status] if args.key?(:status)
2422
2428
  @task_name = args[:task_name] if args.key?(:task_name)
@@ -2768,11 +2774,12 @@ module Google
2768
2774
  # @return [String]
2769
2775
  attr_accessor :log_name
2770
2776
 
2771
- # Optional. Whether valid entries should be written even if some other entries
2772
- # fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
2773
- # written, then the response status is the error associated with one of the
2774
- # failed entries and the response includes error details keyed by the entries'
2775
- # zero-based index in the entries.write method.
2777
+ # Optional. Whether a batch's valid entries should be written even if some other
2778
+ # entry failed due to a permanent error such as INVALID_ARGUMENT or
2779
+ # PERMISSION_DENIED. If any entry failed, then the response status is the
2780
+ # response status is the status of one of the failed entries. The response will
2781
+ # include error details keyed by the entries' zero-based index in the entries.
2782
+ # write method.
2776
2783
  # Corresponds to the JSON property `partialSuccess`
2777
2784
  # @return [Boolean]
2778
2785
  attr_accessor :partial_success
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module LoggingV2
18
18
  # Version of the google-apis-logging_v2 gem
19
- GEM_VERSION = "0.27.0"
19
+ GEM_VERSION = "0.30.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220401"
25
+ REVISION = "20220527"
26
26
  end
27
27
  end
28
28
  end
@@ -834,6 +834,7 @@ module Google
834
834
  property :response_size, :numeric_string => true, as: 'responseSize'
835
835
  collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2::SourceReference, decorator: Google::Apis::LoggingV2::SourceReference::Representation
836
836
 
837
+ property :span_id, as: 'spanId'
837
838
  property :start_time, as: 'startTime'
838
839
  property :status, as: 'status'
839
840
  property :task_name, as: 'taskName'
@@ -840,6 +840,60 @@ module Google
840
840
  execute_or_queue_command(command, &block)
841
841
  end
842
842
 
843
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
844
+ # logs that have entries are listed.
845
+ # @param [String] parent
846
+ # Required. The resource name that owns the logs: projects/[PROJECT_ID]
847
+ # organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[
848
+ # FOLDER_ID]
849
+ # @param [Fixnum] page_size
850
+ # Optional. The maximum number of results to return from this request. Non-
851
+ # positive values are ignored. The presence of nextPageToken in the response
852
+ # indicates that more results might be available.
853
+ # @param [String] page_token
854
+ # Optional. If present, then retrieve the next batch of results from the
855
+ # preceding call to this method. pageToken must be the value of nextPageToken
856
+ # from the previous response. The values of other method parameters should be
857
+ # identical to those in the previous call.
858
+ # @param [Array<String>, String] resource_names
859
+ # Optional. The resource name that owns the logs: projects/[PROJECT_ID]/
860
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[
861
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
862
+ # billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
863
+ # BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/
864
+ # [BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it could also be:
865
+ # projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[
866
+ # BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
867
+ # @param [String] fields
868
+ # Selector specifying which fields to include in a partial response.
869
+ # @param [String] quota_user
870
+ # Available to use for quota purposes for server-side applications. Can be any
871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
872
+ # @param [Google::Apis::RequestOptions] options
873
+ # Request-specific options
874
+ #
875
+ # @yield [result, err] Result & error if block supplied
876
+ # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
877
+ # @yieldparam err [StandardError] error object if request failed
878
+ #
879
+ # @return [Google::Apis::LoggingV2::ListLogsResponse]
880
+ #
881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
884
+ def list_billing_account_location_bucket_view_logs(parent, page_size: nil, page_token: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block)
885
+ command = make_simple_command(:get, 'v2/{+parent}/logs', options)
886
+ command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
887
+ command.response_class = Google::Apis::LoggingV2::ListLogsResponse
888
+ command.params['parent'] = parent unless parent.nil?
889
+ command.query['pageSize'] = page_size unless page_size.nil?
890
+ command.query['pageToken'] = page_token unless page_token.nil?
891
+ command.query['resourceNames'] = resource_names unless resource_names.nil?
892
+ command.query['fields'] = fields unless fields.nil?
893
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
894
+ execute_or_queue_command(command, &block)
895
+ end
896
+
843
897
  # Starts asynchronous cancellation on a long-running operation. The server makes
844
898
  # a best effort to cancel the operation, but success is not guaranteed. If the
845
899
  # server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
@@ -2493,6 +2547,60 @@ module Google
2493
2547
  execute_or_queue_command(command, &block)
2494
2548
  end
2495
2549
 
2550
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
2551
+ # logs that have entries are listed.
2552
+ # @param [String] parent
2553
+ # Required. The resource name that owns the logs: projects/[PROJECT_ID]
2554
+ # organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[
2555
+ # FOLDER_ID]
2556
+ # @param [Fixnum] page_size
2557
+ # Optional. The maximum number of results to return from this request. Non-
2558
+ # positive values are ignored. The presence of nextPageToken in the response
2559
+ # indicates that more results might be available.
2560
+ # @param [String] page_token
2561
+ # Optional. If present, then retrieve the next batch of results from the
2562
+ # preceding call to this method. pageToken must be the value of nextPageToken
2563
+ # from the previous response. The values of other method parameters should be
2564
+ # identical to those in the previous call.
2565
+ # @param [Array<String>, String] resource_names
2566
+ # Optional. The resource name that owns the logs: projects/[PROJECT_ID]/
2567
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[
2568
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
2569
+ # billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
2570
+ # BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/
2571
+ # [BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it could also be:
2572
+ # projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[
2573
+ # BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
2574
+ # @param [String] fields
2575
+ # Selector specifying which fields to include in a partial response.
2576
+ # @param [String] quota_user
2577
+ # Available to use for quota purposes for server-side applications. Can be any
2578
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2579
+ # @param [Google::Apis::RequestOptions] options
2580
+ # Request-specific options
2581
+ #
2582
+ # @yield [result, err] Result & error if block supplied
2583
+ # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
2584
+ # @yieldparam err [StandardError] error object if request failed
2585
+ #
2586
+ # @return [Google::Apis::LoggingV2::ListLogsResponse]
2587
+ #
2588
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2589
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2590
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2591
+ def list_folder_location_bucket_view_logs(parent, page_size: nil, page_token: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block)
2592
+ command = make_simple_command(:get, 'v2/{+parent}/logs', options)
2593
+ command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
2594
+ command.response_class = Google::Apis::LoggingV2::ListLogsResponse
2595
+ command.params['parent'] = parent unless parent.nil?
2596
+ command.query['pageSize'] = page_size unless page_size.nil?
2597
+ command.query['pageToken'] = page_token unless page_token.nil?
2598
+ command.query['resourceNames'] = resource_names unless resource_names.nil?
2599
+ command.query['fields'] = fields unless fields.nil?
2600
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2601
+ execute_or_queue_command(command, &block)
2602
+ end
2603
+
2496
2604
  # Starts asynchronous cancellation on a long-running operation. The server makes
2497
2605
  # a best effort to cancel the operation, but success is not guaranteed. If the
2498
2606
  # server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
@@ -4638,6 +4746,60 @@ module Google
4638
4746
  execute_or_queue_command(command, &block)
4639
4747
  end
4640
4748
 
4749
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
4750
+ # logs that have entries are listed.
4751
+ # @param [String] parent
4752
+ # Required. The resource name that owns the logs: projects/[PROJECT_ID]
4753
+ # organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[
4754
+ # FOLDER_ID]
4755
+ # @param [Fixnum] page_size
4756
+ # Optional. The maximum number of results to return from this request. Non-
4757
+ # positive values are ignored. The presence of nextPageToken in the response
4758
+ # indicates that more results might be available.
4759
+ # @param [String] page_token
4760
+ # Optional. If present, then retrieve the next batch of results from the
4761
+ # preceding call to this method. pageToken must be the value of nextPageToken
4762
+ # from the previous response. The values of other method parameters should be
4763
+ # identical to those in the previous call.
4764
+ # @param [Array<String>, String] resource_names
4765
+ # Optional. The resource name that owns the logs: projects/[PROJECT_ID]/
4766
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[
4767
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
4768
+ # billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
4769
+ # BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/
4770
+ # [BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it could also be:
4771
+ # projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[
4772
+ # BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
4773
+ # @param [String] fields
4774
+ # Selector specifying which fields to include in a partial response.
4775
+ # @param [String] quota_user
4776
+ # Available to use for quota purposes for server-side applications. Can be any
4777
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4778
+ # @param [Google::Apis::RequestOptions] options
4779
+ # Request-specific options
4780
+ #
4781
+ # @yield [result, err] Result & error if block supplied
4782
+ # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
4783
+ # @yieldparam err [StandardError] error object if request failed
4784
+ #
4785
+ # @return [Google::Apis::LoggingV2::ListLogsResponse]
4786
+ #
4787
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4788
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4789
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4790
+ def list_organization_location_bucket_view_logs(parent, page_size: nil, page_token: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block)
4791
+ command = make_simple_command(:get, 'v2/{+parent}/logs', options)
4792
+ command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
4793
+ command.response_class = Google::Apis::LoggingV2::ListLogsResponse
4794
+ command.params['parent'] = parent unless parent.nil?
4795
+ command.query['pageSize'] = page_size unless page_size.nil?
4796
+ command.query['pageToken'] = page_token unless page_token.nil?
4797
+ command.query['resourceNames'] = resource_names unless resource_names.nil?
4798
+ command.query['fields'] = fields unless fields.nil?
4799
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4800
+ execute_or_queue_command(command, &block)
4801
+ end
4802
+
4641
4803
  # Starts asynchronous cancellation on a long-running operation. The server makes
4642
4804
  # a best effort to cancel the operation, but success is not guaranteed. If the
4643
4805
  # server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
@@ -5919,6 +6081,60 @@ module Google
5919
6081
  execute_or_queue_command(command, &block)
5920
6082
  end
5921
6083
 
6084
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
6085
+ # logs that have entries are listed.
6086
+ # @param [String] parent
6087
+ # Required. The resource name that owns the logs: projects/[PROJECT_ID]
6088
+ # organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[
6089
+ # FOLDER_ID]
6090
+ # @param [Fixnum] page_size
6091
+ # Optional. The maximum number of results to return from this request. Non-
6092
+ # positive values are ignored. The presence of nextPageToken in the response
6093
+ # indicates that more results might be available.
6094
+ # @param [String] page_token
6095
+ # Optional. If present, then retrieve the next batch of results from the
6096
+ # preceding call to this method. pageToken must be the value of nextPageToken
6097
+ # from the previous response. The values of other method parameters should be
6098
+ # identical to those in the previous call.
6099
+ # @param [Array<String>, String] resource_names
6100
+ # Optional. The resource name that owns the logs: projects/[PROJECT_ID]/
6101
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[
6102
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
6103
+ # billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
6104
+ # BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/
6105
+ # [BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it could also be:
6106
+ # projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[
6107
+ # BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
6108
+ # @param [String] fields
6109
+ # Selector specifying which fields to include in a partial response.
6110
+ # @param [String] quota_user
6111
+ # Available to use for quota purposes for server-side applications. Can be any
6112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6113
+ # @param [Google::Apis::RequestOptions] options
6114
+ # Request-specific options
6115
+ #
6116
+ # @yield [result, err] Result & error if block supplied
6117
+ # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
6118
+ # @yieldparam err [StandardError] error object if request failed
6119
+ #
6120
+ # @return [Google::Apis::LoggingV2::ListLogsResponse]
6121
+ #
6122
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6123
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6124
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6125
+ def list_project_location_bucket_view_logs(parent, page_size: nil, page_token: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block)
6126
+ command = make_simple_command(:get, 'v2/{+parent}/logs', options)
6127
+ command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
6128
+ command.response_class = Google::Apis::LoggingV2::ListLogsResponse
6129
+ command.params['parent'] = parent unless parent.nil?
6130
+ command.query['pageSize'] = page_size unless page_size.nil?
6131
+ command.query['pageToken'] = page_token unless page_token.nil?
6132
+ command.query['resourceNames'] = resource_names unless resource_names.nil?
6133
+ command.query['fields'] = fields unless fields.nil?
6134
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6135
+ execute_or_queue_command(command, &block)
6136
+ end
6137
+
5922
6138
  # Starts asynchronous cancellation on a long-running operation. The server makes
5923
6139
  # a best effort to cancel the operation, but success is not guaranteed. If the
5924
6140
  # server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-logging_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.30.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: 2022-04-11 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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-logging_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-logging_v2/v0.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-logging_v2/v0.30.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-logging_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.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Logging API V2